nubus-device.c (f724de8dde4cc8d8159e4811714aeca222d9eb70) nubus-device.c (8e5c952b370b57beb642826882c80e1b66a9cf12)
1/*
2 * QEMU Macintosh Nubus
3 *
4 * Copyright (c) 2013-2018 Laurent Vivier <laurent@vivier.eu>
5 *
6 * This work is licensed under the terms of the GNU GPL, version 2 or later.
7 * See the COPYING file in the top-level directory.
8 *

--- 142 unchanged lines hidden (view full) ---

151 dev->directory_offset;
152 memory_region_add_subregion(&dev->slot_mem, rom_offset, &dev->rom_io);
153
154 g_free(rom_name);
155}
156
157static void nubus_device_realize(DeviceState *dev, Error **errp)
158{
1/*
2 * QEMU Macintosh Nubus
3 *
4 * Copyright (c) 2013-2018 Laurent Vivier <laurent@vivier.eu>
5 *
6 * This work is licensed under the terms of the GNU GPL, version 2 or later.
7 * See the COPYING file in the top-level directory.
8 *

--- 142 unchanged lines hidden (view full) ---

151 dev->directory_offset;
152 memory_region_add_subregion(&dev->slot_mem, rom_offset, &dev->rom_io);
153
154 g_free(rom_name);
155}
156
157static void nubus_device_realize(DeviceState *dev, Error **errp)
158{
159 NubusBus *nubus = NUBUS_BUS(qdev_get_parent_bus(DEVICE(dev)));
159 NubusBus *nubus = NUBUS_BUS(qdev_get_parent_bus(dev));
160 NubusDevice *nd = NUBUS_DEVICE(dev);
161 char *name;
162 hwaddr slot_offset;
163
164 if (nubus->current_slot < NUBUS_FIRST_SLOT ||
165 nubus->current_slot > NUBUS_LAST_SLOT) {
166 error_setg(errp, "Cannot register nubus card, not enough slots");
167 return;

--- 48 unchanged lines hidden ---
160 NubusDevice *nd = NUBUS_DEVICE(dev);
161 char *name;
162 hwaddr slot_offset;
163
164 if (nubus->current_slot < NUBUS_FIRST_SLOT ||
165 nubus->current_slot > NUBUS_LAST_SLOT) {
166 error_setg(errp, "Cannot register nubus card, not enough slots");
167 return;

--- 48 unchanged lines hidden ---