Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

105 lines
1.4 KiB

  1. /*++
  2. Copyright (c) 1993 Microsoft Corporation
  3. Copyright (c) 1993 Logitech Inc.
  4. Module Name:
  5. mseries.h
  6. Abstract:
  7. Support routines for the following devices:
  8. - Microsoft 2 button serial devices.
  9. - Logitech 3 button serial devices (Microsoft compatible).
  10. - Microsoft Ballpoint.
  11. Environment:
  12. Kernel mode only.
  13. Notes:
  14. Revision History:
  15. --*/
  16. //
  17. // Constants.
  18. //
  19. #define MSER_PROTOCOL_MP 0
  20. #define MSER_PROTOCOL_BP 1
  21. #define MSER_PROTOCOL_Z 2
  22. #define MSER_PROTOCOL_MAX 3
  23. //
  24. // Type definitions.
  25. //
  26. typedef enum _MOUSETYPE {
  27. NO_MOUSE = 0,
  28. MOUSE_2B,
  29. MOUSE_3B,
  30. BALLPOINT,
  31. MOUSE_Z,
  32. MAX_MOUSETYPE
  33. } MOUSETYPE;
  34. //
  35. // Prototypes.
  36. //
  37. MOUSETYPE
  38. MSerDetect(
  39. PUCHAR Port,
  40. ULONG BaudClock
  41. );
  42. BOOLEAN
  43. MSerHandlerBP(
  44. IN PMOUSE_INPUT_DATA CurrentInput,
  45. IN PHANDLER_DATA HandlerData,
  46. IN UCHAR Value,
  47. IN UCHAR LineState
  48. );
  49. BOOLEAN
  50. MSerHandlerMP(
  51. IN PMOUSE_INPUT_DATA CurrentInput,
  52. IN PHANDLER_DATA HandlerData,
  53. IN UCHAR Value,
  54. IN UCHAR LineState
  55. );
  56. BOOLEAN
  57. MSerHandlerZ(
  58. IN PMOUSE_INPUT_DATA CurrentInput,
  59. IN PHANDLER_DATA HandlerData,
  60. IN UCHAR Value,
  61. IN UCHAR LineState
  62. );
  63. BOOLEAN
  64. MSerPowerDown(
  65. PUCHAR Port
  66. );
  67. BOOLEAN
  68. MSerPowerUp(
  69. PUCHAR Port
  70. );
  71. BOOLEAN
  72. MSerReset(
  73. PUCHAR Port
  74. );
  75. PPROTOCOL_HANDLER
  76. MSerSetProtocol(
  77. PUCHAR Port,
  78. UCHAR NewProtocol
  79. );