static int stellaris_sys_init(uint32_t base, qemu_irq irq,

                              stellaris_board_info * board,

                              uint8_t *macaddr)

{

    ssys_state *s;



    s = (ssys_state *)g_malloc0(sizeof(ssys_state));

    s->irq = irq;

    s->board = board;

    /* Most devices come preprogrammed with a MAC address in the user data. */

    s->user0 = macaddr[0] | (macaddr[1] << 8) | (macaddr[2] << 16);

    s->user1 = macaddr[3] | (macaddr[4] << 8) | (macaddr[5] << 16);



    memory_region_init_io(&s->iomem, NULL, &ssys_ops, s, "ssys", 0x00001000);

    memory_region_add_subregion(get_system_memory(), base, &s->iomem);

    ssys_reset(s);

    vmstate_register(NULL, -1, &vmstate_stellaris_sys, s);

    return 0;

}

static int stellaris_sys_init(uint32_t base, qemu_irq irq,

                              stellaris_board_info * board,

                              uint8_t *macaddr)

{

    ssys_state *s;



    s = (ssys_state *)g_malloc0(sizeof(ssys_state));

    s->irq = irq;

    s->board = board;

    

    s->user0 = macaddr[0] | (macaddr[1] << 8) | (macaddr[2] << 16);

    s->user1 = macaddr[3] | (macaddr[4] << 8) | (macaddr[5] << 16);



    memory_region_init_io(&s->iomem, NULL, &ssys_ops, s, "ssys", 0x00001000);

    memory_region_add_subregion(get_system_memory(), base, &s->iomem);

    ssys_reset(s);

    vmstate_register(NULL, -1, &vmstate_stellaris_sys, s);

    return 0;

}

    s = (ssys_state *)g_malloc0(sizeof(ssys_state));
static int FUNC_0(uint32_t VAR_0, qemu_irq VAR_1,

                              stellaris_board_info * VAR_2,

                              uint8_t *VAR_3)

{

    ssys_state *s;



    s = (ssys_state *)g_malloc0(sizeof(ssys_state));

    s->VAR_1 = VAR_1;

    s->VAR_2 = VAR_2;

    

    s->user0 = VAR_3[0] | (VAR_3[1] << 8) | (VAR_3[2] << 16);

    s->user1 = VAR_3[3] | (VAR_3[4] << 8) | (VAR_3[5] << 16);



    memory_region_init_io(&s->iomem, NULL, &ssys_ops, s, "ssys", 0x00001000);

    memory_region_add_subregion(get_system_memory(), VAR_0, &s->iomem);

    ssys_reset(s);

    vmstate_register(NULL, -1, &vmstate_stellaris_sys, s);

    return 0;

}

static int FUNC_0(uint32_t VAR_0, qemu_irq VAR_1,
stellaris_board_info * VAR_2,
uint8_t *VAR_3)
{ ssys_state *s; s = (ssys_state *)g_malloc0(sizeof(ssys_state)); s->VAR_1 = VAR_1; s->VAR_2 = VAR_2; s->user0 = VAR_3[0] | (VAR_3[1] << 8) | (VAR_3[2] << 16); s->user1 = VAR_3[3] | (VAR_3[4] << 8) | (VAR_3[5] << 16); memory_region_init_io(&s->iomem, NULL, &ssys_ops, s, "ssys", 0x00001000); memory_region_add_subregion(get_system_memory(), VAR_0, &s->iomem); ssys_reset(s); vmstate_register(NULL, -1, &vmstate_stellaris_sys, s); return 0; }