Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/acpica/acpi_acad.c
Context not available. | |||||
if (device_get_unit(dev) == 0) { | if (device_get_unit(dev) == 0) { | ||||
acpi_sc = acpi_device_get_parent_softc(dev); | acpi_sc = acpi_device_get_parent_softc(dev); | ||||
SYSCTL_ADD_PROC(&acpi_sc->acpi_sysctl_ctx, | SYSCTL_ADD_PROC(&acpi_sc->acpi_sysctl_ctx, | ||||
SYSCTL_CHILDREN(acpi_sc->acpi_sysctl_tree), | SYSCTL_CHILDREN(acpi_sc->acpi_sysctl_tree), OID_AUTO, "acline", | ||||
OID_AUTO, "acline", CTLTYPE_INT | CTLFLAG_RD, | CTLTYPE_INT | CTLFLAG_RD | CTLFLAG_NEEDGIANT, &sc->status, 0, | ||||
&sc->status, 0, acpi_acad_sysctl, "I", ""); | acpi_acad_sysctl, "I", ""); | ||||
} | } | ||||
/* Get initial status after whole system is up. */ | /* Get initial status after whole system is up. */ | ||||
Context not available. |