[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCHv2 00/13] sun4m: sparc32_dma tidy-ups
From: |
Mark Cave-Ayland |
Subject: |
[Qemu-devel] [PATCHv2 00/13] sun4m: sparc32_dma tidy-ups |
Date: |
Sat, 14 Oct 2017 19:08:52 +0100 |
This patchset aims to tidy-up the sparc32_dma code by improving the
modelling of the espdma/ledma devices using both QOM and the memory
API which didn't exist when the code was first written.
The result is that it is now possible to remove both the iommu_opaque
and is_ledma workarounds from the code, and the code for wiring up
the espdma/ledma and respective devices is also a lot more readable.
Signed-off-by: Mark Cave-Ayland <address@hidden>
v2:
- Make esp/lance devices children of espdma/ledma devices respectively
- Add len parameter to ledma/espdma tracepoints
Mark Cave-Ayland (13):
sparc32_dma: rename SPARC32_DMA type to SPARC32_DMA_DEVICE
sparc32_dma: split esp and le into separate DMA devices
sparc32_dma: move type declarations from sparc32_dma.c to
sparc32_dma.h
sun4m: move DMA device wiring from sparc32_dma_init() to
sun4m_hw_init()
sun4m_iommu: move TYPE_SUN4M_IOMMU declaration to sun4m.h
sparc32_dma: use object link instead of qdev property to pass IOMMU
reference
esp: move TYPE_ESP and SysBusESPState from esp.c to esp.h
sparc32_dma: make esp device child of espdma device
lance: move TYPE_LANCE and SysBusPCNetState from lance.c to sun4m.h
sparc32_dma: make lance device child of ledma device
sparc32_dma: introduce new SPARC32_DMA type container object
sparc32_dma: remove is_ledma hack and replace with memory region
alias
sparc32_dma: add len to esp/le DMA memory tracing
hw/dma/sparc32_dma.c | 236 +++++++++++++++++++++++++++++-----------
hw/dma/sun4m_iommu.c | 14 ---
hw/dma/trace-events | 8 +-
hw/net/lance.c | 9 --
hw/scsi/esp.c | 13 ---
hw/sparc/sun4m.c | 82 ++++++--------
include/hw/scsi/esp.h | 13 +++
include/hw/sparc/sparc32_dma.h | 55 ++++++++++
include/hw/sparc/sun4m.h | 29 +++++
9 files changed, 306 insertions(+), 153 deletions(-)
--
1.7.10.4
- [Qemu-devel] [PATCHv2 00/13] sun4m: sparc32_dma tidy-ups,
Mark Cave-Ayland <=
- [Qemu-devel] [PATCHv2 01/13] sparc32_dma: rename SPARC32_DMA type to SPARC32_DMA_DEVICE, Mark Cave-Ayland, 2017/10/14
- [Qemu-devel] [PATCHv2 03/13] sparc32_dma: move type declarations from sparc32_dma.c to sparc32_dma.h, Mark Cave-Ayland, 2017/10/14
- [Qemu-devel] [PATCHv2 04/13] sun4m: move DMA device wiring from sparc32_dma_init() to sun4m_hw_init(), Mark Cave-Ayland, 2017/10/14
- [Qemu-devel] [PATCHv2 02/13] sparc32_dma: split esp and le into separate DMA devices, Mark Cave-Ayland, 2017/10/14
- [Qemu-devel] [PATCHv2 05/13] sun4m_iommu: move TYPE_SUN4M_IOMMU declaration to sun4m.h, Mark Cave-Ayland, 2017/10/14
- [Qemu-devel] [PATCHv2 06/13] sparc32_dma: use object link instead of qdev property to pass IOMMU reference, Mark Cave-Ayland, 2017/10/14
- [Qemu-devel] [PATCHv2 07/13] esp: move TYPE_ESP and SysBusESPState from esp.c to esp.h, Mark Cave-Ayland, 2017/10/14
- [Qemu-devel] [PATCHv2 08/13] sparc32_dma: make esp device child of espdma device, Mark Cave-Ayland, 2017/10/14
- [Qemu-devel] [PATCHv2 09/13] lance: move TYPE_LANCE and SysBusPCNetState from lance.c to sun4m.h, Mark Cave-Ayland, 2017/10/14
- [Qemu-devel] [PATCHv2 10/13] sparc32_dma: make lance device child of ledma device, Mark Cave-Ayland, 2017/10/14