Changeset View
Changeset View
Standalone View
Standalone View
head/sys/dev/acpica/acpi.c
Show First 20 Lines • Show All 661 Lines • ▼ Show 20 Lines | #endif | ||||
sc, ACPI_EVENT_PRI_LAST); | sc, ACPI_EVENT_PRI_LAST); | ||||
/* Flag our initial states. */ | /* Flag our initial states. */ | ||||
sc->acpi_enabled = TRUE; | sc->acpi_enabled = TRUE; | ||||
sc->acpi_sstate = ACPI_STATE_S0; | sc->acpi_sstate = ACPI_STATE_S0; | ||||
sc->acpi_sleep_disabled = TRUE; | sc->acpi_sleep_disabled = TRUE; | ||||
/* Create the control device */ | /* Create the control device */ | ||||
sc->acpi_dev_t = make_dev(&acpi_cdevsw, 0, UID_ROOT, GID_WHEEL, 0644, | sc->acpi_dev_t = make_dev(&acpi_cdevsw, 0, UID_ROOT, GID_OPERATOR, 0664, | ||||
"acpi"); | "acpi"); | ||||
sc->acpi_dev_t->si_drv1 = sc; | sc->acpi_dev_t->si_drv1 = sc; | ||||
if ((error = acpi_machdep_init(dev))) | if ((error = acpi_machdep_init(dev))) | ||||
goto out; | goto out; | ||||
/* Register ACPI again to pass the correct argument of pm_func. */ | /* Register ACPI again to pass the correct argument of pm_func. */ | ||||
power_pm_register(POWER_PM_TYPE_ACPI, acpi_pm_func, sc); | power_pm_register(POWER_PM_TYPE_ACPI, acpi_pm_func, sc); | ||||
▲ Show 20 Lines • Show All 3,514 Lines • Show Last 20 Lines |