realview_gic.c (2c9b15cab12c21e32dffb67c5e18f3dc407ca224) realview_gic.c (1437c94b2689c2010362f84d14f14feaa1d8dba3)
1/*
2 * ARM RealView Emulation Baseboard Interrupt Controller
3 *
4 * Copyright (c) 2006-2007 CodeSourcery.
5 * Written by Paul Brook
6 *
7 * This code is licensed under the GPL.
8 */

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

38 busdev = SYS_BUS_DEVICE(s->gic);
39
40 /* Pass through outbound IRQ lines from the GIC */
41 sysbus_pass_irq(dev, busdev);
42
43 /* Pass through inbound GPIO lines to the GIC */
44 qdev_init_gpio_in(&s->busdev.qdev, realview_gic_set_irq, numirq - 32);
45
1/*
2 * ARM RealView Emulation Baseboard Interrupt Controller
3 *
4 * Copyright (c) 2006-2007 CodeSourcery.
5 * Written by Paul Brook
6 *
7 * This code is licensed under the GPL.
8 */

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

38 busdev = SYS_BUS_DEVICE(s->gic);
39
40 /* Pass through outbound IRQ lines from the GIC */
41 sysbus_pass_irq(dev, busdev);
42
43 /* Pass through inbound GPIO lines to the GIC */
44 qdev_init_gpio_in(&s->busdev.qdev, realview_gic_set_irq, numirq - 32);
45
46 memory_region_init(&s->container, NULL, "realview-gic-container", 0x2000);
46 memory_region_init(&s->container, OBJECT(s),
47 "realview-gic-container", 0x2000);
47 memory_region_add_subregion(&s->container, 0,
48 sysbus_mmio_get_region(busdev, 1));
49 memory_region_add_subregion(&s->container, 0x1000,
50 sysbus_mmio_get_region(busdev, 0));
51 sysbus_init_mmio(dev, &s->container);
52 return 0;
53}
54

--- 20 unchanged lines hidden ---
48 memory_region_add_subregion(&s->container, 0,
49 sysbus_mmio_get_region(busdev, 1));
50 memory_region_add_subregion(&s->container, 0x1000,
51 sysbus_mmio_get_region(busdev, 0));
52 sysbus_init_mmio(dev, &s->container);
53 return 0;
54}
55

--- 20 unchanged lines hidden ---