VirtualBox

Changeset 35683 in vbox


Ignore:
Timestamp:
Jan 24, 2011 3:28:09 PM (14 years ago)
Author:
vboxsync
Message:

BusMouse: Changed the license since this is going to be a sample driver.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ExtPacks/BusMouseSample/BusMouse.cpp

    r35682 r35683  
     1/* $Id$ */
    12/** @file
    23 * BusMouse - Microsoft Bus (parallel) mouse controller device.
     
    67 * Copyright (C) 2006-2011 Oracle Corporation
    78 *
    8  * This file is part of VirtualBox Open Source Edition (OSE), as
    9  * available from http://www.virtualbox.org. This file is free software;
    10  * you can redistribute it and/or modify it under the terms of the GNU
    11  * General Public License (GPL) as published by the Free Software
    12  * Foundation, in version 2 as it comes in the "COPYING" file of the
    13  * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
    14  * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
     9 * Permission is hereby granted, free of charge, to any person
     10 * obtaining a copy of this software and associated documentation
     11 * files (the "Software"), to deal in the Software without
     12 * restriction, including without limitation the rights to use,
     13 * copy, modify, merge, publish, distribute, sublicense, and/or sell
     14 * copies of the Software, and to permit persons to whom the
     15 * Software is furnished to do so, subject to the following
     16 * conditions:
     17 *
     18 * The above copyright notice and this permission notice shall be
     19 * included in all copies or substantial portions of the Software.
     20 *
     21 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
     22 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
     23 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
     24 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
     25 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
     26 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
     27 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
     28 * OTHER DEALINGS IN THE SOFTWARE.
    1529 */
    1630
     
    145159#ifdef IN_RING3
    146160
    147 /* Report a change in status down the driver chain. 
     161/* Report a change in status down the driver chain.
    148162 * We want to report the mouse as enabled if and only if the guest
    149163 * is "using" it. That way, other devices (e.g. a PS/2 or USB mouse)
     
    228242        if (s->disable_counter)
    229243            --s->disable_counter;
    230        
     244
    231245        if (s->disable_counter == 0 && s->mouse_enabled)
    232246        {
     
    282296
    283297    /* Move the appropriate nibble into port A. */
    284     if (s->cnt_held) 
     298    if (s->cnt_held)
    285299    {
    286300        if (s->port_c & BMS_CTL_SEL_Y)
     
    317331
    318332    LogRel3(("%s: write port %d: 0x%02x\n", __PRETTY_FUNCTION__, addr, val));
    319            
     333
    320334    switch(addr) {
    321335    case BMS_PORT_SIG:
     
    580594{
    581595    MouState   *s = PDMINS_2_DATA(pDevIns, MouState *);
    582    
     596
    583597    bms_timer(s);
    584598
     
    742756    if ((irq_lvl < 2) || (irq_lvl > 5))
    743757        return PDMDEV_SET_ERROR(pDevIns, rc, N_("Invalid \"IRQ\" config setting"));
    744    
     758
    745759    pThis->irq = irq_lvl;
    746760    //@todo: remove after properly enabling RC/GC support
     
    870884#endif /* IN_RING3 */
    871885#endif /* !VBOX_DEVICE_STRUCT_TESTCASE */
     886
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette