annotate Renderer/Engine/fb.h @ 981:a193a851b5e3

add double buffering frame device
author root@henri.cr.ie.u-ryukyu.ac.jp
date Thu, 30 Sep 2010 23:54:08 +0900
parents 3d19bc6424d0
children 0b6f8c82625a
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
507
735f76483bb2 Reorganization..
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 298
diff changeset
1 #ifndef FB_H
735f76483bb2 Reorganization..
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 298
diff changeset
2 #define FB_H
735f76483bb2 Reorganization..
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 298
diff changeset
3
283
55ea4465b1a2 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
4 #if defined(__linux__)
507
735f76483bb2 Reorganization..
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 298
diff changeset
5
283
55ea4465b1a2 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
6 #include <unistd.h>
55ea4465b1a2 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
7 #include <stdio.h>
55ea4465b1a2 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
8 #include <fcntl.h>
55ea4465b1a2 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
9 #include <linux/fb.h>
55ea4465b1a2 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
10 #include <linux/fs.h>
55ea4465b1a2 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
11 #include <sys/mman.h>
55ea4465b1a2 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
12 #include <sys/ioctl.h>
55ea4465b1a2 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
13 #include <stdlib.h>
55ea4465b1a2 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
14 #include <iostream>
981
a193a851b5e3 add double buffering frame device
root@henri.cr.ie.u-ryukyu.ac.jp
parents: 896
diff changeset
15 #include "types.h"
283
55ea4465b1a2 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
16 using namespace std;
55ea4465b1a2 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
17
55ea4465b1a2 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
18
55ea4465b1a2 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
19 /* function prototype */
55ea4465b1a2 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
20 void send_current_error_msg(const char *ptr);
55ea4465b1a2 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
21 void send_current_information(const char *ptr);
55ea4465b1a2 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
22
896
3d19bc6424d0 minor fix
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 895
diff changeset
23 #endif
3d19bc6424d0 minor fix
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 895
diff changeset
24
895
bed529c55eda add alignment of classes in SPU
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 507
diff changeset
25 typedef struct screen_info {
283
55ea4465b1a2 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
26 int xres,yres,vbpp,line_len;
981
a193a851b5e3 add double buffering frame device
root@henri.cr.ie.u-ryukyu.ac.jp
parents: 896
diff changeset
27 uint32_t *fbptr[2];
895
bed529c55eda add alignment of classes in SPU
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 507
diff changeset
28 } ScreenInfo , *ScreenInfoPtr;
283
55ea4465b1a2 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
29
55ea4465b1a2 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
30
895
bed529c55eda add alignment of classes in SPU
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 507
diff changeset
31 extern ScreenInfo get_fbdev_addr(void);
bed529c55eda add alignment of classes in SPU
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 507
diff changeset
32
bed529c55eda add alignment of classes in SPU
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 507
diff changeset
33 #endif