summaryrefslogtreecommitdiffstats
path: root/sys/dev/acpica/acpica_support.c
diff options
context:
space:
mode:
authormsmith <msmith@FreeBSD.org>2002-02-23 05:31:38 +0000
committermsmith <msmith@FreeBSD.org>2002-02-23 05:31:38 +0000
commit2fc99bc1ee3be529d07a40af787eeb806cd087f4 (patch)
treec49fc17a576fd7abf42605cb3aaeaa73122826ac /sys/dev/acpica/acpica_support.c
parent2192e342502c94109082e14247e0cad3478306b8 (diff)
downloadFreeBSD-src-2fc99bc1ee3be529d07a40af787eeb806cd087f4.zip
FreeBSD-src-2fc99bc1ee3be529d07a40af787eeb806cd087f4.tar.gz
Match namespace cleanup changes in ACPI CA 20020217 update.
Diffstat (limited to 'sys/dev/acpica/acpica_support.c')
-rw-r--r--sys/dev/acpica/acpica_support.c19
1 files changed, 10 insertions, 9 deletions
diff --git a/sys/dev/acpica/acpica_support.c b/sys/dev/acpica/acpica_support.c
index 6b11497..00951ab 100644
--- a/sys/dev/acpica/acpica_support.c
+++ b/sys/dev/acpica/acpica_support.c
@@ -27,9 +27,10 @@
*/
#include "acpi.h"
+#include <machine/cpufunc.h>
#include <dev/acpica/acpica_support.h>
-MODULE_NAME("support")
+ACPI_MODULE_NAME("SUPPORT")
/*
* Implement support code temporary here until officially merged into
@@ -59,15 +60,15 @@ AcpiEnterSleepStateS4Bios (
ACPI_OBJECT Arg;
- FUNCTION_TRACE ("AcpiEnterSleepStateS4Bios");
+ ACPI_FUNCTION_TRACE ("AcpiEnterSleepStateS4Bios");
/* run the _PTS and _GTS methods */
- MEMSET(&ArgList, 0, sizeof(ArgList));
+ ACPI_MEMSET(&ArgList, 0, sizeof(ArgList));
ArgList.Count = 1;
ArgList.Pointer = &Arg;
- MEMSET(&Arg, 0, sizeof(Arg));
+ ACPI_MEMSET(&Arg, 0, sizeof(Arg));
Arg.Type = ACPI_TYPE_INTEGER;
Arg.Integer.Value = ACPI_STATE_S4;
@@ -76,9 +77,9 @@ AcpiEnterSleepStateS4Bios (
/* clear wake status */
- AcpiHwRegisterBitAccess (ACPI_WRITE, ACPI_MTX_LOCK, WAK_STS, 1);
+ AcpiHwBitRegisterWrite (ACPI_BITREG_WAKE_STATUS, 1, ACPI_MTX_LOCK);
- disable ();
+ acpi_disable_irqs ();
AcpiHwDisableNonWakeupGpes();
@@ -92,11 +93,11 @@ AcpiEnterSleepStateS4Bios (
AcpiOsStall(1000000);
AcpiOsWritePort (AcpiGbl_FADT->SmiCmd, AcpiGbl_FADT->S4BiosReq, 8);
}
- while (!AcpiHwRegisterBitAccess (ACPI_READ, ACPI_MTX_LOCK, WAK_STS));
+ while (!AcpiHwBitRegisterRead (ACPI_BITREG_WAKE_STATUS, ACPI_MTX_LOCK));
AcpiHwEnableNonWakeupGpes();
- enable ();
+ acpi_enable_irqs ();
return_ACPI_STATUS (AE_OK);
}
@@ -123,7 +124,7 @@ ACPI_STATUS
AcpiSetDsdtTablePtr(
ACPI_TABLE_HEADER *TablePtr)
{
- FUNCTION_TRACE ("AcpiSetDsdtTablePtr");
+ ACPI_FUNCTION_TRACE ("AcpiSetDsdtTablePtr");
if (!TablePtr)
{
OpenPOWER on IntegriCloud