staging: brcm80211: removed unneeded call to brcms_b_tx_fifo_suspended
[zen-stable.git] / drivers / staging / xgifb / XGIfb.h
blobf778293b553e6d7d697c627e4fb06a9048e1c6dd
1 #ifndef _LINUX_XGIFB
2 #define _LINUX_XGIFB
3 #include <linux/ioctl.h>
4 #include <linux/types.h>
6 #define DISPTYPE_CRT1 0x00000008L
7 #define DISPTYPE_CRT2 0x00000004L
8 #define DISPTYPE_LCD 0x00000002L
9 #define DISPTYPE_TV 0x00000001L
10 #define DISPTYPE_DISP2 (DISPTYPE_CRT2 | DISPTYPE_LCD | DISPTYPE_TV)
11 #define DISPMODE_SINGLE 0x00000020L
12 #define DISPMODE_MIRROR 0x00000010L
14 #define HASVB_NONE 0x00
15 #define HASVB_301 0x01
16 #define HASVB_LVDS 0x02
17 #define HASVB_TRUMPION 0x04
18 #define HASVB_LVDS_CHRONTEL 0x10
19 #define HASVB_302 0x20
20 #define HASVB_CHRONTEL 0x80
22 enum XGI_CHIP_TYPE {
23 XG40 = 32,
24 XG41,
25 XG42,
26 XG45,
27 XG20 = 48,
28 XG21,
29 XG27,
32 enum xgi_tvtype {
33 TVMODE_NTSC = 0,
34 TVMODE_PAL,
35 TVMODE_HIVISION,
36 TVTYPE_PALM, /* vicki@030226 */
37 TVTYPE_PALN, /* vicki@030226 */
38 TVTYPE_NTSCJ, /* vicki@030226 */
39 TVMODE_TOTAL
42 enum xgi_tv_plug { /* vicki@030226 */
43 TVPLUG_UNKNOWN = 0,
44 TVPLUG_COMPOSITE = 1,
45 TVPLUG_SVIDEO = 2,
46 TVPLUG_COMPOSITE_AND_SVIDEO = 3,
47 TVPLUG_SCART = 4,
48 TVPLUG_YPBPR_525i = 5,
49 TVPLUG_YPBPR_525P = 6,
50 TVPLUG_YPBPR_750P = 7,
51 TVPLUG_YPBPR_1080i = 8,
52 TVPLUG_TOTAL
55 struct video_info {
56 int chip_id;
57 unsigned int video_size;
58 unsigned long video_base;
59 void __iomem *video_vbase;
60 unsigned long mmio_base;
61 unsigned long mmio_size;
62 void __iomem *mmio_vbase;
63 unsigned long vga_base;
64 unsigned long mtrr;
66 int video_bpp;
67 int video_cmap_len;
68 int video_width;
69 int video_height;
70 int video_vwidth;
71 int video_vheight;
72 int org_x;
73 int org_y;
74 int video_linelength;
75 unsigned int refresh_rate;
77 unsigned long disp_state;
78 unsigned char hasVB;
79 unsigned char TV_type;
80 unsigned char TV_plug;
82 enum XGI_CHIP_TYPE chip;
83 unsigned char revision_id;
85 unsigned short DstColor;
86 unsigned long XGI310_AccelDepth;
87 unsigned long CommandReg;
89 unsigned int pcibus;
90 unsigned int pcislot;
91 unsigned int pcifunc;
93 unsigned short subsysvendor;
94 unsigned short subsysdevice;
96 char reserved[236];
100 extern struct video_info xgi_video_info;
102 #endif