summaryrefslogtreecommitdiffstats
path: root/cpukit/libmisc/mw-fb/mw_fb.h
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2009-07-29 13:38:50 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2009-07-29 13:38:50 +0000
commit78950906279d9db18a0e131f413a1c9742416727 (patch)
tree3fefc025fd16fff2b7e556347c3d34b8e8270f0a /cpukit/libmisc/mw-fb/mw_fb.h
parentRemove. (diff)
downloadrtems-78950906279d9db18a0e131f413a1c9742416727.tar.bz2
2009-07-29 Roxana Leontie <roxana.leontie@gmail.com>
* libmisc/mw-fb/mw_fb.h: Cleaned code and added some more structures.
Diffstat (limited to 'cpukit/libmisc/mw-fb/mw_fb.h')
-rw-r--r--cpukit/libmisc/mw-fb/mw_fb.h42
1 files changed, 12 insertions, 30 deletions
diff --git a/cpukit/libmisc/mw-fb/mw_fb.h b/cpukit/libmisc/mw-fb/mw_fb.h
index df0028ef18..f42a15f0c9 100644
--- a/cpukit/libmisc/mw-fb/mw_fb.h
+++ b/cpukit/libmisc/mw-fb/mw_fb.h
@@ -43,11 +43,23 @@ extern "C" {
#define FB_ACCEL_NONE 0 /* no hardware accelerator */
+struct fb_bitfield {
+ uint32_t offset; /* beginning of bitfield */
+ uint32_t length; /* length of bitfield */
+ uint32_t msb_right; /* != 0 : Most significant bit is */
+ /* right */
+};
+
struct fb_var_screeninfo {
uint32_t xres; /* visible resolution */
uint32_t yres;
uint32_t bits_per_pixel; /* guess what */
+ struct fb_bitfield red; /* bitfield in fb mem if true color, */
+ struct fb_bitfield green; /* else only length is significant */
+ struct fb_bitfield blue;
+ struct fb_bitfield transp; /* transparency */
};
+
struct fb_fix_screeninfo {
volatile char *smem_start; /* Start of frame buffer mem */
/* (physical address) */
@@ -66,37 +78,7 @@ struct fb_cmap {
uint16_t *transp; /* transparency, can be NULL */
};
-/* type of function to be executed at the driver level */
-#define FB_FUNC_ENTER_GRAPHICS 0
-#define FB_FUNC_EXIT_GRAPHICS 1
-#define FB_FUNC_IS_DIRTY 2
-#define FB_FUNC_GET_MODE 3
-
-struct fb_exec_function
-{
- int func_no;
- void *param;
-};
-
-/* Micro Framebuffer API Wrapper */
-
-/*
- * Returns the mode of the graphics subsystem
- */
-extern int ufb_get_mode( int fd, int *mode );
-
-/*
- * Tell the driver that the "virtual buffer" is dirty, and an update
- * of it to the real device, maybe a serial/parallel LCD or whatever
- * is required
- */
-extern int ufb_buffer_is_dirty( int fd );
-
-/*
- * This function unmaps memory of the FB from the user's space
- */
- int ufb_unmmap_from_user_space( int fd, void *addr );
#ifdef __cplusplus
}