1 #ifndef __X86_TYPES_H__
2 #define __X86_TYPES_H__
3 
4 #ifndef __ASSEMBLY__
5 
6 typedef __signed__ char __s8;
7 typedef unsigned char __u8;
8 
9 typedef __signed__ short __s16;
10 typedef unsigned short __u16;
11 
12 typedef __signed__ int __s32;
13 typedef unsigned int __u32;
14 
15 #if defined(__GNUC__) && !defined(__STRICT_ANSI__)
16 typedef __signed__ long __s64;
17 typedef unsigned long __u64;
18 #endif
19 
20 typedef signed char s8;
21 typedef unsigned char u8;
22 
23 typedef signed short s16;
24 typedef unsigned short u16;
25 
26 typedef signed int s32;
27 typedef unsigned int u32;
28 
29 typedef signed long s64;
30 typedef unsigned long u64;
31 typedef unsigned long paddr_t;
32 #define INVALID_PADDR (~0UL)
33 #define PRIpaddr "016lx"
34 
35 #if defined(__SIZE_TYPE__)
36 typedef __SIZE_TYPE__ size_t;
37 #else
38 typedef unsigned long size_t;
39 #endif
40 typedef signed long ssize_t;
41 
42 #endif /* __ASSEMBLY__ */
43 
44 #endif /* __X86_TYPES_H__ */
45