pl190.c (2c9b15cab12c21e32dffb67c5e18f3dc407ca224) pl190.c (1437c94b2689c2010362f84d14f14feaa1d8dba3)
1/*
2 * Arm PrimeCell PL190 Vector Interrupt Controller
3 *
4 * Copyright (c) 2006 CodeSourcery.
5 * Written by Paul Brook
6 *
7 * This code is licensed under the GPL.
8 */

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

231 s->priority = PL190_NUM_PRIO;
232 pl190_update_vectors(s);
233}
234
235static int pl190_init(SysBusDevice *dev)
236{
237 pl190_state *s = FROM_SYSBUS(pl190_state, dev);
238
1/*
2 * Arm PrimeCell PL190 Vector Interrupt Controller
3 *
4 * Copyright (c) 2006 CodeSourcery.
5 * Written by Paul Brook
6 *
7 * This code is licensed under the GPL.
8 */

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

231 s->priority = PL190_NUM_PRIO;
232 pl190_update_vectors(s);
233}
234
235static int pl190_init(SysBusDevice *dev)
236{
237 pl190_state *s = FROM_SYSBUS(pl190_state, dev);
238
239 memory_region_init_io(&s->iomem, NULL, &pl190_ops, s, "pl190", 0x1000);
239 memory_region_init_io(&s->iomem, OBJECT(s), &pl190_ops, s, "pl190", 0x1000);
240 sysbus_init_mmio(dev, &s->iomem);
241 qdev_init_gpio_in(&dev->qdev, pl190_set_irq, 32);
242 sysbus_init_irq(dev, &s->irq);
243 sysbus_init_irq(dev, &s->fiq);
244 return 0;
245}
246
247static const VMStateDescription vmstate_pl190 = {

--- 42 unchanged lines hidden ---
240 sysbus_init_mmio(dev, &s->iomem);
241 qdev_init_gpio_in(&dev->qdev, pl190_set_irq, 32);
242 sysbus_init_irq(dev, &s->irq);
243 sysbus_init_irq(dev, &s->fiq);
244 return 0;
245}
246
247static const VMStateDescription vmstate_pl190 = {

--- 42 unchanged lines hidden ---