qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] SPARC ebus: QOMify


From: Cao jin
Subject: Re: [Qemu-devel] [PATCH] SPARC ebus: QOMify
Date: Tue, 12 Jan 2016 13:20:12 +0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0

ping?

On 01/06/2016 09:40 PM, Cao jin wrote:
Signed-off-by: Cao jin <address@hidden>
---
  hw/sparc64/sun4u.c | 8 ++++++--
  1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/hw/sparc64/sun4u.c b/hw/sparc64/sun4u.c
index d6b929c..07f74fe 100644
--- a/hw/sparc64/sun4u.c
+++ b/hw/sparc64/sun4u.c
@@ -98,6 +98,10 @@ typedef struct EbusState {
      MemoryRegion bar1;
  } EbusState;

+#define TYPE_EBUS_BRIDGE "ebus"
+#define EBUS_PCI_BRIDGE(obj) \
+    OBJECT_CHECK(EbusState, (obj), TYPE_EBUS_BRIDGE)
+
  int DMA_get_channel_mode (int nchan)
  {
      return 0;
@@ -586,7 +590,7 @@ pci_ebus_init(PCIBus *bus, int devfn, qemu_irq *irqs)
      PCIDevice *pci_dev;
      ISABus *isa_bus;

-    pci_dev = pci_create_simple(bus, devfn, "ebus");
+    pci_dev = pci_create_simple(bus, devfn, TYPE_EBUS_BRIDGE);
      isa_bus = ISA_BUS(qdev_get_child_bus(DEVICE(pci_dev), "isa.0"));
      isa_irq = qemu_allocate_irqs(isa_irq_handler, irqs, 16);
      isa_bus_irqs(isa_bus, isa_irq);
@@ -629,7 +633,7 @@ static void ebus_class_init(ObjectClass *klass, void *data)
  }

  static const TypeInfo ebus_info = {
-    .name          = "ebus",
+    .name          = TYPE_EBUS_BRIDGE,
      .parent        = TYPE_PCI_DEVICE,
      .instance_size = sizeof(EbusState),
      .class_init    = ebus_class_init,


--
Yours Sincerely,

Cao jin





reply via email to

[Prev in Thread] Current Thread [Next in Thread]