int acpi_machdep_init(device_t dev) { struct acpi_softc *sc; int intr_model; acpi_dev = dev; sc = device_get_softc(acpi_dev); /* * XXX: Prevent the PnP BIOS code from interfering with * our own scan of ISA devices. */ PnPBIOStable = NULL; acpi_capm_init(sc); acpi_install_wakeup_handler(sc); if (ioapic_enable) intr_model = ACPI_INTR_APIC; else intr_model = ACPI_INTR_PIC; if (intr_model != ACPI_INTR_PIC) acpi_SetIntrModel(intr_model); SYSCTL_ADD_UINT(&sc->acpi_sysctl_ctx, SYSCTL_CHILDREN(sc->acpi_sysctl_tree), OID_AUTO, "reset_video", CTLFLAG_RD | CTLFLAG_RW, &acpi_reset_video, 0, "Call the VESA reset BIOS vector on the resume path"); return (0); }
int acpi_machdep_init(device_t dev) { struct acpi_softc *sc; acpi_dev = dev; if ((sc = device_get_softc(acpi_dev)) == NULL) { return (ENXIO); } /* * XXX: Prevent the PnP BIOS code from interfering with * our own scan of ISA devices. */ PnPBIOStable = NULL; acpi_capm_init(sc); acpi_install_wakeup_handler(sc); #ifdef SMP acpi_SetIntrModel(ACPI_INTR_APIC); #endif return (0); }