]> Pileus Git - ~andy/linux/blob - drivers/staging/xgifb/vgatypes.h
Merge tag 'parisc-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/parisc-2.6
[~andy/linux] / drivers / staging / xgifb / vgatypes.h
1 #ifndef _VGATYPES_
2 #define _VGATYPES_
3
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 */
8
9 #ifndef XGI_VB_CHIP_TYPE
10 enum XGI_VB_CHIP_TYPE {
11         VB_CHIP_Legacy = 0,
12         VB_CHIP_301,
13         VB_CHIP_301B,
14         VB_CHIP_301LV,
15         VB_CHIP_302,
16         VB_CHIP_302B,
17         VB_CHIP_302LV,
18         VB_CHIP_301C,
19         VB_CHIP_302ELV,
20         VB_CHIP_UNKNOWN, /* other video bridge or no video bridge */
21         MAX_VB_CHIP
22 };
23 #endif
24
25
26 #define XGI_LCD_TYPE
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 */
31 #ifndef XGI_LCD_TYPE
32 enum XGI_LCD_TYPE {
33         LCD_INVALID = 0,
34         LCD_320x480,       /* FSTN, DSTN */
35         LCD_640x480,
36         LCD_640x480_2,     /* FSTN, DSTN */
37         LCD_640x480_3,     /* FSTN, DSTN */
38         LCD_800x600,
39         LCD_848x480,
40         LCD_1024x600,
41         LCD_1024x768,
42         LCD_1152x768,
43         LCD_1152x864,
44         LCD_1280x720,
45         LCD_1280x768,
46         LCD_1280x800,
47         LCD_1280x960,
48         LCD_1280x1024,
49         LCD_1400x1050,
50         LCD_1600x1200,
51         LCD_1680x1050,
52         LCD_1920x1440,
53         LCD_2048x1536,
54         LCD_CUSTOM,
55         LCD_UNKNOWN
56 };
57 #endif
58
59 struct xgi_hw_device_info {
60         unsigned long ulExternalChip; /* NO VB or other video bridge*/
61                                       /* if ujVBChipID = VB_CHIP_UNKNOWN, */
62
63         void __iomem *pjVideoMemoryAddress;/* base virtual memory address */
64                                             /* of Linear VGA memory */
65
66         unsigned long ulVideoMemorySize; /* size, in bytes, of the
67                                             memory on the board */
68
69         unsigned char *pjIOAddress; /* base I/O address of VGA ports (0x3B0) */
70
71         unsigned char jChipType; /* Used to Identify Graphics Chip */
72                                  /* defined in the data structure type  */
73                                  /* "XGI_CHIP_TYPE" */
74
75         unsigned char jChipRevision; /* Used to Identify Graphics
76                                         Chip Revision */
77
78         unsigned char ujVBChipID; /* the ID of video bridge */
79                                   /* defined in the data structure type */
80                                   /* "XGI_VB_CHIP_TYPE" */
81
82         unsigned long ulCRT2LCDType; /* defined in the data structure type */
83 };
84
85 /* Additional IOCTL for communication xgifb <> X driver        */
86 /* If changing this, xgifb.h must also be changed (for xgifb) */
87 #endif
88