Fix system include file use

git-svn-id: svn://coreboot.org/openbios/openbios-devel@250 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
Blue Swirl
2008-11-17 19:42:11 +00:00
parent 7fcb78bc5b
commit e5bc7e8990
15 changed files with 55 additions and 40 deletions

View File

@@ -7,7 +7,7 @@
*/
#include "openbios/config.h"
#include <asm/types.h>
#include "asm/types.h"
#include "sys_info.h"
/*

View File

@@ -8,7 +8,6 @@
*/
#include "openprom.h"
#include "stdint.h"
#include "asm/io.h"
#include "asm/types.h"
#include "libc/vsprintf.h"

View File

@@ -7,7 +7,7 @@
*/
#include "openbios/config.h"
#include <asm/types.h>
#include "asm/types.h"
#include "sys_info.h"
/*

View File

@@ -23,6 +23,7 @@
#include "openbios/config.h"
#include "openbios/bindings.h"
#include "asm/types.h"
#include "adb.h"
#include "kbd.h"
#include "cuda.h"

View File

@@ -20,8 +20,6 @@
#if !defined(__OHW_ADB_H__)
#define __OHW_ADB_H__
#include <stdint.h>
typedef struct adb_bus_t adb_bus_t;
typedef struct adb_dev_t adb_dev_t;

View File

@@ -9,7 +9,7 @@
#define _SPARC_ESP_H
/* For dvma controller register definitions. */
#include <asm/dma.h>
#include "asm/dma.h"
/* The ESP SCSI controllers have their register sets in three
* "classes":

View File

@@ -19,8 +19,7 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA, 02110-1301 USA
*/
#include <stdlib.h>
#include <stdio.h>
#include "asm/types.h"
#include "kbd.h"
//#define DEBUG_KBD

View File

@@ -21,7 +21,6 @@
#if !defined (__OHW_KBD_H__)
#define __OHW_KBD_H__
#include <stdint.h>
typedef struct kbd_t kbd_t;
typedef struct keymap_t keymap_t;
struct kbd_t {

View File

@@ -1,6 +1,5 @@
#include "asm/io.h"
#include "video_subr.h"
#include "string.h"
#include "vga.h"
/*

View File

@@ -22,7 +22,7 @@
#include "openbios/config.h"
#include "shared.h"
#include "filesys.h"
#include <libc/byteorder.h>
#include "libc/byteorder.h"
#ifdef CONFIG_DEBUG_EXT2FS
#define E2DEBUG

View File

@@ -40,7 +40,7 @@ typedef unsigned long long __u64;
/* linux/posix_type.h */
typedef long linux_off_t;
#include <libc/byteorder.h>
#include "libc/byteorder.h"
/* include/linux/reiser_fs.h */
/* This is the new super block of a journaling reiserfs system */

View File

@@ -53,7 +53,7 @@
*/
#ifdef FSYS_UFS
#include <stdint.h>
#include "asm/types.h"
#include "shared.h"
#include "filesys.h"

View File

@@ -11,30 +11,22 @@
#include "mconfig.h"
#ifndef __APPLE__
#ifdef BOOTSTRAP
#include <stdint.h>
#else
/* Mac OS X */
typedef char int8_t;
typedef unsigned char uint8_t;
typedef unsigned char u_int8_t;
typedef short int16_t;
typedef unsigned short uint16_t;
typedef unsigned short u_int16_t;
typedef int int32_t;
typedef unsigned int uint32_t;
typedef unsigned int u_int32_t;
typedef long long int64_t;
typedef unsigned long long uint64_t;
typedef unsigned long long u_int64_t;
typedef signed char int8_t;
typedef short int16_t;
typedef int int32_t;
typedef long long int64_t;
#endif
/* endianess */
#ifdef HAVE_ENDIAN_H
#include <endian.h>
#else
#include <machine/endian.h>
#endif
#include "autoconf.h"
/* cell based types */

View File

@@ -11,7 +11,19 @@
#include "mconfig.h"
#ifdef BOOTSTRAP
#include <stdint.h>
#else
typedef unsigned char uint8_t;
typedef unsigned short uint16_t;
typedef unsigned int uint32_t;
typedef unsigned long long uint64_t;
typedef signed char int8_t;
typedef short int16_t;
typedef int int32_t;
typedef long long int64_t;
#endif
/* endianess */
#include "autoconf.h"

View File

@@ -11,7 +11,26 @@
#include "mconfig.h"
#ifdef BOOTSTRAP
#include <stdint.h>
#else
typedef unsigned char uint8_t;
typedef unsigned short uint16_t;
typedef unsigned int uint32_t;
typedef unsigned long long uint64_t;
typedef signed char int8_t;
typedef short int16_t;
typedef int int32_t;
typedef long long int64_t;
#endif
/* endianess */
#include "autoconf.h"
/* cell based types */
typedef int64_t cell;
typedef uint64_t ucell;
#ifdef NEED_FAKE_INT128_T
typedef struct {
@@ -19,15 +38,12 @@ typedef struct {
uint64_t lo;
} blob_128_t;
typedef blob_128_t __int128_t;
typedef blob_128_t __uint128_t;
#endif
/* cell based types */
typedef int64_t cell;
typedef uint64_t ucell;
typedef blob_128_t dcell;
typedef blob_128_t ducell;
#else
typedef __int128_t dcell;
typedef __uint128_t ducell;
#endif
#define bitspercell (sizeof(cell)<<3)
#define bitsperdcell (sizeof(dcell)<<3)
@@ -39,11 +55,11 @@ typedef __uint128_t ducell;
typedef unsigned char u8;
typedef unsigned short u16;
typedef unsigned int u32;
typedef unsigned long u64;
typedef unsigned long long u64;
typedef signed char s8;
typedef short s16;
typedef int s32;
typedef long s64;
typedef long long s64;
#endif