aboutsummaryrefslogtreecommitdiff
path: root/hw/slavio_intctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/slavio_intctl.c')
-rw-r--r--hw/slavio_intctl.c29
1 files changed, 0 insertions, 29 deletions
diff --git a/hw/slavio_intctl.c b/hw/slavio_intctl.c
index 188511e84f..8eea6f94af 100644
--- a/hw/slavio_intctl.c
+++ b/hw/slavio_intctl.c
@@ -416,35 +416,6 @@ static void slavio_intctl_init1(SysBusDevice *dev)
slavio_intctl_reset(s);
}
-DeviceState *slavio_intctl_init(target_phys_addr_t addr,
- target_phys_addr_t addrg,
- const uint32_t *intbit_to_level,
- qemu_irq **parent_irq, unsigned int cputimer)
-{
- DeviceState *dev;
- SysBusDevice *s;
- unsigned int i, j;
-
- dev = qdev_create(NULL, "slavio_intctl");
- qdev_prop_set_ptr(dev, "intbit_to_level", (void *)intbit_to_level);
- qdev_prop_set_uint32(dev, "cputimer_bit", cputimer);
- qdev_init(dev);
-
- s = sysbus_from_qdev(dev);
-
- for (i = 0; i < MAX_CPUS; i++) {
- for (j = 0; j < MAX_PILS; j++) {
- sysbus_connect_irq(s, i * MAX_PILS + j, parent_irq[i][j]);
- }
- }
- sysbus_mmio_map(s, 0, addrg);
- for (i = 0; i < MAX_CPUS; i++) {
- sysbus_mmio_map(s, i + 1, addr + i * TARGET_PAGE_SIZE);
- }
-
- return dev;
-}
-
static SysBusDeviceInfo slavio_intctl_info = {
.init = slavio_intctl_init1,
.qdev.name = "slavio_intctl",