home *** CD-ROM | disk | FTP | other *** search
/ Il CD di internet / CD.iso / SOURCE / D / SVGALIB / _SVGALIB.TAR / usr / local / lib / libvga.et4000 < prev   
Encoding:
Text File  |  1994-09-10  |  4.1 KB  |  120 lines

  1. /* ET4000 registers from SVGALIB 0.81 */
  2.  
  3. /* Define DAC_TYPE to force the DAC type used in the ET4000 driver. If it   */
  4. /* is not defined, the driver tries to autodetect the DAC type which may go */
  5. /* wrong. */
  6.  
  7. /*  Use the following values:
  8.     0: Ordinary DAC
  9.     1: Sierra SC11486 (32k)
  10.     3: Sierra 32k/64k
  11.      5: SS2410 15/24bit DAC
  12.      9: AT&T 20c491/2 (32k/64k/24bit)
  13.     17: Acumos ADAC (Cirrus Logic DAC)
  14.     33: Sierra 15025/6 24-bit DAC
  15. */
  16.  
  17. #define DAC_TYPE 0
  18.  
  19. /* unsupported modes */
  20. #define g320x200x64K_regs  DISABLE_MODE
  21. #define g320x200x16M_regs  DISABLE_MODE
  22. #define g800x600x16_regs   DISABLE_MODE
  23. #define g1024x768x16_regs  DISABLE_MODE
  24. #define g1280x1024x16_regs DISABLE_MODE
  25.  
  26.  
  27. /* Got this mode from someone's tseng3.exe dump. */
  28. /* ET4000 HiColor BIOS mode 0x13 -- 320x200x32K */
  29. /* Video timing:    Vertical frequency   : 70.3Hz
  30.             Horizontal frequency : 31.6KHz  */
  31. static unsigned char g320x200x32K_regs[73] = {
  32.   0x5F,0x4F,0x50,0x82,0x54,0x80,0xBF,0x1F,0x00,0x41,0x00,0x00,
  33.   0x00,0x00,0x00,0x00,0x9C,0x8E,0x8F,0x50,0x60,0x96,0xB9,0xAB,
  34.   0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0A,0x0B,
  35.   0x0C,0x0D,0x0E,0x0F,0x01,0x00,0x0F,0x00,0x00,
  36.   0x00,0x00,0x00,0x00,0x00,0x40,0x05,0x0F,0xFF,
  37.   0x03,0x01,0x0F,0x00,0x0E,
  38.   0x63,
  39.   0x00,0x00,0x28,0x00,0x08,0x00,0x43,0x0F,0x00,0xFC,0x00,0x00,
  40.   0x00
  41. };
  42.  
  43. /* ET4000 BIOS mode 2Eh - 640x480x256 */
  44. static unsigned char g640x480x256_regs[73] = {
  45.   0x5F,0x4F,0x50,0x82,0x54,0x80,0x0B,0x3E,0x00,0x40,0x00,0x00,
  46.   0x00,0x00,0x00,0x00,0xEA,0x8C,0xDF,0x50,0x60,0xE7,0x04,0xAB,
  47.   0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0A,0x0B,
  48.   0x0C,0x0D,0x0E,0x0F,0x01,0x00,0x0F,0x00,0x00,
  49.   0x00,0x00,0x00,0x00,0x00,0x40,0x05,0x0F,0xFF,
  50.   0x03,0x01,0x0F,0x00,0x0E,
  51.   0xE3,
  52.   0x00,0x00,0x28,0x00,0x08,0x00,0x03,0x0F,0x00,0xFC,0x00,0x00,
  53.   0x00
  54. };
  55.  
  56. /* ET4000 BIOS mode 30h - 800x600x256 */
  57. static unsigned char g800x600x256_regs[73] = {
  58.   0x7F,0x63,0x64,0x02,0x6A,0x1D,0x77,0xF0,0x00,0x60,0x00,0x00,
  59.   0x00,0x00,0x00,0x00,0x5D,0x8F,0x57,0x64,0x60,0x5B,0x74,0xAB,
  60.   0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0A,0x0B,
  61.   0x0C,0x0D,0x0E,0x0F,0x01,0x00,0x0F,0x00,0x00,
  62.   0x00,0x00,0x00,0x00,0x00,0x40,0x05,0x0F,0xFF,
  63.   0x03,0x01,0x0F,0x00,0x0E,
  64.   0xE3,
  65.   0x00,0x00,0x28,0x00,0x0A,0x00,0x03,0x0F,0x00,0xFC,0x00,0x00,
  66.   0x00
  67. };
  68.  
  69. /* ET4000 BIOS mode 38h - 1024x768x256 */
  70. static unsigned char g1024x768x256_regs[73] = {
  71.   0xA1,0x7F,0x80,0x04,0x89,0x99,0x26,0xFD,0x00,0x60,0x00,0x00,
  72.   0x00,0x00,0x00,0x00,0x08,0x8A,0xFF,0x80,0x60,0x04,0x22,0xAB,
  73.   0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0A,0x0B,
  74.   0x0C,0x0D,0x0E,0x0F,0x01,0x00,0x0F,0x00,0x00,
  75.   0x00,0x00,0x00,0x00,0x00,0x40,0x05,0x0F,0xFF,
  76.   0x03,0x01,0x0F,0x00,0x0E,
  77.   0xEB,
  78.   0x00,0x00,0x28,0x00,0x08,0x00,0x03,0x0F,0x00,0xBC,0x00,0x00,
  79.   0x00
  80. };
  81.  
  82. static unsigned char g800x600x32K_regs[73] = {
  83.   0xF9,0xC7,0xC9,0x9B,0xCF,0x8F,0x78,0xF0,0x00,0x60,0x00,0x00,
  84.   0x00,0x00,0x00,0x00,0x5C,0x8E,0x57,0xC8,0x60,0x5B,0x75,0xAB,
  85.   0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0A,0x0B,
  86.   0x0C,0x0D,0x0E,0x0F,0x01,0x00,0x0F,0x00,0x00,
  87.   0x00,0x00,0x00,0x00,0x00,0x40,0x05,0x0F,0xFF,
  88.   0x03,0x01,0x0F,0x00,0x0E,
  89.   0xEF,
  90.   0x00,0x00,0x28,0x00,0x08,0x00,0x03,0x0F,0x00,0xBC,0x00,0x00,
  91.   0x06
  92. };
  93. #define g800x600x64K_regs g800x600x32K_regs
  94.  
  95. static unsigned char g640x480x16M_regs[73] = {
  96.   0x27,0xEF,0xF2,0x88,0xF8,0x98,0x0B,0x3E,0x00,0x40,0x00,0x00,
  97.   0x00,0x00,0x00,0x00,0xEA,0x0C,0xDF,0xF0,0x60,0xE7,0x04,0xAB,
  98.   0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0A,0x0B,
  99.   0x0C,0x0D,0x0E,0x0F,0x01,0x00,0x0F,0x00,0x00,
  100.   0x00,0x00,0x00,0x00,0x00,0x40,0x05,0x0F,0xFF,
  101.   0x03,0x01,0x0F,0x00,0x0E,
  102.   0xEF,
  103.   0x00,0x00,0x28,0x00,0x0A,0x00,0x03,0x0F,0x01,0xBC,0x00,0x00,
  104.   0x00
  105. };
  106.  
  107. static unsigned char g640x480x32K_regs[73] = {
  108.   0xC3,0x9F,0xA1,0x85,0xA7,0x1F,0x0B,0x3E,0x00,0x40,0x00,0x00,
  109.   0x00,0x00,0x00,0x00,0xEA,0x8C,0xDF,0xA0,0x60,0xE7,0x04,0xAB,
  110.   0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0A,0x0B,
  111.   0x0C,0x0D,0x0E,0x0F,0x01,0x00,0x0F,0x00,0x00,
  112.   0x00,0x00,0x00,0x00,0x00,0x40,0x05,0x0F,0xFF,
  113.   0x03,0x01,0x0F,0x00,0x0E,
  114.   0xE3,
  115.   0x00,0x00,0x28,0x00,0x08,0x00,0x03,0x0F,0x00,0xBC,0x00,0x00,
  116.   0x00
  117. };
  118. #define g640x480x64K_regs g640x480x32K_regs
  119.  
  120.