2010-05-19 08:44:14 +00:00
|
|
|
#ifndef _VGATYPES_
|
|
|
|
#define _VGATYPES_
|
|
|
|
|
2012-01-15 18:22:11 +00:00
|
|
|
#include <linux/fb.h> /* for struct fb_var_screeninfo for sis.h */
|
2014-02-13 13:31:38 +00:00
|
|
|
#include "../../video/fbdev/sis/vgatypes.h"
|
|
|
|
#include "../../video/fbdev/sis/sis.h" /* for LCD_TYPE */
|
2010-05-19 08:44:14 +00:00
|
|
|
|
2010-06-17 17:10:48 +00:00
|
|
|
enum XGI_VB_CHIP_TYPE {
|
2011-04-24 05:46:25 +00:00
|
|
|
VB_CHIP_Legacy = 0,
|
|
|
|
VB_CHIP_301,
|
|
|
|
VB_CHIP_301B,
|
|
|
|
VB_CHIP_301LV,
|
|
|
|
VB_CHIP_302,
|
|
|
|
VB_CHIP_302B,
|
|
|
|
VB_CHIP_302LV,
|
|
|
|
VB_CHIP_301C,
|
|
|
|
VB_CHIP_302ELV,
|
|
|
|
VB_CHIP_UNKNOWN, /* other video bridge or no video bridge */
|
|
|
|
MAX_VB_CHIP
|
2010-06-17 17:10:48 +00:00
|
|
|
};
|
2010-05-19 08:44:14 +00:00
|
|
|
|
2011-04-24 05:46:25 +00:00
|
|
|
struct xgi_hw_device_info {
|
|
|
|
unsigned long ulExternalChip; /* NO VB or other video bridge*/
|
|
|
|
/* if ujVBChipID = VB_CHIP_UNKNOWN, */
|
2010-05-19 08:44:14 +00:00
|
|
|
|
2011-09-13 19:49:33 +00:00
|
|
|
void __iomem *pjVideoMemoryAddress;/* base virtual memory address */
|
2011-04-24 05:46:25 +00:00
|
|
|
/* of Linear VGA memory */
|
2010-05-19 08:44:14 +00:00
|
|
|
|
2011-04-24 05:46:25 +00:00
|
|
|
unsigned long ulVideoMemorySize; /* size, in bytes, of the
|
2016-02-03 02:27:49 +00:00
|
|
|
* memory on the board
|
|
|
|
*/
|
2010-05-19 08:44:14 +00:00
|
|
|
|
2011-04-24 05:46:25 +00:00
|
|
|
unsigned char jChipType; /* Used to Identify Graphics Chip */
|
|
|
|
/* defined in the data structure type */
|
|
|
|
/* "XGI_CHIP_TYPE" */
|
2010-05-19 08:44:14 +00:00
|
|
|
|
2011-04-24 05:46:25 +00:00
|
|
|
unsigned char jChipRevision; /* Used to Identify Graphics
|
2016-02-03 02:27:49 +00:00
|
|
|
* Chip Revision
|
|
|
|
*/
|
2010-05-19 08:44:14 +00:00
|
|
|
|
2011-04-24 05:46:25 +00:00
|
|
|
unsigned char ujVBChipID; /* the ID of video bridge */
|
|
|
|
/* defined in the data structure type */
|
|
|
|
/* "XGI_VB_CHIP_TYPE" */
|
2010-05-19 08:44:14 +00:00
|
|
|
|
2011-04-24 05:46:25 +00:00
|
|
|
unsigned long ulCRT2LCDType; /* defined in the data structure type */
|
2010-05-19 08:44:14 +00:00
|
|
|
};
|
|
|
|
|
2011-03-31 01:57:33 +00:00
|
|
|
/* Additional IOCTL for communication xgifb <> X driver */
|
2010-05-19 08:44:14 +00:00
|
|
|
/* If changing this, xgifb.h must also be changed (for xgifb) */
|
|
|
|
#endif
|