diff options
Diffstat (limited to 'include/linux/fb.h')
| -rw-r--r-- | include/linux/fb.h | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/include/linux/fb.h b/include/linux/fb.h index 1ee63df5be92..330c4b1bfcaa 100644 --- a/include/linux/fb.h +++ b/include/linux/fb.h | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | #ifndef _LINUX_FB_H | 1 | #ifndef _LINUX_FB_H |
| 2 | #define _LINUX_FB_H | 2 | #define _LINUX_FB_H |
| 3 | 3 | ||
| 4 | #include <asm/types.h> | 4 | #include <linux/types.h> |
| 5 | #include <linux/i2c.h> | 5 | #include <linux/i2c.h> |
| 6 | 6 | ||
| 7 | struct dentry; | 7 | struct dentry; |
| @@ -123,6 +123,7 @@ struct dentry; | |||
| 123 | #define FB_ACCEL_TRIDENT_3DIMAGE 51 /* Trident 3DImage */ | 123 | #define FB_ACCEL_TRIDENT_3DIMAGE 51 /* Trident 3DImage */ |
| 124 | #define FB_ACCEL_TRIDENT_BLADE3D 52 /* Trident Blade3D */ | 124 | #define FB_ACCEL_TRIDENT_BLADE3D 52 /* Trident Blade3D */ |
| 125 | #define FB_ACCEL_TRIDENT_BLADEXP 53 /* Trident BladeXP */ | 125 | #define FB_ACCEL_TRIDENT_BLADEXP 53 /* Trident BladeXP */ |
| 126 | #define FB_ACCEL_CIRRUS_ALPINE 53 /* Cirrus Logic 543x/544x/5480 */ | ||
| 126 | #define FB_ACCEL_NEOMAGIC_NM2070 90 /* NeoMagic NM2070 */ | 127 | #define FB_ACCEL_NEOMAGIC_NM2070 90 /* NeoMagic NM2070 */ |
| 127 | #define FB_ACCEL_NEOMAGIC_NM2090 91 /* NeoMagic NM2090 */ | 128 | #define FB_ACCEL_NEOMAGIC_NM2090 91 /* NeoMagic NM2090 */ |
| 128 | #define FB_ACCEL_NEOMAGIC_NM2093 92 /* NeoMagic NM2093 */ | 129 | #define FB_ACCEL_NEOMAGIC_NM2093 92 /* NeoMagic NM2093 */ |
| @@ -172,8 +173,12 @@ struct fb_fix_screeninfo { | |||
| 172 | /* Interpretation of offset for color fields: All offsets are from the right, | 173 | /* Interpretation of offset for color fields: All offsets are from the right, |
| 173 | * inside a "pixel" value, which is exactly 'bits_per_pixel' wide (means: you | 174 | * inside a "pixel" value, which is exactly 'bits_per_pixel' wide (means: you |
| 174 | * can use the offset as right argument to <<). A pixel afterwards is a bit | 175 | * can use the offset as right argument to <<). A pixel afterwards is a bit |
| 175 | * stream and is written to video memory as that unmodified. This implies | 176 | * stream and is written to video memory as that unmodified. |
| 176 | * big-endian byte order if bits_per_pixel is greater than 8. | 177 | * |
| 178 | * For pseudocolor: offset and length should be the same for all color | ||
| 179 | * components. Offset specifies the position of the least significant bit | ||
| 180 | * of the pallette index in a pixel value. Length indicates the number | ||
| 181 | * of available palette entries (i.e. # of entries = 1 << length). | ||
| 177 | */ | 182 | */ |
| 178 | struct fb_bitfield { | 183 | struct fb_bitfield { |
| 179 | __u32 offset; /* beginning of bitfield */ | 184 | __u32 offset; /* beginning of bitfield */ |
| @@ -960,6 +965,13 @@ extern struct fb_info *registered_fb[FB_MAX]; | |||
| 960 | extern int num_registered_fb; | 965 | extern int num_registered_fb; |
| 961 | extern struct class *fb_class; | 966 | extern struct class *fb_class; |
| 962 | 967 | ||
| 968 | extern int lock_fb_info(struct fb_info *info); | ||
| 969 | |||
| 970 | static inline void unlock_fb_info(struct fb_info *info) | ||
| 971 | { | ||
| 972 | mutex_unlock(&info->lock); | ||
| 973 | } | ||
| 974 | |||
| 963 | static inline void __fb_pad_aligned_buffer(u8 *dst, u32 d_pitch, | 975 | static inline void __fb_pad_aligned_buffer(u8 *dst, u32 d_pitch, |
| 964 | u8 *src, u32 s_pitch, u32 height) | 976 | u8 *src, u32 s_pitch, u32 height) |
| 965 | { | 977 | { |
