4 #include <linux/ioctl.h>
5 #include <linux/fb.h> /* for struct fb_var_screeninfo for sis.h */
6 #include "../../video/sis/vgatypes.h"
7 #include "../../video/sis/sis.h" /* for LCD_TYPE */
9 #ifndef XGI_VB_CHIP_TYPE
10 enum XGI_VB_CHIP_TYPE {
20 VB_CHIP_UNKNOWN, /* other video bridge or no video bridge */
27 /* Since the merge with video/sis the LCD_TYPEs are used from
28 drivers/video/sis/sis.h . Nevertheless we keep this (for the moment) for
29 future reference until the code is merged completely and we are sure
30 nothing of this should be added to the sis.h header */
34 LCD_320x480, /* FSTN, DSTN */
36 LCD_640x480_2, /* FSTN, DSTN */
37 LCD_640x480_3, /* FSTN, DSTN */
59 struct xgi_hw_device_info {
60 unsigned long ulExternalChip; /* NO VB or other video bridge*/
61 /* if ujVBChipID = VB_CHIP_UNKNOWN, */
63 void __iomem *pjVideoMemoryAddress;/* base virtual memory address */
64 /* of Linear VGA memory */
66 unsigned long ulVideoMemorySize; /* size, in bytes, of the
67 memory on the board */
69 unsigned char *pjIOAddress; /* base I/O address of VGA ports (0x3B0) */
71 unsigned char jChipType; /* Used to Identify Graphics Chip */
72 /* defined in the data structure type */
75 unsigned char jChipRevision; /* Used to Identify Graphics
78 unsigned char ujVBChipID; /* the ID of video bridge */
79 /* defined in the data structure type */
80 /* "XGI_VB_CHIP_TYPE" */
82 unsigned long ulCRT2LCDType; /* defined in the data structure type */
85 /* Additional IOCTL for communication xgifb <> X driver */
86 /* If changing this, xgifb.h must also be changed (for xgifb) */