1 #ifndef __LINUX_FBIO_H
2 #define __LINUX_FBIO_H
3
4
5
6
7 #define FBTYPE_NOTYPE -1
8 #define FBTYPE_SUN1BW 0
9 #define FBTYPE_SUN1COLOR 1
10 #define FBTYPE_SUN2BW 2
11 #define FBTYPE_SUN2COLOR 3
12 #define FBTYPE_SUN2GP 4
13 #define FBTYPE_SUN5COLOR 5
14 #define FBTYPE_SUN3COLOR 6
15 #define FBTYPE_MEMCOLOR 7
16 #define FBTYPE_SUN4COLOR 8
17
18 #define FBTYPE_NOTSUN1 9
19 #define FBTYPE_NOTSUN2 10
20 #define FBTYPE_NOTSUN3 11
21
22 #define FBTYPE_SUNFAST_COLOR 12
23 #define FBTYPE_SUNROP_COLOR 13
24 #define FBTYPE_SUNFB_VIDEO 14
25 #define FBTYPE_SUNGIFB 15
26 #define FBTYPE_SUNGPLAS 16
27 #define FBTYPE_SUNGP3 17
28 #define FBTYPE_SUNGT 18
29 #define FBTYPE_SUNLEO 19
30 #define FBTYPE_MDICOLOR 20
31 #define FBTYPE_LASTPLUSONE 21
32
33
34
35 struct fbtype {
36 int fb_type;
37 int fb_height;
38 int fb_width;
39 int fb_depth;
40 int fb_cmsize;
41 int fb_size;
42 };
43 #define FBIOGTYPE _IOR('F', 0, struct fbtype)
44
45
46 struct fbcmap {
47 int index;
48 int count;
49 unsigned char *red;
50 unsigned char *green;
51 unsigned char *blue;
52 };
53
54 #define FBIOPUTCMAP _IOW('F', 3, struct fbcmap)
55
56
57 #define FB_ATTR_NDEVSPECIFIC 8
58
59 #define FB_ATTR_NEMUTYPES 4
60
61 struct fbsattr {
62 int flags;
63 int emu_type;
64 int dev_specific[FB_ATTR_NDEVSPECIFIC];
65 };
66
67 struct fbgattr {
68 int real_type;
69 int owner;
70 struct fbtype fbtype;
71 struct fbsattr sattr;
72 int emu_types[FB_ATTR_NEMUTYPES];
73 };
74 #define FBIOSATTR _IOW('F', 5, struct fbgattr)
75 #define FBIOGATTR _IOR('F', 6, struct fbgattr)
76
77 #define FBIOSVIDEO _IOW('F', 7, int)
78 #define FBIOGVIDEO _IOR('F', 8, int)
79
80
81 struct fbcurpos {
82 #ifdef __KERNEL__
83 short fbx, fby;
84 #else
85 short x, y;
86 #endif
87 };
88
89
90 #define FB_CUR_SETCUR 0x01
91 #define FB_CUR_SETPOS 0x02
92 #define FB_CUR_SETHOT 0x04
93 #define FB_CUR_SETCMAP 0x08
94 #define FB_CUR_SETSHAPE 0x10
95 #define FB_CUR_SETALL 0x1F
96
97 struct fbcursor {
98 short set;
99 short enable;
100 struct fbcurpos pos;
101 struct fbcurpos hot;
102 struct fbcmap cmap;
103 struct fbcurpos size;
104 char *image;
105 char *mask;
106 };
107
108
109 #define FBIOSCURSOR _IOW('F', 24, struct fbcursor)
110 #define FBIOGCURSOR _IOWR('F', 25, struct fbcursor)
111
112
113 #define FBIOSCURPOS _IOW('F', 26, struct fbcurpos)
114 #define FBIOGCURPOS _IOW('F', 27, struct fbcurpos)
115
116
117 #define FBIOGCURMAX _IOR('F', 28, struct fbcurpos)
118
119 #ifdef __KERNEL__
120
121 #define CG6_FBC 0x70000000
122 #define CG6_TEC 0x70001000
123 #define CG6_BTREGS 0x70002000
124 #define CG6_FHC 0x70004000
125 #define CG6_THC 0x70005000
126 #define CG6_ROM 0x70006000
127 #define CG6_RAM 0x70016000
128 #define CG6_DHC 0x80000000
129
130 #define CG3_MMAP_OFFSET 0x4000000
131 #endif
132
133 #endif