static void ich9_apm_ctrl_changed(uint32_t val, void *arg)

{

    ICH9LPCState *lpc = arg;



    /* ACPI specs 3.0, 4.7.2.5 */

    acpi_pm1_cnt_update(&lpc->pm.acpi_regs,

                        val == ICH9_APM_ACPI_ENABLE,

                        val == ICH9_APM_ACPI_DISABLE);

    if (val == ICH9_APM_ACPI_ENABLE || val == ICH9_APM_ACPI_DISABLE) {

        return;

    }



    /* SMI_EN = PMBASE + 30. SMI control and enable register */

    if (lpc->pm.smi_en & ICH9_PMIO_SMI_EN_APMC_EN) {

        cpu_interrupt(current_cpu, CPU_INTERRUPT_SMI);

    }

}

static void ich9_apm_ctrl_changed(uint32_t val, void *arg)

{

    ICH9LPCState *lpc = arg;



    

    acpi_pm1_cnt_update(&lpc->pm.acpi_regs,

                        val == ICH9_APM_ACPI_ENABLE,

                        val == ICH9_APM_ACPI_DISABLE);

    if (val == ICH9_APM_ACPI_ENABLE || val == ICH9_APM_ACPI_DISABLE) {

        return;

    }



    

    if (lpc->pm.smi_en & ICH9_PMIO_SMI_EN_APMC_EN) {

        cpu_interrupt(current_cpu, CPU_INTERRUPT_SMI);

    }

}

        cpu_interrupt(current_cpu, CPU_INTERRUPT_SMI);
static void FUNC_0(uint32_t VAR_0, void *VAR_1)

{

    ICH9LPCState *lpc = VAR_1;



    

    acpi_pm1_cnt_update(&lpc->pm.acpi_regs,

                        VAR_0 == ICH9_APM_ACPI_ENABLE,

                        VAR_0 == ICH9_APM_ACPI_DISABLE);

    if (VAR_0 == ICH9_APM_ACPI_ENABLE || VAR_0 == ICH9_APM_ACPI_DISABLE) {

        return;

    }



    

    if (lpc->pm.smi_en & ICH9_PMIO_SMI_EN_APMC_EN) {

        cpu_interrupt(current_cpu, CPU_INTERRUPT_SMI);

    }

}

static void FUNC_0(uint32_t VAR_0, void *VAR_1)
{ ICH9LPCState *lpc = VAR_1; acpi_pm1_cnt_update(&lpc->pm.acpi_regs,
VAR_0 == ICH9_APM_ACPI_ENABLE,
VAR_0 == ICH9_APM_ACPI_DISABLE); if (VAR_0 == ICH9_APM_ACPI_ENABLE || VAR_0 == ICH9_APM_ACPI_DISABLE) { return; } if (lpc->pm.smi_en & ICH9_PMIO_SMI_EN_APMC_EN) { cpu_interrupt(current_cpu, CPU_INTERRUPT_SMI); } }