]> Joshua Wise's Git repositories - netwatch.git/blob - include/fb.h
79f05b510ab2f282775f4f695003b8b04873a75d
[netwatch.git] / include / fb.h
1 #ifndef __FB_H
2 #define __FB_H
3
4 #include <stdint.h>
5
6 struct fbdevice;
7 struct vmode;
8
9 typedef enum {
10         FB_RGB888
11 } format_t;
12
13 typedef void (*getvmode_t)(void *);
14 typedef uint32_t (*checksum_rect_t)(int x, int y, int width, int height);
15 typedef void (*copy_pixels_t)(char *buf, int x, int y, int width, int height);
16
17 struct vmode {
18         int text:1;
19         int xres, yres, bytestride;
20         format_t format;
21 };
22
23 struct fbdevice {
24         unsigned char *fbaddr;
25         unsigned char *textbase;        /* A safe place to put a textfb. */
26         void *priv;
27         getvmode_t getvmode;
28         checksum_rect_t checksum_rect;
29         copy_pixels_t copy_pixels;
30         struct vmode curmode;
31 };
32
33 extern struct fbdevice *fb;
34
35 #endif
This page took 0.016521 seconds and 2 git commands to generate.