Changeset 55873 in vbox
- Timestamp:
- May 15, 2015 10:35:21 AM (9 years ago)
- File:
-
- 1 edited
-
trunk/src/VBox/Devices/Input/DevPS2.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Input/DevPS2.cpp
r54877 r55873 1392 1392 PDMBOTHCBDECL(int) kbdIOPortStatusRead(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t *pu32, unsigned cb) 1393 1393 { 1394 uint16_t fluff = 0; 1395 KBDState *pThis = PDMINS_2_DATA(pDevIns, KBDState *); 1396 1394 1397 NOREF(pvUser); 1395 if (cb == 1) 1396 { 1397 KBDState *pThis = PDMINS_2_DATA(pDevIns, KBDState *); 1398 *pu32 = kbd_read_status(pThis, Port); 1398 switch (cb) { 1399 case 2: 1400 fluff = 0xff00; 1401 case 1: 1402 *pu32 = fluff | kbd_read_status(pThis, Port); 1399 1403 Log2(("kbdIOPortStatusRead: Port=%#x cb=%d -> *pu32=%#x\n", Port, cb, *pu32)); 1400 1404 return VINF_SUCCESS; 1401 } 1402 AssertMsgFailed(("Port=%#x cb=%d\n", Port, cb)); 1403 return VERR_IOM_IOPORT_UNUSED; 1405 default: 1406 AssertMsgFailed(("Port=%#x cb=%d\n", Port, cb)); 1407 return VERR_IOM_IOPORT_UNUSED; 1408 } 1404 1409 } 1405 1410
Note:
See TracChangeset
for help on using the changeset viewer.

