Implement new v3_memalloc romvec interface for allocating aligned memory.
[openbios/afaerber.git] / include / arch / ia64 / types.h
blobcb09cda5b03fb01b8cd3a191f5d1612702a23102
1 /* tag: data types for forth engine
3 * This file is autogenerated by types.sh. Do not edit!
5 * Copyright (C) 2003 Patrick Mauritz, Stefan Reinauer
7 * See the file "COPYING" for further information about
8 * the copyright and warranty status of this work.
9 */
11 #ifndef __TYPES_H
12 #define __TYPES_H
14 #include <inttypes.h>
16 /* endianess */
18 #include <endian.h>
20 /* physical address */
22 typedef uint64_t phys_addr_t;
24 #define FMT_plx "%016" PRIx64
26 /* cell based types */
28 typedef int64_t cell;
29 typedef uint64_t ucell;
30 typedef __int128_t dcell;
31 typedef __uint128_t ducell;
33 typedef int64_t prom_arg_t;
34 typedef uint64_t prom_uarg_t;
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
43 #define bitspercell (sizeof(cell)<<3)
44 #define bitsperdcell (sizeof(dcell)<<3)
46 #define BITS 64
48 /* size named types */
50 typedef unsigned char u8;
51 typedef unsigned short u16;
52 typedef unsigned int u32;
53 typedef unsigned long u64;
55 typedef char s8;
56 typedef short s16;
57 typedef int s32;
58 typedef long s64;
60 #endif