Add qemu 2.4.0
[kvmfornfv.git] / qemu / roms / openbios / include / arch / x86 / types.h
1 /* tag: data types for forth engine
2  *
3  * This file is autogenerated by types.sh. Do not edit!
4  *
5  * Copyright (C) 2003-2005 Stefan Reinauer, Patrick Mauritz
6  *
7  * See the file "COPYING" for further information about
8  * the copyright and warranty status of this work.
9  */
10
11 #ifndef __TYPES_H
12 #define __TYPES_H
13
14 #include <inttypes.h>
15
16 /* endianess */
17
18 #include "autoconf.h"
19
20 /* physical address: XXX theoretically 36 bits for PAE */
21
22 typedef uint32_t phys_addr_t;
23
24 #define FMT_plx "%08" PRIx32
25
26 /* cell based types */
27
28 typedef int32_t         cell;
29 typedef uint32_t        ucell;
30 typedef int64_t         dcell;
31 typedef uint64_t        ducell;
32
33 #define FMT_cell    "%" PRId32
34 #define FMT_ucell   "%" PRIu32
35 #define FMT_ucellx  "%08" PRIx32
36 #define FMT_ucellX  "%08" PRIX32
37
38 typedef int32_t         prom_arg_t;
39 typedef uint32_t        prom_uarg_t;
40
41 #define PRIdPROMARG     PRId32
42 #define PRIuPROMARG     PRIu32
43 #define PRIxPROMARG     PRIx32
44 #define FMT_prom_arg    "%" PRIdPROMARG
45 #define FMT_prom_uarg   "%" PRIuPROMARG
46 #define FMT_prom_uargx  "%08" PRIxPROMARG
47
48 #define FMT_elf     "%#x"
49
50 #define bitspercell     (sizeof(cell)<<3)
51 #define bitsperdcell    (sizeof(dcell)<<3)
52
53 #define BITS            32
54
55 #define PAGE_SHIFT      12
56
57 /* size named types */
58
59 typedef unsigned char   u8;
60 typedef unsigned short u16;
61 typedef unsigned int   u32;
62 typedef unsigned long long u64;
63
64 typedef char            s8;
65 typedef short           s16;
66 typedef int             s32;
67 typedef long long       s64;
68
69 #endif