diff options
Diffstat (limited to 'include/asm-sparc/fbio.h')
-rw-r--r-- | include/asm-sparc/fbio.h | 37 |
1 files changed, 35 insertions, 2 deletions
diff --git a/include/asm-sparc/fbio.h b/include/asm-sparc/fbio.h index c2b27e7a7cad..b9215a0907d3 100644 --- a/include/asm-sparc/fbio.h +++ b/include/asm-sparc/fbio.h | |||
@@ -1,6 +1,9 @@ | |||
1 | #ifndef __LINUX_FBIO_H | 1 | #ifndef __LINUX_FBIO_H |
2 | #define __LINUX_FBIO_H | 2 | #define __LINUX_FBIO_H |
3 | 3 | ||
4 | #include <linux/compiler.h> | ||
5 | #include <linux/types.h> | ||
6 | |||
4 | /* Constants used for fbio SunOS compatibility */ | 7 | /* Constants used for fbio SunOS compatibility */ |
5 | /* (C) 1996 Miguel de Icaza */ | 8 | /* (C) 1996 Miguel de Icaza */ |
6 | 9 | ||
@@ -38,6 +41,9 @@ | |||
38 | #define FBTYPE_PCI_IGA1682 23 | 41 | #define FBTYPE_PCI_IGA1682 23 |
39 | #define FBTYPE_P9100COLOR 24 | 42 | #define FBTYPE_P9100COLOR 24 |
40 | 43 | ||
44 | #define FBTYPE_PCI_GENERIC 1000 | ||
45 | #define FBTYPE_PCI_MACH64 1001 | ||
46 | |||
41 | /* fbio ioctls */ | 47 | /* fbio ioctls */ |
42 | /* Returned by FBIOGTYPE */ | 48 | /* Returned by FBIOGTYPE */ |
43 | struct fbtype { | 49 | struct fbtype { |
@@ -97,8 +103,8 @@ struct fbcursor { | |||
97 | struct fbcurpos hot; /* cursor hot spot */ | 103 | struct fbcurpos hot; /* cursor hot spot */ |
98 | struct fbcmap cmap; /* color map info */ | 104 | struct fbcmap cmap; /* color map info */ |
99 | struct fbcurpos size; /* cursor bit map size */ | 105 | struct fbcurpos size; /* cursor bit map size */ |
100 | char *image; /* cursor image bits */ | 106 | char __user *image; /* cursor image bits */ |
101 | char *mask; /* cursor mask bits */ | 107 | char __user *mask; /* cursor mask bits */ |
102 | }; | 108 | }; |
103 | 109 | ||
104 | /* set/get cursor attributes/shape */ | 110 | /* set/get cursor attributes/shape */ |
@@ -294,4 +300,31 @@ struct fb_clut32 { | |||
294 | #define LEO_LD_GBL_MAP 0x01009000 | 300 | #define LEO_LD_GBL_MAP 0x01009000 |
295 | #define LEO_UNK2_MAP 0x0100a000 | 301 | #define LEO_UNK2_MAP 0x0100a000 |
296 | 302 | ||
303 | #ifdef __KERNEL__ | ||
304 | struct fbcmap32 { | ||
305 | int index; /* first element (0 origin) */ | ||
306 | int count; | ||
307 | u32 red; | ||
308 | u32 green; | ||
309 | u32 blue; | ||
310 | }; | ||
311 | |||
312 | #define FBIOPUTCMAP32 _IOW('F', 3, struct fbcmap32) | ||
313 | #define FBIOGETCMAP32 _IOW('F', 4, struct fbcmap32) | ||
314 | |||
315 | struct fbcursor32 { | ||
316 | short set; /* what to set, choose from the list above */ | ||
317 | short enable; /* cursor on/off */ | ||
318 | struct fbcurpos pos; /* cursor position */ | ||
319 | struct fbcurpos hot; /* cursor hot spot */ | ||
320 | struct fbcmap32 cmap; /* color map info */ | ||
321 | struct fbcurpos size; /* cursor bit map size */ | ||
322 | u32 image; /* cursor image bits */ | ||
323 | u32 mask; /* cursor mask bits */ | ||
324 | }; | ||
325 | |||
326 | #define FBIOSCURSOR32 _IOW('F', 24, struct fbcursor32) | ||
327 | #define FBIOGCURSOR32 _IOW('F', 25, struct fbcursor32) | ||
328 | #endif | ||
329 | |||
297 | #endif /* __LINUX_FBIO_H */ | 330 | #endif /* __LINUX_FBIO_H */ |