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.

64 lines
1.3 KiB

  1. /*++
  2. Copyright (c) 1989, 1990, 1991, 1992, 1993 Microsoft Corporation
  3. Module Name:
  4. i8042cfg.h
  5. Abstract:
  6. These are the machine-dependent configuration constants that are used in
  7. the Intel 8042 port driver.
  8. Revision History:
  9. --*/
  10. #ifndef _I8042CFG_
  11. #define _I8042CFG_
  12. //
  13. // Define the interrupt-related configuration constants.
  14. //
  15. #define I8042_INTERFACE_TYPE Isa
  16. #define I8042_INTERRUPT_MODE Latched
  17. #define I8042_INTERRUPT_SHARE FALSE
  18. #define I8042_FLOATING_SAVE FALSE
  19. //
  20. // Define the default allowable retry and polling iterations.
  21. //
  22. #define I8042_RESEND_DEFAULT 3
  23. #define I8042_POLLING_DEFAULT 12000
  24. #define I8042_POLLING_MAXIMUM 12000
  25. //
  26. // Define the keyboard-specific configuration parameters.
  27. //
  28. #define KEYBOARD_VECTOR 1
  29. #define KEYBOARD_IRQL KEYBOARD_VECTOR
  30. //
  31. // Define the mouse-specific configuration parameters.
  32. //
  33. #define MOUSE_VECTOR 12
  34. #define MOUSE_IRQL MOUSE_VECTOR
  35. //
  36. // Define the base port offsets for the i8042 controller command/status and
  37. // data registers.
  38. //
  39. #define I8042_PHYSICAL_BASE 0x60
  40. #define I8042_DATA_REGISTER_OFFSET 0
  41. #define I8042_COMMAND_REGISTER_OFFSET 4
  42. #define I8042_STATUS_REGISTER_OFFSET 4
  43. #define I8042_REGISTER_LENGTH 1
  44. #define I8042_REGISTER_SHARE FALSE
  45. #define I8042_PORT_TYPE CM_RESOURCE_PORT_IO
  46. #endif // _I8042CFG_