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.

102 lines
1.8 KiB

  1. /*
  2. *
  3. * Targa Plus definitions
  4. *
  5. * (C) Copyright Microsoft Corporation 1991. All rights reserved.
  6. */
  7. /* Port Base for regesters */
  8. #define REGBASE 0x0220
  9. /* Advanced Direct regesters */
  10. /* WRITE space */
  11. #define W_COLOR0 0x0000
  12. #define W_COLOR1 0x0001
  13. #define W_COLOR2 0x0002
  14. #define W_COLOR3 0x0003
  15. #define W_VIDCON 0x0400
  16. #define W_INDIRECT 0x0401
  17. #define W_HUESAT 0x0402
  18. #define W_MASKL 0x0800
  19. #define W_MASKH 0x0801
  20. #define W_MODE1 0x0C00
  21. #define W_MODE2 0x0C01
  22. #define W_WBL 0x0C02
  23. #define W_WBH 0x0C03
  24. /* READ space */
  25. #define R_VIDSTAT 0x0000
  26. #define R_CTL 0x0002
  27. #define R_MASKL 0x0003
  28. #define R_READAD 0x0401
  29. #define R_MODE1 0x0402
  30. #define R_USCAN 0x0800
  31. #define R_MASKH 0x0801
  32. #define R_OSCAN 0x0802
  33. #define R_ROWCNT 0x0C00
  34. #define R_MODE2 0x0C01
  35. #define R_RBL 0x0C02
  36. #define R_RBH 0x0C03
  37. /* Advanced Indirect Regesters */
  38. #define ADVANCED 0x90
  39. #define MEMORY 0xA1
  40. /* ADVANCED bit masks */
  41. #define ADVANCED_SET_INAE 0x08
  42. #define ADVANCED_CLEAR_INAE 0xF7
  43. #define ADVANCED_SET_INT 0xC0
  44. #define ADVANCED_CLEAR_INT 0x0F
  45. /* MODE1 bit masks */
  46. #define MODE1_CLEAR_MOD 0x00
  47. #define MODE1_SET_MOD 0x40
  48. #define MODE1_MEM_CLEAR_MOD 0x01
  49. #define MODE1_MEM_SET_MOD 0x41
  50. /* MEMORY bit masks */
  51. #define MEMORY_SET_SIZE8 0x80
  52. #define MEMORY_CLEAR_SIZE8 0x7F
  53. #define MEMORY_SET_LINEAR 0x60
  54. #define MEMORY_BASE_CLEAR 0xE1
  55. #define MEMORY_BASE_1000 0x02
  56. #define MEMORY_BASE_2000 0x04
  57. #define MEMORY_BASE_3000 0x06
  58. #define MEMORY_BASE_4000 0x08
  59. #define MEMORY_BASE_5000 0x0A
  60. #define MEMORY_BASE_6000 0x0C
  61. #define MEMORY_BASE_7000 0x0E
  62. #define MEMORY_BASE_8000 0x10
  63. #define MEMORY_BASE_9000 0x12
  64. #define MEMORY_BASE_A000 0x14
  65. #define MEMORY_BASE_B000 0x16
  66. #define MEMORY_BASE_C000 0x18
  67. #define MEMORY_BASE_D000 0x1A
  68. #define MEMORY_BASE_E000 0x1C
  69. #define MEMORY_BASE_F000 0x1E