summaryrefslogtreecommitdiffstats
path: root/cpukit/libmisc/mw-fb/mw_fb.h
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2009-07-24 13:27:49 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2009-07-24 13:27:49 +0000
commit8daaa65e32cfff082cdb3ed96f0be05e9d0dbc3b (patch)
tree1b274659d03faf953af17b90befd463a160e81e5 /cpukit/libmisc/mw-fb/mw_fb.h
parent2009-07-23 Ralf Corsepius <ralf.corsepius@rtems.org> (diff)
downloadrtems-8daaa65e32cfff082cdb3ed96f0be05e9d0dbc3b.tar.bz2
2009-07-24 Roxana Leontie <roxana.leontie@gmail.com>
* libmisc/mw-fb/mw_fb.h: divided fb_screeninfo structure into fb_var_screeninfo and fb_fix_screeninfo
Diffstat (limited to 'cpukit/libmisc/mw-fb/mw_fb.h')
-rw-r--r--cpukit/libmisc/mw-fb/mw_fb.h25
1 files changed, 14 insertions, 11 deletions
diff --git a/cpukit/libmisc/mw-fb/mw_fb.h b/cpukit/libmisc/mw-fb/mw_fb.h
index 664a9a13a7..df0028ef18 100644
--- a/cpukit/libmisc/mw-fb/mw_fb.h
+++ b/cpukit/libmisc/mw-fb/mw_fb.h
@@ -18,10 +18,12 @@ extern "C" {
/* ioctls
0x46 is 'F' */
-#define FBIOGET_FSCREENINFO 0x4602
-#define FBIOGETCMAP 0x4604
-#define FBIOPUTCMAP 0x4603
-#define FB_EXEC_FUNCTION 0x4606
+#define FBIOGET_VSCREENINFO 0x4600
+#define FBIOPUT_VSCREENINFO 0x4601
+#define FBIOGET_FSCREENINFO 0x4602
+#define FBIOGETCMAP 0x4604
+#define FBIOPUTCMAP 0x4605
+#define FB_EXEC_FUNCTION 0x4606
#define FB_TYPE_PACKED_PIXELS 0 /* Packed Pixels */
@@ -41,17 +43,18 @@ extern "C" {
#define FB_ACCEL_NONE 0 /* no hardware accelerator */
-struct fb_screeninfo {
+struct fb_var_screeninfo {
uint32_t xres; /* visible resolution */
uint32_t yres;
uint32_t bits_per_pixel; /* guess what */
- uint32_t line_length; /* number of chars per line */
- volatile char *smem_start; /* Start of frame buffer mem */
+};
+struct fb_fix_screeninfo {
+ volatile char *smem_start; /* Start of frame buffer mem */
/* (physical address) */
- uint32_t smem_len; /* Length of frame buffer mem */
- uint32_t type; /* see FB_TYPE_* */
- uint32_t visual; /* see FB_VISUAL_* */
-
+ uint32_t smem_len; /* Length of frame buffer mem */
+ uint32_t type; /* see FB_TYPE_* */
+ uint32_t visual; /* see FB_VISUAL_* */
+ uint32_t line_length; /* number of chars per line */
};
struct fb_cmap {