static void fw_cfg_init1(DeviceState *dev)

{

    FWCfgState *s = FW_CFG(dev);

    MachineState *machine = MACHINE(qdev_get_machine());

    uint32_t version = FW_CFG_VERSION;



    assert(!object_resolve_path(FW_CFG_PATH, NULL));



    object_property_add_child(OBJECT(machine), FW_CFG_NAME, OBJECT(s), NULL);



    qdev_init_nofail(dev);



    fw_cfg_add_bytes(s, FW_CFG_SIGNATURE, (char *)"QEMU", 4);

    fw_cfg_add_bytes(s, FW_CFG_UUID, &qemu_uuid, 16);

    fw_cfg_add_i16(s, FW_CFG_NOGRAPHIC, (uint16_t)!machine->enable_graphics);

    fw_cfg_add_i16(s, FW_CFG_BOOT_MENU, (uint16_t)boot_menu);

    fw_cfg_bootsplash(s);

    fw_cfg_reboot(s);



    if (s->dma_enabled) {

        version |= FW_CFG_VERSION_DMA;

    }



    fw_cfg_add_i32(s, FW_CFG_ID, version);



    s->machine_ready.notify = fw_cfg_machine_ready;

    qemu_add_machine_init_done_notifier(&s->machine_ready);

}

static void fw_cfg_init1(DeviceState *dev)

{

    FWCfgState *s = FW_CFG(dev);

    MachineState *machine = MACHINE(qdev_get_machine());

    uint32_t version = FW_CFG_VERSION;



    assert(!object_resolve_path(FW_CFG_PATH, NULL));



    object_property_add_child(OBJECT(machine), FW_CFG_NAME, OBJECT(s), NULL);



    qdev_init_nofail(dev);



    fw_cfg_add_bytes(s, FW_CFG_SIGNATURE, (char *)"QEMU", 4);

    fw_cfg_add_bytes(s, FW_CFG_UUID, &qemu_uuid, 16);

    fw_cfg_add_i16(s, FW_CFG_NOGRAPHIC, (uint16_t)!machine->enable_graphics);

    fw_cfg_add_i16(s, FW_CFG_BOOT_MENU, (uint16_t)boot_menu);

    fw_cfg_bootsplash(s);

    fw_cfg_reboot(s);



    if (s->dma_enabled) {

        version |= FW_CFG_VERSION_DMA;

    }



    fw_cfg_add_i32(s, FW_CFG_ID, version);



    s->machine_ready.notify = fw_cfg_machine_ready;

    qemu_add_machine_init_done_notifier(&s->machine_ready);

}

static void fw_cfg_init1(DeviceState *dev)     assert(!object_resolve_path(FW_CFG_PATH, NULL));     object_property_add_child(OBJECT(machine), FW_CFG_NAME, OBJECT(s), NULL);     qdev_init_nofail(dev);
static void FUNC_0(DeviceState *VAR_0)

{

    FWCfgState *s = FW_CFG(VAR_0);

    MachineState *machine = MACHINE(qdev_get_machine());

    uint32_t version = FW_CFG_VERSION;



    assert(!object_resolve_path(FW_CFG_PATH, NULL));



    object_property_add_child(OBJECT(machine), FW_CFG_NAME, OBJECT(s), NULL);



    qdev_init_nofail(VAR_0);



    fw_cfg_add_bytes(s, FW_CFG_SIGNATURE, (char *)"QEMU", 4);

    fw_cfg_add_bytes(s, FW_CFG_UUID, &qemu_uuid, 16);

    fw_cfg_add_i16(s, FW_CFG_NOGRAPHIC, (uint16_t)!machine->enable_graphics);

    fw_cfg_add_i16(s, FW_CFG_BOOT_MENU, (uint16_t)boot_menu);

    fw_cfg_bootsplash(s);

    fw_cfg_reboot(s);



    if (s->dma_enabled) {

        version |= FW_CFG_VERSION_DMA;

    }



    fw_cfg_add_i32(s, FW_CFG_ID, version);



    s->machine_ready.notify = fw_cfg_machine_ready;

    qemu_add_machine_init_done_notifier(&s->machine_ready);

}

static void FUNC_0(DeviceState *VAR_0)
{ FWCfgState *s = FW_CFG(VAR_0); MachineState *machine = MACHINE(qdev_get_machine()); uint32_t version = FW_CFG_VERSION; assert(!object_resolve_path(FW_CFG_PATH, NULL)); object_property_add_child(OBJECT(machine), FW_CFG_NAME, OBJECT(s), NULL); qdev_init_nofail(VAR_0); fw_cfg_add_bytes(s, FW_CFG_SIGNATURE, (char *)"QEMU", 4); fw_cfg_add_bytes(s, FW_CFG_UUID, &qemu_uuid, 16); fw_cfg_add_i16(s, FW_CFG_NOGRAPHIC, (uint16_t)!machine->enable_graphics); fw_cfg_add_i16(s, FW_CFG_BOOT_MENU, (uint16_t)boot_menu); fw_cfg_bootsplash(s); fw_cfg_reboot(s); if (s->dma_enabled) { version |= FW_CFG_VERSION_DMA; } fw_cfg_add_i32(s, FW_CFG_ID, version); s->machine_ready.notify = fw_cfg_machine_ready; qemu_add_machine_init_done_notifier(&s->machine_ready); }