1 /* SPDX-License-Identifier: GPL-2.0 */
7 enum xgifb_display_type
{
14 #define HASVB_NONE 0x00
15 #define HASVB_301 0x01
16 #define HASVB_LVDS 0x02
17 #define HASVB_TRUMPION 0x04
18 #define HASVB_LVDS_CHRONTEL 0x10
19 #define HASVB_302 0x20
20 #define HASVB_CHRONTEL 0x80
44 TVPLUG_COMPOSITE_AND_SVIDEO
= 3,
46 TVPLUG_YPBPR_525i
= 5,
47 TVPLUG_YPBPR_525P
= 6,
48 TVPLUG_YPBPR_750P
= 7,
49 TVPLUG_YPBPR_1080i
= 8,
53 struct xgifb_video_info
{
54 struct fb_info
*fb_info
;
55 struct xgi_hw_device_info hw_info
;
56 struct vb_device_info dev_info
;
61 u32 pseudo_palette
[17];
64 unsigned int video_size
;
65 phys_addr_t video_base
;
66 void __iomem
*video_vbase
;
67 phys_addr_t mmio_base
;
68 unsigned long mmio_size
;
69 void __iomem
*mmio_vbase
;
70 unsigned long vga_base
;
82 unsigned int refresh_rate
;
84 enum xgifb_display_type display2
; /* the second display output type */
87 unsigned char TV_type
;
88 unsigned char TV_plug
;
90 struct XGI21_LVDSCapStruct lvds_data
;
92 enum XGI_CHIP_TYPE chip
;
93 unsigned char revision_id
;
95 unsigned short DstColor
;
96 unsigned long XGI310_AccelDepth
;
97 unsigned long CommandReg
;
100 unsigned int pcislot
;
101 unsigned int pcifunc
;
103 unsigned short subsysvendor
;
104 unsigned short subsysdevice
;