Skip to contentSkip to conversation

ia64: swiotlb abstraction (e.g. for Xen)

PATCH Applied [email protected] 1 participant 1 message Feb 6, 2007 Library code

lore
Share & tools
lore

[email protected]

author maintainer
#0 lore raw

PATCH 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.

---

 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
diff -puN /dev/null include/asm-ia64/swiotlb.h
@@ -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
diff -puN include/asm-x86_64/swiotlb.h~ia64-swiotlb-abstraction-eg-for-xen include/asm-x86_64/swiotlb.h
@@ -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

_