]>
Commit | Line | Data |
---|---|---|
5e4258d9 JW |
1 | #ifndef __FB_H |
2 | #define __FB_H | |
3 | ||
0a9d0188 JP |
4 | #include <stdint.h> |
5 | ||
5e4258d9 JW |
6 | struct fbdevice; |
7 | struct vmode; | |
8 | ||
9 | typedef enum { | |
10 | FB_RGB888 | |
11 | } format_t; | |
12 | ||
13 | typedef void (*getvmode_t)(void *); | |
0a9d0188 | 14 | typedef uint32_t (*checksum_rect_t)(int x, int y, int width, int height); |
5e4258d9 JW |
15 | |
16 | struct vmode { | |
17 | int text:1; | |
18 | int xres, yres, bytestride; | |
19 | format_t format; | |
20 | }; | |
21 | ||
22 | struct fbdevice { | |
23 | unsigned char *fbaddr; | |
cdde55f5 | 24 | unsigned char *textbase; /* A safe place to put a textfb. */ |
5e4258d9 JW |
25 | void *priv; |
26 | getvmode_t getvmode; | |
0a9d0188 | 27 | checksum_rect_t checksum_rect; |
5e4258d9 JW |
28 | struct vmode curmode; |
29 | }; | |
30 | ||
31 | extern struct fbdevice *fb; | |
32 | ||
33 | #endif |