1 #ifndef __LINUX_TYPES_WRAPPER_H
2 #define __LINUX_TYPES_WRAPPER_H 1
4 #include <linux/version.h>
5 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
6 #error These replacement header files are for use with Linux 2.4.x only.
9 #include_next <linux/types.h>
12 * Below are truly Linux-specific types that should never collide with
13 * any application/library that wants linux/types.h.
17 #define __bitwise__ __attribute__((bitwise))
21 #ifdef __CHECK_ENDIAN__
22 #define __bitwise __bitwise__
27 typedef __u16 __bitwise __le16;
28 typedef __u16 __bitwise __be16;
29 typedef __u32 __bitwise __le32;
30 typedef __u32 __bitwise __be32;
31 #if defined(__GNUC__) && !defined(__STRICT_ANSI__)
32 typedef __u64 __bitwise __le64;
33 typedef __u64 __bitwise __be64;
35 typedef __u16 __bitwise __sum16;
36 typedef __u32 __bitwise __wsum;
39 typedef unsigned __bitwise__ gfp_t;
41 #ifdef CONFIG_RESOURCES_64BIT
42 typedef u64 resource_size_t;
44 typedef u32 resource_size_t;
47 #endif /* __KERNEL__ */