1 #ifndef _LINUX_TYPES_H 2 #define _LINUX_TYPES_H 3 4 #include <asm/types.h> 5 6 #ifndef __ASSEMBLY__ 7 8 #include <linux/posix_types.h> 9 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 typedef __u64 __bitwise __le64; 32 typedef __u64 __bitwise __be64; 33 34 typedef __u16 __bitwise __sum16; 35 typedef __u32 __bitwise __wsum; 36 37 #endif /* __ASSEMBLY__ */ 38 #endif /* _LINUX_TYPES_H */ 39