blob: 61fa10fd470f87cb81734e3ed2c0240a0a9af0bb [file] [log] [blame]
apatard@mandriva.comd7636e02010-05-19 10:44:14 +02001#ifndef _VGATYPES_
2#define _VGATYPES_
3
Peter Hueweb33704d2012-01-15 19:22:11 +01004#include <linux/fb.h> /* for struct fb_var_screeninfo for sis.h */
Tomi Valkeinenf7018c22014-02-13 15:31:38 +02005#include "../../video/fbdev/sis/vgatypes.h"
6#include "../../video/fbdev/sis/sis.h" /* for LCD_TYPE */
apatard@mandriva.comd7636e02010-05-19 10:44:14 +02007
Bill Pemberton621a6832010-06-17 13:10:48 -04008enum XGI_VB_CHIP_TYPE {
Kenji Toyamaeae5f022011-04-24 13:46:25 +08009 VB_CHIP_Legacy = 0,
10 VB_CHIP_301,
11 VB_CHIP_301B,
12 VB_CHIP_301LV,
13 VB_CHIP_302,
14 VB_CHIP_302B,
15 VB_CHIP_302LV,
16 VB_CHIP_301C,
17 VB_CHIP_302ELV,
18 VB_CHIP_UNKNOWN, /* other video bridge or no video bridge */
19 MAX_VB_CHIP
Bill Pemberton621a6832010-06-17 13:10:48 -040020};
apatard@mandriva.comd7636e02010-05-19 10:44:14 +020021
Kenji Toyamaeae5f022011-04-24 13:46:25 +080022struct xgi_hw_device_info {
23 unsigned long ulExternalChip; /* NO VB or other video bridge*/
24 /* if ujVBChipID = VB_CHIP_UNKNOWN, */
apatard@mandriva.comd7636e02010-05-19 10:44:14 +020025
Aaro Koskinenc44fa622011-09-13 22:49:33 +030026 void __iomem *pjVideoMemoryAddress;/* base virtual memory address */
Kenji Toyamaeae5f022011-04-24 13:46:25 +080027 /* of Linear VGA memory */
apatard@mandriva.comd7636e02010-05-19 10:44:14 +020028
Kenji Toyamaeae5f022011-04-24 13:46:25 +080029 unsigned long ulVideoMemorySize; /* size, in bytes, of the
30 memory on the board */
apatard@mandriva.comd7636e02010-05-19 10:44:14 +020031
Kenji Toyamaeae5f022011-04-24 13:46:25 +080032 unsigned char jChipType; /* Used to Identify Graphics Chip */
33 /* defined in the data structure type */
34 /* "XGI_CHIP_TYPE" */
apatard@mandriva.comd7636e02010-05-19 10:44:14 +020035
Kenji Toyamaeae5f022011-04-24 13:46:25 +080036 unsigned char jChipRevision; /* Used to Identify Graphics
37 Chip Revision */
apatard@mandriva.comd7636e02010-05-19 10:44:14 +020038
Kenji Toyamaeae5f022011-04-24 13:46:25 +080039 unsigned char ujVBChipID; /* the ID of video bridge */
40 /* defined in the data structure type */
41 /* "XGI_VB_CHIP_TYPE" */
apatard@mandriva.comd7636e02010-05-19 10:44:14 +020042
Kenji Toyamaeae5f022011-04-24 13:46:25 +080043 unsigned long ulCRT2LCDType; /* defined in the data structure type */
apatard@mandriva.comd7636e02010-05-19 10:44:14 +020044};
apatard@mandriva.comd7636e02010-05-19 10:44:14 +020045
Lucas De Marchi25985ed2011-03-30 22:57:33 -030046/* Additional IOCTL for communication xgifb <> X driver */
apatard@mandriva.comd7636e02010-05-19 10:44:14 +020047/* If changing this, xgifb.h must also be changed (for xgifb) */
apatard@mandriva.comd7636e02010-05-19 10:44:14 +020048#endif
49