Initial import
[sliver-openvswitch.git] / datapath / linux-2.4 / compat-2.4 / include / linux / types.h
1 #ifndef __LINUX_TYPES_WRAPPER_H
2 #define __LINUX_TYPES_WRAPPER_H 1
3
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.
7 #endif
8
9 #include_next <linux/types.h>
10
11 /*
12  * Below are truly Linux-specific types that should never collide with
13  * any application/library that wants linux/types.h.
14  */
15
16 #ifdef __CHECKER__
17 #define __bitwise__ __attribute__((bitwise))
18 #else
19 #define __bitwise__
20 #endif
21 #ifdef __CHECK_ENDIAN__
22 #define __bitwise __bitwise__
23 #else
24 #define __bitwise
25 #endif
26
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;
34 #endif
35 typedef __u16 __bitwise __sum16;
36 typedef __u32 __bitwise __wsum;
37
38 #ifdef __KERNEL__
39 typedef unsigned __bitwise__ gfp_t;
40
41 #ifdef CONFIG_RESOURCES_64BIT
42 typedef u64 resource_size_t;
43 #else
44 typedef u32 resource_size_t;
45 #endif
46
47 #endif  /* __KERNEL__ */
48
49 #endif