xemu/hw/usb
David Gibson 59a70ccd3b usb-xhci: Use PCI DMA helper functions
Shortly before 1.0, we added helper functions / wrappers for doing PCI DMA
from individual devices.  This makes what's going on clearer and means that
when we add IOMMU support somewhere in the future, only the general PCI
code will have to change, not every device that uses PCI DMA.

However, usb-xhci is not using these wrappers, despite being a PCI only
device.  This patch remedies the situation, using the pci dma functions
instead of direct calls to cpu_physical_memory_{read,write}().  Likewise
address parameters for DMA are changed to dma_addr_t instead of
target_phys_addr_t.

[ kraxel: removed #ifdefs ]

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
2012-04-26 12:21:16 +02:00
..
bus.c usb/vmstate: add parent dev path 2012-04-17 10:23:21 +02:00
core.c usb-ehci: add missing usb_packet_init() call 2012-04-26 12:21:15 +02:00
desc.c usb: use USBDescriptor for endpoint descriptors. 2012-04-17 10:23:28 +02:00
desc.h usb: use USBDescriptor for endpoint descriptors. 2012-04-17 10:23:28 +02:00
dev-audio.c usb: the big rename 2012-03-13 10:15:32 +01:00
dev-bluetooth.c usb: the big rename 2012-03-13 10:15:32 +01:00
dev-hid.c usb: the big rename 2012-03-13 10:15:32 +01:00
dev-hub.c usb-hub: add tracepoints 2012-04-17 10:23:27 +02:00
dev-network.c usb: the big rename 2012-03-13 10:15:32 +01:00
dev-serial.c usb: the big rename 2012-03-13 10:15:32 +01:00
dev-smartcard-reader.c usb: the big rename 2012-03-13 10:15:32 +01:00
dev-storage.c usb-storage: fix request canceling 2012-04-26 12:21:16 +02:00
dev-wacom.c usb: the big rename 2012-03-13 10:15:32 +01:00
hcd-ehci.c usb-ehci: Ensure frindex writes leave a valid frindex value 2012-04-26 12:21:15 +02:00
hcd-musb.c usb: the big rename 2012-03-13 10:15:32 +01:00
hcd-ohci.c usb-ohci: DMA writeback bug fixes 2012-03-13 10:15:32 +01:00
hcd-uhci.c usb-uhci: queuing fix 2012-04-17 10:23:27 +02:00
hcd-xhci.c usb-xhci: Use PCI DMA helper functions 2012-04-26 12:21:16 +02:00
host-bsd.c usb: the big rename 2012-03-13 10:15:32 +01:00
host-linux.c usb-host: fix zero-length packets 2012-04-26 12:21:16 +02:00
host-stub.c usb: the big rename 2012-03-13 10:15:32 +01:00
libhw.c usb: the big rename 2012-03-13 10:15:32 +01:00
redirect.c usb-redir: Notify our peer when we reject a device due to a speed mismatch 2012-04-17 10:23:28 +02:00