summaryrefslogtreecommitdiffstats
path: root/sys/dev/acpica/acpica_support.c
diff options
context:
space:
mode:
authoriwasaki <iwasaki@FreeBSD.org>2002-07-09 17:54:02 +0000
committeriwasaki <iwasaki@FreeBSD.org>2002-07-09 17:54:02 +0000
commit57bb0b6ca49cdd01098ab04fda81a87197188825 (patch)
treedfd1e75d9d7a42530736716ee1fc7c35f267f753 /sys/dev/acpica/acpica_support.c
parent900789083d83b1bdef94797be7ef6652e6900546 (diff)
downloadFreeBSD-src-57bb0b6ca49cdd01098ab04fda81a87197188825.zip
FreeBSD-src-57bb0b6ca49cdd01098ab04fda81a87197188825.tar.gz
Resolve conflicts arising from the ACPI CA 20020611 import.
Diffstat (limited to 'sys/dev/acpica/acpica_support.c')
-rw-r--r--sys/dev/acpica/acpica_support.c45
1 files changed, 4 insertions, 41 deletions
diff --git a/sys/dev/acpica/acpica_support.c b/sys/dev/acpica/acpica_support.c
index f0ab3a1..7dfde3b 100644
--- a/sys/dev/acpica/acpica_support.c
+++ b/sys/dev/acpica/acpica_support.c
@@ -58,6 +58,7 @@ AcpiEnterSleepStateS4Bios (
{
ACPI_OBJECT_LIST ArgList;
ACPI_OBJECT Arg;
+ UINT32 Value;
ACPI_FUNCTION_TRACE ("AcpiEnterSleepStateS4Bios");
@@ -77,7 +78,7 @@ AcpiEnterSleepStateS4Bios (
/* clear wake status */
- AcpiHwBitRegisterWrite (ACPI_BITREG_WAKE_STATUS, 1, ACPI_MTX_LOCK);
+ AcpiSetRegister (ACPI_BITREG_WAKE_STATUS, 1, ACPI_MTX_LOCK);
ACPI_DISABLE_IRQS ();
@@ -92,8 +93,9 @@ AcpiEnterSleepStateS4Bios (
{
AcpiOsStall(1000000);
AcpiOsWritePort (AcpiGbl_FADT->SmiCmd, AcpiGbl_FADT->S4BiosReq, 8);
+ AcpiGetRegister (ACPI_BITREG_WAKE_STATUS, &Value, ACPI_MTX_LOCK);
}
- while (!AcpiHwBitRegisterRead (ACPI_BITREG_WAKE_STATUS, ACPI_MTX_LOCK));
+ while (!Value);
AcpiHwEnableNonWakeupGpes();
@@ -102,42 +104,3 @@ AcpiEnterSleepStateS4Bios (
return_ACPI_STATUS (AE_OK);
}
-
-#undef _COMPONENT
-#define _COMPONENT ACPI_TABLES
-
-/*******************************************************************************
- *
- * FUNCTION: AcpiSetDsdtTablePtr
- *
- * PARAMETERS: TablePtr - pointer to a buffer containing the entire
- * DSDT table to override
- *
- * RETURN: Status
- *
- * DESCRIPTION: Set DSDT table ptr for DSDT overriding. This function should
- * be called perior than AcpiLoadTables().
- *
- ******************************************************************************/
-
-ACPI_STATUS
-AcpiSetDsdtTablePtr(
- ACPI_TABLE_HEADER *TablePtr)
-{
- ACPI_FUNCTION_TRACE ("AcpiSetDsdtTablePtr");
-
- if (!TablePtr)
- {
- return_ACPI_STATUS (AE_BAD_PARAMETER);
- }
-
- if (AcpiGbl_AcpiTables[ACPI_TABLE_DSDT].LoadedIntoNamespace)
- {
- return_ACPI_STATUS (AE_ALREADY_EXISTS);
- }
-
- AcpiGbl_DSDT = TablePtr;
-
- return_ACPI_STATUS (AE_OK);
-}
-
OpenPOWER on IntegriCloud