Changeset 59230 in vbox
- Timestamp:
- Dec 29, 2015 10:02:39 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/PC/BIOS/ps2mouse.c
r56292 r59230 75 75 uint8_t get_mouse_data(uint8_t __far *data) 76 76 { 77 int retries = 10000; 77 int retries = 10000; /* ~150ms timeout */ 78 78 uint8_t response; 79 79 80 80 while ((inb(0x64) & 0x21) != 0x21 && retries) 81 { 82 /* Wait until the 15us refresh counter toggles. */ 83 response = inb(0x61) & 0x10; 84 while((inb(0x61) & 0x10) == response) 85 ; 81 86 --retries; 87 } 82 88 83 89 if (!retries)
Note:
See TracChangeset
for help on using the changeset viewer.