apatard@mandriva.com | d7636e0 | 2010-05-19 10:44:14 +0200 | [diff] [blame] | 1 | #ifndef _VGATYPES_ |
| 2 | #define _VGATYPES_ |
| 3 | |
Peter Huewe | b33704d | 2012-01-15 19:22:11 +0100 | [diff] [blame] | 4 | #include <linux/fb.h> /* for struct fb_var_screeninfo for sis.h */ |
| 5 | #include "../../video/sis/vgatypes.h" |
| 6 | #include "../../video/sis/sis.h" /* for LCD_TYPE */ |
apatard@mandriva.com | d7636e0 | 2010-05-19 10:44:14 +0200 | [diff] [blame] | 7 | |
apatard@mandriva.com | d7636e0 | 2010-05-19 10:44:14 +0200 | [diff] [blame] | 8 | #ifndef XGI_VB_CHIP_TYPE |
Bill Pemberton | 621a683 | 2010-06-17 13:10:48 -0400 | [diff] [blame] | 9 | enum XGI_VB_CHIP_TYPE { |
Kenji Toyama | eae5f02 | 2011-04-24 13:46:25 +0800 | [diff] [blame] | 10 | VB_CHIP_Legacy = 0, |
| 11 | VB_CHIP_301, |
| 12 | VB_CHIP_301B, |
| 13 | VB_CHIP_301LV, |
| 14 | VB_CHIP_302, |
| 15 | VB_CHIP_302B, |
| 16 | VB_CHIP_302LV, |
| 17 | VB_CHIP_301C, |
| 18 | VB_CHIP_302ELV, |
| 19 | VB_CHIP_UNKNOWN, /* other video bridge or no video bridge */ |
| 20 | MAX_VB_CHIP |
Bill Pemberton | 621a683 | 2010-06-17 13:10:48 -0400 | [diff] [blame] | 21 | }; |
apatard@mandriva.com | d7636e0 | 2010-05-19 10:44:14 +0200 | [diff] [blame] | 22 | #endif |
| 23 | |
Kenji Toyama | eae5f02 | 2011-04-24 13:46:25 +0800 | [diff] [blame] | 24 | struct xgi_hw_device_info { |
| 25 | unsigned long ulExternalChip; /* NO VB or other video bridge*/ |
| 26 | /* if ujVBChipID = VB_CHIP_UNKNOWN, */ |
apatard@mandriva.com | d7636e0 | 2010-05-19 10:44:14 +0200 | [diff] [blame] | 27 | |
Aaro Koskinen | c44fa62 | 2011-09-13 22:49:33 +0300 | [diff] [blame] | 28 | void __iomem *pjVideoMemoryAddress;/* base virtual memory address */ |
Kenji Toyama | eae5f02 | 2011-04-24 13:46:25 +0800 | [diff] [blame] | 29 | /* of Linear VGA memory */ |
apatard@mandriva.com | d7636e0 | 2010-05-19 10:44:14 +0200 | [diff] [blame] | 30 | |
Kenji Toyama | eae5f02 | 2011-04-24 13:46:25 +0800 | [diff] [blame] | 31 | unsigned long ulVideoMemorySize; /* size, in bytes, of the |
| 32 | memory on the board */ |
apatard@mandriva.com | d7636e0 | 2010-05-19 10:44:14 +0200 | [diff] [blame] | 33 | |
Kenji Toyama | eae5f02 | 2011-04-24 13:46:25 +0800 | [diff] [blame] | 34 | unsigned char jChipType; /* Used to Identify Graphics Chip */ |
| 35 | /* defined in the data structure type */ |
| 36 | /* "XGI_CHIP_TYPE" */ |
apatard@mandriva.com | d7636e0 | 2010-05-19 10:44:14 +0200 | [diff] [blame] | 37 | |
Kenji Toyama | eae5f02 | 2011-04-24 13:46:25 +0800 | [diff] [blame] | 38 | unsigned char jChipRevision; /* Used to Identify Graphics |
| 39 | Chip Revision */ |
apatard@mandriva.com | d7636e0 | 2010-05-19 10:44:14 +0200 | [diff] [blame] | 40 | |
Kenji Toyama | eae5f02 | 2011-04-24 13:46:25 +0800 | [diff] [blame] | 41 | unsigned char ujVBChipID; /* the ID of video bridge */ |
| 42 | /* defined in the data structure type */ |
| 43 | /* "XGI_VB_CHIP_TYPE" */ |
apatard@mandriva.com | d7636e0 | 2010-05-19 10:44:14 +0200 | [diff] [blame] | 44 | |
Kenji Toyama | eae5f02 | 2011-04-24 13:46:25 +0800 | [diff] [blame] | 45 | unsigned long ulCRT2LCDType; /* defined in the data structure type */ |
apatard@mandriva.com | d7636e0 | 2010-05-19 10:44:14 +0200 | [diff] [blame] | 46 | }; |
apatard@mandriva.com | d7636e0 | 2010-05-19 10:44:14 +0200 | [diff] [blame] | 47 | |
Lucas De Marchi | 25985ed | 2011-03-30 22:57:33 -0300 | [diff] [blame] | 48 | /* Additional IOCTL for communication xgifb <> X driver */ |
apatard@mandriva.com | d7636e0 | 2010-05-19 10:44:14 +0200 | [diff] [blame] | 49 | /* If changing this, xgifb.h must also be changed (for xgifb) */ |
apatard@mandriva.com | d7636e0 | 2010-05-19 10:44:14 +0200 | [diff] [blame] | 50 | #endif |
| 51 | |