Revision 1eed09cb hw/syborg_interrupt.c
b/hw/syborg_interrupt.c | ||
---|---|---|
210 | 210 |
sysbus_init_irq(dev, &s->parent_irq); |
211 | 211 |
s->num_irqs = qdev_get_prop_int(&dev->qdev, "num-interrupts", 64); |
212 | 212 |
qdev_init_gpio_in(&dev->qdev, syborg_int_set_irq, s->num_irqs); |
213 |
iomemtype = cpu_register_io_memory(0, syborg_int_readfn,
|
|
213 |
iomemtype = cpu_register_io_memory(syborg_int_readfn, |
|
214 | 214 |
syborg_int_writefn, s); |
215 | 215 |
sysbus_init_mmio(dev, 0x1000, iomemtype); |
216 | 216 |
s->flags = qemu_mallocz(s->num_irqs * sizeof(syborg_int_flags)); |
Also available in: Unified diff