diff options
| author | Mitsuru IWASAKI <iwasaki@FreeBSD.org> | 2001-07-22 19:13:54 +0000 |
|---|---|---|
| committer | Mitsuru IWASAKI <iwasaki@FreeBSD.org> | 2001-07-22 19:13:54 +0000 |
| commit | 56d8cb57b9ea877c38cd4725f36425b9f7e54a72 (patch) | |
| tree | 01544b1cf32da46bdc3bc6355f76adadf6800ab7 /sys/dev | |
| parent | dc5309048886dbf3a42666fecb1fc132f184dd66 (diff) | |
Notes
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/acpica/acpi.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/dev/acpica/acpi.c b/sys/dev/acpica/acpi.c index 93f58b589a45..8eaaeb26935e 100644 --- a/sys/dev/acpica/acpi.c +++ b/sys/dev/acpica/acpi.c @@ -1041,6 +1041,8 @@ acpi_SetSleepState(struct acpi_softc *sc, int state) { ACPI_STATUS status = AE_OK; UINT16 Count; + UINT8 TypeA; + UINT8 TypeB; FUNCTION_TRACE_U32(__func__, state); ACPI_ASSERTLOCK; @@ -1057,6 +1059,12 @@ acpi_SetSleepState(struct acpi_softc *sc, int state) case ACPI_STATE_S2: case ACPI_STATE_S3: case ACPI_STATE_S4: + status = AcpiHwObtainSleepTypeRegisterData((UINT8)state, &TypeA, &TypeB); + if (status != AE_OK) { + device_printf(sc->acpi_dev, "AcpiHwObtainSleepTypeRegisterData failed - %s\n", AcpiFormatException(status)); + break; + } + /* * Inform all devices that we are going to sleep. */ |
