Skip to content

Commit

Permalink
[IA64] swiotlb abstraction (e.g. for Xen)
Browse files Browse the repository at this point in the history
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]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Tony Luck <[email protected]>
  • Loading branch information
Jan Beulich authored and aegl committed Feb 6, 2007
1 parent 563aaf0 commit 5109900
Show file tree
Hide file tree
Showing 3 changed files with 159 additions and 35 deletions.
9 changes: 9 additions & 0 deletions include/asm-ia64/swiotlb.h
Original file line number Diff line number Diff line change
@@ -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 */
1 change: 1 addition & 0 deletions include/asm-x86_64/swiotlb.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading

0 comments on commit 5109900

Please sign in to comment.