|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] [PATCH 13 of 14] x86/swiotlb: add default phys<->bus convers
From: Ian Campbell <ian.campbell@xxxxxxxxxx>
Xen will override these later on.
Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx>
Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@xxxxxxxxxx>
---
arch/x86/kernel/pci-swiotlb_64.c | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/arch/x86/kernel/pci-swiotlb_64.c b/arch/x86/kernel/pci-swiotlb_64.c
--- a/arch/x86/kernel/pci-swiotlb_64.c
+++ b/arch/x86/kernel/pci-swiotlb_64.c
@@ -23,6 +23,16 @@
return (void *)__get_free_pages(GFP_DMA | __GFP_NOWARN, order);
}
+dma_addr_t swiotlb_phys_to_bus(phys_addr_t paddr)
+{
+ return paddr;
+}
+
+phys_addr_t swiotlb_bus_to_phys(dma_addr_t baddr)
+{
+ return baddr;
+}
+
static dma_addr_t
swiotlb_map_single_phys(struct device *hwdev, phys_addr_t paddr, size_t size,
int direction)
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Xen-devel] [PATCH 03 of 14] swiotlb: move some definitions to header, (continued)
- [Xen-devel] [PATCH 05 of 14] swiotlb: add comment where we handle the overflow of a dma mask on 32 bit, Jeremy Fitzhardinge
- [Xen-devel] [PATCH 06 of 14] swiotlb: allow architectures to override phys<->bus<->phys conversions, Jeremy Fitzhardinge
- [Xen-devel] [PATCH 07 of 14] swiotlb: add arch hook to force mapping, Jeremy Fitzhardinge
- [Xen-devel] [PATCH 08 of 14] swiotlb: factor out copy to/from device, Jeremy Fitzhardinge
- [Xen-devel] [PATCH 10 of 14] swiotlb: consolidate swiotlb info message printing, Jeremy Fitzhardinge
- [Xen-devel] [PATCH 11 of 14] x86: add swiotlb allocation functions, Jeremy Fitzhardinge
- [Xen-devel] [PATCH 13 of 14] x86/swiotlb: add default phys<->bus conversion,
Jeremy Fitzhardinge <=
- [Xen-devel] [PATCH 12 of 14] x86: unify pci iommu setup and allow swiotlb to compile for 32 bit, Jeremy Fitzhardinge
- [Xen-devel] [PATCH 14 of 14] x86/swiotlb: add default swiotlb_arch_range_needs_mapping, Jeremy Fitzhardinge
- [Xen-devel] [PATCH 09 of 14] swiotlb: support bouncing of HighMem pages, Jeremy Fitzhardinge
- [Xen-devel] Re: [PATCH 00 of 14] swiotlb/x86: lay groundwork for xen dom0 use of swiotlb, Ingo Molnar
- Message not available
- Message not available
- Message not available
- Message not available
- [Xen-devel] Re: [PATCH 00 of 14] swiotlb/x86: lay groundwork for xen dom0 use of swiotlb, Jeremy Fitzhardinge
- Message not available
- Message not available
- [Xen-devel] Re: [PATCH 00 of 14] swiotlb/x86: lay groundwork for xen dom0 use of swiotlb, Ingo Molnar
|
|
|
|
|