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.

99 lines
1.6 KiB

  1. /*++
  2. Copyright (c) 1993 Microsoft Corporation
  3. Copyright (c) 1993 Logitech Inc.
  4. Module Name:
  5. cseries.h
  6. Abstract:
  7. Support for the Logitech CSeries type mice.
  8. Environment:
  9. Kernel mode only.
  10. Notes:
  11. Revision History:
  12. --*/
  13. #ifndef CSERIES_H
  14. #define CSERIES_H
  15. //
  16. // Includes.
  17. //
  18. #include "mouser.h"
  19. #define CSER_PROTOCOL_MM 0
  20. #define CSER_PROTOCOL_MAX 1
  21. //
  22. // Not implemented in this release.
  23. //
  24. //#define CSER_PROTOCOL_3B 1
  25. //#define CSER_PROTOCOL_5B 2
  26. //#define CSER_PROTOCOL_M 3
  27. //#define CSER_PROTOCOL_RBPO 4
  28. //#define CSER_PROTOCOL_ABPO 5
  29. //#define CSER_PROTOCOL_MAX 6
  30. //
  31. // Time needed for a CSeries mouse to power up.
  32. //
  33. #define CSER_POWER_UP (500 * MS_TO_100_NS)
  34. //
  35. // The minimum inactive time needed for the mouse to power down correctly.
  36. //
  37. #define CSER_POWER_DOWN (500 * MS_TO_100_NS)
  38. //
  39. // Function prototypes.
  40. //
  41. NTSTATUS
  42. CSerPowerUp(
  43. PDEVICE_EXTENSION DeviceExtension
  44. );
  45. VOID
  46. CSerSetReportRate(
  47. PDEVICE_EXTENSION DeviceExtension,
  48. UCHAR ReportRate
  49. );
  50. VOID
  51. CSerSetBaudRate(
  52. PDEVICE_EXTENSION DeviceExtension,
  53. ULONG BaudRate
  54. // ULONG BaudClock
  55. );
  56. PPROTOCOL_HANDLER
  57. CSerSetProtocol(
  58. PDEVICE_EXTENSION DeviceExtension,
  59. UCHAR NewProtocol
  60. );
  61. BOOLEAN
  62. CSerDetect(
  63. PDEVICE_EXTENSION DeviceExtension,
  64. PULONG HardwareButtons
  65. );
  66. BOOLEAN
  67. CSerHandlerMM(
  68. IN PDEVICE_EXTENSION DeviceExtension,
  69. IN PMOUSE_INPUT_DATA CurrentInput,
  70. IN PHANDLER_DATA HandlerData,
  71. IN UCHAR Value,
  72. IN UCHAR LineState
  73. );
  74. #endif // CSERIES_H