1 #ifndef _PPC_TYPES_H 2 #define _PPC_TYPES_H 3 4 #include <asm-generic/int-ll64.h> 5 6 #ifndef __ASSEMBLY__ 7 8 typedef unsigned short umode_t; 9 10 typedef struct { 11 __u32 u[4]; 12 } __attribute__((aligned(16))) vector128; 13 14 #ifdef __KERNEL__ 15 16 #define BITS_PER_LONG 32 17 18 #ifdef CONFIG_PHYS_64BIT 19 typedef unsigned long long dma_addr_t; 20 #else 21 /* DMA addresses are 32-bits wide */ 22 typedef u32 dma_addr_t; 23 #endif 24 25 #ifdef CONFIG_PHYS_64BIT 26 typedef unsigned long long phys_addr_t; 27 typedef unsigned long long phys_size_t; 28 #else 29 typedef unsigned long phys_addr_t; 30 typedef unsigned long phys_size_t; 31 #endif 32 33 #endif /* __KERNEL__ */ 34 #endif /* __ASSEMBLY__ */ 35 36 #endif 37