From 7c7aabd0f8bec2e4305f344686fea0896ddac029 Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Mon, 29 Jan 2007 04:27:26 +0000 Subject: =?UTF-8?q?2007-01-29=09Ralf=20Cors=C3=A9pius=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * libmisc/mw-fb/mw_fb.h: Eliminate __u32, __u16. --- cpukit/libmisc/mw-fb/mw_fb.h | 34 ++++++++++++++++------------------ 1 file changed, 16 insertions(+), 18 deletions(-) (limited to 'cpukit/libmisc/mw-fb/mw_fb.h') 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 + #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 */ -- cgit v1.2.3