diff options
author | Antonino A. Daplas <adaplas@gmail.com> | 2005-09-09 16:04:35 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-09-09 16:57:59 -0400 |
commit | 13776711ce4b234b5ad153e55e8b5d6703c6b1ef (patch) | |
tree | 478de15a8709545fab36ca1d60cf7ab09018eacd /drivers/video/savage/savagefb.h | |
parent | 5e518d7672dea4cd7c60871e40d0490c52f01d13 (diff) |
[PATCH] savagefb: Driver updates
- Fallback to firmware EDID if chipset has no DDC/I2C support or if I2C
probing failed
- Add fb_blank hook
- Fix savagefb_suspend/resume to enable driver to successfully suspend and
resume from S3, memory or disk
Signed-off-by: Antonino Daplas <adaplas@pol.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/video/savage/savagefb.h')
-rw-r--r-- | drivers/video/savage/savagefb.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/drivers/video/savage/savagefb.h b/drivers/video/savage/savagefb.h index 8594b1e42d71..d6f94742c9f2 100644 --- a/drivers/video/savage/savagefb.h +++ b/drivers/video/savage/savagefb.h | |||
@@ -60,6 +60,7 @@ | |||
60 | 60 | ||
61 | #define S3_SAVAGE_SERIES(chip) ((chip>=S3_SAVAGE3D) && (chip<=S3_SAVAGE2000)) | 61 | #define S3_SAVAGE_SERIES(chip) ((chip>=S3_SAVAGE3D) && (chip<=S3_SAVAGE2000)) |
62 | 62 | ||
63 | #define S3_MOBILE_TWISTER_SERIES(chip) ((chip==S3_TWISTER) || (chip == S3_PROSAVAGEDDR)) | ||
63 | 64 | ||
64 | /* Chip tags. These are used to group the adapters into | 65 | /* Chip tags. These are used to group the adapters into |
65 | * related families. | 66 | * related families. |
@@ -73,6 +74,8 @@ typedef enum { | |||
73 | S3_PROSAVAGE, | 74 | S3_PROSAVAGE, |
74 | S3_SUPERSAVAGE, | 75 | S3_SUPERSAVAGE, |
75 | S3_SAVAGE2000, | 76 | S3_SAVAGE2000, |
77 | S3_PROSAVAGEDDR, | ||
78 | S3_TWISTER, | ||
76 | S3_LAST | 79 | S3_LAST |
77 | } savage_chipset; | 80 | } savage_chipset; |
78 | 81 | ||
@@ -128,6 +131,10 @@ typedef enum { | |||
128 | #define BCI_CMD_SET_ROP(cmd, rop) ((cmd) |= ((rop & 0xFF) << 16)) | 131 | #define BCI_CMD_SET_ROP(cmd, rop) ((cmd) |= ((rop & 0xFF) << 16)) |
129 | #define BCI_CMD_SEND_COLOR 0x00008000 | 132 | #define BCI_CMD_SEND_COLOR 0x00008000 |
130 | 133 | ||
134 | #define DISP_CRT 1 | ||
135 | #define DISP_LCD 2 | ||
136 | #define DISP_DFP 3 | ||
137 | |||
131 | struct xtimings { | 138 | struct xtimings { |
132 | unsigned int Clock; | 139 | unsigned int Clock; |
133 | unsigned int HDisplay; | 140 | unsigned int HDisplay; |
@@ -166,6 +173,10 @@ struct savagefb_par { | |||
166 | struct savagefb_i2c_chan chan; | 173 | struct savagefb_i2c_chan chan; |
167 | unsigned char *edid; | 174 | unsigned char *edid; |
168 | u32 pseudo_palette[16]; | 175 | u32 pseudo_palette[16]; |
176 | int pm_state; | ||
177 | int display_type; | ||
178 | int dvi; | ||
179 | int crtonly; | ||
169 | int dacSpeedBpp; | 180 | int dacSpeedBpp; |
170 | int maxClock; | 181 | int maxClock; |
171 | int minClock; | 182 | int minClock; |
@@ -338,7 +349,7 @@ do { \ | |||
338 | } \ | 349 | } \ |
339 | } | 350 | } |
340 | 351 | ||
341 | extern int savagefb_probe_i2c_connector(struct savagefb_par *par, | 352 | extern int savagefb_probe_i2c_connector(struct fb_info *info, |
342 | u8 **out_edid); | 353 | u8 **out_edid); |
343 | extern void savagefb_create_i2c_busses(struct fb_info *info); | 354 | extern void savagefb_create_i2c_busses(struct fb_info *info); |
344 | extern void savagefb_delete_i2c_busses(struct fb_info *info); | 355 | extern void savagefb_delete_i2c_busses(struct fb_info *info); |