瀏覽代碼

nios2: fix phys_addr_t and phys_size_t support

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Jean-Christophe PLAGNIOL-VILLARD 16 年之前
父節點
當前提交
81d3f1fddd
共有 2 個文件被更改,包括 4 次插入0 次删除
  1. 1 0
      cpu/nios2/interrupts.c
  2. 3 0
      include/asm-nios2/types.h

+ 1 - 0
cpu/nios2/interrupts.c

@@ -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>

+ 3 - 0
include/asm-nios2/types.h

@@ -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 */