Skip to content
Snippets Groups Projects
Commit 81d3f1fd authored by Jean-Christophe PLAGNIOL-VILLARD's avatar Jean-Christophe PLAGNIOL-VILLARD Committed by Wolfgang Denk
Browse files

nios2: fix phys_addr_t and phys_size_t support

parent 5fa62000
No related branches found
No related tags found
No related merge requests found
...@@ -27,6 +27,7 @@ ...@@ -27,6 +27,7 @@
#include <nios2.h> #include <nios2.h>
#include <nios2-io.h> #include <nios2-io.h>
#include <asm/types.h>
#include <asm/io.h> #include <asm/io.h>
#include <asm/ptrace.h> #include <asm/ptrace.h>
#include <common.h> #include <common.h>
......
...@@ -52,6 +52,9 @@ typedef unsigned long long u64; ...@@ -52,6 +52,9 @@ typedef unsigned long long u64;
/* Dma addresses are 32-bits wide. */ /* Dma addresses are 32-bits wide. */
typedef u32 dma_addr_t; typedef u32 dma_addr_t;
typedef unsigned long phys_addr_t;
typedef unsigned long phys_size_t;
#endif /* __KERNEL__ */ #endif /* __KERNEL__ */
#endif /* __ASM_NIOS2_TYPES_H */ #endif /* __ASM_NIOS2_TYPES_H */
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment