Leaked source code of windows server 2003
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.

235 lines
4.8 KiB

  1. /*++
  2. Copyright (c) 1992 Microsoft Corporation
  3. Module Name:
  4. Mode542x.h
  5. Abstract:
  6. This module contains all the global data used by the Cirrus Logic
  7. CL-542x driver.
  8. Environment:
  9. Kernel mode
  10. Revision History:
  11. --*/
  12. //
  13. // The next set of tables are for the CL542x
  14. // Note: all resolutions supported
  15. //
  16. //
  17. // 640x480 16-color mode (BIOS mode 12) set command string for CL 542x.
  18. //
  19. USHORT CL542x_640x480_16[] = {
  20. OWM, // begin setmode
  21. SEQ_ADDRESS_PORT,
  22. 2, // count
  23. 0x1206, // enable extensions
  24. 0x0012,
  25. OWM,
  26. GRAPH_ADDRESS_PORT,
  27. 3,
  28. 0x0009, 0x000a, 0x000b, // no banking in 640x480 mode
  29. EOD
  30. };
  31. //
  32. // 800x600 16-color (60Hz refresh) mode set command string for CL 542x.
  33. //
  34. USHORT CL542x_800x600_16[] = {
  35. OWM, // begin setmode
  36. SEQ_ADDRESS_PORT,
  37. 2, // count
  38. 0x1206, // enable extensions
  39. 0x0012,
  40. OWM,
  41. GRAPH_ADDRESS_PORT,
  42. 3,
  43. 0x0009, 0x000a, 0x000b, // no banking in 800x600 mode
  44. EOD
  45. };
  46. //
  47. // 1024x768 16-color (60Hz refresh) mode set command string for CL 542x.
  48. //
  49. USHORT CL542x_1024x768_16[] = {
  50. OWM, // begin setmode
  51. SEQ_ADDRESS_PORT,
  52. 2, // count
  53. 0x1206, // enable extensions
  54. 0x0012,
  55. OWM,
  56. GRAPH_ADDRESS_PORT,
  57. 3,
  58. #if ONE_64K_BANK
  59. 0x0009, 0x000a, 0x000b,
  60. #endif
  61. #if TWO_32K_BANKS
  62. 0x0009, 0x000a, 0x010b,
  63. #endif
  64. OB,
  65. DAC_PIXEL_MASK_PORT,
  66. 0xFF,
  67. EOD
  68. };
  69. //-----------------------------
  70. // standard VGA text modes here
  71. // 80x25 at 640x350
  72. //
  73. //-----------------------------
  74. //
  75. // 80x25 text mode set command string for CL 542x.
  76. // (720x400 pixel resolution; 9x16 character cell.)
  77. //
  78. USHORT CL542x_80x25Text[] = {
  79. OWM, // begin setmode
  80. SEQ_ADDRESS_PORT,
  81. 2, // count
  82. 0x1206, // enable extensions
  83. 0x0012,
  84. OWM,
  85. GRAPH_ADDRESS_PORT,
  86. 3,
  87. 0x0009, 0x000a, 0x000b, // no banking in text mode
  88. EOD
  89. };
  90. //
  91. // 80x25 text mode set command string for CL 542x.
  92. // (640x350 pixel resolution; 8x14 character cell.)
  93. //
  94. USHORT CL542x_80x25_14_Text[] = {
  95. OWM, // begin setmode
  96. SEQ_ADDRESS_PORT,
  97. 2, // count
  98. 0x1206, // enable extensions
  99. 0x0012,
  100. OWM,
  101. GRAPH_ADDRESS_PORT,
  102. 3,
  103. 0x0009, 0x000a, 0x000b, // no banking in text mode
  104. EOD
  105. };
  106. //
  107. // 1280x1024 16-color mode (BIOS mode 0x6C) set command string for CL 542x.
  108. //
  109. USHORT CL542x_1280x1024_16[] = {
  110. OWM, // begin setmode
  111. SEQ_ADDRESS_PORT,
  112. 2, // count
  113. 0x1206, // enable extensions
  114. 0x0012,
  115. OWM,
  116. GRAPH_ADDRESS_PORT,
  117. 3,
  118. #if ONE_64K_BANK
  119. 0x0009, 0x000a, 0x000b,
  120. #endif
  121. #if TWO_32K_BANKS
  122. 0x0009, 0x000a, 0x010b,
  123. #endif
  124. EOD
  125. };
  126. //
  127. // 640x480 64k-color mode (BIOS mode 0x64) set command string for CL 542x.
  128. //
  129. USHORT CL542x_640x480_64k[] = {
  130. OWM, // begin setmode
  131. SEQ_ADDRESS_PORT,
  132. 2, // count
  133. 0x1206, // enable extensions
  134. 0x0012,
  135. OWM,
  136. GRAPH_ADDRESS_PORT,
  137. 4,
  138. 0x0506, // Some BIOS's set Chain Odd maps bit
  139. #if ONE_64K_BANK
  140. 0x0009, 0x000a, 0x000b,
  141. #endif
  142. #if TWO_32K_BANKS
  143. 0x0009, 0x000a, 0x010b,
  144. #endif
  145. EOD
  146. };
  147. //
  148. // 640x480 256-color mode (BIOS mode 0x5F) set command string for CL 542x.
  149. //
  150. USHORT CL542x_640x480_256[] = {
  151. OWM, // begin setmode
  152. SEQ_ADDRESS_PORT,
  153. 2, // count
  154. 0x1206, // enable extensions
  155. 0x0012,
  156. OWM,
  157. GRAPH_ADDRESS_PORT,
  158. 3,
  159. #if ONE_64K_BANK
  160. 0x0009, 0x000a, 0x000b,
  161. #endif
  162. #if TWO_32K_BANKS
  163. 0x0009, 0x000a, 0x010b,
  164. #endif
  165. EOD
  166. };
  167. //
  168. // 800x600 256-color mode (BIOS mode 0x5C) set command string for CL 542x.
  169. //
  170. USHORT CL542x_800x600_256[] = {
  171. OWM, // begin setmode
  172. SEQ_ADDRESS_PORT,
  173. 2, // count
  174. 0x1206, // enable extensions
  175. 0x0012,
  176. OWM,
  177. GRAPH_ADDRESS_PORT,
  178. 3,
  179. #if ONE_64K_BANK
  180. 0x0009, 0x000a, 0x000b,
  181. #endif
  182. #if TWO_32K_BANKS
  183. 0x0009, 0x000a, 0x010b,
  184. #endif
  185. EOD
  186. };