|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] [PATCH 19 of 38] x86: add arch specific version of the swiot
From: Ian Campbell <ian.campbell@xxxxxxxxxx>
These are to be used later and contain the default implementation.
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);
}
+unsigned long swiotlb_virt_to_bus(volatile void *address)
+{
+ return virt_to_bus(address);
+}
+
+void * swiotlb_bus_to_virt(unsigned long address)
+{
+ return bus_to_virt(address);
+}
+
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 08 of 38] x86: make apic_* operations inline functions, (continued)
- [Xen-devel] [PATCH 08 of 38] x86: make apic_* operations inline functions, Jeremy Fitzhardinge
- [Xen-devel] [PATCH 07 of 38] x86: add io_apic_ops, Jeremy Fitzhardinge
- [Xen-devel] [PATCH 10 of 38] x86: add handle_irq() to allow interrupt injection, Jeremy Fitzhardinge
- [Xen-devel] [PATCH 11 of 38] x86: define no-op exit_idle() on 32-bit, Jeremy Fitzhardinge
- [Xen-devel] [PATCH 12 of 38] xen/dom0: handle acpi lapic parsing in Xen dom0, Jeremy Fitzhardinge
- [Xen-devel] [PATCH 13 of 38] x86: unstatic mp_find_ioapic so it can be used elsewhere, Jeremy Fitzhardinge
- [Xen-devel] [PATCH 14 of 38] x86: add mp_find_ioapic_pin, Jeremy Fitzhardinge
- [Xen-devel] [PATCH 15 of 38] x86: unstatic ioapic entry funcs, Jeremy Fitzhardinge
- [Xen-devel] [PATCH 16 of 38] x86: include linux/init.h in asm/numa_64.h, Jeremy Fitzhardinge
- [Xen-devel] [PATCH 17 of 38] x86: add swiotlb allocation functions, Jeremy Fitzhardinge
- [Xen-devel] [PATCH 19 of 38] x86: add arch specific version of the swiotlb virt<->bus<->virt functions,
Jeremy Fitzhardinge <=
- [Xen-devel] [PATCH 21 of 38] xen dom0: Initialize xenbus for dom0, Jeremy Fitzhardinge
- [Xen-devel] [PATCH 18 of 38] x86: unify pci iommu setup and allow swiotlb to compile for 32 bit, Jeremy Fitzhardinge
[Xen-devel] [PATCH 20 of 38] xen dom0: Make hvc_xen console work for dom0, Jeremy Fitzhardinge
[Xen-devel] [PATCH 23 of 38] xen-dom0: only selectively disable cpu features, Jeremy Fitzhardinge
|
|
|
|
|