Add qemu 2.4.0
[kvmfornfv.git] / qemu / roms / openbios / include / arch / ia64 / 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 Patrick Mauritz, Stefan Reinauer
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 <endian.h>
19
20 /* physical address */
21
22 typedef uint64_t phys_addr_t;
23
24 #define FMT_plx "%016" PRIx64
25
26 /* cell based types */
27
28 typedef int64_t       cell;
29 typedef uint64_t     ucell;
30 typedef __int128_t   dcell;
31 typedef __uint128_t ducell;
32
33 typedef int64_t         prom_arg_t;
34 typedef uint64_t        prom_uarg_t;
35
36 #define PRIdPROMARG     PRId64
37 #define PRIuPROMARG     PRIu64
38 #define PRIxPROMARG     PRIx64
39 #define FMT_prom_arg    "%" PRIdPROMARG
40 #define FMT_prom_uarg   "%" PRIuPROMARG
41 #define FMT_prom_uargx  "%016" PRIxPROMARG
42
43 #define bitspercell     (sizeof(cell)<<3)
44 #define bitsperdcell    (sizeof(dcell)<<3)
45
46 #define BITS            64
47
48 /* size named types */
49
50 typedef unsigned char   u8;
51 typedef unsigned short u16;
52 typedef unsigned int   u32;
53 typedef unsigned long  u64;
54
55 typedef char            s8;
56 typedef short           s16;
57 typedef int             s32;
58 typedef long            s64;
59
60 #endif