swiotlb: add arch hook to force mapping
authorIan Campbell <ian.campbell@citrix.com>
Tue, 16 Dec 2008 20:17:31 +0000 (12:17 -0800)
committerIngo Molnar <mingo@elte.hu>
Wed, 17 Dec 2008 17:58:13 +0000 (18:58 +0100)
commitb81ea27b2329bf44b30c427800954f845896d476
tree84bbfc80477c3561ee601c1c05dcc0917ced196b
parente08e1f7adba522378e8d2ae941bf25443866136d
swiotlb: add arch hook to force mapping

Impact: generalize the sw-IOTLB range checks

Some architectures require special rules to determine whether a range
needs mapping or not.  This adds a weak function for architectures to
override.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
include/linux/swiotlb.h
lib/swiotlb.c