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.

100 lines
1.4 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 "uart.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
  34. //
  35. // The minimum inactive time needed for the mouse to power down correctly.
  36. //
  37. #define CSER_POWER_DOWN 500
  38. //
  39. // Function prototypes.
  40. //
  41. BOOLEAN
  42. CSerPowerUp(
  43. PUCHAR Port
  44. );
  45. VOID
  46. CSerSetReportRate(
  47. PUCHAR Port,
  48. UCHAR ReportRate
  49. );
  50. VOID
  51. CSerSetBaudRate(
  52. PUCHAR Port,
  53. ULONG BaudRate,
  54. ULONG BaudClock
  55. );
  56. PPROTOCOL_HANDLER
  57. CSerSetProtocol(
  58. PUCHAR Port,
  59. UCHAR NewProtocol
  60. );
  61. BOOLEAN
  62. CSerDetect(
  63. PUCHAR Port,
  64. ULONG BaudClock,
  65. PULONG HardwareButtons
  66. );
  67. BOOLEAN
  68. CSerHandlerMM(
  69. IN PMOUSE_INPUT_DATA CurrentInput,
  70. IN PHANDLER_DATA HandlerData,
  71. IN UCHAR Value,
  72. IN UCHAR LineState
  73. );
  74. #endif // CSERIES_H