116,11 → 116,12 |
typedef __u16 uint16_t; |
typedef __u32 uint32_t; |
|
#if defined(__GNUC__) |
typedef __u64 uint64_t; |
typedef __u64 u_int64_t; |
typedef __s64 int64_t; |
#endif |
|
typedef __signed__ long long int64_t; |
|
/* this is a special 64bit data type that is 8-byte aligned */ |
#define aligned_u64 __u64 __attribute__((aligned(8))) |
#define aligned_be64 __be64 __attribute__((aligned(8))) |
150,6 → 151,7 |
#define pgoff_t unsigned long |
#endif |
|
/* A dma_addr_t can hold any valid DMA or bus address for the platform */ |
#ifdef CONFIG_ARCH_DMA_ADDR_T_64BIT |
typedef u64 dma_addr_t; |
#else |
200,6 → 202,7 |
#ifdef __KERNEL__ |
typedef unsigned __bitwise__ gfp_t; |
typedef unsigned __bitwise__ fmode_t; |
typedef unsigned __bitwise__ oom_flags_t; |
|
#ifdef CONFIG_PHYS_ADDR_T_64BIT |
typedef u64 phys_addr_t; |
209,6 → 212,12 |
|
typedef phys_addr_t resource_size_t; |
|
/* |
* This type is the placeholder for a hardware interrupt number. It has to be |
* big enough to enclose whatever representation is used by a given platform. |
*/ |
typedef unsigned long irq_hw_number_t; |
|
typedef struct { |
int counter; |
} atomic_t; |