/* Public domain. */ #ifndef _LINUX_TYPES_H #define _LINUX_TYPES_H #include #include /* * sparc64 bus.h needs _null.h (indirect via param.h) * sparc64 busop.h needs machine/ctlreg.h (indirect via param.h) */ #include #include typedef int8_t __s8; typedef uint8_t __u8; typedef int16_t __s16; typedef uint16_t __u16; typedef int32_t __s32; typedef uint32_t __u32; typedef int64_t __s64; typedef uint64_t __u64; typedef int8_t s8; typedef uint8_t u8; typedef int16_t s16; typedef uint16_t u16; typedef int32_t s32; typedef uint32_t u32; typedef int64_t s64; typedef uint64_t u64; typedef uint16_t __le16; typedef uint16_t __be16; typedef uint32_t __le32; typedef uint32_t __be32; typedef uint64_t __le64; typedef uint64_t __be64; typedef uint64_t dma_addr_t; typedef paddr_t phys_addr_t; typedef paddr_t resource_size_t; typedef off_t loff_t; typedef __ptrdiff_t ptrdiff_t; typedef unsigned int gfp_t; typedef unsigned long pgoff_t; typedef int pgprot_t; typedef int atomic_t; struct list_head { struct list_head *next, *prev; }; struct hlist_node { struct hlist_node *next, **prev; }; struct hlist_head { struct hlist_node *first; }; #define DECLARE_BITMAP(x, y) unsigned long x[BITS_TO_LONGS(y)]; #define LINUX_PAGE_MASK (~PAGE_MASK) #endif /* _LINUX_TYPES_H_ */