static void fdt_add_gic_node(VirtBoardInfo *vbi)

{

    vbi->gic_phandle = qemu_fdt_alloc_phandle(vbi->fdt);

    qemu_fdt_setprop_cell(vbi->fdt, "/", "interrupt-parent", vbi->gic_phandle);



    qemu_fdt_add_subnode(vbi->fdt, "/intc");

    /* 'cortex-a15-gic' means 'GIC v2' */

    qemu_fdt_setprop_string(vbi->fdt, "/intc", "compatible",

                            "arm,cortex-a15-gic");

    qemu_fdt_setprop_cell(vbi->fdt, "/intc", "#interrupt-cells", 3);

    qemu_fdt_setprop(vbi->fdt, "/intc", "interrupt-controller", NULL, 0);

    qemu_fdt_setprop_sized_cells(vbi->fdt, "/intc", "reg",

                                     2, vbi->memmap[VIRT_GIC_DIST].base,

                                     2, vbi->memmap[VIRT_GIC_DIST].size,

                                     2, vbi->memmap[VIRT_GIC_CPU].base,

                                     2, vbi->memmap[VIRT_GIC_CPU].size);

    qemu_fdt_setprop_cell(vbi->fdt, "/intc", "#address-cells", 0x2);

    qemu_fdt_setprop_cell(vbi->fdt, "/intc", "#size-cells", 0x2);

    qemu_fdt_setprop(vbi->fdt, "/intc", "ranges", NULL, 0);

    qemu_fdt_setprop_cell(vbi->fdt, "/intc", "phandle", vbi->gic_phandle);

}

static void fdt_add_gic_node(VirtBoardInfo *vbi)

{

    vbi->gic_phandle = qemu_fdt_alloc_phandle(vbi->fdt);

    qemu_fdt_setprop_cell(vbi->fdt, "/", "interrupt-parent", vbi->gic_phandle);



    qemu_fdt_add_subnode(vbi->fdt, "/intc");

    

    qemu_fdt_setprop_string(vbi->fdt, "/intc", "compatible",

                            "arm,cortex-a15-gic");

    qemu_fdt_setprop_cell(vbi->fdt, "/intc", "#interrupt-cells", 3);

    qemu_fdt_setprop(vbi->fdt, "/intc", "interrupt-controller", NULL, 0);

    qemu_fdt_setprop_sized_cells(vbi->fdt, "/intc", "reg",

                                     2, vbi->memmap[VIRT_GIC_DIST].base,

                                     2, vbi->memmap[VIRT_GIC_DIST].size,

                                     2, vbi->memmap[VIRT_GIC_CPU].base,

                                     2, vbi->memmap[VIRT_GIC_CPU].size);

    qemu_fdt_setprop_cell(vbi->fdt, "/intc", "#address-cells", 0x2);

    qemu_fdt_setprop_cell(vbi->fdt, "/intc", "#size-cells", 0x2);

    qemu_fdt_setprop(vbi->fdt, "/intc", "ranges", NULL, 0);

    qemu_fdt_setprop_cell(vbi->fdt, "/intc", "phandle", vbi->gic_phandle);

}

static void FUNC_0(VirtBoardInfo *VAR_0)

{

    VAR_0->gic_phandle = qemu_fdt_alloc_phandle(VAR_0->fdt);

    qemu_fdt_setprop_cell(VAR_0->fdt, "/", "interrupt-parent", VAR_0->gic_phandle);



    qemu_fdt_add_subnode(VAR_0->fdt, "/intc");

    

    qemu_fdt_setprop_string(VAR_0->fdt, "/intc", "compatible",

                            "arm,cortex-a15-gic");

    qemu_fdt_setprop_cell(VAR_0->fdt, "/intc", "#interrupt-cells", 3);

    qemu_fdt_setprop(VAR_0->fdt, "/intc", "interrupt-controller", NULL, 0);

    qemu_fdt_setprop_sized_cells(VAR_0->fdt, "/intc", "reg",

                                     2, VAR_0->memmap[VIRT_GIC_DIST].base,

                                     2, VAR_0->memmap[VIRT_GIC_DIST].size,

                                     2, VAR_0->memmap[VIRT_GIC_CPU].base,

                                     2, VAR_0->memmap[VIRT_GIC_CPU].size);

    qemu_fdt_setprop_cell(VAR_0->fdt, "/intc", "#address-cells", 0x2);

    qemu_fdt_setprop_cell(VAR_0->fdt, "/intc", "#size-cells", 0x2);

    qemu_fdt_setprop(VAR_0->fdt, "/intc", "ranges", NULL, 0);

    qemu_fdt_setprop_cell(VAR_0->fdt, "/intc", "phandle", VAR_0->gic_phandle);

}

static void FUNC_0(VirtBoardInfo *VAR_0)
{ VAR_0->gic_phandle = qemu_fdt_alloc_phandle(VAR_0->fdt); qemu_fdt_setprop_cell(VAR_0->fdt, "/", "interrupt-parent", VAR_0->gic_phandle); qemu_fdt_add_subnode(VAR_0->fdt, "/intc"); qemu_fdt_setprop_string(VAR_0->fdt, "/intc", "compatible",
"arm,cortex-a15-gic"); qemu_fdt_setprop_cell(VAR_0->fdt, "/intc", "#interrupt-cells", 3); qemu_fdt_setprop(VAR_0->fdt, "/intc", "interrupt-controller", NULL, 0); qemu_fdt_setprop_sized_cells(VAR_0->fdt, "/intc", "reg",
2, VAR_0->memmap[VIRT_GIC_DIST].base,
2, VAR_0->memmap[VIRT_GIC_DIST].size,
2, VAR_0->memmap[VIRT_GIC_CPU].base,
2, VAR_0->memmap[VIRT_GIC_CPU].size); qemu_fdt_setprop_cell(VAR_0->fdt, "/intc", "#address-cells", 0x2); qemu_fdt_setprop_cell(VAR_0->fdt, "/intc", "#size-cells", 0x2); qemu_fdt_setprop(VAR_0->fdt, "/intc", "ranges", NULL, 0); qemu_fdt_setprop_cell(VAR_0->fdt, "/intc", "phandle", VAR_0->gic_phandle); }