Staging: xgifb: Remove typedefs in XGIfb.h

Signed-off-by: Bill Pemberton <wfp5p@virginia.edu>
Cc: Arnaud Patard <apatard@mandriva.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
Bill Pemberton 2010-06-17 13:10:52 -04:00 committed by Greg Kroah-Hartman
parent 80adad85ea
commit 716083c63b
2 changed files with 10 additions and 12 deletions

View File

@ -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;

View File

@ -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 {
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 {
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 {
struct _XGIFB_INFO { unsigned long XGIfb_id;
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 {
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{
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;