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.

250 lines
3.8 KiB

  1. /*++
  2. Copyright (c) 1992-1994 Microsoft Corporation
  3. Module Name:
  4. videosim.c
  5. Abstract:
  6. mode table for the simulation driver.
  7. Environment:
  8. Kernel mode
  9. Revision History:
  10. --*/
  11. #define _NTDRIVER_
  12. #ifndef FAR
  13. #define FAR
  14. #endif
  15. #include "dderror.h"
  16. #include "ntosp.h"
  17. #include "stdarg.h"
  18. #include "stdio.h"
  19. #include "ntddvdeo.h"
  20. #include "video.h"
  21. #include "videosim.h"
  22. #if defined(ALLOC_PRAGMA)
  23. #pragma data_seg("PAGE")
  24. #endif
  25. ULONG bLoaded = 0;
  26. //
  27. // sim mode information Tables.
  28. //
  29. VIDEO_MODE_INFORMATION SimModes[] = {
  30. {
  31. sizeof(VIDEO_MODE_INFORMATION),
  32. 0,
  33. 2000,
  34. 1600,
  35. 4000,
  36. 1,
  37. 16,
  38. 0,
  39. 320,
  40. 240,
  41. 8,
  42. 8,
  43. 8,
  44. 0x00007c00,
  45. 0x000003e0,
  46. 0x0000001f,
  47. VIDEO_MODE_COLOR | VIDEO_MODE_GRAPHICS
  48. },
  49. {
  50. sizeof(VIDEO_MODE_INFORMATION),
  51. 0,
  52. 1280,
  53. 1024,
  54. 2560,
  55. 1,
  56. 16,
  57. 72,
  58. 320,
  59. 240,
  60. 8,
  61. 8,
  62. 8,
  63. 0x0000fc00,
  64. 0x000003f0,
  65. 0x0000000f,
  66. VIDEO_MODE_COLOR | VIDEO_MODE_GRAPHICS
  67. },
  68. {
  69. sizeof(VIDEO_MODE_INFORMATION),
  70. 0,
  71. 1280,
  72. 1024,
  73. 1280,
  74. 1,
  75. 8,
  76. 60,
  77. 320,
  78. 240,
  79. 8,
  80. 8,
  81. 8,
  82. 0x00000000,
  83. 0x00000000,
  84. 0x00000000,
  85. VIDEO_MODE_COLOR | VIDEO_MODE_GRAPHICS | VIDEO_MODE_PALETTE_DRIVEN |
  86. VIDEO_MODE_MANAGED_PALETTE
  87. },
  88. {
  89. sizeof(VIDEO_MODE_INFORMATION),
  90. 0,
  91. 1152,
  92. 900,
  93. 2304,
  94. 1,
  95. 16,
  96. 66,
  97. 320,
  98. 240,
  99. 8,
  100. 8,
  101. 8,
  102. 0x0000fc00,
  103. 0x000003f0,
  104. 0x0000000f,
  105. VIDEO_MODE_COLOR | VIDEO_MODE_GRAPHICS
  106. },
  107. {
  108. sizeof(VIDEO_MODE_INFORMATION),
  109. 0,
  110. 1152,
  111. 900,
  112. 1152,
  113. 1,
  114. 8,
  115. 66,
  116. 320,
  117. 240,
  118. 8,
  119. 8,
  120. 8,
  121. 0x00000000,
  122. 0x00000000,
  123. 0x00000000,
  124. VIDEO_MODE_COLOR | VIDEO_MODE_GRAPHICS | VIDEO_MODE_PALETTE_DRIVEN |
  125. VIDEO_MODE_MANAGED_PALETTE
  126. },
  127. {
  128. sizeof(VIDEO_MODE_INFORMATION),
  129. 0,
  130. 800,
  131. 600,
  132. 1600,
  133. 1,
  134. 16,
  135. 72,
  136. 320,
  137. 240,
  138. 8,
  139. 8,
  140. 8,
  141. 0x0000fc00,
  142. 0x000003f0,
  143. 0x0000000f,
  144. VIDEO_MODE_COLOR | VIDEO_MODE_GRAPHICS
  145. },
  146. {
  147. sizeof(VIDEO_MODE_INFORMATION),
  148. 0,
  149. 800,
  150. 600,
  151. 800,
  152. 1,
  153. 8,
  154. 72,
  155. 320,
  156. 240,
  157. 8,
  158. 8,
  159. 8,
  160. 0x00000000,
  161. 0x00000000,
  162. 0x00000000,
  163. VIDEO_MODE_COLOR | VIDEO_MODE_GRAPHICS | VIDEO_MODE_PALETTE_DRIVEN |
  164. VIDEO_MODE_MANAGED_PALETTE
  165. },
  166. {
  167. sizeof(VIDEO_MODE_INFORMATION),
  168. 0,
  169. 640,
  170. 480,
  171. 2560,
  172. 1,
  173. 32,
  174. 0,
  175. 320,
  176. 240,
  177. 8,
  178. 8,
  179. 8,
  180. 0x00ff0000,
  181. 0x0000ff00,
  182. 0x000000ff,
  183. VIDEO_MODE_COLOR | VIDEO_MODE_GRAPHICS
  184. },
  185. {
  186. sizeof(VIDEO_MODE_INFORMATION),
  187. 0,
  188. 640,
  189. 480,
  190. 640,
  191. 1,
  192. 8,
  193. 45,
  194. 320,
  195. 240,
  196. 8,
  197. 8,
  198. 8,
  199. 0x00000000,
  200. 0x00000000,
  201. 0x00000000,
  202. VIDEO_MODE_COLOR | VIDEO_MODE_GRAPHICS | VIDEO_MODE_PALETTE_DRIVEN |
  203. VIDEO_MODE_MANAGED_PALETTE
  204. },
  205. {
  206. sizeof(VIDEO_MODE_INFORMATION),
  207. 0,
  208. 100,
  209. 100,
  210. 100,
  211. 1,
  212. 8,
  213. 45,
  214. 320,
  215. 240,
  216. 8,
  217. 8,
  218. 8,
  219. 0x00000000,
  220. 0x00000000,
  221. 0x00000000,
  222. VIDEO_MODE_COLOR | VIDEO_MODE_GRAPHICS | VIDEO_MODE_PALETTE_DRIVEN |
  223. VIDEO_MODE_MANAGED_PALETTE
  224. }
  225. };
  226. ULONG SimNumModes = sizeof(SimModes) / sizeof(VIDEO_MODE_INFORMATION);
  227. #if defined(ALLOC_PRAGMA)
  228. #pragma data_seg()
  229. #endif