diff options
author | Glenn Elliott <gelliott@cs.unc.edu> | 2012-03-04 19:47:13 -0500 |
---|---|---|
committer | Glenn Elliott <gelliott@cs.unc.edu> | 2012-03-04 19:47:13 -0500 |
commit | c71c03bda1e86c9d5198c5d83f712e695c4f2a1e (patch) | |
tree | ecb166cb3e2b7e2adb3b5e292245fefd23381ac8 /include/linux/fb.h | |
parent | ea53c912f8a86a8567697115b6a0d8152beee5c8 (diff) | |
parent | 6a00f206debf8a5c8899055726ad127dbeeed098 (diff) |
Merge branch 'mpi-master' into wip-k-fmlpwip-k-fmlp
Conflicts:
litmus/sched_cedf.c
Diffstat (limited to 'include/linux/fb.h')
-rw-r--r-- | include/linux/fb.h | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/include/linux/fb.h b/include/linux/fb.h index f0268deca658..6a8274877171 100644 --- a/include/linux/fb.h +++ b/include/linux/fb.h | |||
@@ -152,6 +152,8 @@ | |||
152 | #define FB_ACCEL_PROSAVAGE_DDR 0x8d /* S3 ProSavage DDR */ | 152 | #define FB_ACCEL_PROSAVAGE_DDR 0x8d /* S3 ProSavage DDR */ |
153 | #define FB_ACCEL_PROSAVAGE_DDRK 0x8e /* S3 ProSavage DDR-K */ | 153 | #define FB_ACCEL_PROSAVAGE_DDRK 0x8e /* S3 ProSavage DDR-K */ |
154 | 154 | ||
155 | #define FB_ACCEL_PUV3_UNIGFX 0xa0 /* PKUnity-v3 Unigfx */ | ||
156 | |||
155 | struct fb_fix_screeninfo { | 157 | struct fb_fix_screeninfo { |
156 | char id[16]; /* identification string eg "TT Builtin" */ | 158 | char id[16]; /* identification string eg "TT Builtin" */ |
157 | unsigned long smem_start; /* Start of frame buffer mem */ | 159 | unsigned long smem_start; /* Start of frame buffer mem */ |
@@ -532,14 +534,14 @@ struct fb_cursor_user { | |||
532 | #define FB_EVENT_GET_CONSOLE_MAP 0x07 | 534 | #define FB_EVENT_GET_CONSOLE_MAP 0x07 |
533 | /* CONSOLE-SPECIFIC: set console to framebuffer mapping */ | 535 | /* CONSOLE-SPECIFIC: set console to framebuffer mapping */ |
534 | #define FB_EVENT_SET_CONSOLE_MAP 0x08 | 536 | #define FB_EVENT_SET_CONSOLE_MAP 0x08 |
535 | /* A hardware display blank change occured */ | 537 | /* A hardware display blank change occurred */ |
536 | #define FB_EVENT_BLANK 0x09 | 538 | #define FB_EVENT_BLANK 0x09 |
537 | /* Private modelist is to be replaced */ | 539 | /* Private modelist is to be replaced */ |
538 | #define FB_EVENT_NEW_MODELIST 0x0A | 540 | #define FB_EVENT_NEW_MODELIST 0x0A |
539 | /* The resolution of the passed in fb_info about to change and | 541 | /* The resolution of the passed in fb_info about to change and |
540 | all vc's should be changed */ | 542 | all vc's should be changed */ |
541 | #define FB_EVENT_MODE_CHANGE_ALL 0x0B | 543 | #define FB_EVENT_MODE_CHANGE_ALL 0x0B |
542 | /* A software display blank change occured */ | 544 | /* A software display blank change occurred */ |
543 | #define FB_EVENT_CONBLANK 0x0C | 545 | #define FB_EVENT_CONBLANK 0x0C |
544 | /* Get drawing requirements */ | 546 | /* Get drawing requirements */ |
545 | #define FB_EVENT_GET_REQ 0x0D | 547 | #define FB_EVENT_GET_REQ 0x0D |
@@ -803,7 +805,7 @@ struct fb_tile_ops { | |||
803 | /* A driver may set this flag to indicate that it does want a set_par to be | 805 | /* A driver may set this flag to indicate that it does want a set_par to be |
804 | * called every time when fbcon_switch is executed. The advantage is that with | 806 | * called every time when fbcon_switch is executed. The advantage is that with |
805 | * this flag set you can really be sure that set_par is always called before | 807 | * this flag set you can really be sure that set_par is always called before |
806 | * any of the functions dependant on the correct hardware state or altering | 808 | * any of the functions dependent on the correct hardware state or altering |
807 | * that state, even if you are using some broken X releases. The disadvantage | 809 | * that state, even if you are using some broken X releases. The disadvantage |
808 | * is that it introduces unwanted delays to every console switch if set_par | 810 | * is that it introduces unwanted delays to every console switch if set_par |
809 | * is slow. It is a good idea to try this flag in the drivers initialization | 811 | * is slow. It is a good idea to try this flag in the drivers initialization |
@@ -830,6 +832,7 @@ struct fb_tile_ops { | |||
830 | #define FBINFO_CAN_FORCE_OUTPUT 0x200000 | 832 | #define FBINFO_CAN_FORCE_OUTPUT 0x200000 |
831 | 833 | ||
832 | struct fb_info { | 834 | struct fb_info { |
835 | atomic_t count; | ||
833 | int node; | 836 | int node; |
834 | int flags; | 837 | int flags; |
835 | struct mutex lock; /* Lock for open/release/ioctl funcs */ | 838 | struct mutex lock; /* Lock for open/release/ioctl funcs */ |
@@ -875,7 +878,7 @@ struct fb_info { | |||
875 | void *fbcon_par; /* fbcon use-only private area */ | 878 | void *fbcon_par; /* fbcon use-only private area */ |
876 | /* From here on everything is device dependent */ | 879 | /* From here on everything is device dependent */ |
877 | void *par; | 880 | void *par; |
878 | /* we need the PCI or similiar aperture base/size not | 881 | /* we need the PCI or similar aperture base/size not |
879 | smem_start/size as smem_start may just be an object | 882 | smem_start/size as smem_start may just be an object |
880 | allocated inside the aperture so may not actually overlap */ | 883 | allocated inside the aperture so may not actually overlap */ |
881 | struct apertures_struct { | 884 | struct apertures_struct { |
@@ -931,6 +934,8 @@ static inline struct apertures_struct *alloc_apertures(unsigned int max_num) { | |||
931 | #define fb_writel sbus_writel | 934 | #define fb_writel sbus_writel |
932 | #define fb_writeq sbus_writeq | 935 | #define fb_writeq sbus_writeq |
933 | #define fb_memset sbus_memset_io | 936 | #define fb_memset sbus_memset_io |
937 | #define fb_memcpy_fromfb sbus_memcpy_fromio | ||
938 | #define fb_memcpy_tofb sbus_memcpy_toio | ||
934 | 939 | ||
935 | #elif defined(__i386__) || defined(__alpha__) || defined(__x86_64__) || defined(__hppa__) || defined(__sh__) || defined(__powerpc__) || defined(__avr32__) || defined(__bfin__) | 940 | #elif defined(__i386__) || defined(__alpha__) || defined(__x86_64__) || defined(__hppa__) || defined(__sh__) || defined(__powerpc__) || defined(__avr32__) || defined(__bfin__) |
936 | 941 | ||
@@ -943,6 +948,8 @@ static inline struct apertures_struct *alloc_apertures(unsigned int max_num) { | |||
943 | #define fb_writel __raw_writel | 948 | #define fb_writel __raw_writel |
944 | #define fb_writeq __raw_writeq | 949 | #define fb_writeq __raw_writeq |
945 | #define fb_memset memset_io | 950 | #define fb_memset memset_io |
951 | #define fb_memcpy_fromfb memcpy_fromio | ||
952 | #define fb_memcpy_tofb memcpy_toio | ||
946 | 953 | ||
947 | #else | 954 | #else |
948 | 955 | ||
@@ -955,6 +962,8 @@ static inline struct apertures_struct *alloc_apertures(unsigned int max_num) { | |||
955 | #define fb_writel(b,addr) (*(volatile u32 *) (addr) = (b)) | 962 | #define fb_writel(b,addr) (*(volatile u32 *) (addr) = (b)) |
956 | #define fb_writeq(b,addr) (*(volatile u64 *) (addr) = (b)) | 963 | #define fb_writeq(b,addr) (*(volatile u64 *) (addr) = (b)) |
957 | #define fb_memset memset | 964 | #define fb_memset memset |
965 | #define fb_memcpy_fromfb memcpy | ||
966 | #define fb_memcpy_tofb memcpy | ||
958 | 967 | ||
959 | #endif | 968 | #endif |
960 | 969 | ||
@@ -1086,6 +1095,8 @@ extern int fb_parse_edid(unsigned char *edid, struct fb_var_screeninfo *var); | |||
1086 | extern const unsigned char *fb_firmware_edid(struct device *device); | 1095 | extern const unsigned char *fb_firmware_edid(struct device *device); |
1087 | extern void fb_edid_to_monspecs(unsigned char *edid, | 1096 | extern void fb_edid_to_monspecs(unsigned char *edid, |
1088 | struct fb_monspecs *specs); | 1097 | struct fb_monspecs *specs); |
1098 | extern void fb_edid_add_monspecs(unsigned char *edid, | ||
1099 | struct fb_monspecs *specs); | ||
1089 | extern void fb_destroy_modedb(struct fb_videomode *modedb); | 1100 | extern void fb_destroy_modedb(struct fb_videomode *modedb); |
1090 | extern int fb_find_mode_cvt(struct fb_videomode *mode, int margins, int rb); | 1101 | extern int fb_find_mode_cvt(struct fb_videomode *mode, int margins, int rb); |
1091 | extern unsigned char *fb_ddc_read(struct i2c_adapter *adapter); | 1102 | extern unsigned char *fb_ddc_read(struct i2c_adapter *adapter); |
@@ -1116,6 +1127,7 @@ extern const struct fb_videomode *fb_find_best_display(const struct fb_monspecs | |||
1116 | 1127 | ||
1117 | /* drivers/video/fbcmap.c */ | 1128 | /* drivers/video/fbcmap.c */ |
1118 | extern int fb_alloc_cmap(struct fb_cmap *cmap, int len, int transp); | 1129 | extern int fb_alloc_cmap(struct fb_cmap *cmap, int len, int transp); |
1130 | extern int fb_alloc_cmap_gfp(struct fb_cmap *cmap, int len, int transp, gfp_t flags); | ||
1119 | extern void fb_dealloc_cmap(struct fb_cmap *cmap); | 1131 | extern void fb_dealloc_cmap(struct fb_cmap *cmap); |
1120 | extern int fb_copy_cmap(const struct fb_cmap *from, struct fb_cmap *to); | 1132 | extern int fb_copy_cmap(const struct fb_cmap *from, struct fb_cmap *to); |
1121 | extern int fb_cmap_to_user(const struct fb_cmap *from, struct fb_cmap_user *to); | 1133 | extern int fb_cmap_to_user(const struct fb_cmap *from, struct fb_cmap_user *to); |
@@ -1143,6 +1155,7 @@ struct fb_videomode { | |||
1143 | 1155 | ||
1144 | extern const char *fb_mode_option; | 1156 | extern const char *fb_mode_option; |
1145 | extern const struct fb_videomode vesa_modes[]; | 1157 | extern const struct fb_videomode vesa_modes[]; |
1158 | extern const struct fb_videomode cea_modes[64]; | ||
1146 | 1159 | ||
1147 | struct fb_modelist { | 1160 | struct fb_modelist { |
1148 | struct list_head list; | 1161 | struct list_head list; |