exynos4210_gic.c (2c9b15cab12c21e32dffb67c5e18f3dc407ca224) | exynos4210_gic.c (1437c94b2689c2010362f84d14f14feaa1d8dba3) |
---|---|
1/* 2 * Samsung exynos4210 GIC implementation. Based on hw/arm_gic.c 3 * 4 * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. 5 * All rights reserved. 6 * 7 * Evgeny Voevodin <e.voevodin@samsung.com> 8 * --- 285 unchanged lines hidden (view full) --- 294 295 /* Pass through outbound IRQ lines from the GIC */ 296 sysbus_pass_irq(dev, busdev); 297 298 /* Pass through inbound GPIO lines to the GIC */ 299 qdev_init_gpio_in(&s->busdev.qdev, exynos4210_gic_set_irq, 300 EXYNOS4210_GIC_NIRQ - 32); 301 | 1/* 2 * Samsung exynos4210 GIC implementation. Based on hw/arm_gic.c 3 * 4 * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. 5 * All rights reserved. 6 * 7 * Evgeny Voevodin <e.voevodin@samsung.com> 8 * --- 285 unchanged lines hidden (view full) --- 294 295 /* Pass through outbound IRQ lines from the GIC */ 296 sysbus_pass_irq(dev, busdev); 297 298 /* Pass through inbound GPIO lines to the GIC */ 299 qdev_init_gpio_in(&s->busdev.qdev, exynos4210_gic_set_irq, 300 EXYNOS4210_GIC_NIRQ - 32); 301 |
302 memory_region_init(&s->cpu_container, NULL, "exynos4210-cpu-container", | 302 memory_region_init(&s->cpu_container, OBJECT(s), "exynos4210-cpu-container", |
303 EXYNOS4210_EXT_GIC_CPU_REGION_SIZE); | 303 EXYNOS4210_EXT_GIC_CPU_REGION_SIZE); |
304 memory_region_init(&s->dist_container, NULL, "exynos4210-dist-container", | 304 memory_region_init(&s->dist_container, OBJECT(s), "exynos4210-dist-container", |
305 EXYNOS4210_EXT_GIC_DIST_REGION_SIZE); 306 307 for (i = 0; i < s->num_cpu; i++) { 308 /* Map CPU interface per SMP Core */ 309 sprintf(cpu_alias_name, "%s%x", cpu_prefix, i); | 305 EXYNOS4210_EXT_GIC_DIST_REGION_SIZE); 306 307 for (i = 0; i < s->num_cpu; i++) { 308 /* Map CPU interface per SMP Core */ 309 sprintf(cpu_alias_name, "%s%x", cpu_prefix, i); |
310 memory_region_init_alias(&s->cpu_alias[i], NULL, | 310 memory_region_init_alias(&s->cpu_alias[i], OBJECT(s), |
311 cpu_alias_name, 312 sysbus_mmio_get_region(busdev, 1), 313 0, 314 EXYNOS4210_GIC_CPU_REGION_SIZE); 315 memory_region_add_subregion(&s->cpu_container, 316 EXYNOS4210_EXT_GIC_CPU_GET_OFFSET(i), &s->cpu_alias[i]); 317 318 /* Map Distributor per SMP Core */ 319 sprintf(dist_alias_name, "%s%x", dist_prefix, i); | 311 cpu_alias_name, 312 sysbus_mmio_get_region(busdev, 1), 313 0, 314 EXYNOS4210_GIC_CPU_REGION_SIZE); 315 memory_region_add_subregion(&s->cpu_container, 316 EXYNOS4210_EXT_GIC_CPU_GET_OFFSET(i), &s->cpu_alias[i]); 317 318 /* Map Distributor per SMP Core */ 319 sprintf(dist_alias_name, "%s%x", dist_prefix, i); |
320 memory_region_init_alias(&s->dist_alias[i], NULL, | 320 memory_region_init_alias(&s->dist_alias[i], OBJECT(s), |
321 dist_alias_name, 322 sysbus_mmio_get_region(busdev, 0), 323 0, 324 EXYNOS4210_GIC_DIST_REGION_SIZE); 325 memory_region_add_subregion(&s->dist_container, 326 EXYNOS4210_EXT_GIC_DIST_GET_OFFSET(i), &s->dist_alias[i]); 327 } 328 --- 134 unchanged lines hidden --- | 321 dist_alias_name, 322 sysbus_mmio_get_region(busdev, 0), 323 0, 324 EXYNOS4210_GIC_DIST_REGION_SIZE); 325 memory_region_add_subregion(&s->dist_container, 326 EXYNOS4210_EXT_GIC_DIST_GET_OFFSET(i), &s->dist_alias[i]); 327 } 328 --- 134 unchanged lines hidden --- |