1 #ifndef _TOOLS_LINUX_TYPES_H_
2 #define _TOOLS_LINUX_TYPES_H_
10 #include <sys/types.h>
12 #define __SANE_USERSPACE_TYPES__ /* For PPC64, to get LL64 types */
13 #include <asm/types.h>
15 #include <linux/cache.h>
17 #define BITS_PER_LONG __BITS_PER_LONG
22 typedef unsigned long pgoff_t;
24 typedef unsigned short umode_t;
26 typedef unsigned gfp_t;
35 #define __GFP_NOWARN 0
36 #define __GFP_NORETRY 0
37 #define __GFP_NOFAIL 0
40 #define PAGE_ALLOC_COSTLY_ORDER 6
52 #define __bitwise__ __attribute__((bitwise))
56 #ifdef __CHECK_ENDIAN__
57 #define __bitwise __bitwise__
67 typedef __u16 __bitwise __le16;
68 typedef __u16 __bitwise __be16;
69 typedef __u32 __bitwise __le32;
70 typedef __u32 __bitwise __be32;
71 typedef __u64 __bitwise __le64;
72 typedef __u64 __bitwise __be64;
75 # define __aligned_u64 __u64 __attribute__((aligned(8)))
80 typedef int (*cmp_func_t)(const void *a, const void *b);
82 typedef unsigned int __bitwise slab_flags_t;
83 typedef u64 phys_addr_t;
86 #endif /* _TOOLS_LINUX_TYPES_H_ */