diff options
Diffstat (limited to 'drivers/video/mb862xx/mb862xxfb.h')
-rw-r--r-- | drivers/video/mb862xx/mb862xxfb.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/drivers/video/mb862xx/mb862xxfb.h b/drivers/video/mb862xx/mb862xxfb.h index d7e7cb76bbf2..8550630c1e01 100644 --- a/drivers/video/mb862xx/mb862xxfb.h +++ b/drivers/video/mb862xx/mb862xxfb.h | |||
@@ -1,6 +1,26 @@ | |||
1 | #ifndef __MB862XX_H__ | 1 | #ifndef __MB862XX_H__ |
2 | #define __MB862XX_H__ | 2 | #define __MB862XX_H__ |
3 | 3 | ||
4 | struct mb862xx_l1_cfg { | ||
5 | unsigned short sx; | ||
6 | unsigned short sy; | ||
7 | unsigned short sw; | ||
8 | unsigned short sh; | ||
9 | unsigned short dx; | ||
10 | unsigned short dy; | ||
11 | unsigned short dw; | ||
12 | unsigned short dh; | ||
13 | int mirror; | ||
14 | }; | ||
15 | |||
16 | #define MB862XX_BASE 'M' | ||
17 | #define MB862XX_L1_GET_CFG _IOR(MB862XX_BASE, 0, struct mb862xx_l1_cfg*) | ||
18 | #define MB862XX_L1_SET_CFG _IOW(MB862XX_BASE, 1, struct mb862xx_l1_cfg*) | ||
19 | #define MB862XX_L1_ENABLE _IOW(MB862XX_BASE, 2, int) | ||
20 | #define MB862XX_L1_CAP_CTL _IOW(MB862XX_BASE, 3, int) | ||
21 | |||
22 | #ifdef __KERNEL__ | ||
23 | |||
4 | #define PCI_VENDOR_ID_FUJITSU_LIMITED 0x10cf | 24 | #define PCI_VENDOR_ID_FUJITSU_LIMITED 0x10cf |
5 | #define PCI_DEVICE_ID_FUJITSU_CORALP 0x2019 | 25 | #define PCI_DEVICE_ID_FUJITSU_CORALP 0x2019 |
6 | #define PCI_DEVICE_ID_FUJITSU_CORALPA 0x201e | 26 | #define PCI_DEVICE_ID_FUJITSU_CORALPA 0x201e |
@@ -38,6 +58,8 @@ struct mb862xxfb_par { | |||
38 | void __iomem *mmio_base; /* remapped registers */ | 58 | void __iomem *mmio_base; /* remapped registers */ |
39 | size_t mapped_vram; /* length of remapped vram */ | 59 | size_t mapped_vram; /* length of remapped vram */ |
40 | size_t mmio_len; /* length of register region */ | 60 | size_t mmio_len; /* length of register region */ |
61 | unsigned long cap_buf; /* capture buffers offset */ | ||
62 | size_t cap_len; /* length of capture buffers */ | ||
41 | 63 | ||
42 | void __iomem *host; /* relocatable reg. bases */ | 64 | void __iomem *host; /* relocatable reg. bases */ |
43 | void __iomem *i2c; | 65 | void __iomem *i2c; |
@@ -57,11 +79,23 @@ struct mb862xxfb_par { | |||
57 | unsigned int refclk; /* disp. reference clock */ | 79 | unsigned int refclk; /* disp. reference clock */ |
58 | struct mb862xx_gc_mode *gc_mode; /* GDC mode init data */ | 80 | struct mb862xx_gc_mode *gc_mode; /* GDC mode init data */ |
59 | int pre_init; /* don't init display if 1 */ | 81 | int pre_init; /* don't init display if 1 */ |
82 | struct i2c_adapter *adap; /* GDC I2C bus adapter */ | ||
83 | int i2c_rs; | ||
84 | |||
85 | struct mb862xx_l1_cfg l1_cfg; | ||
86 | int l1_stride; | ||
60 | 87 | ||
61 | u32 pseudo_palette[16]; | 88 | u32 pseudo_palette[16]; |
62 | }; | 89 | }; |
63 | 90 | ||
64 | extern void mb862xxfb_init_accel(struct fb_info *info, int xres); | 91 | extern void mb862xxfb_init_accel(struct fb_info *info, int xres); |
92 | #ifdef CONFIG_FB_MB862XX_I2C | ||
93 | extern int mb862xx_i2c_init(struct mb862xxfb_par *par); | ||
94 | extern void mb862xx_i2c_exit(struct mb862xxfb_par *par); | ||
95 | #else | ||
96 | static inline int mb862xx_i2c_init(struct mb862xxfb_par *par) { return 0; } | ||
97 | static inline void mb862xx_i2c_exit(struct mb862xxfb_par *par) { } | ||
98 | #endif | ||
65 | 99 | ||
66 | #if defined(CONFIG_FB_MB862XX_LIME) && defined(CONFIG_FB_MB862XX_PCI_GDC) | 100 | #if defined(CONFIG_FB_MB862XX_LIME) && defined(CONFIG_FB_MB862XX_PCI_GDC) |
67 | #error "Select Lime GDC or CoralP/Carmine support, but not both together" | 101 | #error "Select Lime GDC or CoralP/Carmine support, but not both together" |
@@ -82,4 +116,6 @@ extern void mb862xxfb_init_accel(struct fb_info *info, int xres); | |||
82 | 116 | ||
83 | #define pack(a, b) (((a) << 16) | (b)) | 117 | #define pack(a, b) (((a) << 16) | (b)) |
84 | 118 | ||
119 | #endif /* __KERNEL__ */ | ||
120 | |||
85 | #endif | 121 | #endif |