X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=include%2Fasm-ppc%2Ftypes.h;h=864391f03bd12391e215b625f544efbec4fe8bcd;hb=1b33a62bf9301f9e1611a44865bf3d2c51198993;hp=7adf1450f250f29c7ff473784e0518053f04fd1f;hpb=b075d74efb70ff68c49a2532f26b56d6703b69c1;p=oweals%2Fu-boot.git diff --git a/include/asm-ppc/types.h b/include/asm-ppc/types.h index 7adf1450f2..864391f03b 100644 --- a/include/asm-ppc/types.h +++ b/include/asm-ppc/types.h @@ -44,6 +44,14 @@ typedef unsigned long long u64; /* DMA addresses are 32-bits wide */ typedef u32 dma_addr_t; +#ifdef CONFIG_PHYS_64BIT +typedef unsigned long long phys_addr_t; +typedef unsigned long long phys_size_t; +#else +typedef unsigned long phys_addr_t; +typedef unsigned long phys_size_t; +#endif + #endif /* __KERNEL__ */ #endif /* __ASSEMBLY__ */