1 /* SPDX-License-Identifier: GPL-2.0 */
5 #include <linux/fb.h> /* for struct fb_var_screeninfo for sis.h */
6 #include "../../video/fbdev/sis/vgatypes.h"
7 #include "../../video/fbdev/sis/sis.h" /* for LCD_TYPE */
9 enum XGI_VB_CHIP_TYPE {
19 VB_CHIP_UNKNOWN, /* other video bridge or no video bridge */
23 struct xgi_hw_device_info {
24 unsigned long ulExternalChip; /* NO VB or other video bridge*/
25 /* if ujVBChipID = VB_CHIP_UNKNOWN, */
27 void __iomem *pjVideoMemoryAddress;/* base virtual memory address */
28 /* of Linear VGA memory */
30 unsigned long ulVideoMemorySize; /* size, in bytes, of the
34 unsigned char jChipType; /* Used to Identify Graphics Chip */
35 /* defined in the data structure type */
38 unsigned char jChipRevision; /* Used to Identify Graphics
42 unsigned char ujVBChipID; /* the ID of video bridge */
43 /* defined in the data structure type */
44 /* "XGI_VB_CHIP_TYPE" */
46 unsigned long ulCRT2LCDType; /* defined in the data structure type */
49 /* Additional IOCTL for communication xgifb <> X driver */
50 /* If changing this, xgifb.h must also be changed (for xgifb) */