Mercurial > hg > Members > kono > Cerium
comparison old/sdl_test/fb.h @ 996:78ebcdaae8bc
add sdl_test file
author | yutaka@charles.cr.ie.u-ryukyu.ac.jp |
---|---|
date | Mon, 11 Oct 2010 18:56:51 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
995:143e4f9af7be | 996:78ebcdaae8bc |
---|---|
1 #ifndef FB_H | |
2 #define FB_H | |
3 | |
4 #define DEVICE_NAME "/dev/fb0" | |
5 #define DIV_BYTE 8 | |
6 | |
7 #include <unistd.h> | |
8 #include <stdio.h> | |
9 #include <fcntl.h> | |
10 #include <linux/fb.h> | |
11 #include <linux/fs.h> | |
12 #include <sys/mman.h> | |
13 #include <sys/ioctl.h> | |
14 #include <stdlib.h> | |
15 #include <iostream> | |
16 | |
17 struct fb_t { | |
18 | |
19 char *pixels; | |
20 int size; | |
21 int width; | |
22 int height; | |
23 int bpp; | |
24 int fd; | |
25 | |
26 }; | |
27 | |
28 /* function prototype */ | |
29 void send_current_error_msg(const char *ptr); | |
30 void send_current_information(const char *ptr); | |
31 fb_t get_fbdev_addr(void); | |
32 | |
33 #endif |