1 #ifndef _TOOLS_LINUX_TYPES_H_
2 #define _TOOLS_LINUX_TYPES_H_
10 #include <sys/types.h>
11 #include <linux/posix_types.h>
13 #define __SANE_USERSPACE_TYPES__ /* For PPC64, to get LL64 types */
14 #include <asm/types.h>
16 #include <linux/cache.h>
18 #define BITS_PER_LONG __BITS_PER_LONG
23 typedef unsigned long pgoff_t;
25 typedef unsigned short umode_t;
27 typedef unsigned gfp_t;
35 #define __GFP_NOWARN 0
36 #define __GFP_NORETRY 0
37 #define __GFP_NOFAIL 0
41 #define PAGE_ALLOC_COSTLY_ORDER 6
53 #define __bitwise__ __attribute__((bitwise))
57 #ifdef __CHECK_ENDIAN__
58 #define __bitwise __bitwise__
68 typedef __u16 __bitwise __le16;
69 typedef __u16 __bitwise __be16;
70 typedef __u32 __bitwise __le32;
71 typedef __u32 __bitwise __be32;
72 typedef __u64 __bitwise __le64;
73 typedef __u64 __bitwise __be64;
76 # define __aligned_u64 __u64 __attribute__((aligned(8)))
81 typedef void (*swap_r_func_t)(void *a, void *b, int size, const void *priv);
82 typedef void (*swap_func_t)(void *a, void *b, int size);
84 typedef int (*cmp_r_func_t)(const void *a, const void *b, const void *priv);
85 typedef int (*cmp_func_t)(const void *a, const void *b);
87 typedef unsigned int __bitwise slab_flags_t;
88 typedef u64 phys_addr_t;
92 #endif /* _TOOLS_LINUX_TYPES_H_ */