Leaked source code of windows server 2003
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.

102 lines
1.8 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. PDEVICE_EXTENSION DeviceExtension
  40. );
  41. BOOLEAN
  42. MSerHandlerBP(
  43. IN PDEVICE_EXTENSION DeviceExtension,
  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 PDEVICE_EXTENSION DeviceExtension,
  52. IN PMOUSE_INPUT_DATA CurrentInput,
  53. IN PHANDLER_DATA HandlerData,
  54. IN UCHAR Value,
  55. IN UCHAR LineState
  56. );
  57. BOOLEAN
  58. MSerHandlerZ(
  59. IN PDEVICE_EXTENSION DeviceExtension,
  60. IN PMOUSE_INPUT_DATA CurrentInput,
  61. IN PHANDLER_DATA HandlerData,
  62. IN UCHAR Value,
  63. IN UCHAR LineState
  64. );
  65. NTSTATUS
  66. MSerPowerDown(
  67. PDEVICE_EXTENSION DeviceExtension
  68. );
  69. NTSTATUS
  70. MSerPowerUp(
  71. PDEVICE_EXTENSION DeviceExtension
  72. );
  73. PPROTOCOL_HANDLER
  74. MSerSetProtocol(
  75. PDEVICE_EXTENSION DeviceExtension,
  76. UCHAR NewProtocol
  77. );