root / lab4 / .minix-src / include / minix / fb.h @ 13
History | View | Annotate | Download (807 Bytes)
1 |
#ifndef __MINIX_FB_H_
|
---|---|
2 |
#define __MINIX_FB_H_
|
3 |
|
4 |
#include <minix/type.h> |
5 |
|
6 |
struct fb_fix_screeninfo {
|
7 |
char id[16]; /* Identification string */ |
8 |
u16_t xpanstep; |
9 |
u16_t ypanstep; |
10 |
u16_t ywrapstep; |
11 |
u32_t line_length; |
12 |
phys_bytes mmio_start; |
13 |
size_t mmio_len; |
14 |
u16_t reserved[15];
|
15 |
}; |
16 |
|
17 |
struct fb_bitfield {
|
18 |
u32_t offset; |
19 |
u32_t length; |
20 |
u32_t msb_right; |
21 |
}; |
22 |
|
23 |
struct fb_var_screeninfo {
|
24 |
u32_t xres; /* visible resolution */
|
25 |
u32_t yres; |
26 |
u32_t xres_virtual; /* virtual resolution */
|
27 |
u32_t yres_virtual; |
28 |
u32_t xoffset; /* offset from virtual to visible */
|
29 |
u32_t yoffset; |
30 |
u32_t bits_per_pixel; |
31 |
struct fb_bitfield red; /* bitfield in fb mem if true color */ |
32 |
struct fb_bitfield green;
|
33 |
struct fb_bitfield blue;
|
34 |
struct fb_bitfield transp; /* transparency */ |
35 |
u16_t reserved[10];
|
36 |
}; |
37 |
|
38 |
#endif /* __MINIX_FB_H_ */ |