[PATCH] x86_64 merge: arch + asm
[opensuse:kernel.git] / include / asm-x86_64 / types.h
1 #ifndef _X86_64_TYPES_H
2 #define _X86_64_TYPES_H
3
4 typedef unsigned short umode_t;
5
6 /*
7  * __xx is ok: it doesn't pollute the POSIX namespace. Use these in the
8  * header files exported to user space
9  */
10
11 typedef __signed__ char __s8;
12 typedef unsigned char __u8;
13
14 typedef __signed__ short __s16;
15 typedef unsigned short __u16;
16
17 typedef __signed__ int __s32;
18 typedef unsigned int __u32;
19
20 typedef __signed__ long __s64;
21 typedef unsigned long  __u64;
22
23 /*
24  * These aren't exported outside the kernel to avoid name space clashes
25  */
26 #ifdef __KERNEL__
27
28 typedef signed char s8;
29 typedef unsigned char u8;
30
31 typedef signed short s16;
32 typedef unsigned short u16;
33
34 typedef signed int s32;
35 typedef unsigned int u32;
36
37 typedef signed long s64;
38 typedef unsigned long u64;
39
40 #define BITS_PER_LONG 64
41
42 typedef u32 dma64_addr_t;
43 typedef u64 dma_addr_t;
44
45 #endif /* __KERNEL__ */
46
47 #endif