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