diff options
Diffstat (limited to 'drivers/video/macmodes.c')
-rw-r--r-- | drivers/video/macmodes.c | 34 |
1 files changed, 14 insertions, 20 deletions
diff --git a/drivers/video/macmodes.c b/drivers/video/macmodes.c index 98bcf32d8..f982b31cb 100644 --- a/drivers/video/macmodes.c +++ b/drivers/video/macmodes.c @@ -12,6 +12,7 @@ * more details. */ +#include <linux/config.h> #include <linux/errno.h> #include <linux/fb.h> #include <linux/string.h> @@ -188,8 +189,10 @@ static const struct monitor_map { { -1, VMODE_640_480_60 }, /* catch-all, must be last */ }; +#ifdef CONFIG_FB_COMPAT_XPMAC struct fb_info *console_fb_info = NULL; struct vc_mode display_info; + static u16 palette_red[16]; static u16 palette_green[16]; static u16 palette_blue[16]; @@ -198,20 +201,12 @@ static struct fb_cmap palette_cmap = { }; -int console_getmode(struct vc_mode *); -int console_setmode(struct vc_mode *, int); -int console_setcmap(int, unsigned char *, unsigned char *, unsigned char *); -int console_powermode(int); -int mac_var_to_vmode(const struct fb_var_screeninfo *, int *, int *); - - int console_getmode(struct vc_mode *mode) { *mode = display_info; return 0; } - int console_setmode(struct vc_mode *mode, int doit) { struct fb_var_screeninfo var; @@ -258,7 +253,6 @@ int console_setmode(struct vc_mode *mode, int doit) return 0; } - int console_setcmap(int n_entries, unsigned char *red, unsigned char *green, unsigned char *blue) { @@ -289,6 +283,17 @@ int console_setcmap(int n_entries, unsigned char *red, unsigned char *green, return 0; } +int console_powermode(int mode) +{ + if (mode == VC_POWERMODE_INQUIRY) + return 0; + if (mode < VESA_NO_BLANKING || mode > VESA_POWERDOWN) + return -EINVAL; + /* Not Supported */ + return -ENXIO; +} +#endif /* CONFIG_FB_COMPAT_XPMAC */ + /* * Convert a MacOS vmode/cmode pair to a frame buffer video mode structure @@ -363,17 +368,6 @@ int mac_vmode_to_var(int vmode, int cmode, struct fb_var_screeninfo *var) } -int console_powermode(int mode) -{ - if (mode == VC_POWERMODE_INQUIRY) - return 0; - if (mode < VESA_NO_BLANKING || mode > VESA_POWERDOWN) - return -EINVAL; - /* Not Supported */ - return -ENXIO; -} - - /* * Convert a frame buffer video mode structure to a MacOS vmode/cmode pair */ |