nios2: fix phys_addr_t and phys_size_t support
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Sat, 2 Aug 2008 21:48:31 +0000 (23:48 +0200)
committerWolfgang Denk <wd@denx.de>
Sun, 3 Aug 2008 00:19:16 +0000 (02:19 +0200)
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
cpu/nios2/interrupts.c
include/asm-nios2/types.h

index aeb5b65..ec5db31 100644 (file)
@@ -27,6 +27,7 @@
 
 #include <nios2.h>
 #include <nios2-io.h>
+#include <asm/types.h>
 #include <asm/io.h>
 #include <asm/ptrace.h>
 #include <common.h>
index f13d8bd..ea859c0 100644 (file)
@@ -52,6 +52,9 @@ typedef unsigned long long u64;
 /* Dma addresses are 32-bits wide.  */
 
 typedef u32 dma_addr_t;
+
+typedef unsigned long phys_addr_t;
+typedef unsigned long phys_size_t;
 #endif /* __KERNEL__ */
 
 #endif /* __ASM_NIOS2_TYPES_H */