diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-powerpc/types.h | 4 | ||||
-rw-r--r-- | include/asm-ppc64/scatterlist.h | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/include/asm-powerpc/types.h b/include/asm-powerpc/types.h index f70cd3fb32d..ec3c2ee8bf8 100644 --- a/include/asm-powerpc/types.h +++ b/include/asm-powerpc/types.h @@ -85,7 +85,11 @@ typedef unsigned long long u64; typedef __vector128 vector128; +#ifdef __powerpc64__ +typedef u64 dma_addr_t; +#else typedef u32 dma_addr_t; +#endif typedef u64 dma64_addr_t; typedef struct { diff --git a/include/asm-ppc64/scatterlist.h b/include/asm-ppc64/scatterlist.h index cecce6c6dfb..65a2a027ac9 100644 --- a/include/asm-ppc64/scatterlist.h +++ b/include/asm-ppc64/scatterlist.h @@ -19,7 +19,7 @@ struct scatterlist { unsigned int length; /* For TCE support */ - u32 dma_address; + dma_addr_t dma_address; u32 dma_length; }; |