8fbf619e349e6ed01088b67a9613162f321eae19
1 /* $XConsortium: mga_bios.h /main/2 1996/10/28 04:48:23 kaleb $ */
5 /* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/mga/mga_bios.h,v 1.3 1998/07/25 16:55:51 dawes Exp $ */
8 * MGABiosInfo - This struct describes the video BIOS info block.
11 * Do not mess with this, unless you know what you are doing.
12 * The data lengths and types are critical.
15 * October 7, 1996 - [aem] Andrew E. Mileski
16 * This struct was shamelessly stolen from the MGA DDK.
17 * It has been reformatted, and the data types changed.
20 /* Length of this structure in bytes */
24 * Unique number identifying the product type
25 * 0 : MGA-S1P20 (2MB base with 175MHz Ramdac)
26 * 1 : MGA-S1P21 (2MB base with 220MHz Ramdac)
29 * 4 : MGA-S1P40 (4MB base with 175MHz Ramdac)
30 * 5 : MGA-S1P41 (4MB base with 220MHz Ramdac)
34 /* Serial number of the board */
38 * Manufacturing date of the board (at product test)
39 * Format: yyyy yyym mmmd dddd
43 /* Identification of manufacturing site */
47 * Number and revision level of the PCB
48 * Format: nnnn nnnn nnnr rrrr
49 * n = PCB number ex:576 (from 0->2047)
50 * r = PCB revision (from 0->31)
54 /* Identification of any PMBs */
58 * Bit 0-7 : Ramdac speed (0=175MHz, 1=220MHz)
59 * Bit 8-15 : Ramdac type (0=TVP3026, 1=TVP3027)
63 /* Maximum PCLK of the ramdac */
66 /* Maximum LDCLK supported by the WRAM memory */
69 /* Maximum MCLK of base board */
72 /* Maximum MCLK of 4Mb board */
75 /* Maximum MCLK of 8Mb board */
78 /* Maximum MCLK of board with multimedia module */
81 /* Diagnostic test pass frequency */
84 /* Default VGA mode1 pixel frequency */
87 /* Default VGA mode2 pixel frequency */
90 /* Date of last BIOS programming/update */
93 /* Number of times BIOS has been programmed */
96 /* Support for up to 32 hardware/software options */
99 /* Support for up to 32 hardware/software features */
102 /* Definition of VGA mode MCLK */
105 /* Indicate the revision level of this header struct */
111 /* from the PINS structure, refer pins info from MGA */
112 typedef struct tagParamMGA
{
114 __u8 StructLen
; /* 2 */
116 __u16 StructRev
; /* 4 */
117 __u16 ProgramDate
; /* 6 */
118 __u16 ProgramCnt
; /* 8 */
119 __u16 ProductID
; /* 10 */
120 __u8 SerNo
[16]; /* 12 */
121 __u8 PLInfo
[6]; /* 28 */
122 __u16 PCBInfo
; /* 34 */
123 __u32 FeatFlag
; /* 36 */
124 __u8 RamdacType
; /* 40 */
125 __u8 RamdacSpeed
; /* 41 */
126 __u8 PclkMax
; /* 42 */
128 __u8 ClkMem
; /* 44 */
129 __u8 Clk4MB
; /* 45 */
130 __u8 Clk8MB
; /* 46 */
131 __u8 ClkMod
; /* 47 */
132 __u8 TestClk
; /* 48 */
133 __u8 VGAFreq1
; /* 49 */
134 __u8 VGAFreq2
; /* 50 */
135 __u8 MCTLWTST
; /* 51 */
136 __u8 VidCtrl
; /* 52 */
137 __u8 Clk12MB
; /* 53 */
138 __u8 Clk16MB
; /* 54 */
139 __u8 Reserved
[8]; /* 55-62 */
140 __u8 PinCheck
; /* 63 */