Changeset 35683 in vbox
- Timestamp:
- Jan 24, 2011 3:28:09 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ExtPacks/BusMouseSample/BusMouse.cpp
r35682 r35683 1 /* $Id$ */ 1 2 /** @file 2 3 * BusMouse - Microsoft Bus (parallel) mouse controller device. … … 6 7 * Copyright (C) 2006-2011 Oracle Corporation 7 8 * 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. 15 29 */ 16 30 … … 145 159 #ifdef IN_RING3 146 160 147 /* Report a change in status down the driver chain. 161 /* Report a change in status down the driver chain. 148 162 * We want to report the mouse as enabled if and only if the guest 149 163 * is "using" it. That way, other devices (e.g. a PS/2 or USB mouse) … … 228 242 if (s->disable_counter) 229 243 --s->disable_counter; 230 244 231 245 if (s->disable_counter == 0 && s->mouse_enabled) 232 246 { … … 282 296 283 297 /* Move the appropriate nibble into port A. */ 284 if (s->cnt_held) 298 if (s->cnt_held) 285 299 { 286 300 if (s->port_c & BMS_CTL_SEL_Y) … … 317 331 318 332 LogRel3(("%s: write port %d: 0x%02x\n", __PRETTY_FUNCTION__, addr, val)); 319 333 320 334 switch(addr) { 321 335 case BMS_PORT_SIG: … … 580 594 { 581 595 MouState *s = PDMINS_2_DATA(pDevIns, MouState *); 582 596 583 597 bms_timer(s); 584 598 … … 742 756 if ((irq_lvl < 2) || (irq_lvl > 5)) 743 757 return PDMDEV_SET_ERROR(pDevIns, rc, N_("Invalid \"IRQ\" config setting")); 744 758 745 759 pThis->irq = irq_lvl; 746 760 //@todo: remove after properly enabling RC/GC support … … 870 884 #endif /* IN_RING3 */ 871 885 #endif /* !VBOX_DEVICE_STRUCT_TESTCASE */ 886
Note:
See TracChangeset
for help on using the changeset viewer.

