|
|
1.1 ! root 1: /*++ ! 2: ! 3: Copyright (c) 1993 Microsoft Corporation ! 4: Copyright (c) 1993 Logitech Inc. ! 5: ! 6: Module Name: ! 7: ! 8: mseries.h ! 9: ! 10: Abstract: ! 11: ! 12: Support routines for the following devices: ! 13: ! 14: - Microsoft 2 button serial devices. ! 15: - Logitech 3 button serial devices (Microsoft compatible). ! 16: - Microsoft Ballpoint. ! 17: ! 18: Environment: ! 19: ! 20: Kernel mode only. ! 21: ! 22: Notes: ! 23: ! 24: ! 25: Revision History: ! 26: ! 27: --*/ ! 28: ! 29: // ! 30: // Constants. ! 31: // ! 32: ! 33: #define MSER_PROTOCOL_MP 0 ! 34: #define MSER_PROTOCOL_BP 1 ! 35: #define MSER_PROTOCOL_MAX 2 ! 36: ! 37: // ! 38: // Type definitions. ! 39: // ! 40: ! 41: typedef enum _MOUSETYPE { ! 42: NO_MOUSE = 0, ! 43: MOUSE_2B, ! 44: MOUSE_3B, ! 45: BALLPOINT, ! 46: MAX_MOUSETYPE ! 47: } MOUSETYPE; ! 48: ! 49: // ! 50: // Prototypes. ! 51: // ! 52: ! 53: MOUSETYPE ! 54: MSerDetect( ! 55: PUCHAR Port, ! 56: ULONG BaudClock ! 57: ); ! 58: ! 59: BOOLEAN ! 60: MSerHandlerBP( ! 61: IN PMOUSE_INPUT_DATA CurrentInput, ! 62: IN PHANDLER_DATA HandlerData, ! 63: IN UCHAR Value, ! 64: IN UCHAR LineState ! 65: ); ! 66: ! 67: BOOLEAN ! 68: MSerHandlerMP( ! 69: IN PMOUSE_INPUT_DATA CurrentInput, ! 70: IN PHANDLER_DATA HandlerData, ! 71: IN UCHAR Value, ! 72: IN UCHAR LineState ! 73: ); ! 74: ! 75: BOOLEAN ! 76: MSerPowerDown( ! 77: PUCHAR Port ! 78: ); ! 79: ! 80: BOOLEAN ! 81: MSerPowerUp( ! 82: PUCHAR Port ! 83: ); ! 84: ! 85: BOOLEAN ! 86: MSerReset( ! 87: PUCHAR Port ! 88: ); ! 89: ! 90: PPROTOCOL_HANDLER ! 91: MSerSetProtocol( ! 92: PUCHAR Port, ! 93: UCHAR NewProtocol ! 94: ); ! 95:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.