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.

271 lines
15 KiB

  1. /*++
  2. Copyright (c) 1990-1998 Microsoft Corporation, All Rights Reserved
  3. Module Name:
  4. i8042str.h
  5. Abstract:
  6. These are the string constants used in the i8042prt drivers.
  7. Using pointers to these string allows for better memory
  8. utilization and more readable code
  9. Revision History:
  10. 08/26/96 - Initial Revision
  11. --*/
  12. #ifndef _I8042STR_H_
  13. #define _I8042STR_H_
  14. //
  15. // The name of the Driver. Used in debug print statements
  16. //
  17. #define I8042_DRIVER_NAME_A "8042: "
  18. #define I8042_DRIVER_NAME_W L"8042: "
  19. //
  20. // The Name of the various functions which send debug print statements
  21. //
  22. #define I8042_FNC_DRIVER_ENTRY_A "DriverEntry"
  23. #define I8042_FNC_DRIVER_ENTRY_W L"DriverEntry"
  24. #define I8042_FNC_FIND_WHEEL_MOUSE_A "I8xFindWheelMouse"
  25. #define I8042_FNC_FIND_WHEEL_MOUSE_W L"I8xFindWheelMouse"
  26. #define I8042_FNC_INITIALIZE_MOUSE_A "I8xInitializeMouse"
  27. #define I8042_FNC_INITIALIZE_MOUSE_W L"I8xInitializeMouse"
  28. #define I8042_FNC_KEYBOARD_CONFIGURATION_A "I8xKeyboardConfiguration"
  29. #define I8042_FNC_KEYBOARD_CONFIGURATION_W L"I8xKeyboardConfiguration"
  30. #define I8042_FNC_MOUSE_ENABLE_A "I8xMouseEnableTransmission"
  31. #define I8042_FNC_MOUSE_ENABLE_W L"I8xMouseEnableTransmission"
  32. #define I8042_FNC_MOUSE_INTERRUPT_A "I8042MouseInterruptService"
  33. #define I8042_FNC_MOUSE_INTERRUPT_W L"I8042MouseInterruptService"
  34. #define I8042_FNC_MOUSE_PERIPHERAL_A "I8xMousePeripheralCallout"
  35. #define I8042_FNC_MOUSE_PERIPHERAL_W L"I8xMousePeripheralCallout"
  36. #define I8042_FNC_SERVICE_PARAMETERS_A "I8xServiceParameters"
  37. #define I8042_FNC_SERVICE_PARAMETERS_W L"I8xServiceParameters"
  38. #define I8042_ISR_KB_A "i8042 isr (kb): "
  39. #define I8042_ISR_MOU_A "i8042 isr (mou): "
  40. #define I8042_BUS_A "Bus"
  41. #define I8042_BUS_W L"Bus"
  42. #define I8042_CONTROLLER_A "Controller"
  43. #define I8042_CONTROLLER_W L"Controller"
  44. #define I8042_ENTER_A "enter"
  45. #define I8042_ENTER_W L"enter"
  46. #define I8042_EXIT_A "exit"
  47. #define I8042_EXIT_W L"exit"
  48. #define I8042_INFO_A "Info"
  49. #define I8042_INFO_W L"Info"
  50. #define I8042_NUMBER_A "Number"
  51. #define I8042_NUMBER_W L"Number"
  52. #define I8042_PERIPHERAL_A "Peripheral"
  53. #define I8042_PERIPHERAL_W L"Peripheral"
  54. #define I8042_TYPE_A "Type"
  55. #define I8042_TYPE_W L"Type"
  56. //
  57. // Some strings used frequently by the driver
  58. //
  59. #define I8042_DEBUGFLAGS_A "DebugFlags"
  60. #define I8042_DEBUGFLAGS_W L"DebugFlags"
  61. #define I8042_ISRDEBUGFLAGS_A "IsrDebugFlags"
  62. #define I8042_ISRDEBUGFLAGS_W L"IsrDebugFlags"
  63. #define I8042_DEVICE_A "\\Device\\"
  64. #define I8042_DEVICE_W L"\\Device\\"
  65. #define I8042_PARAMETERS_A "\\Parameters"
  66. #define I8042_PARAMETERS_W L"\\Parameters"
  67. #define I8042_FORWARD_SLASH_A "/"
  68. #define I8042_FORWARD_SLASH_W L"/"
  69. #define I8042_RESEND_ITERATIONS_A "ResendIterations"
  70. #define I8042_RESEND_ITERATIONS_W L"ResendIterations"
  71. #define I8042_POLLING_ITERATIONS_A "PollingIterations"
  72. #define I8042_POLLING_ITERATIONS_W L"PollingIterations"
  73. #define I8042_POLLING_ITERATIONS_MAXIMUM_A "PollingTerationsMaximum"
  74. #define I8042_POLLING_ITERATIONS_MAXIMUM_W L"PollingTerationsMaximum"
  75. #define I8042_KEYBOARD_DATA_QUEUE_SIZE_A "KeyboardDataQueueSize"
  76. #define I8042_KEYBOARD_DATA_QUEUE_SIZE_W L"KeyboardDataQueueSize"
  77. #define I8042_MOUSE_DATA_QUEUE_SIZE_A "MouseDataQueueSize"
  78. #define I8042_MOUSE_DATA_QUEUE_SIZE_W L"MouseDataQueueSize"
  79. #define I8042_NUMBER_OF_BUTTONS_A "NumberOfButtons"
  80. #define I8042_NUMBER_OF_BUTTONS_W L"NumberOfButtons"
  81. #define I8042_SAMPLE_RATE_A "SampleRate"
  82. #define I8042_SAMPLE_RATE_W L"SampleRate"
  83. #define I8042_MOUSE_RESOLUTION_A "MouseResolution"
  84. #define I8042_MOUSE_RESOLUTION_W L"MouseResolution"
  85. #define I8042_OVERRIDE_KEYBOARD_TYPE_A "OverrideKeyboardType"
  86. #define I8042_OVERRIDE_KEYBOARD_TYPE_W L"OverrideKeyboardType"
  87. #define I8042_OVERRIDE_KEYBOARD_SUBTYPE_A "OverrideKeyboardSubType"
  88. #define I8042_OVERRIDE_KEYBOARD_SUBTYPE_W L"OverrideKeyboardSubType"
  89. #define I8042_KEYBOARD_DEVICE_BASE_NAME_A "KeyboardDeviceBaseName"
  90. #define I8042_KEYBOARD_DEVICE_BASE_NAME_W L"KeyboardDeviceBaseName"
  91. #define I8042_POINTER_DEVICE_BASE_NAME_A "PointerDeviceBaseName"
  92. #define I8042_POINTER_DEVICE_BASE_NAME_W L"PointerDeviceBaseName"
  93. #define I8042_MOUSE_SYNCH_IN_100NS_A "MouseSynchIn100ns"
  94. #define I8042_MOUSE_SYNCH_IN_100NS_W L"MouseSynchIn100ns"
  95. #define I8042_POLL_STATUS_ITERATIONS_A "PollStatusIterations"
  96. #define I8042_POLL_STATUS_ITERATIONS_W L"PollStatusIterations"
  97. #define I8042_ENABLE_WHEEL_DETECTION_A "EnableWheelDetection"
  98. #define I8042_ENABLE_WHEEL_DETECTION_W L"EnableWheelDetection"
  99. #define I8042_POWER_CAPABILITIES_A "PowerCapabilities"
  100. #define I8042_POWER_CAPABILITIES_W L"PowerCapabilities"
  101. #define I8042_DUMP_HEX_A "\t%ws = 0x%x\n"
  102. #define I8042_DUMP_HEX_W L"\t%ws = 0x%x\n"
  103. #define I8042_DUMP_DECIMAL_A "\t%ws = %d\n"
  104. #define I8042_DUMP_DECIMAL_W L"\t%ws = %d\n"
  105. #define I8042_DUMP_WIDE_STRING_A "%s-%s: %ws = %ws\n"
  106. #define I8042_DUMP_WIDE_STRING_W L"%s-%s: %ws = %ws\n"
  107. #define I8042_DUMP_EXPECTING_A " expecting (0x%x), got 0x%x\n"
  108. #define I8042_DUMP_EXPECTING_W L" expecting (0x%x), got 0x%x\n"
  109. #define I8042_DUMP_EXPECTING_ACK_A " expecting ACK (0x%x), got 0x%x\n"
  110. #define I8042_DUMP_EXPECTING_ACK_W L" expecting ACK (0x%x), got 0x%x\n"
  111. #define I8042_DUMP_EXPECTING_ID_ACK_A "expecting ID ACK (0x%x), got 0x%x\n"
  112. #define I8042_DUMP_EXPECTING_ID_ACK_W L"expecting ID ACK (0x%x), got 0x%x\n"
  113. //
  114. // Make sure that the proper definition is always visible
  115. //
  116. #ifdef UNICODE
  117. #define I8042_DRIVER_NAME I8042_DRIVER_NAME_W
  118. #define I8042_BUS I8042_BUS_W
  119. #define I8042_CONTROLLER I8042_CONTROLLER_W
  120. #define I8042_ENTER I8042_ENTER_W
  121. #define I8042_EXIT I8042_EXIT_W
  122. #define I8042_INFO I8042_INFO_W
  123. #define I8042_NUMBER I8042_NUMBER_W
  124. #define I8042_PERIPHERAL I8042_PERIPHERAL_W
  125. #define I8042_TYPE I8042_TYPE_W
  126. #define I8042_FNC_DRIVER_ENTRY I8042_FNC_DRIVER_ENTRY_W
  127. #define I8042_FNC_FIND_WHEEL_MOUSE I8042_FNC_FIND_WHEEL_MOUSE_W
  128. #define I8042_INITIALIZE_MOUSE I8042_INITIALIZE_MOUSE_W
  129. #define I8042_FNC_KEYBOARD_CONFIGURATION I8042_FNC_KEYBOARD_CONFIGURATION_W
  130. #define I8042_FNC_MOUSE_ENABLE I8042_FNC_MOUSE_ENABLE_W
  131. #define I8042_FNC_MOUSE_INTERRUPT I8042_FNC_MOUSE_INTERRUPT_W
  132. #define I8042_FNC_MOUSE_PERIPHERAL I8042_FNC_MOUSE_PERIPHERAL_W
  133. #define I8042_FNC_SERVICE_PARAMETERS I8042_FNC_SERVICE_PARAMETERS_W
  134. #define I8042_DEBUGFLAGS I8042_DEBUGFLAGS_W
  135. #define I8042_ISRDEBUGFLAGS I8042_ISRDEBUGFLAGS_W
  136. #define I8042_DEVICE I8042_DEVICE_W
  137. #define I8042_PARAMETERS I8042_PARAMETERS_W
  138. #define I8042_FORWARD_SLASH I8042_FORWARD_SLASH_W
  139. #define I8042_RESEND_ITERATIONS I8042_RESEND_ITERATIONS_W
  140. #define I8042_POLLING_ITERATIONS I8042_POLLING_ITERATIONS_W
  141. #define I8042_POLLING_ITERATIONS_MAXIMUM I8042_POLLING_ITERATIONS_MAXIMUM_W
  142. #define I8042_KEYBOARD_DATA_QUEUE_SIZE I8042_KEYBOARD_DATA_QUEUE_SIZE_W
  143. #define I8042_MOUSE_DATA_QUEUE_SIZE I8042_MOUSE_DATA_QUEUE_SIZE_W
  144. #define I8042_NUMBER_OF_BUTTONS I8042_NUMBER_OF_BUTTONS_W
  145. #define I8042_SAMPLE_RATE I8042_SAMPLE_RATE_W
  146. #define I8042_MOUSE_RESOLUTION I8042_MOUSE_RESOLUTION_W
  147. #define I8042_OVERRIDE_KEYBOARD_TYPE I8042_OVERRIDE_KEYBOARD_TYPE_W
  148. #define I8042_OVERRIDE_KEYBOARD_SUBTYPE I8042_OVERRIDE_KEYBOARD_SUBTYE_W
  149. #define I8042_KEYBOARD_DEVICE_BASE_NAME I8042_KEYBOARD_DEVICE_BASE_NAME_W
  150. #define I8042_POINTER_DEVICE_BASE_NAME I8042_POINTER_DEVICE_BASE_NAME_W
  151. #define I8042_MOUSE_SYNCH_IN_100NS I8042_MOUSE_SYNCH_IN_100NS_W
  152. #define I8042_POLL_STATUS_ITERATIONS I8042_POLL_STATUS_ITERATIONS_W
  153. #define I8042_ENABLE_WHEEL_DETECTION I8042_ENABLE_WHEEL_DETECTION_W
  154. #define I8042_DUMP_HEX I8042_DUMP_HEX_W
  155. #define I8042_DUMP_DECIMAL I8042_DUMP_DECIMAL_W
  156. #define I8042_DUMP_WIDE_STRING I8042_DUMP_WIDE_STRING_W
  157. #define I8042_DUMP_EXPECTING I8042_DUMP_EXPECTING_W
  158. #define I8042_DUMP_EXPECTING_ACK I8042_DUMP_EXPECTING_ACK_W
  159. #define I8042_DUMP_EXPECTING_ID_ACK I8042_DUMP_EXPECTING_ID_ACK_W
  160. #else
  161. #define I8042_DRIVER_NAME I8042_DRIVER_NAME_A
  162. #define I8042_BUS I8042_BUS_A
  163. #define I8042_CONTROLLER I8042_CONTROLLER_A
  164. #define I8042_ENTER I8042_ENTER_A
  165. #define I8042_EXIT I8042_EXIT_A
  166. #define I8042_INFO I8042_INFO_A
  167. #define I8042_NUMBER I8042_NUMBER_A
  168. #define I8042_PERIPHERAL I8042_PERIPHERAL_A
  169. #define I8042_TYPE I8042_TYPE_A
  170. #define I8042_FNC_DRIVER_ENTRY I8042_FNC_DRIVER_NAME_A
  171. #define I8042_FNC_FIND_WHEEL_MOUSE I8042_FNC_FIND_WHEEL_MOUSE_A
  172. #define I8042_INITIALIZE_MOUSE I8042_INITIALIZE_MOUSE_A
  173. #define I8042_FNC_KEYBOARD_CONFIGURATION I8042_FNC_KEYBOARD_CONFIGURATION_A
  174. #define I8042_FNC_MOUSE_ENABLE I8042_FNC_MOUSE_ENABLE_A
  175. #define I8042_FNC_MOUSE_INTERRUPT I8042_FNC_MOUSE_INTERRUPT_A
  176. #define I8042_FNC_MOUSE_PERIPHERAL I8042_FNC_MOUSE_PERIPHERAL_A
  177. #define I8042_FNC_SERVICE_PARAMETERS I8042_FNC_SERVICE_PARAMETERS_A
  178. #define I8042_DEBUGFLAGS I8042_DEBUGFLAGS_A
  179. #define I8042_ISRDEBUGFLAGS I8042_ISRDEBUGFLAGS_A
  180. #define I8042_DEVICE I8042_DEVICE_A
  181. #define I8042_PARAMETERS I8042_PARAMETERS_A
  182. #define I8042_FORWARD_SLASH I8042_FORWARD_SLASH_A
  183. #define I8042_RESEND_ITERATIONS I8042_RESEND_ITERATIONS_A
  184. #define I8042_POLLING_ITERATIONS I8042_POLLING_ITERATIONS_A
  185. #define I8042_POLLING_ITERATIONS_MAXIMUM I8042_POLLING_ITERATIONS_MAXIMUM_A
  186. #define I8042_KEYBOARD_DATA_QUEUE_SIZE I8042_KEYBOARD_DATA_QUEUE_SIZE_A
  187. #define I8042_MOUSE_DATA_QUEUE_SIZE I8042_MOUSE_DATA_QUEUE_SIZE_A
  188. #define I8042_NUMBER_OF_BUTTONS I8042_NUMBER_OF_BUTTONS_A
  189. #define I8042_SAMPLE_RATE I8042_SAMPLE_RATE_A
  190. #define I8042_MOUSE_RESOLUTION I8042_MOUSE_RESOLUTION_A
  191. #define I8042_OVERRIDE_KEYBOARD_TYPE I8042_OVERRIDE_KEYBOARD_TYPE_A
  192. #define I8042_OVERRIDE_KEYBOARD_SUBTYPE I8042_OVERRIDE_KEYBOARD_SUBTYE_A
  193. #define I8042_KEYBOARD_DEVICE_BASE_NAME I8042_KEYBOARD_DEVICE_BASE_NAME_A
  194. #define I8042_POINTER_DEVICE_BASE_NAME I8042_POINTER_DEVICE_BASE_NAME_A
  195. #define I8042_MOUSE_SYNCH_IN_100NS I8042_MOUSE_SYNCH_IN_100NS_A
  196. #define I8042_POLL_STATUS_ITERATIONS I8042_POLL_STATUS_ITERATIONS_A
  197. #define I8042_ENABLE_WHEEL_DETECTION I8042_ENABLE_WHEEL_DETECTION_A
  198. #define I8042_DUMP_HEX I8042_DUMP_HEX_A
  199. #define I8042_DUMP_DECIMAL I8042_DUMP_DECIMAL_A
  200. #define I8042_DUMP_WIDE_STRING I8042_DUMP_WIDE_STRING_A
  201. #define I8042_DUMP_EXPECTING I8042_DUMP_EXPECTING_A
  202. #define I8042_DUMP_EXPECTING_ACK I8042_DUMP_EXPECTING_ACK_A
  203. #define I8042_DUMP_EXPECTING_ID_ACK I8042_DUMP_EXPECTING_ID_ACK_A
  204. #endif // UNICODE
  205. //
  206. // Make these variables globally visible
  207. //
  208. extern const PSTR pBus;
  209. extern const PSTR pController;
  210. extern const PSTR pDriverName;
  211. extern const PSTR pIsrKb;
  212. extern const PSTR pIsrMou;
  213. extern const PSTR pEnter;
  214. extern const PSTR pExit;
  215. extern const PSTR pInfo;
  216. extern const PSTR pNumber;
  217. extern const PSTR pPeripheral;
  218. extern const PSTR pType;
  219. extern const PSTR pDumpHex;
  220. extern const PSTR pDumpDecimal;
  221. extern const PSTR pDumpWideString;
  222. extern const PSTR pDumpExpecting;
  223. extern const PSTR pDumpExpectingAck;
  224. extern const PSTR pDumpExpectingIdAck;
  225. extern const PSTR pFncDriverEntry;
  226. extern const PSTR pFncFindWheelMouse;
  227. extern const PSTR pFncInitializeMouse;
  228. extern const PSTR pFncKeyboardConfiguration;
  229. extern const PSTR pFncMouseEnable;
  230. extern const PSTR pFncMouseInterrupt;
  231. extern const PSTR pFncMousePeripheral;
  232. extern const PSTR pFncServiceParameters;
  233. extern const PWSTR pwDebugFlags;
  234. extern const PWSTR pwIsrDebugFlags;
  235. extern const PWSTR pwDevice;
  236. extern const PWSTR pwParameters;
  237. extern const PWSTR pwForwardSlash;
  238. extern const PWSTR pwResendIterations;
  239. extern const PWSTR pwPollingIterations;
  240. extern const PWSTR pwPollingIterationsMaximum;
  241. extern const PWSTR pwKeyboardDataQueueSize;
  242. extern const PWSTR pwMouseDataQueueSize;
  243. extern const PWSTR pwNumberOfButtons;
  244. extern const PWSTR pwSampleRate;
  245. extern const PWSTR pwMouseResolution;
  246. extern const PWSTR pwOverrideKeyboardType;
  247. extern const PWSTR pwOverrideKeyboardSubtype;
  248. extern const PWSTR pwKeyboardDeviceBaseName;
  249. extern const PWSTR pwPointerDeviceBaseName;
  250. extern const PWSTR pwMouseSynchIn100ns;
  251. extern const PWSTR pwPollStatusIterations;
  252. extern const PWSTR pwEnableWheelDetection;
  253. extern const PWSTR pwPowerCaps;
  254. #endif