1
2 #ifndef _UAPI_LINUX_TYPES_H
3 #define _UAPI_LINUX_TYPES_H
4
5 #include <asm/types.h>
6
7 #ifndef __ASSEMBLY__
8 #ifndef __KERNEL__
9 #ifndef __EXPORTED_HEADERS__
10 #warning "Attempt to use kernel headers from user space, see http://kernelnewbies.org/KernelHeaders"
11 #endif
12 #endif
13
14 #include <linux/posix_types.h>
15
16
17
18
19
20
21
22 #ifdef __CHECKER__
23 #define __bitwise__ __attribute__((bitwise))
24 #else
25 #define __bitwise__
26 #endif
27 #define __bitwise __bitwise__
28
29 typedef __u16 __bitwise __le16;
30 typedef __u16 __bitwise __be16;
31 typedef __u32 __bitwise __le32;
32 typedef __u32 __bitwise __be32;
33 typedef __u64 __bitwise __le64;
34 typedef __u64 __bitwise __be64;
35
36 typedef __u16 __bitwise __sum16;
37 typedef __u32 __bitwise __wsum;
38
39
40
41
42
43
44
45
46
47
48 #define __aligned_u64 __u64 __attribute__((aligned(8)))
49 #define __aligned_be64 __be64 __attribute__((aligned(8)))
50 #define __aligned_le64 __le64 __attribute__((aligned(8)))
51
52 typedef unsigned __bitwise __poll_t;
53
54 #endif
55 #endif