31#define MOUSE_IRQ_INT 0x74
129 DPRINT1(
"PS/2 Mouse IRQ! DeviceHandler = 0x%04X:0x%04X\n",
256 UCHAR SampleRate = 0;
260 case 0x00: SampleRate = 10;
break;
261 case 0x01: SampleRate = 20;
break;
262 case 0x02: SampleRate = 40;
break;
263 case 0x03: SampleRate = 60;
break;
264 case 0x04: SampleRate = 80;
break;
265 case 0x05: SampleRate = 100;
break;
266 case 0x06: SampleRate = 200;
break;
267 default: SampleRate = 0;
471 DPRINT1(
"INT 15h, AH = C2h, AL = %02Xh NOT IMPLEMENTED\n",
500 DPRINT1(
"No mouse present!\n");
504 DPRINT1(
"Mouse reset failure!\n");
517 DPRINT1(
"Failed to enable mouse!\n");
VOID PicIRQComplete(BYTE IntNum)
VOID EnableHwIRQ(UCHAR hwirq, EMULATOR_INT32_PROC func)
#define RegisterBiosInt32(IntNumber, IntHandler)
#define SEG_OFF_TO_PTR(seg, off)
VOID MouseBios32Post(VOID)
VOID BiosMousePs2Interface(LPWORD Stack)
static DWORD OldIrqHandler
static VOID BiosMouseEnable(VOID)
static VOID DisableMouseInt(VOID)
static VOID WINAPI BiosMouseIrq(LPWORD Stack)
static ULONG DeviceHandler
BOOLEAN MouseBiosInitialize(VOID)
VOID MouseBios32Cleanup(VOID)
static VOID SendMouseCommand(UCHAR Command)
static VOID EnableMouseInt(VOID)
static BOOLEAN MouseEnabled
static UCHAR ReadMouseData(VOID)
static VOID BiosMouseDisable(VOID)
_In_ HANDLE _Outptr_result_bytebuffer_ ViewSize PVOID * BaseAddress
BOOLEAN PS2PortQueueRead(BYTE PS2Port)
VOID RunCallback16(IN PCALLBACK16 Context, IN ULONG FarPtr)
VOID IOWriteB(USHORT Port, UCHAR Buffer)
UCHAR IOReadB(USHORT Port)
USHORT WINAPI getBX(VOID)
VOID WINAPI setSP(USHORT)
USHORT WINAPI getES(VOID)
USHORT WINAPI getSP(VOID)
USHORT WINAPI getSS(VOID)
_In_ WDFREQUEST _In_ PIO_STACK_LOCATION Stack