Commit | Line | Data |
---|---|---|
d7636e0b | 1 | |
2 | #ifndef _VGATYPES_ | |
3 | #define _VGATYPES_ | |
4 | ||
d7636e0b | 5 | #include <linux/ioctl.h> |
d7636e0b | 6 | |
d7636e0b | 7 | #ifndef XGI_VB_CHIP_TYPE |
621a683f | 8 | enum XGI_VB_CHIP_TYPE { |
d7636e0b | 9 | VB_CHIP_Legacy = 0, |
10 | VB_CHIP_301, | |
11 | VB_CHIP_301B, | |
12 | VB_CHIP_301LV, | |
13 | VB_CHIP_302, | |
14 | VB_CHIP_302B, | |
15 | VB_CHIP_302LV, | |
16 | VB_CHIP_301C, | |
17 | VB_CHIP_302ELV, | |
18 | VB_CHIP_UNKNOWN, /* other video bridge or no video bridge */ | |
19 | MAX_VB_CHIP | |
621a683f | 20 | }; |
d7636e0b | 21 | #endif |
22 | ||
23 | #ifndef XGI_LCD_TYPE | |
621a683f | 24 | enum XGI_LCD_TYPE { |
d7636e0b | 25 | LCD_INVALID = 0, |
26 | LCD_320x480, /* FSTN, DSTN */ | |
27 | LCD_640x480, | |
28 | LCD_640x480_2, /* FSTN, DSTN */ | |
29 | LCD_640x480_3, /* FSTN, DSTN */ | |
30 | LCD_800x600, | |
31 | LCD_848x480, | |
32 | LCD_1024x600, | |
33 | LCD_1024x768, | |
34 | LCD_1152x768, | |
35 | LCD_1152x864, | |
36 | LCD_1280x720, | |
37 | LCD_1280x768, | |
38 | LCD_1280x800, | |
39 | LCD_1280x960, | |
40 | LCD_1280x1024, | |
41 | LCD_1400x1050, | |
42 | LCD_1600x1200, | |
43 | LCD_1680x1050, | |
44 | LCD_1920x1440, | |
45 | LCD_2048x1536, | |
46 | LCD_CUSTOM, | |
47 | LCD_UNKNOWN | |
621a683f | 48 | }; |
d7636e0b | 49 | #endif |
50 | ||
1d9f9a9b | 51 | struct XGI_DSReg |
d7636e0b | 52 | { |
108afbf8 BP |
53 | unsigned char jIdx; |
54 | unsigned char jVal; | |
1d9f9a9b BP |
55 | }; |
56 | ||
e4147abe | 57 | struct xgi_hw_device_info |
d7636e0b | 58 | { |
82d6eb5b | 59 | unsigned long ulExternalChip; /* NO VB or other video bridge*/ |
d7636e0b | 60 | /* if ujVBChipID = VB_CHIP_UNKNOWN, */ |
d7636e0b | 61 | |
274afb73 | 62 | unsigned char *pjVirtualRomBase; /* ROM image */ |
d7636e0b | 63 | |
274afb73 | 64 | unsigned char *pjVideoMemoryAddress;/* base virtual memory address */ |
d7636e0b | 65 | /* of Linear VGA memory */ |
66 | ||
82d6eb5b | 67 | unsigned long ulVideoMemorySize; /* size, in bytes, of the memory on the board */ |
d7636e0b | 68 | |
274afb73 | 69 | unsigned char *pjIOAddress; /* base I/O address of VGA ports (0x3B0) */ |
d7636e0b | 70 | |
108afbf8 | 71 | unsigned char jChipType; /* Used to Identify Graphics Chip */ |
d7636e0b | 72 | /* defined in the data structure type */ |
73 | /* "XGI_CHIP_TYPE" */ | |
74 | ||
108afbf8 | 75 | unsigned char jChipRevision; /* Used to Identify Graphics Chip Revision */ |
d7636e0b | 76 | |
108afbf8 | 77 | unsigned char ujVBChipID; /* the ID of video bridge */ |
d7636e0b | 78 | /* defined in the data structure type */ |
79 | /* "XGI_VB_CHIP_TYPE" */ | |
80 | ||
82d6eb5b | 81 | unsigned long ulCRT2LCDType; /* defined in the data structure type */ |
d7636e0b | 82 | |
e4147abe BP |
83 | unsigned char(*pQueryVGAConfigSpace)(struct xgi_hw_device_info *, |
84 | unsigned long, unsigned long, | |
85 | unsigned long *); | |
d7636e0b | 86 | }; |
d7636e0b | 87 | |
25985edc | 88 | /* Additional IOCTL for communication xgifb <> X driver */ |
d7636e0b | 89 | /* If changing this, xgifb.h must also be changed (for xgifb) */ |
90 | ||
d7636e0b | 91 | |
92 | #endif | |
93 |