Commit | Line | Data |
---|---|---|
d7636e0b | 1 | #ifndef _VGATYPES_ |
2 | #define _VGATYPES_ | |
3 | ||
b33704df | 4 | #include <linux/fb.h> /* for struct fb_var_screeninfo for sis.h */ |
f7018c21 TV |
5 | #include "../../video/fbdev/sis/vgatypes.h" |
6 | #include "../../video/fbdev/sis/sis.h" /* for LCD_TYPE */ | |
d7636e0b | 7 | |
621a683f | 8 | enum XGI_VB_CHIP_TYPE { |
eae5f024 KT |
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 | |
eae5f024 KT |
22 | struct xgi_hw_device_info { |
23 | unsigned long ulExternalChip; /* NO VB or other video bridge*/ | |
24 | /* if ujVBChipID = VB_CHIP_UNKNOWN, */ | |
d7636e0b | 25 | |
c44fa627 | 26 | void __iomem *pjVideoMemoryAddress;/* base virtual memory address */ |
eae5f024 | 27 | /* of Linear VGA memory */ |
d7636e0b | 28 | |
eae5f024 | 29 | unsigned long ulVideoMemorySize; /* size, in bytes, of the |
5327acb1 SA |
30 | * memory on the board |
31 | */ | |
d7636e0b | 32 | |
eae5f024 KT |
33 | unsigned char jChipType; /* Used to Identify Graphics Chip */ |
34 | /* defined in the data structure type */ | |
35 | /* "XGI_CHIP_TYPE" */ | |
d7636e0b | 36 | |
eae5f024 | 37 | unsigned char jChipRevision; /* Used to Identify Graphics |
5327acb1 SA |
38 | * Chip Revision |
39 | */ | |
d7636e0b | 40 | |
eae5f024 KT |
41 | unsigned char ujVBChipID; /* the ID of video bridge */ |
42 | /* defined in the data structure type */ | |
43 | /* "XGI_VB_CHIP_TYPE" */ | |
d7636e0b | 44 | |
eae5f024 | 45 | unsigned long ulCRT2LCDType; /* defined in the data structure type */ |
d7636e0b | 46 | }; |
d7636e0b | 47 | |
25985edc | 48 | /* Additional IOCTL for communication xgifb <> X driver */ |
d7636e0b | 49 | /* If changing this, xgifb.h must also be changed (for xgifb) */ |
d7636e0b | 50 | #endif |