summaryrefslogtreecommitdiffstats
path: root/cpukit
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2007-01-29 04:45:29 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2007-01-29 04:45:29 +0000
commit5ea0caad2738fe52549027486922de3f37ccaa20 (patch)
tree3bc127adc46139b9585ca3a8192fd5155ad3a0a6 /cpukit
parent2007-01-29 Ralf Corsépius <ralf.corsepius@rtems.org> (diff)
downloadrtems-5ea0caad2738fe52549027486922de3f37ccaa20.tar.bz2
2007-01-29 Ralf Corsépius <ralf.corsepius@rtems.org>
* libmisc/mw-fb/mw_fb.h: Eliminate __u32, __u16.
Diffstat (limited to 'cpukit')
-rw-r--r--cpukit/ChangeLog4
-rw-r--r--cpukit/libmisc/mw-fb/mw_fb.h34
2 files changed, 20 insertions, 18 deletions
diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog
index 812a594cb9..4663eec051 100644
--- a/cpukit/ChangeLog
+++ b/cpukit/ChangeLog
@@ -1,3 +1,7 @@
+2007-01-29 Ralf Corsépius <ralf.corsepius@rtems.org>
+
+ * libmisc/mw-fb/mw_fb.h: Eliminate __u32, __u16.
+
2007-01-28 Ralf Corsépius <ralf.corsepius@rtems.org>
* libnetworking/libc/gethostbyht.c: Remove warning on unused vars.
diff --git a/cpukit/libmisc/mw-fb/mw_fb.h b/cpukit/libmisc/mw-fb/mw_fb.h
index c48ae72783..88aec5dd58 100644
--- a/cpukit/libmisc/mw-fb/mw_fb.h
+++ b/cpukit/libmisc/mw-fb/mw_fb.h
@@ -10,6 +10,8 @@
#ifndef _MW_FB_H
#define _MW_FB_H
+#include <rtems/stdint.h>
+
#ifdef __cplusplus
extern "C" {
#endif
@@ -39,30 +41,26 @@ extern "C" {
#define FB_ACCEL_NONE 0 /* no hardware accelerator */
-/* no dependency on any other header file */
-typedef unsigned long __u32;
-typedef unsigned short __u16;
-
struct fb_screeninfo {
- __u32 xres; /* visible resolution */
- __u32 yres;
- __u32 bits_per_pixel; /* guess what */
- __u32 line_length; /* number of chars per line */
- volatile char *smem_start; /* Start of frame buffer mem */
+ 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 */
/* (physical address) */
- __u32 smem_len; /* Length of frame buffer mem */
- __u32 type; /* see FB_TYPE_* */
- __u32 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_* */
};
struct fb_cmap {
- __u32 start; /* First entry */
- __u32 len; /* Number of entries */
- __u16 *red; /* Red values */
- __u16 *green;
- __u16 *blue;
- __u16 *transp; /* transparency, can be NULL */
+ uint32_t start; /* First entry */
+ uint32_t len; /* Number of entries */
+ uint16_t *red; /* Red values */
+ uint16_t *green;
+ uint16_t *blue;
+ uint16_t *transp; /* transparency, can be NULL */
};
/* type of function to be executed at the driver level */