Commit 53e3c4f9 authored by Blue Swirl's avatar Blue Swirl
Browse files

Sparc64: convert ebus to qdev

Signed-off-by: default avatarBlue Swirl <>
parent 5210977a
......@@ -305,9 +305,12 @@ static void ebus_mmio_mapfunc(PCIDevice *pci_dev, int region_num,
static void
pci_ebus_init(PCIBus *bus, int devfn)
PCIDevice *s;
pci_create_simple(bus, devfn, "ebus");
s = pci_register_device(bus, "EBUS", sizeof(*s), devfn, NULL, NULL);
static void
pci_ebus_init1(PCIDevice *s)
pci_config_set_vendor_id(s->config, PCI_VENDOR_ID_SUN);
pci_config_set_device_id(s->config, PCI_DEVICE_ID_SUN_EBUS);
s->config[0x04] = 0x06; // command = bus master, pci mem
......@@ -326,6 +329,19 @@ pci_ebus_init(PCIBus *bus, int devfn)
static PCIDeviceInfo ebus_info = { = "ebus",
.qdev.size = sizeof(PCIDevice),
.init = pci_ebus_init1,
static void pci_ebus_register(void)
static void sun4uv_init(ram_addr_t RAM_size,
const char *boot_devices,
const char *kernel_filename, const char *kernel_cmdline,
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment