home *** CD-ROM | disk | FTP | other *** search
- /*
- * OS/2 2.1 SVGA PMI-File Generator
- */
-
- /*
- * Lock Extended Registers
- */
-
- [Lock]
- outb(0x3d4, 0x38);
- outb(0x3d5, 0x00);
- outb(0x3d4, 0x39);
- outb(0x3d5, 0x00);
-
- /*
- * Unlock Extended Registers
- */
-
- [UnLock]
- outb(0x3d4, 0x38);
- outb(0x3d5, 0x48);
- outb(0x3d4, 0x39);
- outb(0x3d5, 0xa0);
- outb(0x3b4, 0x38);
- outb(0x3b5, 0x48);
- outb(0x3b4, 0x39);
- outb(0x3b5, 0xa0);
-
- [Cleanup]
-
- rmww(0x4ae8, 0x4ae8, 0x00, 0x00);
- rmwb(0x3d4, 0x3d5, 0x31, 0xf7, 0x00);
- rmwb(0x3d4, 0x3d5, 0x34, 0x00, 0x00);
- rmwb(0x3d4, 0x3d5, 0x3a, 0xef, 0x00);
- rmwb(0x3d4, 0x3d5, 0x40, 0xfe, 0x00);
- rmwb(0x3d4, 0x3d5, 0x45, 0xfe, 0x00);
- rmwb(0x3d4, 0x3d5, 0x51, 0xf3, 0x00);
- rmwb(0x3d4, 0x3d5, 0x58, 0xec, 0x00);
- rmwb(0x3d4, 0x3d5, 0x60, 0x00, 0x07);
- rmwb(0x3d4, 0x3d5, 0x61, 0x00, 0x80);
- rmwb(0x3d4, 0x3d5, 0x62, 0x00, 0xa1);
-
- /*
- * HI-COLOR DAC by AT&T Microelectronics, Inc.
- */
-
- [comment]
- Graphics Mode: 640 x 480 x 256 colors.
-
- [AdapterType]
- S3
-
- [ChipSet]
- S3DXP
-
- [ModeInfo]
- ModeAttributes = 0x18
- BytesPerScanLine = 80
- XResolution = 640
- YResolution = 480
- TextRows = 30
- BitsPerPixel = 8
- NumberOfPlanes = 1
- PageLength = 491520
- SaveSize = 491520
- TotalMemory = 1048576
- InterlaceMode = 1
- BufferAddress = 0x0a0000
-
- [TrapRegs]
- 0x3c2;
- 0x3c4, 0x00-0x04;
- 0x3c5;
- 0x3d4, 0x00-0x18, 0x50-0x5a, 0x5c-0x5e, 0x60-0x62, 0x31-0x35, 0x3a-0x3c, 0x40-0x40, 0x43-0x43, 0x45-0x49, 0x4c-0x4f, 0x42-0x42, 0x67-0x67;
- 0x3d5;
- 0x3c0, 0x00-0x14;
- 0x3c1;
- 0x3ce, 0x00-0x08;
- 0x3cf;
- 0x4ae8;
- 0xbee8;
- 0x96e8;
- 0x86e8;
- 0x82e8;
-
- [SetMode]
-
- /*
- * Set Enhanced Command Registers
- */
-
- outw(0x4ae8, 0x0001);
- outw(0xbee8, 0x1000);
- outw(0xbee8, 0x33ff);
- outw(0xbee8, 0x2000);
- outw(0xbee8, 0x43ff);
- outw(0xbee8, 0xa000);
- outw(0xbee8, 0x03ff);
- outw(0x96e8, 0x03ff);
- outw(0x86e8, 0x0000);
- outw(0x82e8, 0x0000);
- [comment]
- Graphics Mode: 640 x 480 x 64K colors.
-
- [AdapterType]
- S3
-
- [ChipSet]
- S3DXP
-
- [ModeInfo]
- ModeAttributes = 0x18
- BytesPerScanLine = 80
- XResolution = 640
- YResolution = 480
- TextRows = 30
- BitsPerPixel = 16
- NumberOfPlanes = 1
- PageLength = 614400
- SaveSize = 614400
- TotalMemory = 1048576
- InterlaceMode = 1
- BufferAddress = 0x0a0000
-
- [TrapRegs]
- 0x3c2;
- 0x3c4, 0x00-0x04;
- 0x3c5;
- 0x3d4, 0x00-0x18, 0x50-0x5a, 0x5c-0x5e, 0x60-0x62, 0x31-0x35, 0x3a-0x3c, 0x40-0x40, 0x43-0x43, 0x45-0x49, 0x4c-0x4f, 0x42-0x42, 0x67-0x67;
- 0x3d5;
- 0x3c0, 0x00-0x14;
- 0x3c1;
- 0x3ce, 0x00-0x08;
- 0x3cf;
- 0x4ae8;
- 0xbee8;
- 0x96e8;
- 0x86e8;
- 0x82e8;
-
- [SetMode]
-
- /*
- * Set Enhanced Command Registers
- */
-
- outw(0x4ae8, 0x0001);
- outw(0xbee8, 0x1000);
- outw(0xbee8, 0x33ff);
- outw(0xbee8, 0x2000);
- outw(0xbee8, 0x43ff);
- outw(0xbee8, 0xa000);
- outw(0xbee8, 0x03ff);
- outw(0x96e8, 0x03ff);
- outw(0x86e8, 0x0000);
- outw(0x82e8, 0x0000);
- [comment]
- Graphics Mode: 640 x 480 x 16M colors.
-
- [AdapterType]
- S3
-
- [ChipSet]
- S3DXP
-
- [ModeInfo]
- ModeAttributes = 0x18
- BytesPerScanLine = 80
- XResolution = 640
- YResolution = 480
- TextRows = 30
- BitsPerPixel = 24
- NumberOfPlanes = 1
- PageLength = 921600
- SaveSize = 921600
- TotalMemory = 1048576
- InterlaceMode = 1
- BufferAddress = 0x0a0000
-
- [TrapRegs]
- 0x3c2;
- 0x3c4, 0x00-0x04;
- 0x3c5;
- 0x3d4, 0x00-0x18, 0x50-0x5a, 0x5c-0x5e, 0x60-0x62, 0x31-0x35, 0x3a-0x3c, 0x40-0x40, 0x43-0x43, 0x45-0x49, 0x4c-0x4f, 0x42-0x42, 0x67-0x67;
- 0x3d5;
- 0x3c0, 0x00-0x14;
- 0x3c1;
- 0x3ce, 0x00-0x08;
- 0x3cf;
- 0x4ae8;
- 0xbee8;
- 0x96e8;
- 0x86e8;
- 0x82e8;
-
- [SetMode]
-
- /*
- * Set Enhanced Command Registers
- */
-
- outw(0x4ae8, 0x0001);
- outw(0xbee8, 0x1000);
- outw(0xbee8, 0x33ff);
- outw(0xbee8, 0x2000);
- outw(0xbee8, 0x43ff);
- outw(0xbee8, 0xa000);
- outw(0xbee8, 0x03ff);
- outw(0x96e8, 0x03ff);
- outw(0x86e8, 0x0000);
- outw(0x82e8, 0x0000);
- [comment]
- Graphics Mode: 800 x 600 x 256 colors.
-
- [AdapterType]
- S3
-
- [ChipSet]
- S3DXP
-
- [ModeInfo]
- ModeAttributes = 0x18
- BytesPerScanLine = 100
- XResolution = 800
- YResolution = 600
- TextRows = 37
- BitsPerPixel = 8
- NumberOfPlanes = 1
- PageLength = 614400
- SaveSize = 614400
- TotalMemory = 1048576
- InterlaceMode = 1
- BufferAddress = 0x0a0000
-
- [TrapRegs]
- 0x3c2;
- 0x3c4, 0x00-0x04;
- 0x3c5;
- 0x3d4, 0x00-0x18, 0x50-0x5a, 0x5c-0x5e, 0x60-0x62, 0x31-0x35, 0x3a-0x3c, 0x40-0x40, 0x43-0x43, 0x45-0x49, 0x4c-0x4f, 0x42-0x42, 0x67-0x67;
- 0x3d5;
- 0x3c0, 0x00-0x14;
- 0x3c1;
- 0x3ce, 0x00-0x08;
- 0x3cf;
- 0x4ae8;
- 0xbee8;
- 0x96e8;
- 0x86e8;
- 0x82e8;
-
- [SetMode]
-
- /*
- * Set Enhanced Command Registers
- */
-
- outw(0x4ae8, 0x0007);
- outw(0xbee8, 0x1000);
- outw(0xbee8, 0x33ff);
- outw(0xbee8, 0x2000);
- outw(0xbee8, 0x43ff);
- outw(0xbee8, 0xa000);
- outw(0xbee8, 0x03ff);
- outw(0x96e8, 0x03ff);
- outw(0x86e8, 0x0000);
- outw(0x82e8, 0x0000);
- [comment]
- Graphics Mode: 800 x 600 x 64K colors.
-
- [AdapterType]
- S3
-
- [ChipSet]
- S3DXP
-
- [ModeInfo]
- ModeAttributes = 0x18
- BytesPerScanLine = 100
- XResolution = 800
- YResolution = 600
- TextRows = 37
- BitsPerPixel = 16
- NumberOfPlanes = 1
- PageLength = 960000
- SaveSize = 960000
- TotalMemory = 1048576
- InterlaceMode = 1
- BufferAddress = 0x0a0000
-
- [TrapRegs]
- 0x3c2;
- 0x3c4, 0x00-0x04;
- 0x3c5;
- 0x3d4, 0x00-0x18, 0x50-0x5a, 0x5c-0x5e, 0x60-0x62, 0x31-0x35, 0x3a-0x3c, 0x40-0x40, 0x43-0x43, 0x45-0x49, 0x4c-0x4f, 0x42-0x42, 0x67-0x67;
- 0x3d5;
- 0x3c0, 0x00-0x14;
- 0x3c1;
- 0x3ce, 0x00-0x08;
- 0x3cf;
- 0x4ae8;
- 0xbee8;
- 0x96e8;
- 0x86e8;
- 0x82e8;
-
- [SetMode]
-
- /*
- * Set Enhanced Command Registers
- */
-
- outw(0x4ae8, 0x0003);
- outw(0xbee8, 0x1000);
- outw(0xbee8, 0x33ff);
- outw(0xbee8, 0x2000);
- outw(0xbee8, 0x43ff);
- outw(0xbee8, 0xa000);
- outw(0xbee8, 0x03ff);
- outw(0x96e8, 0x03ff);
- outw(0x86e8, 0x0000);
- outw(0x82e8, 0x0000);
- [comment]
- Graphics Mode: 1024 x 768 x 256 colors.
-
- [AdapterType]
- S3
-
- [ChipSet]
- S3DXP
-
- [ModeInfo]
- ModeAttributes = 0x18
- BytesPerScanLine = 128
- XResolution = 1024
- YResolution = 768
- TextRows = 48
- BitsPerPixel = 8
- NumberOfPlanes = 1
- PageLength = 786432
- SaveSize = 786432
- TotalMemory = 1048576
- InterlaceMode = 1
- BufferAddress = 0x0a0000
-
- [TrapRegs]
- 0x3c2;
- 0x3c4, 0x00-0x04;
- 0x3c5;
- 0x3d4, 0x00-0x18, 0x50-0x5a, 0x5c-0x5e, 0x60-0x62, 0x31-0x35, 0x3a-0x3c, 0x40-0x40, 0x43-0x43, 0x45-0x49, 0x4c-0x4f, 0x42-0x42, 0x67-0x67;
- 0x3d5;
- 0x3c0, 0x00-0x14;
- 0x3c1;
- 0x3ce, 0x00-0x08;
- 0x3cf;
- 0x4ae8;
- 0xbee8;
- 0x96e8;
- 0x86e8;
- 0x82e8;
-
- [SetMode]
-
- /*
- * Set Enhanced Command Registers
- */
-
- outw(0x4ae8, 0x0007);
- outw(0xbee8, 0x1000);
- outw(0xbee8, 0x33ff);
- outw(0xbee8, 0x2000);
- outw(0xbee8, 0x43ff);
- outw(0xbee8, 0xa000);
- outw(0xbee8, 0x03ff);
- outw(0x96e8, 0x03ff);
- outw(0x86e8, 0x0000);
- outw(0x82e8, 0x0000);
- [comment]
- Graphics Mode: 1152 x 870 x 256 colors.
-
- [AdapterType]
- S3
-
- [ChipSet]
- S3DXP
-
- [ModeInfo]
- ModeAttributes = 0x18
- BytesPerScanLine = 144
- XResolution = 1152
- YResolution = 870
- TextRows = 54
- BitsPerPixel = 8
- NumberOfPlanes = 1
- PageLength = 1002240
- SaveSize = 1002240
- TotalMemory = 1048576
- InterlaceMode = 1
- BufferAddress = 0x0a0000
-
- [TrapRegs]
- 0x3c2;
- 0x3c4, 0x00-0x04;
- 0x3c5;
- 0x3d4, 0x00-0x18, 0x50-0x5a, 0x5c-0x5e, 0x60-0x62, 0x31-0x35, 0x3a-0x3c, 0x40-0x40, 0x43-0x43, 0x45-0x49, 0x4c-0x4f, 0x42-0x42, 0x67-0x67;
- 0x3d5;
- 0x3c0, 0x00-0x14;
- 0x3c1;
- 0x3ce, 0x00-0x08;
- 0x3cf;
- 0x4ae8;
- 0xbee8;
- 0x96e8;
- 0x86e8;
- 0x82e8;
-
- [SetMode]
-
- /*
- * Set Enhanced Command Registers
- */
-
- outw(0x4ae8, 0x0007);
- outw(0xbee8, 0x1000);
- outw(0xbee8, 0x33ff);
- outw(0xbee8, 0x2000);
- outw(0xbee8, 0x43ff);
- outw(0xbee8, 0xa000);
- outw(0xbee8, 0x03ff);
- outw(0x96e8, 0x03ff);
- outw(0x86e8, 0x0000);
- outw(0x82e8, 0x0000);
- [comment]
- Text Mode: 40 cols, 25 rows.
-
- [AdapterType]
- S3
-
- [ChipSet]
- S3DXP
-
- [ModeInfo]
- ModeAttributes = 0x08
- BytesPerScanLine = 40
- XResolution = 360
- YResolution = 400
- XCharSize = 9
- YCharSize = 16
- TextRows = 25
- BitsPerPixel = 4
- NumberOfPlanes = 1
- PageLength = 4000
- SaveSize = 4000
- TotalMemory = 1048576
- InterlaceMode = 1
- BufferAddress = 0x0b8000
-
- [TrapRegs]
- 0x3c2;
- 0x3c4, 0x00-0x04;
- 0x3c5;
- 0x3d4, 0x00-0x18, 0x50-0x5a, 0x5c-0x5e, 0x60-0x62, 0x31-0x35, 0x3a-0x3c, 0x40-0x40, 0x43-0x43, 0x45-0x49, 0x4c-0x4f, 0x42-0x42, 0x67-0x67;
- 0x3d5;
- 0x3c0, 0x00-0x14;
- 0x3c1;
- 0x3ce, 0x00-0x08;
- 0x3cf;
- 0x4ae8;
-
- [SetMode]
-
- /*
- * Set Enhanced Command Registers
- */
-
- outw(0x4ae8, 0x0000);
- rmwb(0x3d4, 0x3d5, 0x40, 0xfe, 0x00);
- [comment]
- Text Mode: 80 cols, 25 rows.
-
- [AdapterType]
- S3
-
- [ChipSet]
- S3DXP
-
- [ModeInfo]
- ModeAttributes = 0x08
- BytesPerScanLine = 80
- XResolution = 720
- YResolution = 400
- XCharSize = 9
- YCharSize = 16
- TextRows = 25
- BitsPerPixel = 4
- NumberOfPlanes = 1
- PageLength = 4000
- SaveSize = 4000
- TotalMemory = 1048576
- InterlaceMode = 1
- BufferAddress = 0x0b8000
-
- [TrapRegs]
- 0x3c2;
- 0x3c4, 0x00-0x04, 0x09-0x18;
- 0x3c5;
- 0x3d4, 0x00-0x18, 0x50-0x5a, 0x5c-0x5e, 0x60-0x62, 0x31-0x35, 0x3a-0x3c, 0x40-0x40, 0x43-0x43, 0x45-0x49, 0x4c-0x4f, 0x42-0x42, 0x67-0x67;
- 0x3d5;
- 0x3c0, 0x00-0x14;
- 0x3c1;
- 0x3ce, 0x00-0x08;
- 0x3cf;
- 0x4ae8;
-
- [SetMode]
-
- /*
- * Set Enhanced Command Registers
- */
-
- outw(0x4ae8, 0x0000);
- rmwb(0x3d4, 0x3d5, 0x40, 0xfe, 0x00);
- [comment]
- Text Mode: 132 cols, 25 rows.
-
- [AdapterType]
- S3
-
- [ChipSet]
- S3DXP
-
- [ModeInfo]
- ModeAttributes = 0x08
- BytesPerScanLine = 132
- XResolution = 1056
- YResolution = 400
- XCharSize = 8
- YCharSize = 16
- TextRows = 25
- BitsPerPixel = 4
- NumberOfPlanes = 1
- PageLength = 6600
- SaveSize = 6600
- TotalMemory = 1048576
- InterlaceMode = 1
- BufferAddress = 0x0b8000
-
- [TrapRegs]
- 0x3c2;
- 0x4ae8;
- 0x3c4, 0x00-0x04;
- 0x3c5;
- 0x3d4, 0x00-0x18, 0x50-0x5a, 0x5c-0x5e, 0x60-0x62, 0x31-0x35, 0x3a-0x3c, 0x40-0x40, 0x43-0x43, 0x45-0x49, 0x4c-0x4f, 0x42-0x42, 0x67-0x67;
- 0x3d5;
- 0x3c0, 0x00-0x14;
- 0x3c1;
- 0x3ce, 0x00-0x08;
- 0x3cf;
-
- [SetMode]
-
- /*
- * Set Enhanced Command Registers
- */
-
- outw(0x4ae8, 0x0000);
- rmwb(0x3d4, 0x3d5, 0x40, 0xfe, 0x00);
- [comment]
- Text Mode: 132 cols, 43 rows.
-
- [AdapterType]
- S3
-
- [ChipSet]
- S3DXP
-
- [ModeInfo]
- ModeAttributes = 0x08
- BytesPerScanLine = 132
- XResolution = 1056
- YResolution = 400
- XCharSize = 8
- YCharSize = 16
- TextRows = 43
- BitsPerPixel = 4
- NumberOfPlanes = 1
- PageLength = 11616
- SaveSize = 11616
- TotalMemory = 1048576
- InterlaceMode = 1
- BufferAddress = 0x0b8000
-
- [TrapRegs]
- 0x3c2;
- 0x4ae8;
- 0x3c4, 0x00-0x04;
- 0x3c5;
- 0x3d4, 0x00-0x18, 0x50-0x5a, 0x5c-0x5e, 0x60-0x62, 0x31-0x35, 0x3a-0x3c, 0x40-0x40, 0x43-0x43, 0x45-0x49, 0x4c-0x4f, 0x42-0x42, 0x67-0x67;
- 0x3d5;
- 0x3c0, 0x00-0x14;
- 0x3c1;
- 0x3ce, 0x00-0x08;
- 0x3cf;
-
- [SetMode]
-
- /*
- * Set Enhanced Command Registers
- */
-
- outw(0x4ae8, 0x0000);
- rmwb(0x3d4, 0x3d5, 0x40, 0xfe, 0x00);
-