ia64: swiotlb abstraction (e.g. for Xen)
[email protected]
maintainerPATCH 6/13 ia64: swiotlb abstraction (e.g. for Xen)
From: "Jan Beulich" <[email protected]>
Add abstraction so that the file can be used by environments other than IA64 and EM64T, namely for Xen.
Signed-off-by Jan Beulich <[email protected]>
Cc "Luck, Tony" <[email protected]>
Cc Andi Kleen <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
include/asm-ia64/swiotlb.h | 9 + include/asm-x86_64/swiotlb.h | 1 lib/swiotlb.c | 184 ++++++++++++++++++++++++++------- 3 files changed, 159 insertions(+), 35 deletions(-)
include/asm-ia64/swiotlb.h new file +9 -0
@@ -0,0 +1,9 @@ +#ifndef _ASM_SWIOTLB_H +#define _ASM_SWIOTLB_H 1 + +#include <asm/machvec.h> + +#define SWIOTLB_ARCH_NEED_LATE_INIT +#define SWIOTLB_ARCH_NEED_ALLOC + +#endif /* _ASM_SWIOTLB_H */
include/asm-x86_64/swiotlb.h renamed from include/asm-x86_64/swiotlb.h~ia64-swiotlb-abstraction-eg-for-xen +1 -0
@@ -44,6 +44,7 @@ extern void swiotlb_init(void);extern int swiotlb_force;#ifdef CONFIG_SWIOTLB +#define SWIOTLB_ARCH_NEED_ALLOC extern int swiotlb;#else #define swiotlb 0
lib/swiotlb.c renamed from lib/swiotlb.c~ia64-swiotlb-abstraction-eg-for-xen +149 -35
386 lines not on this page · raw message
_