diff options
Diffstat (limited to 'include/linux/fb.h')
| -rw-r--r-- | include/linux/fb.h | 28 |
1 files changed, 22 insertions, 6 deletions
diff --git a/include/linux/fb.h b/include/linux/fb.h index c698055266d0..04a58f33ec53 100644 --- a/include/linux/fb.h +++ b/include/linux/fb.h | |||
| @@ -201,6 +201,14 @@ struct fb_bitfield { | |||
| 201 | #define FB_VMODE_SMOOTH_XPAN 512 /* smooth xpan possible (internally used) */ | 201 | #define FB_VMODE_SMOOTH_XPAN 512 /* smooth xpan possible (internally used) */ |
| 202 | #define FB_VMODE_CONUPDATE 512 /* don't update x/yoffset */ | 202 | #define FB_VMODE_CONUPDATE 512 /* don't update x/yoffset */ |
| 203 | 203 | ||
| 204 | /* | ||
| 205 | * Display rotation support | ||
| 206 | */ | ||
| 207 | #define FB_ROTATE_UR 0 | ||
| 208 | #define FB_ROTATE_CW 1 | ||
| 209 | #define FB_ROTATE_UD 2 | ||
| 210 | #define FB_ROTATE_CCW 3 | ||
| 211 | |||
| 204 | #define PICOS2KHZ(a) (1000000000UL/(a)) | 212 | #define PICOS2KHZ(a) (1000000000UL/(a)) |
| 205 | #define KHZ2PICOS(a) (1000000000UL/(a)) | 213 | #define KHZ2PICOS(a) (1000000000UL/(a)) |
| 206 | 214 | ||
| @@ -489,9 +497,9 @@ struct fb_cursor_user { | |||
| 489 | #define FB_EVENT_MODE_DELETE 0x04 | 497 | #define FB_EVENT_MODE_DELETE 0x04 |
| 490 | /* A driver registered itself */ | 498 | /* A driver registered itself */ |
| 491 | #define FB_EVENT_FB_REGISTERED 0x05 | 499 | #define FB_EVENT_FB_REGISTERED 0x05 |
| 492 | /* get console to framebuffer mapping */ | 500 | /* CONSOLE-SPECIFIC: get console to framebuffer mapping */ |
| 493 | #define FB_EVENT_GET_CONSOLE_MAP 0x06 | 501 | #define FB_EVENT_GET_CONSOLE_MAP 0x06 |
| 494 | /* set console to framebuffer mapping */ | 502 | /* CONSOLE-SPECIFIC: set console to framebuffer mapping */ |
| 495 | #define FB_EVENT_SET_CONSOLE_MAP 0x07 | 503 | #define FB_EVENT_SET_CONSOLE_MAP 0x07 |
| 496 | /* A display blank is requested */ | 504 | /* A display blank is requested */ |
| 497 | #define FB_EVENT_BLANK 0x08 | 505 | #define FB_EVENT_BLANK 0x08 |
| @@ -500,6 +508,12 @@ struct fb_cursor_user { | |||
| 500 | /* The resolution of the passed in fb_info about to change and | 508 | /* The resolution of the passed in fb_info about to change and |
| 501 | all vc's should be changed */ | 509 | all vc's should be changed */ |
| 502 | #define FB_EVENT_MODE_CHANGE_ALL 0x0A | 510 | #define FB_EVENT_MODE_CHANGE_ALL 0x0A |
| 511 | /* CONSOLE-SPECIFIC: set console rotation */ | ||
| 512 | #define FB_EVENT_SET_CON_ROTATE 0x0B | ||
| 513 | /* CONSOLE-SPECIFIC: get console rotation */ | ||
| 514 | #define FB_EVENT_GET_CON_ROTATE 0x0C | ||
| 515 | /* CONSOLE-SPECIFIC: rotate all consoles */ | ||
| 516 | #define FB_EVENT_SET_CON_ROTATE_ALL 0x0D | ||
| 503 | 517 | ||
| 504 | struct fb_event { | 518 | struct fb_event { |
| 505 | struct fb_info *info; | 519 | struct fb_info *info; |
| @@ -810,7 +824,6 @@ struct fb_info { | |||
| 810 | extern int fb_set_var(struct fb_info *info, struct fb_var_screeninfo *var); | 824 | extern int fb_set_var(struct fb_info *info, struct fb_var_screeninfo *var); |
| 811 | extern int fb_pan_display(struct fb_info *info, struct fb_var_screeninfo *var); | 825 | extern int fb_pan_display(struct fb_info *info, struct fb_var_screeninfo *var); |
| 812 | extern int fb_blank(struct fb_info *info, int blank); | 826 | extern int fb_blank(struct fb_info *info, int blank); |
| 813 | extern int soft_cursor(struct fb_info *info, struct fb_cursor *cursor); | ||
| 814 | extern void cfb_fillrect(struct fb_info *info, const struct fb_fillrect *rect); | 827 | extern void cfb_fillrect(struct fb_info *info, const struct fb_fillrect *rect); |
| 815 | extern void cfb_copyarea(struct fb_info *info, const struct fb_copyarea *area); | 828 | extern void cfb_copyarea(struct fb_info *info, const struct fb_copyarea *area); |
| 816 | extern void cfb_imageblit(struct fb_info *info, const struct fb_image *image); | 829 | extern void cfb_imageblit(struct fb_info *info, const struct fb_image *image); |
| @@ -818,8 +831,8 @@ extern void cfb_imageblit(struct fb_info *info, const struct fb_image *image); | |||
| 818 | /* drivers/video/fbmem.c */ | 831 | /* drivers/video/fbmem.c */ |
| 819 | extern int register_framebuffer(struct fb_info *fb_info); | 832 | extern int register_framebuffer(struct fb_info *fb_info); |
| 820 | extern int unregister_framebuffer(struct fb_info *fb_info); | 833 | extern int unregister_framebuffer(struct fb_info *fb_info); |
| 821 | extern int fb_prepare_logo(struct fb_info *fb_info); | 834 | extern int fb_prepare_logo(struct fb_info *fb_info, int rotate); |
| 822 | extern int fb_show_logo(struct fb_info *fb_info); | 835 | extern int fb_show_logo(struct fb_info *fb_info, int rotate); |
| 823 | extern char* fb_get_buffer_offset(struct fb_info *info, struct fb_pixmap *buf, u32 size); | 836 | extern char* fb_get_buffer_offset(struct fb_info *info, struct fb_pixmap *buf, u32 size); |
| 824 | extern void fb_pad_unaligned_buffer(u8 *dst, u32 d_pitch, u8 *src, u32 idx, | 837 | extern void fb_pad_unaligned_buffer(u8 *dst, u32 d_pitch, u8 *src, u32 idx, |
| 825 | u32 height, u32 shift_high, u32 shift_low, u32 mod); | 838 | u32 height, u32 shift_high, u32 shift_low, u32 mod); |
| @@ -829,6 +842,7 @@ extern int fb_get_color_depth(struct fb_var_screeninfo *var, | |||
| 829 | struct fb_fix_screeninfo *fix); | 842 | struct fb_fix_screeninfo *fix); |
| 830 | extern int fb_get_options(char *name, char **option); | 843 | extern int fb_get_options(char *name, char **option); |
| 831 | extern int fb_new_modelist(struct fb_info *info); | 844 | extern int fb_new_modelist(struct fb_info *info); |
| 845 | extern int fb_con_duit(struct fb_info *info, int event, void *data); | ||
| 832 | 846 | ||
| 833 | extern struct fb_info *registered_fb[FB_MAX]; | 847 | extern struct fb_info *registered_fb[FB_MAX]; |
| 834 | extern int num_registered_fb; | 848 | extern int num_registered_fb; |
| @@ -898,11 +912,13 @@ extern struct fb_videomode *fb_match_mode(struct fb_var_screeninfo *var, | |||
| 898 | struct list_head *head); | 912 | struct list_head *head); |
| 899 | extern struct fb_videomode *fb_find_best_mode(struct fb_var_screeninfo *var, | 913 | extern struct fb_videomode *fb_find_best_mode(struct fb_var_screeninfo *var, |
| 900 | struct list_head *head); | 914 | struct list_head *head); |
| 901 | extern struct fb_videomode *fb_find_nearest_mode(struct fb_var_screeninfo *var, | 915 | extern struct fb_videomode *fb_find_nearest_mode(struct fb_videomode *mode, |
| 902 | struct list_head *head); | 916 | struct list_head *head); |
| 903 | extern void fb_destroy_modelist(struct list_head *head); | 917 | extern void fb_destroy_modelist(struct list_head *head); |
| 904 | extern void fb_videomode_to_modelist(struct fb_videomode *modedb, int num, | 918 | extern void fb_videomode_to_modelist(struct fb_videomode *modedb, int num, |
| 905 | struct list_head *head); | 919 | struct list_head *head); |
| 920 | extern struct fb_videomode *fb_find_best_display(struct fb_monspecs *specs, | ||
| 921 | struct list_head *head); | ||
| 906 | 922 | ||
| 907 | /* drivers/video/fbcmap.c */ | 923 | /* drivers/video/fbcmap.c */ |
| 908 | extern int fb_alloc_cmap(struct fb_cmap *cmap, int len, int transp); | 924 | extern int fb_alloc_cmap(struct fb_cmap *cmap, int len, int transp); |
