]> git.proxmox.com Git - mirror_qemu.git/commit
ide: factor dma handling helpers
authorChristoph Hellwig <hch@lst.de>
Mon, 20 Dec 2010 12:45:48 +0000 (13:45 +0100)
committerKevin Wolf <kwolf@redhat.com>
Mon, 24 Jan 2011 10:08:50 +0000 (11:08 +0100)
commitcd369c4634e58a99fb82f076e6117bfdf0012b8e
treef5eee0d38844ef367c06b1d0a04e97dbdda20eae
parent8b6b2afcf85dd5ff33075e93a2e30fbea34c5a55
ide: factor dma handling helpers

Factor the DMA I/O path that is duplicated between read and write
commands, into common helpers using the s->is_read flag added for
the macio ATA controller.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
hw/ide/core.c
hw/ide/internal.h
hw/ide/pci.c