[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 08/10] hw/ppc/mac.h: Move grackle-pcihost declaration out from sh
From: |
BALATON Zoltan |
Subject: |
[PATCH 08/10] hw/ppc/mac.h: Move grackle-pcihost declaration out from shared header |
Date: |
Sat, 17 Sep 2022 01:07:26 +0200 (CEST) |
It is only used by mac_oldworld anyway and it already instantiates
a few devices by name so this allows reducing the shared header further.
Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu>
---
hw/pci-host/grackle.c | 1 +
hw/ppc/mac.h | 3 ---
hw/ppc/mac_oldworld.c | 2 +-
3 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/hw/pci-host/grackle.c b/hw/pci-host/grackle.c
index b05facf463..5282123004 100644
--- a/hw/pci-host/grackle.c
+++ b/hw/pci-host/grackle.c
@@ -34,6 +34,7 @@
#include "trace.h"
#include "qom/object.h"
+#define TYPE_GRACKLE_PCI_HOST_BRIDGE "grackle-pcihost"
OBJECT_DECLARE_SIMPLE_TYPE(GrackleState, GRACKLE_PCI_HOST_BRIDGE)
struct GrackleState {
diff --git a/hw/ppc/mac.h b/hw/ppc/mac.h
index 55cb02c990..fe77a6c6db 100644
--- a/hw/ppc/mac.h
+++ b/hw/ppc/mac.h
@@ -35,9 +35,6 @@
#define KERNEL_LOAD_ADDR 0x01000000
#define KERNEL_GAP 0x00100000
-/* Grackle PCI */
-#define TYPE_GRACKLE_PCI_HOST_BRIDGE "grackle-pcihost"
-
/* Mac NVRAM */
#define TYPE_MACIO_NVRAM "macio-nvram"
OBJECT_DECLARE_SIMPLE_TYPE(MacIONVRAMState, MACIO_NVRAM)
diff --git a/hw/ppc/mac_oldworld.c b/hw/ppc/mac_oldworld.c
index f323a49d7a..a4094226bc 100644
--- a/hw/ppc/mac_oldworld.c
+++ b/hw/ppc/mac_oldworld.c
@@ -214,7 +214,7 @@ static void ppc_heathrow_init(MachineState *machine)
}
/* Grackle PCI host bridge */
- grackle_dev = qdev_new(TYPE_GRACKLE_PCI_HOST_BRIDGE);
+ grackle_dev = qdev_new("grackle-pcihost");
qdev_prop_set_uint32(grackle_dev, "ofw-addr", 0x80000000);
s = SYS_BUS_DEVICE(grackle_dev);
sysbus_realize_and_unref(s, &error_fatal);
--
2.30.4
- [PATCH 06/10] hw/ppc/mac.h: Move newworld specific atuff out from shared header, (continued)
- [PATCH 06/10] hw/ppc/mac.h: Move newworld specific atuff out from shared header, BALATON Zoltan, 2022/09/16
- [PATCH 01/10] mac_newworld: Drop some variables, BALATON Zoltan, 2022/09/16
- [PATCH 03/10] mac_{old|new}world: Set default values for some local variables, BALATON Zoltan, 2022/09/16
- [PATCH 08/10] hw/ppc/mac.h: Move grackle-pcihost declaration out from shared header,
BALATON Zoltan <=
- [PATCH 05/10] mac_{old|new}world: Reduce number of QOM casts, BALATON Zoltan, 2022/09/16
- [PATCH 10/10] hw/ppc/mac.h: Rename to include/hw/nvram/mac_nvram.h, BALATON Zoltan, 2022/09/16
- [PATCH 09/10] hw/ppc/mac.h: Move PROM and KERNEL defines to board code, BALATON Zoltan, 2022/09/16