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>
This commit is contained in:
Ian Campbell 2008-12-16 12:17:30 -08:00 • committed by Ingo Molnar
commit e08e1f7adb
2 changed files with 39 additions and 16 deletions