]>
Commit | Line | Data |
---|---|---|
b2441318 | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
d7636e0b | 2 | #ifndef _VGATYPES_ |
3 | #define _VGATYPES_ | |
4 | ||
b33704df | 5 | #include <linux/fb.h> /* for struct fb_var_screeninfo for sis.h */ |
f7018c21 TV |
6 | #include "../../video/fbdev/sis/vgatypes.h" |
7 | #include "../../video/fbdev/sis/sis.h" /* for LCD_TYPE */ | |
d7636e0b | 8 | |
621a683f | 9 | enum XGI_VB_CHIP_TYPE { |
eae5f024 KT |
10 | VB_CHIP_Legacy = 0, |
11 | VB_CHIP_301, | |
12 | VB_CHIP_301B, | |
13 | VB_CHIP_301LV, | |
14 | VB_CHIP_302, | |
15 | VB_CHIP_302B, | |
16 | VB_CHIP_302LV, | |
17 | VB_CHIP_301C, | |
18 | VB_CHIP_302ELV, | |
19 | VB_CHIP_UNKNOWN, /* other video bridge or no video bridge */ | |
20 | MAX_VB_CHIP | |
621a683f | 21 | }; |
d7636e0b | 22 | |
eae5f024 KT |
23 | struct xgi_hw_device_info { |
24 | unsigned long ulExternalChip; /* NO VB or other video bridge*/ | |
25 | /* if ujVBChipID = VB_CHIP_UNKNOWN, */ | |
d7636e0b | 26 | |
c44fa627 | 27 | void __iomem *pjVideoMemoryAddress;/* base virtual memory address */ |
eae5f024 | 28 | /* of Linear VGA memory */ |
d7636e0b | 29 | |
eae5f024 | 30 | unsigned long ulVideoMemorySize; /* size, in bytes, of the |
5327acb1 SA |
31 | * memory on the board |
32 | */ | |
d7636e0b | 33 | |
eae5f024 KT |
34 | unsigned char jChipType; /* Used to Identify Graphics Chip */ |
35 | /* defined in the data structure type */ | |
36 | /* "XGI_CHIP_TYPE" */ | |
d7636e0b | 37 | |
eae5f024 | 38 | unsigned char jChipRevision; /* Used to Identify Graphics |
5327acb1 SA |
39 | * Chip Revision |
40 | */ | |
d7636e0b | 41 | |
eae5f024 KT |
42 | unsigned char ujVBChipID; /* the ID of video bridge */ |
43 | /* defined in the data structure type */ | |
44 | /* "XGI_VB_CHIP_TYPE" */ | |
d7636e0b | 45 | |
eae5f024 | 46 | unsigned long ulCRT2LCDType; /* defined in the data structure type */ |
d7636e0b | 47 | }; |
d7636e0b | 48 | |
25985edc | 49 | /* Additional IOCTL for communication xgifb <> X driver */ |
d7636e0b | 50 | /* If changing this, xgifb.h must also be changed (for xgifb) */ |
d7636e0b | 51 | #endif |