[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-ppc] [PATCH 1/7] macio: move MACIOIDEState type declarations to ma
From: |
Mark Cave-Ayland |
Subject: |
[Qemu-ppc] [PATCH 1/7] macio: move MACIOIDEState type declarations to macio.h |
Date: |
Wed, 29 Aug 2018 17:59:05 +0100 |
Signed-off-by: Mark Cave-Ayland <address@hidden>
---
hw/ide/macio.c | 1 +
hw/ppc/mac.h | 26 --------------------------
include/hw/misc/macio/macio.h | 26 ++++++++++++++++++++++++++
3 files changed, 27 insertions(+), 26 deletions(-)
diff --git a/hw/ide/macio.c b/hw/ide/macio.c
index d3a85cba3b..f23961e241 100644
--- a/hw/ide/macio.c
+++ b/hw/ide/macio.c
@@ -26,6 +26,7 @@
#include "hw/hw.h"
#include "hw/ppc/mac.h"
#include "hw/ppc/mac_dbdma.h"
+#include "hw/misc/macio/macio.h"
#include "sysemu/block-backend.h"
#include "sysemu/dma.h"
diff --git a/hw/ppc/mac.h b/hw/ppc/mac.h
index 41fd289e81..a741300ac9 100644
--- a/hw/ppc/mac.h
+++ b/hw/ppc/mac.h
@@ -86,32 +86,6 @@ typedef struct Core99MachineState {
uint8_t via_config;
} Core99MachineState;
-/* MacIO */
-#define TYPE_MACIO_IDE "macio-ide"
-#define MACIO_IDE(obj) OBJECT_CHECK(MACIOIDEState, (obj), TYPE_MACIO_IDE)
-
-typedef struct MACIOIDEState {
- /*< private >*/
- SysBusDevice parent_obj;
- /*< public >*/
- uint32_t channel;
- qemu_irq real_ide_irq;
- qemu_irq real_dma_irq;
- qemu_irq ide_irq;
- qemu_irq dma_irq;
-
- MemoryRegion mem;
- IDEBus bus;
- IDEDMA dma;
- void *dbdma;
- bool dma_active;
- uint32_t timing_reg;
- uint32_t irq_reg;
-} MACIOIDEState;
-
-void macio_ide_init_drives(MACIOIDEState *ide, DriveInfo **hd_table);
-void macio_ide_register_dma(MACIOIDEState *ide);
-
/* Grackle PCI */
#define TYPE_GRACKLE_PCI_HOST_BRIDGE "grackle-pcihost"
diff --git a/include/hw/misc/macio/macio.h b/include/hw/misc/macio/macio.h
index cfaa145500..0c3964ec12 100644
--- a/include/hw/misc/macio/macio.h
+++ b/include/hw/misc/macio/macio.h
@@ -34,6 +34,32 @@
#include "hw/ppc/mac_dbdma.h"
#include "hw/ppc/openpic.h"
+/* MacIO IDE */
+#define TYPE_MACIO_IDE "macio-ide"
+#define MACIO_IDE(obj) OBJECT_CHECK(MACIOIDEState, (obj), TYPE_MACIO_IDE)
+
+typedef struct MACIOIDEState {
+ /*< private >*/
+ SysBusDevice parent_obj;
+ /*< public >*/
+ uint32_t channel;
+ qemu_irq real_ide_irq;
+ qemu_irq real_dma_irq;
+ qemu_irq ide_irq;
+ qemu_irq dma_irq;
+
+ MemoryRegion mem;
+ IDEBus bus;
+ IDEDMA dma;
+ void *dbdma;
+ bool dma_active;
+ uint32_t timing_reg;
+ uint32_t irq_reg;
+} MACIOIDEState;
+
+void macio_ide_init_drives(MACIOIDEState *ide, DriveInfo **hd_table);
+void macio_ide_register_dma(MACIOIDEState *ide);
+
#define TYPE_MACIO "macio"
#define MACIO(obj) OBJECT_CHECK(MacIOState, (obj), TYPE_MACIO)
--
2.11.0
- [Qemu-ppc] [PATCH 0/7] mac: generate correct fw paths for macio IDE and virtio-blk-pci devices, Mark Cave-Ayland, 2018/08/29
- [Qemu-ppc] [PATCH 4/7] grackle: set device fw_name and address for correct fw path generation, Mark Cave-Ayland, 2018/08/29
- [Qemu-ppc] [PATCH 7/7] mac_newworld: implement custom FWPathProvider, Mark Cave-Ayland, 2018/08/29
- [Qemu-ppc] [PATCH 3/7] macio: add addr property to macio IDE object, Mark Cave-Ayland, 2018/08/29
- [Qemu-ppc] [PATCH 2/7] macio: add macio bus to help with fw path generation, Mark Cave-Ayland, 2018/08/29
- [Qemu-ppc] [PATCH 5/7] mac_oldworld: implement custom FWPathProvider, Mark Cave-Ayland, 2018/08/29
- [Qemu-ppc] [PATCH 1/7] macio: move MACIOIDEState type declarations to macio.h,
Mark Cave-Ayland <=
- [Qemu-ppc] [PATCH 6/7] uninorth: add ofw-addr property to allow correct fw path generation, Mark Cave-Ayland, 2018/08/29
- Re: [Qemu-ppc] [PATCH 0/7] mac: generate correct fw paths for macio IDE and virtio-blk-pci devices, David Gibson, 2018/08/29