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