1 /* Public domain. */ 2 3 #ifndef _LINUX_TYPES_H 4 #define _LINUX_TYPES_H 5 6 #include <sys/types.h> 7 #include <sys/stdint.h> 8 /* 9 * sparc64 bus.h needs _null.h (indirect via param.h) 10 * sparc64 busop.h needs machine/ctlreg.h (indirect via param.h) 11 */ 12 #include <sys/param.h> 13 #include <machine/bus.h> 14 15 typedef int8_t __s8; 16 typedef uint8_t __u8; 17 typedef int16_t __s16; 18 typedef uint16_t __u16; 19 typedef int32_t __s32; 20 typedef uint32_t __u32; 21 typedef int64_t __s64; 22 typedef uint64_t __u64; 23 24 typedef int8_t s8; 25 typedef uint8_t u8; 26 typedef int16_t s16; 27 typedef uint16_t u16; 28 typedef int32_t s32; 29 typedef uint32_t u32; 30 typedef int64_t s64; 31 typedef uint64_t u64; 32 33 typedef uint16_t __le16; 34 typedef uint16_t __be16; 35 typedef uint32_t __le32; 36 typedef uint32_t __be32; 37 typedef uint64_t __le64; 38 typedef uint64_t __be64; 39 40 typedef uint64_t dma_addr_t; 41 typedef paddr_t phys_addr_t; 42 typedef paddr_t resource_size_t; 43 44 typedef off_t loff_t; 45 46 typedef __ptrdiff_t ptrdiff_t; 47 48 typedef unsigned int gfp_t; 49 50 typedef unsigned long pgoff_t; 51 typedef int pgprot_t; 52 53 typedef int atomic_t; 54 55 struct list_head { 56 struct list_head *next, *prev; 57 }; 58 59 struct hlist_node { 60 struct hlist_node *next, **prev; 61 }; 62 63 struct hlist_head { 64 struct hlist_node *first; 65 }; 66 67 #define DECLARE_BITMAP(x, y) unsigned long x[BITS_TO_LONGS(y)]; 68 69 #define LINUX_PAGE_MASK (~PAGE_MASK) 70 71 #endif /* _LINUX_TYPES_H_ */ 72