Commit 716083c6 authored by Bill Pemberton's avatar Bill Pemberton Committed by Greg Kroah-Hartman

Staging: xgifb: Remove typedefs in XGIfb.h

Signed-off-by: default avatarBill Pemberton <wfp5p@virginia.edu>
Cc: Arnaud Patard <apatard@mandriva.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 80adad85
...@@ -1615,7 +1615,7 @@ static int XGIfb_ioctl(struct fb_info *info, unsigned int cmd, ...@@ -1615,7 +1615,7 @@ static int XGIfb_ioctl(struct fb_info *info, unsigned int cmd,
break; break;
case XGIFB_GET_INFO: /* TW: New for communication with X driver */ case XGIFB_GET_INFO: /* TW: New for communication with X driver */
{ {
XGIfb_info *x = (XGIfb_info *)arg; struct XGIfb_info *x = (struct XGIfb_info *)arg;
//x->XGIfb_id = XGIFB_ID; //x->XGIfb_id = XGIFB_ID;
x->XGIfb_version = VER_MAJOR; x->XGIfb_version = VER_MAJOR;
......
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
#define XGIFB_ID 0x53495346 /* Identify myself with 'XGIF' */ #define XGIFB_ID 0x53495346 /* Identify myself with 'XGIF' */
#endif #endif
typedef enum _XGI_CHIP_TYPE { enum XGI_CHIP_TYPE {
XGI_VGALegacy = 0, XGI_VGALegacy = 0,
XGI_300, XGI_300,
XGI_630, XGI_630,
...@@ -53,9 +53,9 @@ typedef enum _XGI_CHIP_TYPE { ...@@ -53,9 +53,9 @@ typedef enum _XGI_CHIP_TYPE {
XG21, XG21,
XG27, XG27,
MAX_XGI_CHIP MAX_XGI_CHIP
} XGI_CHIP_TYPE; };
typedef enum _TVTYPE { enum xgi_tvtype {
TVMODE_NTSC = 0, TVMODE_NTSC = 0,
TVMODE_PAL, TVMODE_PAL,
TVMODE_HIVISION, TVMODE_HIVISION,
...@@ -63,13 +63,11 @@ typedef enum _TVTYPE { ...@@ -63,13 +63,11 @@ typedef enum _TVTYPE {
TVTYPE_PALN, // vicki@030226 TVTYPE_PALN, // vicki@030226
TVTYPE_NTSCJ, // vicki@030226 TVTYPE_NTSCJ, // vicki@030226
TVMODE_TOTAL TVMODE_TOTAL
} XGI_TV_TYPE; };
typedef struct _XGIFB_INFO XGIfb_info;
struct _XGIFB_INFO {
unsigned long XGIfb_id; struct XGIfb_info {
unsigned long XGIfb_id;
int chip_id; /* PCI ID of detected chip */ int chip_id; /* PCI ID of detected chip */
int memory; /* video memory in KB which XGIfb manages */ int memory; /* video memory in KB which XGIfb manages */
int heapstart; /* heap start (= XGIfb "mem" argument) in KB */ int heapstart; /* heap start (= XGIfb "mem" argument) in KB */
...@@ -132,9 +130,9 @@ struct ap_data { ...@@ -132,9 +130,9 @@ struct ap_data {
unsigned long iobase; unsigned long iobase;
unsigned int mem_size; unsigned int mem_size;
unsigned long disp_state; unsigned long disp_state;
XGI_CHIP_TYPE chip; enum XGI_CHIP_TYPE chip;
unsigned char hasVB; unsigned char hasVB;
XGI_TV_TYPE TV_type; enum xgi_tvtype TV_type;
XGI_TV_PLUG TV_plug; XGI_TV_PLUG TV_plug;
unsigned long version; unsigned long version;
char reserved[256]; char reserved[256];
...@@ -184,7 +182,7 @@ struct video_info{ ...@@ -184,7 +182,7 @@ struct video_info{
unsigned char TV_type; unsigned char TV_type;
unsigned char TV_plug; unsigned char TV_plug;
XGI_CHIP_TYPE chip; enum XGI_CHIP_TYPE chip;
unsigned char revision_id; unsigned char revision_id;
unsigned short DstColor; unsigned short DstColor;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment