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.

1511 lines
39 KiB

  1. /****************************************************************************
  2. ******************************************************************************
  3. *
  4. * ******************************************
  5. * * Copyright (c) 1995, Cirrus Logic, Inc. *
  6. * * All Rights Reserved *
  7. * ******************************************
  8. *
  9. * PROJECT: Laguna I (CL-GD5462) -
  10. *
  11. * FILE: mtbl.c
  12. *
  13. * AUTHOR: Andrew P. Sobczyk
  14. *
  15. * DESCRIPTION:* File Generated from Excel Mode Tables using bsv.l
  16. *
  17. * MODULES: None... Pure Data
  18. *
  19. * REVISION HISTORY:
  20. *
  21. * $Log: //uinac/log/log/laguna/nt35/miniport/cl546x/MTBL.C $
  22. *
  23. * Rev 1.22 Jun 17 1998 09:45:16 frido
  24. * PDR#????? - Removed paging from data segment.
  25. *
  26. * Rev 1.21 27 Jun 1997 15:06:50 noelv
  27. *
  28. * Yanked 32bpp modes for WHQL.
  29. *
  30. * Rev 1.20 17 Apr 1997 14:29:44 noelv
  31. * Removed 1600x1200@80,85. We'll let MODE.INI handle these modes.
  32. *
  33. * Rev 1.19 21 Jan 1997 14:40:26 noelv
  34. * Added 1600x1200x8@65,70,75 and 85 to 5464
  35. *
  36. * Rev 1.18 21 Jan 1997 11:32:50 noelv
  37. * Dropped 1280x1024x16@84 for 5464
  38. * Added 1024x768x32@70,75,85 for 5462
  39. * Added 1600x1200x8@65,70,75 for 5462
  40. *
  41. * Rev 1.17 14 Jan 1997 12:32:06 noelv
  42. * Split MODE.INI by chip type
  43. *
  44. * Rev 1.16 30 Oct 1996 14:07:18 bennyn
  45. *
  46. * Modified for pageable miniport
  47. *
  48. * Rev 1.15 30 Sep 1996 10:01:16 noelv
  49. * Changed nam,e of interlaced modes from 87i to 43i.
  50. *
  51. * Rev 1.14 30 Aug 1996 14:50:56 noelv
  52. * Enabled mode.ini for nt 3.51
  53. *
  54. * Rev 1.13 23 Aug 1996 12:45:38 noelv
  55. *
  56. * Rev 1.12 22 Aug 1996 16:35:18 noelv
  57. * Changed for new mode.ini
  58. *
  59. * Rev 1.8 31 May 1996 11:15:12 noelv
  60. * Removed 640x400 modes
  61. *
  62. * Rev 1.7 25 Mar 1996 19:07:30 noelv
  63. *
  64. * disabled refresh rates above 60hz for 1023x768x32bpps
  65. *
  66. * Rev 1.6 21 Mar 1996 14:29:42 noelv
  67. * Removed high refresh rates in 1600x1200 mode.
  68. *
  69. * Rev 1.5 02 Mar 1996 12:30:50 noelv
  70. * Miniport now patches the ModeTable with information read from the BIOS
  71. *
  72. * Rev 1.4 10 Jan 1996 16:32:42 NOELV
  73. * Undid rev 1.3
  74. *
  75. * Rev 1.2 18 Sep 1995 10:02:48 bennyn
  76. *
  77. *
  78. * Rev 1.1 22 Aug 1995 10:18:42 bennyn
  79. *
  80. * Limited mode version
  81. *
  82. * Rev 1.0 24 Jul 1995 13:23:06 NOELV
  83. * Initial revision.
  84. *
  85. ****************************************************************************
  86. ****************************************************************************/
  87. /*----------------------------- INCLUDES ----------------------------------*/
  88. #include "cirrus.h"
  89. //
  90. // This file holds the mode table records for the NT driver.
  91. // We can define modes in two places: The BIOS, and MODE.INI.
  92. //
  93. // BIOS Modes:
  94. // ------------
  95. // Each mode/refresh-rate that the BIOS supports has a record in this table.
  96. // The record include the BIOS mode number and the refresh index.
  97. //
  98. // MODE.INI modes:
  99. // ---------------
  100. // MODE.INI defines a bunch of modes, and instructions on how to set those modes.
  101. // At compile time, the CGLMODE.EXE utility processes MODE.INI and produced two files:
  102. // ModeStr.C = A C file that contains one record (just like the ones below) for
  103. // each mode in MODE.INI. We '#include' ModeStr.C into this file (MTBL.C)
  104. // ModeStr.H = Contains a "SetMode string" that we can pass to SetMode().
  105. // Note that for the BIOS modes below, we set this to NULL.
  106. //
  107. //
  108. #include "ModeStr.h" // Include all the SetMode() strings for the MODE.INI modes.
  109. #define WHQL_5462_PANIC_HACK 1
  110. #define SUPPORT640x400 0
  111. #if 0 // Stress test
  112. #if defined(ALLOC_PRAGMA)
  113. #pragma data_seg("PAGE")
  114. #endif
  115. #endif
  116. //
  117. // NOTE:
  118. // The BytesPerScanLine values in this table are checked against the BIOS
  119. // and updated if necessary.
  120. // See CLValidateModes() in CIRRUS.C
  121. //
  122. MODETABLE ModeTable[] = {
  123. {
  124. 0, //// Valid Mode
  125. LG_ALL, //// All laguna chips support this mode.
  126. VIDEO_MODE_COLOR,
  127. 0, //// Frequency
  128. 0x03, //// Cirrus Logic Mode #
  129. 160, //// BytesPerScanLine
  130. 640, //// XResol
  131. 350, //// YResol
  132. 8, //// XCharSize
  133. 16, //// YCharSize
  134. 4, //// NumofPlanes
  135. 1, //// BitsPerPixel
  136. 0x00, //// Refresh Index
  137. 0, //// ModeSetString
  138. },
  139. {
  140. 0, //// Valid Mode
  141. LG_ALL, //// All laguna chips support this mode.
  142. VIDEO_MODE_COLOR,
  143. 0, //// Frequency
  144. 0x03, //// Cirrus Logic Mode #
  145. 160, //// BytesPerScanLine
  146. 720, //// XResol
  147. 400, //// YResol
  148. 9, //// XCharSize
  149. 16, //// YCharSize
  150. 4, //// NumofPlanes
  151. 1, //// BitsPerPixel
  152. 0x00, //// Refresh Index
  153. 0, //// ModeSetString
  154. },
  155. {
  156. 0, //// Valid Mode
  157. LG_ALL, //// All laguna chips support this mode.
  158. VIDEO_MODE_COLOR | VIDEO_MODE_GRAPHICS,
  159. 60, //// Frequency
  160. 0x12, //// Cirrus Logic Mode #
  161. 80, //// BytesPerScanLine
  162. 640, //// XResol
  163. 480, //// YResol
  164. 8, //// XCharSize
  165. 16, //// YCharSize
  166. 4, //// NumofPlanes
  167. 4, //// BitsPerPixel
  168. 0x00, //// Refresh Index
  169. 0, //// ModeSetString
  170. },
  171. {
  172. 0, //// Valid Mode
  173. LG_ALL, //// All laguna chips support this mode.
  174. VIDEO_MODE_COLOR | VIDEO_MODE_GRAPHICS,
  175. 72, //// Frequency
  176. 0x12, //// Cirrus Logic Mode #
  177. 80, //// BytesPerScanLine
  178. 640, //// XResol
  179. 480, //// YResol
  180. 8, //// XCharSize
  181. 16, //// YCharSize
  182. 4, //// NumofPlanes
  183. 4, //// BitsPerPixel
  184. 0x10, //// Refresh Index
  185. 0, //// ModeSetString
  186. },
  187. {
  188. 0, //// Valid Mode
  189. LG_ALL, //// All laguna chips support this mode.
  190. VIDEO_MODE_COLOR | VIDEO_MODE_GRAPHICS,
  191. 75, //// Frequency
  192. 0x12, //// Cirrus Logic Mode #
  193. 80, //// BytesPerScanLine
  194. 640, //// XResol
  195. 480, //// YResol
  196. 8, //// XCharSize
  197. 16, //// YCharSize
  198. 4, //// NumofPlanes
  199. 4, //// BitsPerPixel
  200. 0x20, //// Refresh Index
  201. 0, //// ModeSetString
  202. },
  203. {
  204. 0, //// Valid Mode
  205. LG_ALL, //// All laguna chips support this mode.
  206. VIDEO_MODE_COLOR | VIDEO_MODE_GRAPHICS,
  207. 85, //// Frequency
  208. 0x12, //// Cirrus Logic Mode #
  209. 80, //// BytesPerScanLine
  210. 640, //// XResol
  211. 480, //// YResol
  212. 8, //// XCharSize
  213. 16, //// YCharSize
  214. 4, //// NumofPlanes
  215. 4, //// BitsPerPixel
  216. 0x30, //// Refresh Index
  217. 0, //// ModeSetString
  218. },
  219. #if SUPPORT640x400
  220. {
  221. 0, //// Valid Mode
  222. LG_ALL, //// All laguna chips support this mode.
  223. VIDEO_MODE_COLOR | VIDEO_MODE_GRAPHICS,
  224. 60, //// Frequency
  225. 0x5E, //// Cirrus Logic Mode #
  226. 640, //// BytesPerScanLine
  227. 640, //// XResol
  228. 400, //// YResol
  229. 8, //// XCharSize
  230. 16, //// YCharSize
  231. 1, //// NumofPlanes
  232. 8, //// BitsPerPixel
  233. 0x00, //// Refresh Index
  234. 0, //// ModeSetString
  235. },
  236. {
  237. 0, //// Valid Mode
  238. LG_ALL, //// All laguna chips support this mode.
  239. VIDEO_MODE_COLOR | VIDEO_MODE_GRAPHICS,
  240. 60, //// Frequency
  241. 0x7A, //// Cirrus Logic Mode #
  242. 1280, //// BytesPerScanLine
  243. 640, //// XResol
  244. 400, //// YResol
  245. 8, //// XCharSize
  246. 16, //// YCharSize
  247. 1, //// NumofPlanes
  248. 16, //// BitsPerPixel
  249. 0x00, //// Refresh Index
  250. 0, //// ModeSetString
  251. },
  252. #endif
  253. // 640 x 480 x 8 @ 60hz
  254. {
  255. 0, //// Valid Mode
  256. LG_ALL, //// All laguna chips support this mode.
  257. VIDEO_MODE_COLOR | VIDEO_MODE_GRAPHICS,
  258. 60, //// Frequency
  259. 0x5F, //// Cirrus Logic Mode #
  260. 640, //// BytesPerScanLine
  261. 640, //// XResol
  262. 480, //// YResol
  263. 8, //// XCharSize
  264. 16, //// YCharSize
  265. 1, //// NumofPlanes
  266. 8, //// BitsPerPixel
  267. 0x00, //// Refresh Index
  268. 0, //// ModeSetString
  269. },
  270. // 640 x 480 x 8 @ 72hz
  271. {
  272. 0, //// Valid Mode
  273. LG_ALL, //// All laguna chips support this mode.
  274. VIDEO_MODE_COLOR | VIDEO_MODE_GRAPHICS,
  275. 72, //// Frequency
  276. 0x5F, //// Cirrus Logic Mode #
  277. 640, //// BytesPerScanLine
  278. 640, //// XResol
  279. 480, //// YResol
  280. 8, //// XCharSize
  281. 16, //// YCharSize
  282. 1, //// NumofPlanes
  283. 8, //// BitsPerPixel
  284. 0x10, //// Refresh Index
  285. 0, //// ModeSetString
  286. },
  287. // 640 x 480 x 8 @ 75hz
  288. {
  289. 0, //// Valid Mode
  290. LG_ALL, //// All laguna chips support this mode.
  291. VIDEO_MODE_COLOR | VIDEO_MODE_GRAPHICS,
  292. 75, //// Frequency
  293. 0x5F, //// Cirrus Logic Mode #
  294. 640, //// BytesPerScanLine
  295. 640, //// XResol
  296. 480, //// YResol
  297. 8, //// XCharSize
  298. 16, //// YCharSize
  299. 1, //// NumofPlanes
  300. 8, //// BitsPerPixel
  301. 0x20, //// Refresh Index
  302. 0, //// ModeSetString
  303. },
  304. // 640 x 480 x 8 @ 85hz
  305. {
  306. 0, //// Valid Mode
  307. LG_ALL, //// All laguna chips support this mode.
  308. VIDEO_MODE_COLOR | VIDEO_MODE_GRAPHICS,
  309. 85, //// Frequency
  310. 0x5F, //// Cirrus Logic Mode #
  311. 640, //// BytesPerScanLine
  312. 640, //// XResol
  313. 480, //// YResol
  314. 8, //// XCharSize
  315. 16, //// YCharSize
  316. 1, //// NumofPlanes
  317. 8, //// BitsPerPixel
  318. 0x30, //// Refresh Index
  319. 0, //// ModeSetString
  320. },
  321. // 640 x 480 x 16 @ 60hz
  322. {
  323. 0, //// Valid Mode
  324. LG_ALL, //// All laguna chips support this mode.
  325. VIDEO_MODE_COLOR | VIDEO_MODE_GRAPHICS,
  326. 60, //// Frequency
  327. 0x64, //// Cirrus Logic Mode #
  328. 1280, //// BytesPerScanLine
  329. 640, //// XResol
  330. 480, //// YResol
  331. 8, //// XCharSize
  332. 16, //// YCharSize
  333. 1, //// NumofPlanes
  334. 16, //// BitsPerPixel
  335. 0x00, //// Refresh Index
  336. 0, //// ModeSetString
  337. },
  338. {
  339. 0, //// Valid Mode
  340. LG_ALL, //// All laguna chips support this mode.
  341. VIDEO_MODE_COLOR | VIDEO_MODE_GRAPHICS,
  342. 72, //// Frequency
  343. 0x64, //// Cirrus Logic Mode #
  344. 1280, //// BytesPerScanLine
  345. 640, //// XResol
  346. 480, //// YResol
  347. 8, //// XCharSize
  348. 16, //// YCharSize
  349. 1, //// NumofPlanes
  350. 16, //// BitsPerPixel
  351. 0x10, //// Refresh Index
  352. 0, //// ModeSetString
  353. },
  354. {
  355. 0, //// Valid Mode
  356. LG_ALL, //// All laguna chips support this mode.
  357. VIDEO_MODE_COLOR | VIDEO_MODE_GRAPHICS,
  358. 75, //// Frequency
  359. 0x64, //// Cirrus Logic Mode #
  360. 1280, //// BytesPerScanLine
  361. 640, //// XResol
  362. 480, //// YResol
  363. 8, //// XCharSize
  364. 16, //// YCharSize
  365. 1, //// NumofPlanes
  366. 16, //// BitsPerPixel
  367. 0x20, //// Refresh Index
  368. 0, //// ModeSetString
  369. },
  370. {
  371. 0, //// Valid Mode
  372. LG_ALL, //// All laguna chips support this mode.
  373. VIDEO_MODE_COLOR | VIDEO_MODE_GRAPHICS,
  374. 85, //// Frequency
  375. 0x64, //// Cirrus Logic Mode #
  376. 1280, //// BytesPerScanLine
  377. 640, //// XResol
  378. 480, //// YResol
  379. 8, //// XCharSize
  380. 16, //// YCharSize
  381. 1, //// NumofPlanes
  382. 16, //// BitsPerPixel
  383. 0x30, //// Refresh Index
  384. 0, //// ModeSetString
  385. },
  386. {
  387. 0, //// Valid Mode
  388. LG_ALL, //// All laguna chips support this mode.
  389. VIDEO_MODE_COLOR | VIDEO_MODE_GRAPHICS,
  390. 60, //// Frequency
  391. 0x71, //// Cirrus Logic Mode #
  392. 2048, //// BytesPerScanLine
  393. 640, //// XResol
  394. 480, //// YResol
  395. 8, //// XCharSize
  396. 16, //// YCharSize
  397. 1, //// NumofPlanes
  398. 24, //// BitsPerPixel
  399. 0x00, //// Refresh Index
  400. 0, //// ModeSetString
  401. },
  402. {
  403. 0, //// Valid Mode
  404. LG_ALL, //// All laguna chips support this mode.
  405. VIDEO_MODE_COLOR | VIDEO_MODE_GRAPHICS,
  406. 72, //// Frequency
  407. 0x71, //// Cirrus Logic Mode #
  408. 2048, //// BytesPerScanLine
  409. 640, //// XResol
  410. 480, //// YResol
  411. 8, //// XCharSize
  412. 16, //// YCharSize
  413. 1, //// NumofPlanes
  414. 24, //// BitsPerPixel
  415. 0x10, //// Refresh Index
  416. 0, //// ModeSetString
  417. },
  418. {
  419. 0, //// Valid Mode
  420. LG_ALL, //// All laguna chips support this mode.
  421. VIDEO_MODE_COLOR | VIDEO_MODE_GRAPHICS,
  422. 75, //// Frequency
  423. 0x71, //// Cirrus Logic Mode #
  424. 2048, //// BytesPerScanLine
  425. 640, //// XResol
  426. 480, //// YResol
  427. 8, //// XCharSize
  428. 16, //// YCharSize
  429. 1, //// NumofPlanes
  430. 24, //// BitsPerPixel
  431. 0x20, //// Refresh Index
  432. 0, //// ModeSetString
  433. },
  434. {
  435. 0, //// Valid Mode
  436. LG_ALL, //// All laguna chips support this mode.
  437. VIDEO_MODE_COLOR | VIDEO_MODE_GRAPHICS,
  438. 85, //// Frequency
  439. 0x71, //// Cirrus Logic Mode #
  440. 2048, //// BytesPerScanLine
  441. 640, //// XResol
  442. 480, //// YResol
  443. 8, //// XCharSize
  444. 16, //// YCharSize
  445. 1, //// NumofPlanes
  446. 24, //// BitsPerPixel
  447. 0x30, //// Refresh Index
  448. 0, //// ModeSetString
  449. },
  450. #if (! WHQL_5462_PANIC_HACK)
  451. {
  452. 0, //// Valid Mode
  453. LG_ALL, //// All laguna chips support this mode.
  454. VIDEO_MODE_COLOR | VIDEO_MODE_GRAPHICS,
  455. 60, //// Frequency
  456. 0x76, //// Cirrus Logic Mode #
  457. 2560, //// BytesPerScanLine
  458. 640, //// XResol
  459. 480, //// YResol
  460. 8, //// XCharSize
  461. 16, //// YCharSize
  462. 1, //// NumofPlanes
  463. 32, //// BitsPerPixel
  464. 0x00, //// Refresh Index
  465. 0, //// ModeSetString
  466. },
  467. {
  468. 0, //// Valid Mode
  469. LG_ALL, //// All laguna chips support this mode.
  470. VIDEO_MODE_COLOR | VIDEO_MODE_GRAPHICS,
  471. 72, //// Frequency
  472. 0x76, //// Cirrus Logic Mode #
  473. 2560, //// BytesPerScanLine
  474. 640, //// XResol
  475. 480, //// YResol
  476. 8, //// XCharSize
  477. 16, //// YCharSize
  478. 1, //// NumofPlanes
  479. 32, //// BitsPerPixel
  480. 0x10, //// Refresh Index
  481. 0, //// ModeSetString
  482. },
  483. {
  484. 0, //// Valid Mode
  485. LG_ALL, //// All laguna chips support this mode.
  486. VIDEO_MODE_COLOR | VIDEO_MODE_GRAPHICS,
  487. 75, //// Frequency
  488. 0x76, //// Cirrus Logic Mode #
  489. 2560, //// BytesPerScanLine
  490. 640, //// XResol
  491. 480, //// YResol
  492. 8, //// XCharSize
  493. 16, //// YCharSize
  494. 1, //// NumofPlanes
  495. 32, //// BitsPerPixel
  496. 0x20, //// Refresh Index
  497. 0, //// ModeSetString
  498. },
  499. {
  500. 0, //// Valid Mode
  501. LG_ALL, //// All laguna chips support this mode.
  502. VIDEO_MODE_COLOR | VIDEO_MODE_GRAPHICS,
  503. 85, //// Frequency
  504. 0x76, //// Cirrus Logic Mode #
  505. 2560, //// BytesPerScanLine
  506. 640, //// XResol
  507. 480, //// YResol
  508. 8, //// XCharSize
  509. 16, //// YCharSize
  510. 1, //// NumofPlanes
  511. 32, //// BitsPerPixel
  512. 0x30, //// Refresh Index
  513. 0, //// ModeSetString
  514. },
  515. #endif
  516. {
  517. 0, //// Valid Mode
  518. LG_ALL, //// All laguna chips support this mode.
  519. VIDEO_MODE_COLOR | VIDEO_MODE_GRAPHICS,
  520. 56, //// Frequency
  521. 0x5C, //// Cirrus Logic Mode #
  522. 1024, //// BytesPerScanLine
  523. 800, //// XResol
  524. 600, //// YResol
  525. 8, //// XCharSize
  526. 16, //// YCharSize
  527. 1, //// NumofPlanes
  528. 8, //// BitsPerPixel
  529. 0x00, //// Refresh Index
  530. 0, //// ModeSetString
  531. },
  532. {
  533. 0, //// Valid Mode
  534. LG_ALL, //// All laguna chips support this mode.
  535. VIDEO_MODE_COLOR | VIDEO_MODE_GRAPHICS,
  536. 60, //// Frequency
  537. 0x5C, //// Cirrus Logic Mode #
  538. 1024, //// BytesPerScanLine
  539. 800, //// XResol
  540. 600, //// YResol
  541. 8, //// XCharSize
  542. 16, //// YCharSize
  543. 1, //// NumofPlanes
  544. 8, //// BitsPerPixel
  545. 0x01, //// Refresh Index
  546. 0, //// ModeSetString
  547. },
  548. {
  549. 0, //// Valid Mode
  550. LG_ALL, //// All laguna chips support this mode.
  551. VIDEO_MODE_COLOR | VIDEO_MODE_GRAPHICS,
  552. 72, //// Frequency
  553. 0x5C, //// Cirrus Logic Mode #
  554. 1024, //// BytesPerScanLine
  555. 800, //// XResol
  556. 600, //// YResol
  557. 8, //// XCharSize
  558. 16, //// YCharSize
  559. 1, //// NumofPlanes
  560. 8, //// BitsPerPixel
  561. 0x02, //// Refresh Index
  562. 0, //// ModeSetString
  563. },
  564. {
  565. 0, //// Valid Mode
  566. LG_ALL, //// All laguna chips support this mode.
  567. VIDEO_MODE_COLOR | VIDEO_MODE_GRAPHICS,
  568. 75, //// Frequency
  569. 0x5C, //// Cirrus Logic Mode #
  570. 1024, //// BytesPerScanLine
  571. 800, //// XResol
  572. 600, //// YResol
  573. 8, //// XCharSize
  574. 16, //// YCharSize
  575. 1, //// NumofPlanes
  576. 8, //// BitsPerPixel
  577. 0x03, //// Refresh Index
  578. 0, //// ModeSetString
  579. },
  580. {
  581. 0, //// Valid Mode
  582. LG_ALL, //// All laguna chips support this mode.
  583. VIDEO_MODE_COLOR | VIDEO_MODE_GRAPHICS,
  584. 85, //// Frequency
  585. 0x5C, //// Cirrus Logic Mode #
  586. 1024, //// BytesPerScanLine
  587. 800, //// XResol
  588. 600, //// YResol
  589. 8, //// XCharSize
  590. 16, //// YCharSize
  591. 1, //// NumofPlanes
  592. 8, //// BitsPerPixel
  593. 0x04, //// Refresh Index
  594. 0, //// ModeSetString
  595. },
  596. {
  597. 0, //// Valid Mode
  598. LG_ALL, //// All laguna chips support this mode.
  599. VIDEO_MODE_COLOR | VIDEO_MODE_GRAPHICS,
  600. 56, //// Frequency
  601. 0x65, //// Cirrus Logic Mode #
  602. 1664, //// BytesPerScanLine
  603. 800, //// XResol
  604. 600, //// YResol
  605. 8, //// XCharSize
  606. 16, //// YCharSize
  607. 1, //// NumofPlanes
  608. 16, //// BitsPerPixel
  609. 0x00, //// Refresh Index
  610. 0, //// ModeSetString
  611. },
  612. {
  613. 0, //// Valid Mode
  614. LG_ALL, //// All laguna chips support this mode.
  615. VIDEO_MODE_COLOR | VIDEO_MODE_GRAPHICS,
  616. 60, //// Frequency
  617. 0x65, //// Cirrus Logic Mode #
  618. 1664, //// BytesPerScanLine
  619. 800, //// XResol
  620. 600, //// YResol
  621. 8, //// XCharSize
  622. 16, //// YCharSize
  623. 1, //// NumofPlanes
  624. 16, //// BitsPerPixel
  625. 0x01, //// Refresh Index
  626. 0, //// ModeSetString
  627. },
  628. {
  629. 0, //// Valid Mode
  630. LG_ALL, //// All laguna chips support this mode.
  631. VIDEO_MODE_COLOR | VIDEO_MODE_GRAPHICS,
  632. 72, //// Frequency
  633. 0x65, //// Cirrus Logic Mode #
  634. 1664, //// BytesPerScanLine
  635. 800, //// XResol
  636. 600, //// YResol
  637. 8, //// XCharSize
  638. 16, //// YCharSize
  639. 1, //// NumofPlanes
  640. 16, //// BitsPerPixel
  641. 0x02, //// Refresh Index
  642. 0, //// ModeSetString
  643. },
  644. {
  645. 0, //// Valid Mode
  646. LG_ALL, //// All laguna chips support this mode.
  647. VIDEO_MODE_COLOR | VIDEO_MODE_GRAPHICS,
  648. 75, //// Frequency
  649. 0x65, //// Cirrus Logic Mode #
  650. 1664, //// BytesPerScanLine
  651. 800, //// XResol
  652. 600, //// YResol
  653. 8, //// XCharSize
  654. 16, //// YCharSize
  655. 1, //// NumofPlanes
  656. 16, //// BitsPerPixel
  657. 0x03, //// Refresh Index
  658. 0, //// ModeSetString
  659. },
  660. {
  661. 0, //// Valid Mode
  662. LG_ALL, //// All laguna chips support this mode.
  663. VIDEO_MODE_COLOR | VIDEO_MODE_GRAPHICS,
  664. 85, //// Frequency
  665. 0x65, //// Cirrus Logic Mode #
  666. 1664, //// BytesPerScanLine
  667. 800, //// XResol
  668. 600, //// YResol
  669. 8, //// XCharSize
  670. 16, //// YCharSize
  671. 1, //// NumofPlanes
  672. 16, //// BitsPerPixel
  673. 0x04, //// Refresh Index
  674. 0, //// ModeSetString
  675. },
  676. {
  677. 0, //// Valid Mode
  678. LG_ALL, //// All laguna chips support this mode.
  679. VIDEO_MODE_COLOR | VIDEO_MODE_GRAPHICS,
  680. 56, //// Frequency
  681. 0x78, //// Cirrus Logic Mode #
  682. 2560, //// BytesPerScanLine
  683. 800, //// XResol
  684. 600, //// YResol
  685. 8, //// XCharSize
  686. 16, //// YCharSize
  687. 1, //// NumofPlanes
  688. 24, //// BitsPerPixel
  689. 0x00, //// Refresh Index
  690. 0, //// ModeSetString
  691. },
  692. {
  693. 0, //// Valid Mode
  694. LG_ALL, //// All laguna chips support this mode.
  695. VIDEO_MODE_COLOR | VIDEO_MODE_GRAPHICS,
  696. 60, //// Frequency
  697. 0x78, //// Cirrus Logic Mode #
  698. 2560, //// BytesPerScanLine
  699. 800, //// XResol
  700. 600, //// YResol
  701. 8, //// XCharSize
  702. 16, //// YCharSize
  703. 1, //// NumofPlanes
  704. 24, //// BitsPerPixel
  705. 0x01, //// Refresh Index
  706. 0, //// ModeSetString
  707. },
  708. {
  709. 0, //// Valid Mode
  710. LG_ALL, //// All laguna chips support this mode.
  711. VIDEO_MODE_COLOR | VIDEO_MODE_GRAPHICS,
  712. 72, //// Frequency
  713. 0x78, //// Cirrus Logic Mode #
  714. 2560, //// BytesPerScanLine
  715. 800, //// XResol
  716. 600, //// YResol
  717. 8, //// XCharSize
  718. 16, //// YCharSize
  719. 1, //// NumofPlanes
  720. 24, //// BitsPerPixel
  721. 0x02, //// Refresh Index
  722. 0, //// ModeSetString
  723. },
  724. {
  725. 0, //// Valid Mode
  726. LG_ALL, //// All laguna chips support this mode.
  727. VIDEO_MODE_COLOR | VIDEO_MODE_GRAPHICS,
  728. 75, //// Frequency
  729. 0x78, //// Cirrus Logic Mode #
  730. 2560, //// BytesPerScanLine
  731. 800, //// XResol
  732. 600, //// YResol
  733. 8, //// XCharSize
  734. 16, //// YCharSize
  735. 1, //// NumofPlanes
  736. 24, //// BitsPerPixel
  737. 0x03, //// Refresh Index
  738. 0, //// ModeSetString
  739. },
  740. {
  741. 0, //// Valid Mode
  742. LG_ALL, //// All laguna chips support this mode.
  743. VIDEO_MODE_COLOR | VIDEO_MODE_GRAPHICS,
  744. 85, //// Frequency
  745. 0x78, //// Cirrus Logic Mode #
  746. 2560, //// BytesPerScanLine
  747. 800, //// XResol
  748. 600, //// YResol
  749. 8, //// XCharSize
  750. 16, //// YCharSize
  751. 1, //// NumofPlanes
  752. 24, //// BitsPerPixel
  753. 0x04, //// Refresh Index
  754. 0, //// ModeSetString
  755. },
  756. #if (! WHQL_5462_PANIC_HACK)
  757. {
  758. 0, //// Valid Mode
  759. LG_ALL, //// All laguna chips support this mode.
  760. VIDEO_MODE_COLOR | VIDEO_MODE_GRAPHICS,
  761. 56, //// Frequency
  762. 0x72, //// Cirrus Logic Mode #
  763. 3328, //// BytesPerScanLine
  764. 800, //// XResol
  765. 600, //// YResol
  766. 8, //// XCharSize
  767. 16, //// YCharSize
  768. 1, //// NumofPlanes
  769. 32, //// BitsPerPixel
  770. 0x00, //// Refresh Index
  771. 0, //// ModeSetString
  772. },
  773. {
  774. 0, //// Valid Mode
  775. LG_ALL, //// All laguna chips support this mode.
  776. VIDEO_MODE_COLOR | VIDEO_MODE_GRAPHICS,
  777. 60, //// Frequency
  778. 0x72, //// Cirrus Logic Mode #
  779. 3328, //// BytesPerScanLine
  780. 800, //// XResol
  781. 600, //// YResol
  782. 8, //// XCharSize
  783. 16, //// YCharSize
  784. 1, //// NumofPlanes
  785. 32, //// BitsPerPixel
  786. 0x01, //// Refresh Index
  787. 0, //// ModeSetString
  788. },
  789. {
  790. 0, //// Valid Mode
  791. LG_ALL, //// All laguna chips support this mode.
  792. VIDEO_MODE_COLOR | VIDEO_MODE_GRAPHICS,
  793. 72, //// Frequency
  794. 0x72, //// Cirrus Logic Mode #
  795. 3328, //// BytesPerScanLine
  796. 800, //// XResol
  797. 600, //// YResol
  798. 8, //// XCharSize
  799. 16, //// YCharSize
  800. 1, //// NumofPlanes
  801. 32, //// BitsPerPixel
  802. 0x02, //// Refresh Index
  803. 0, //// ModeSetString
  804. },
  805. {
  806. 0, //// Valid Mode
  807. LG_ALL, //// All laguna chips support this mode.
  808. VIDEO_MODE_COLOR | VIDEO_MODE_GRAPHICS,
  809. 75, //// Frequency
  810. 0x72, //// Cirrus Logic Mode #
  811. 3328, //// BytesPerScanLine
  812. 800, //// XResol
  813. 600, //// YResol
  814. 8, //// XCharSize
  815. 16, //// YCharSize
  816. 1, //// NumofPlanes
  817. 32, //// BitsPerPixel
  818. 0x03, //// Refresh Index
  819. 0, //// ModeSetString
  820. },
  821. {
  822. 0, //// Valid Mode
  823. LG_ALL, //// All laguna chips support this mode.
  824. VIDEO_MODE_COLOR | VIDEO_MODE_GRAPHICS,
  825. 85, //// Frequency
  826. 0x72, //// Cirrus Logic Mode #
  827. 3328, //// BytesPerScanLine
  828. 800, //// XResol
  829. 600, //// YResol
  830. 8, //// XCharSize
  831. 16, //// YCharSize
  832. 1, //// NumofPlanes
  833. 32, //// BitsPerPixel
  834. 0x04, //// Refresh Index
  835. 0, //// ModeSetString
  836. },
  837. #endif
  838. // 1024 x 768 x 8 43 hz
  839. {
  840. 0, //// Valid Mode
  841. LG_ALL, //// All laguna chips support this mode.
  842. VIDEO_MODE_COLOR | VIDEO_MODE_GRAPHICS | VIDEO_MODE_INTERLACED,
  843. 43, //// Frequency
  844. 0x60, //// Cirrus Logic Mode #
  845. 1024, //// BytesPerScanLine
  846. 1024, //// XResol
  847. 768, //// YResol
  848. 8, //// XCharSize
  849. 16, //// YCharSize
  850. 1, //// NumofPlanes
  851. 8, //// BitsPerPixel
  852. 0x00, //// Refresh Index
  853. 0, //// ModeSetString
  854. },
  855. // 1024 x 768 x 8 60 hz
  856. {
  857. 0, //// Valid Mode
  858. LG_ALL, //// All laguna chips support this mode.
  859. VIDEO_MODE_COLOR | VIDEO_MODE_GRAPHICS,
  860. 60, //// Frequency
  861. 0x60, //// Cirrus Logic Mode #
  862. 1024, //// BytesPerScanLine
  863. 1024, //// XResol
  864. 768, //// YResol
  865. 8, //// XCharSize
  866. 16, //// YCharSize
  867. 1, //// NumofPlanes
  868. 8, //// BitsPerPixel
  869. 0x10, //// Refresh Index
  870. 0, //// ModeSetString
  871. },
  872. // 1024 x 768 x 8 70 hz
  873. {
  874. 0, //// Valid Mode
  875. LG_ALL, //// All laguna chips support this mode.
  876. VIDEO_MODE_COLOR | VIDEO_MODE_GRAPHICS,
  877. 70, //// Frequency
  878. 0x60, //// Cirrus Logic Mode #
  879. 1024, //// BytesPerScanLine
  880. 1024, //// XResol
  881. 768, //// YResol
  882. 8, //// XCharSize
  883. 16, //// YCharSize
  884. 1, //// NumofPlanes
  885. 8, //// BitsPerPixel
  886. 0x20, //// Refresh Index
  887. 0, //// ModeSetString
  888. },
  889. // 1024 x 768 x 8 75 hz
  890. {
  891. 0, //// Valid Mode
  892. LG_ALL, //// All laguna chips support this mode.
  893. VIDEO_MODE_COLOR | VIDEO_MODE_GRAPHICS,
  894. 75, //// Frequency
  895. 0x60, //// Cirrus Logic Mode #
  896. 1024, //// BytesPerScanLine
  897. 1024, //// XResol
  898. 768, //// YResol
  899. 8, //// XCharSize
  900. 16, //// YCharSize
  901. 1, //// NumofPlanes
  902. 8, //// BitsPerPixel
  903. 0x40, //// Refresh Index
  904. 0, //// ModeSetString
  905. },
  906. // 1024 x 768 x 8 85 hz
  907. {
  908. 0, //// Valid Mode
  909. LG_ALL, //// All laguna chips support this mode.
  910. VIDEO_MODE_COLOR | VIDEO_MODE_GRAPHICS,
  911. 85, //// Frequency
  912. 0x60, //// Cirrus Logic Mode #
  913. 1024, //// BytesPerScanLine
  914. 1024, //// XResol
  915. 768, //// YResol
  916. 8, //// XCharSize
  917. 16, //// YCharSize
  918. 1, //// NumofPlanes
  919. 8, //// BitsPerPixel
  920. 0x50, //// Refresh Index
  921. 0, //// ModeSetString
  922. },
  923. {
  924. 0, //// Valid Mode
  925. LG_ALL, //// All laguna chips support this mode.
  926. VIDEO_MODE_COLOR | VIDEO_MODE_GRAPHICS | VIDEO_MODE_INTERLACED,
  927. 43, //// Frequency
  928. 0x74, //// Cirrus Logic Mode #
  929. 2048, //// BytesPerScanLine
  930. 1024, //// XResol
  931. 768, //// YResol
  932. 8, //// XCharSize
  933. 16, //// YCharSize
  934. 1, //// NumofPlanes
  935. 16, //// BitsPerPixel
  936. 0x00, //// Refresh Index
  937. 0, //// ModeSetString
  938. },
  939. {
  940. 0, //// Valid Mode
  941. LG_ALL, //// All laguna chips support this mode.
  942. VIDEO_MODE_COLOR | VIDEO_MODE_GRAPHICS,
  943. 60, //// Frequency
  944. 0x74, //// Cirrus Logic Mode #
  945. 2048, //// BytesPerScanLine
  946. 1024, //// XResol
  947. 768, //// YResol
  948. 8, //// XCharSize
  949. 16, //// YCharSize
  950. 1, //// NumofPlanes
  951. 16, //// BitsPerPixel
  952. 0x10, //// Refresh Index
  953. 0, //// ModeSetString
  954. },
  955. {
  956. 0, //// Valid Mode
  957. LG_ALL, //// All laguna chips support this mode.
  958. VIDEO_MODE_COLOR | VIDEO_MODE_GRAPHICS,
  959. 70, //// Frequency
  960. 0x74, //// Cirrus Logic Mode #
  961. 2048, //// BytesPerScanLine
  962. 1024, //// XResol
  963. 768, //// YResol
  964. 8, //// XCharSize
  965. 16, //// YCharSize
  966. 1, //// NumofPlanes
  967. 16, //// BitsPerPixel
  968. 0x20, //// Refresh Index
  969. 0, //// ModeSetString
  970. },
  971. {
  972. 0, //// Valid Mode
  973. LG_ALL, //// All laguna chips support this mode.
  974. VIDEO_MODE_COLOR | VIDEO_MODE_GRAPHICS,
  975. 75, //// Frequency
  976. 0x74, //// Cirrus Logic Mode #
  977. 2048, //// BytesPerScanLine
  978. 1024, //// XResol
  979. 768, //// YResol
  980. 8, //// XCharSize
  981. 16, //// YCharSize
  982. 1, //// NumofPlanes
  983. 16, //// BitsPerPixel
  984. 0x40, //// Refresh Index
  985. 0, //// ModeSetString
  986. },
  987. {
  988. 0, //// Valid Mode
  989. LG_ALL, //// All laguna chips support this mode.
  990. VIDEO_MODE_COLOR | VIDEO_MODE_GRAPHICS,
  991. 85, //// Frequency
  992. 0x74, //// Cirrus Logic Mode #
  993. 2048, //// BytesPerScanLine
  994. 1024, //// XResol
  995. 768, //// YResol
  996. 8, //// XCharSize
  997. 16, //// YCharSize
  998. 1, //// NumofPlanes
  999. 16, //// BitsPerPixel
  1000. 0x50, //// Refresh Index
  1001. 0, //// ModeSetString
  1002. },
  1003. {
  1004. 0, //// Valid Mode
  1005. LG_ALL, //// All laguna chips support this mode.
  1006. VIDEO_MODE_COLOR | VIDEO_MODE_GRAPHICS | VIDEO_MODE_INTERLACED,
  1007. 43, //// Frequency
  1008. 0x79, //// Cirrus Logic Mode #
  1009. 3328, //// BytesPerScanLine
  1010. 1024, //// XResol
  1011. 768, //// YResol
  1012. 8, //// XCharSize
  1013. 16, //// YCharSize
  1014. 1, //// NumofPlanes
  1015. 24, //// BitsPerPixel
  1016. 0x00, //// Refresh Index
  1017. 0, //// ModeSetString
  1018. },
  1019. {
  1020. 0, //// Valid Mode
  1021. LG_ALL, //// All laguna chips support this mode.
  1022. VIDEO_MODE_COLOR | VIDEO_MODE_GRAPHICS,
  1023. 60, //// Frequency
  1024. 0x79, //// Cirrus Logic Mode #
  1025. 3328, //// BytesPerScanLine
  1026. 1024, //// XResol
  1027. 768, //// YResol
  1028. 8, //// XCharSize
  1029. 16, //// YCharSize
  1030. 1, //// NumofPlanes
  1031. 24, //// BitsPerPixel
  1032. 0x10, //// Refresh Index
  1033. 0, //// ModeSetString
  1034. },
  1035. {
  1036. 0, //// Valid Mode
  1037. LG_ALL, //// All laguna chips support this mode.
  1038. VIDEO_MODE_COLOR | VIDEO_MODE_GRAPHICS,
  1039. 70, //// Frequency
  1040. 0x79, //// Cirrus Logic Mode #
  1041. 3328, //// BytesPerScanLine
  1042. 1024, //// XResol
  1043. 768, //// YResol
  1044. 8, //// XCharSize
  1045. 16, //// YCharSize
  1046. 1, //// NumofPlanes
  1047. 24, //// BitsPerPixel
  1048. 0x20, //// Refresh Index
  1049. 0, //// ModeSetString
  1050. },
  1051. {
  1052. 0, //// Valid Mode
  1053. LG_ALL, //// All laguna chips support this mode.
  1054. VIDEO_MODE_COLOR | VIDEO_MODE_GRAPHICS,
  1055. 75, //// Frequency
  1056. 0x79, //// Cirrus Logic Mode #
  1057. 3328, //// BytesPerScanLine
  1058. 1024, //// XResol
  1059. 768, //// YResol
  1060. 8, //// XCharSize
  1061. 16, //// YCharSize
  1062. 1, //// NumofPlanes
  1063. 24, //// BitsPerPixel
  1064. 0x40, //// Refresh Index
  1065. 0, //// ModeSetString
  1066. },
  1067. {
  1068. 0, //// Valid Mode
  1069. LG_ALL, //// All laguna chips support this mode.
  1070. VIDEO_MODE_COLOR | VIDEO_MODE_GRAPHICS,
  1071. 85, //// Frequency
  1072. 0x79, //// Cirrus Logic Mode #
  1073. 3328, //// BytesPerScanLine
  1074. 1024, //// XResol
  1075. 768, //// YResol
  1076. 8, //// XCharSize
  1077. 16, //// YCharSize
  1078. 1, //// NumofPlanes
  1079. 24, //// BitsPerPixel
  1080. 0x50, //// Refresh Index
  1081. 0, //// ModeSetString
  1082. },
  1083. #if (! WHQL_5462_PANIC_HACK)
  1084. // 1024 x 768 x 32 @ 43i hz
  1085. {
  1086. 0, //// Valid Mode
  1087. LG_ALL, //// All laguna chips support this mode.
  1088. VIDEO_MODE_COLOR | VIDEO_MODE_GRAPHICS | VIDEO_MODE_INTERLACED,
  1089. 43, //// Frequency
  1090. 0x73, //// Cirrus Logic Mode #
  1091. 4096, //// BytesPerScanLine
  1092. 1024, //// XResol
  1093. 768, //// YResol
  1094. 8, //// XCharSize
  1095. 16, //// YCharSize
  1096. 1, //// NumofPlanes
  1097. 32, //// BitsPerPixel
  1098. 0x00, //// Refresh Index
  1099. 0, //// ModeSetString
  1100. },
  1101. // 1024 x 768 x 32 @ 60 hz
  1102. {
  1103. 0, //// Valid Mode
  1104. LG_ALL, //// All laguna chips support this mode.
  1105. VIDEO_MODE_COLOR | VIDEO_MODE_GRAPHICS,
  1106. 60, //// Frequency
  1107. 0x73, //// Cirrus Logic Mode #
  1108. 4096, //// BytesPerScanLine
  1109. 1024, //// XResol
  1110. 768, //// YResol
  1111. 8, //// XCharSize
  1112. 16, //// YCharSize
  1113. 1, //// NumofPlanes
  1114. 32, //// BitsPerPixel
  1115. 0x10, //// Refresh Index
  1116. 0, //// ModeSetString
  1117. },
  1118. // 1024 x 768 x 32 @ 70 hz
  1119. {
  1120. 0, //// Valid Mode
  1121. LG_5462, //// The Laguna 5462
  1122. VIDEO_MODE_COLOR | VIDEO_MODE_GRAPHICS,
  1123. 70, //// Frequency
  1124. 0x73, //// Cirrus Logic Mode #
  1125. 4096, //// BytesPerScanLine
  1126. 1024, //// XResol
  1127. 768, //// YResol
  1128. 8, //// XCharSize
  1129. 16, //// YCharSize
  1130. 1, //// NumofPlanes
  1131. 32, //// BitsPerPixel
  1132. 0x20, //// Refresh Index
  1133. 0, //// ModeSetString
  1134. },
  1135. // 1024 x 768 x 32 @ 75 hz
  1136. {
  1137. 0, //// Valid Mode
  1138. LG_5462, //// The Laguna 5462
  1139. VIDEO_MODE_COLOR | VIDEO_MODE_GRAPHICS,
  1140. 75, //// Frequency
  1141. 0x73, //// Cirrus Logic Mode #
  1142. 4096, //// BytesPerScanLine
  1143. 1024, //// XResol
  1144. 768, //// YResol
  1145. 8, //// XCharSize
  1146. 16, //// YCharSize
  1147. 1, //// NumofPlanes
  1148. 32, //// BitsPerPixel
  1149. 0x40, //// Refresh Index
  1150. 0, //// ModeSetString
  1151. },
  1152. // 1024 x 768 x 32 @ 85 hz
  1153. {
  1154. 0, //// Valid Mode
  1155. LG_5462, //// The Laguna 5462
  1156. VIDEO_MODE_COLOR | VIDEO_MODE_GRAPHICS,
  1157. 85, //// Frequency
  1158. 0x73, //// Cirrus Logic Mode #
  1159. 4096, //// BytesPerScanLine
  1160. 1024, //// XResol
  1161. 768, //// YResol
  1162. 8, //// XCharSize
  1163. 16, //// YCharSize
  1164. 1, //// NumofPlanes
  1165. 32, //// BitsPerPixel
  1166. 0x50, //// Refresh Index
  1167. 0, //// ModeSetString
  1168. },
  1169. #endif
  1170. // 1280 x 1024 x 8 @ 43i hz
  1171. {
  1172. 0, //// Valid Mode
  1173. LG_ALL, //// All laguna chips support this mode.
  1174. VIDEO_MODE_COLOR | VIDEO_MODE_GRAPHICS | VIDEO_MODE_INTERLACED,
  1175. 43, //// Frequency
  1176. 0x6D, //// Cirrus Logic Mode #
  1177. 1280, //// BytesPerScanLine
  1178. 1280, //// XResol
  1179. 1024, //// YResol
  1180. 8, //// XCharSize
  1181. 16, //// YCharSize
  1182. 1, //// NumofPlanes
  1183. 8, //// BitsPerPixel
  1184. 0x00, //// Refresh Index
  1185. 0, //// ModeSetString
  1186. },
  1187. // 1280 x 1024 x 8 @ 60hz
  1188. {
  1189. 0, //// Valid Mode
  1190. LG_ALL, //// All laguna chips support this mode.
  1191. VIDEO_MODE_COLOR | VIDEO_MODE_GRAPHICS,
  1192. 60, //// Frequency
  1193. 0x6D, //// Cirrus Logic Mode #
  1194. 1280, //// BytesPerScanLine
  1195. 1280, //// XResol
  1196. 1024, //// YResol
  1197. 8, //// XCharSize
  1198. 16, //// YCharSize
  1199. 1, //// NumofPlanes
  1200. 8, //// BitsPerPixel
  1201. 0x10, //// Refresh Index
  1202. 0, //// ModeSetString
  1203. },
  1204. // 1280 x 1024 x 8 @ 71hz
  1205. {
  1206. 0, //// Valid Mode
  1207. LG_ALL, //// All laguna chips support this mode.
  1208. VIDEO_MODE_COLOR | VIDEO_MODE_GRAPHICS,
  1209. 71, //// Frequency
  1210. 0x6D, //// Cirrus Logic Mode #
  1211. 1280, //// BytesPerScanLine
  1212. 1280, //// XResol
  1213. 1024, //// YResol
  1214. 8, //// XCharSize
  1215. 16, //// YCharSize
  1216. 1, //// NumofPlanes
  1217. 8, //// BitsPerPixel
  1218. 0x20, //// Refresh Index
  1219. 0, //// ModeSetString
  1220. },
  1221. // 1280 x 1024 x 8 @ 75hz
  1222. {
  1223. 0, //// Valid Mode
  1224. LG_ALL, //// All laguna chips support this mode.
  1225. VIDEO_MODE_COLOR | VIDEO_MODE_GRAPHICS,
  1226. 75, //// Frequency
  1227. 0x6D, //// Cirrus Logic Mode #
  1228. 1280, //// BytesPerScanLine
  1229. 1280, //// XResol
  1230. 1024, //// YResol
  1231. 8, //// XCharSize
  1232. 16, //// YCharSize
  1233. 1, //// NumofPlanes
  1234. 8, //// BitsPerPixel
  1235. 0x30, //// Refresh Index
  1236. 0, //// ModeSetString
  1237. },
  1238. // 1280 x 1024 x 8 @ 85hz
  1239. {
  1240. 0, //// Valid Mode
  1241. LG_ALL, //// All laguna chips support this mode.
  1242. VIDEO_MODE_COLOR | VIDEO_MODE_GRAPHICS,
  1243. 85, //// Frequency
  1244. 0x6D, //// Cirrus Logic Mode #
  1245. 1280, //// BytesPerScanLine
  1246. 1280, //// XResol
  1247. 1024, //// YResol
  1248. 8, //// XCharSize
  1249. 16, //// YCharSize
  1250. 1, //// NumofPlanes
  1251. 8, //// BitsPerPixel
  1252. 0x40, //// Refresh Index
  1253. 0, //// ModeSetString
  1254. },
  1255. // 1280 x 1024 x 16 @ 43ihz
  1256. {
  1257. 0, //// Valid Mode
  1258. LG_ALL, //// All laguna chips support this mode.
  1259. VIDEO_MODE_COLOR | VIDEO_MODE_GRAPHICS | VIDEO_MODE_INTERLACED,
  1260. 43, //// Frequency
  1261. 0x75, //// Cirrus Logic Mode #
  1262. 2560, //// BytesPerScanLine
  1263. 1280, //// XResol
  1264. 1024, //// YResol
  1265. 8, //// XCharSize
  1266. 16, //// YCharSize
  1267. 1, //// NumofPlanes
  1268. 16, //// BitsPerPixel
  1269. 0x00, //// Refresh Index
  1270. 0, //// ModeSetString
  1271. },
  1272. // 1280 x 1024 x 16 @ 60hz
  1273. {
  1274. 0, //// Valid Mode
  1275. LG_ALL, //// All laguna chips support this mode.
  1276. VIDEO_MODE_COLOR | VIDEO_MODE_GRAPHICS,
  1277. 60, //// Frequency
  1278. 0x75, //// Cirrus Logic Mode #
  1279. 2560, //// BytesPerScanLine
  1280. 1280, //// XResol
  1281. 1024, //// YResol
  1282. 8, //// XCharSize
  1283. 16, //// YCharSize
  1284. 1, //// NumofPlanes
  1285. 16, //// BitsPerPixel
  1286. 0x10, //// Refresh Index
  1287. 0, //// ModeSetString
  1288. },
  1289. // 1280 x 1024 x 16 @ 71hz
  1290. {
  1291. 0, //// Valid Mode
  1292. LG_ALL, //// All laguna chips support this mode.
  1293. VIDEO_MODE_COLOR | VIDEO_MODE_GRAPHICS,
  1294. 71, //// Frequency
  1295. 0x75, //// Cirrus Logic Mode #
  1296. 2560, //// BytesPerScanLine
  1297. 1280, //// XResol
  1298. 1024, //// YResol
  1299. 8, //// XCharSize
  1300. 16, //// YCharSize
  1301. 1, //// NumofPlanes
  1302. 16, //// BitsPerPixel
  1303. 0x20, //// Refresh Index
  1304. 0, //// ModeSetString
  1305. },
  1306. // 1280 x 1024 x 16 @ 75hz
  1307. {
  1308. 0, //// Valid Mode
  1309. LG_ALL, //// All laguna chips support this mode.
  1310. VIDEO_MODE_COLOR | VIDEO_MODE_GRAPHICS,
  1311. 75, //// Frequency
  1312. 0x75, //// Cirrus Logic Mode #
  1313. 2560, //// BytesPerScanLine
  1314. 1280, //// XResol
  1315. 1024, //// YResol
  1316. 8, //// XCharSize
  1317. 16, //// YCharSize
  1318. 1, //// NumofPlanes
  1319. 16, //// BitsPerPixel
  1320. 0x30, //// Refresh Index
  1321. 0, //// ModeSetString
  1322. },
  1323. #if (! WHQL_5462_PANIC_HACK)
  1324. // 1280 x 1024 x 16 @ 85hz
  1325. {
  1326. 0, //// Valid Mode
  1327. LG_5462 | LG_5465, //// The 5464 doesn't do this mode.
  1328. VIDEO_MODE_COLOR | VIDEO_MODE_GRAPHICS,
  1329. 85, //// Frequency
  1330. 0x75, //// Cirrus Logic Mode #
  1331. 2560, //// BytesPerScanLine
  1332. 1280, //// XResol
  1333. 1024, //// YResol
  1334. 8, //// XCharSize
  1335. 16, //// YCharSize
  1336. 1, //// NumofPlanes
  1337. 16, //// BitsPerPixel
  1338. 0x40, //// Refresh Index
  1339. 0, //// ModeSetString
  1340. },
  1341. #endif
  1342. // 1600 x 1280 x 8 @ 48ihz
  1343. {
  1344. 0, //// Valid Mode
  1345. LG_ALL, //// All laguna chips support this mode.
  1346. VIDEO_MODE_COLOR | VIDEO_MODE_GRAPHICS | VIDEO_MODE_INTERLACED,
  1347. 48, //// Frequency
  1348. 0x7B, //// Cirrus Logic Mode #
  1349. 1664, //// BytesPerScanLine
  1350. 1600, //// XResol
  1351. 1200, //// YResol
  1352. 8, //// XCharSize
  1353. 16, //// YCharSize
  1354. 1, //// NumofPlanes
  1355. 8, //// BitsPerPixel
  1356. 0x00, //// Refresh Index
  1357. 0, //// ModeSetString
  1358. },
  1359. // 1600 x 1280 x 8 @ 60hz
  1360. {
  1361. 0, //// Valid Mode
  1362. LG_ALL, //// All laguna chips support this mode.
  1363. VIDEO_MODE_COLOR | VIDEO_MODE_GRAPHICS,
  1364. 60, //// Frequency
  1365. 0x7B, //// Cirrus Logic Mode #
  1366. 1664, //// BytesPerScanLine
  1367. 1600, //// XResol
  1368. 1200, //// YResol
  1369. 8, //// XCharSize
  1370. 16, //// YCharSize
  1371. 1, //// NumofPlanes
  1372. 8, //// BitsPerPixel
  1373. 0x01, //// Refresh Index
  1374. 0, //// ModeSetString
  1375. },
  1376. #if (! WHQL_5462_PANIC_HACK)
  1377. // 1600 x 1280 x 8 @ 65hz
  1378. {
  1379. 0, //// Valid Mode
  1380. LG_ALL, //// All laguna chips support this mode.
  1381. VIDEO_MODE_COLOR | VIDEO_MODE_GRAPHICS,
  1382. 65, //// Frequency
  1383. 0x7B, //// Cirrus Logic Mode #
  1384. 1664, //// BytesPerScanLine
  1385. 1600, //// XResol
  1386. 1200, //// YResol
  1387. 8, //// XCharSize
  1388. 16, //// YCharSize
  1389. 1, //// NumofPlanes
  1390. 8, //// BitsPerPixel
  1391. 0x02, //// Refresh Index
  1392. 0, //// ModeSetString
  1393. },
  1394. // 1600 x 1280 x 8 @ 70hz
  1395. {
  1396. 0, //// Valid Mode
  1397. LG_ALL, //// All laguna chips support this mode.
  1398. VIDEO_MODE_COLOR | VIDEO_MODE_GRAPHICS,
  1399. 70, //// Frequency
  1400. 0x7B, //// Cirrus Logic Mode #
  1401. 1664, //// BytesPerScanLine
  1402. 1600, //// XResol
  1403. 1200, //// YResol
  1404. 8, //// XCharSize
  1405. 16, //// YCharSize
  1406. 1, //// NumofPlanes
  1407. 8, //// BitsPerPixel
  1408. 0x03, //// Refresh Index
  1409. 0, //// ModeSetString
  1410. },
  1411. // 1600 x 1280 x 8 @ 75hz
  1412. {
  1413. 0, //// Valid Mode
  1414. LG_ALL, //// All laguna chips support this mode.
  1415. VIDEO_MODE_COLOR | VIDEO_MODE_GRAPHICS,
  1416. 75, //// Frequency
  1417. 0x7B, //// Cirrus Logic Mode #
  1418. 1664, //// BytesPerScanLine
  1419. 1600, //// XResol
  1420. 1200, //// YResol
  1421. 8, //// XCharSize
  1422. 16, //// YCharSize
  1423. 1, //// NumofPlanes
  1424. 8, //// BitsPerPixel
  1425. 0x04, //// Refresh Index
  1426. 0, //// ModeSetString
  1427. },
  1428. #endif
  1429. #if 0
  1430. // 1600 x 1280 x 8 @ 80hz
  1431. {
  1432. 0, //// Valid Mode
  1433. LG_ALL, //// All laguna chips support this mode.
  1434. VIDEO_MODE_COLOR | VIDEO_MODE_GRAPHICS,
  1435. 80, //// Frequency
  1436. 0x7B, //// Cirrus Logic Mode #
  1437. 1664, //// BytesPerScanLine
  1438. 1600, //// XResol
  1439. 1200, //// YResol
  1440. 8, //// XCharSize
  1441. 16, //// YCharSize
  1442. 1, //// NumofPlanes
  1443. 8, //// BitsPerPixel
  1444. 0x05, //// Refresh Index
  1445. 0, //// ModeSetString
  1446. },
  1447. // 1600 x 1280 x 8 @ 85hz
  1448. {
  1449. 0, //// Valid Mode
  1450. LG_ALL, //// All laguna chips support this mode.
  1451. VIDEO_MODE_COLOR | VIDEO_MODE_GRAPHICS,
  1452. 85, //// Frequency
  1453. 0x7B, //// Cirrus Logic Mode #
  1454. 1664, //// BytesPerScanLine
  1455. 1600, //// XResol
  1456. 1200, //// YResol
  1457. 8, //// XCharSize
  1458. 16, //// YCharSize
  1459. 1, //// NumofPlanes
  1460. 8, //// BitsPerPixel
  1461. 0x06, //// Refresh Index
  1462. 0, //// ModeSetString
  1463. },
  1464. #endif
  1465. #include "ModeStr.C" // Include ModeTable records for all the MODE.INI modes.
  1466. };
  1467. ULONG TotalVideoModes = sizeof(ModeTable)/sizeof(MODETABLE);
  1468.