swiotlb: allow architectures to override phys<->bus<->phys conversions
commite08e1f7adba522378e8d2ae941bf25443866136d
authorIan Campbell <ian.campbell@citrix.com>
Tue, 16 Dec 2008 20:17:30 +0000 (16 12:17 -0800)
committerIngo Molnar <mingo@elte.hu>
Wed, 17 Dec 2008 17:58:09 +0000 (17 18:58 +0100)
tree4410e414d856dc03d77a0c654d6b9672f6e69f36
parenta5ddde4a558b3bd1e3dc50e274a0db2ea7a8fd06
swiotlb: allow architectures to override phys<->bus<->phys conversions

Impact: generalize phys<->bus<->phys conversions in the swiotlb code

Architectures may need to override these conversions. Implement a
__weak hook point containing the default implementation.

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