summaryrefslogtreecommitdiffstats
path: root/sys/contrib/dev/acpica/achware.h
diff options
context:
space:
mode:
authormsmith <msmith@FreeBSD.org>2001-01-31 09:17:50 +0000
committermsmith <msmith@FreeBSD.org>2001-01-31 09:17:50 +0000
commit7948a3a80426e7bdc0728814e72cf46852c46576 (patch)
tree5ed7785feb928c9fe57c2d7175f89660521314a4 /sys/contrib/dev/acpica/achware.h
parent68d9171019852e7a4325965a2539a5a2eb7571da (diff)
downloadFreeBSD-src-7948a3a80426e7bdc0728814e72cf46852c46576.zip
FreeBSD-src-7948a3a80426e7bdc0728814e72cf46852c46576.tar.gz
Update to the 20010125 ACPI CA snapshot.
Diffstat (limited to 'sys/contrib/dev/acpica/achware.h')
-rw-r--r--sys/contrib/dev/acpica/achware.h99
1 files changed, 20 insertions, 79 deletions
diff --git a/sys/contrib/dev/acpica/achware.h b/sys/contrib/dev/acpica/achware.h
index 35c88cd..bcefafa 100644
--- a/sys/contrib/dev/acpica/achware.h
+++ b/sys/contrib/dev/acpica/achware.h
@@ -1,7 +1,7 @@
/******************************************************************************
*
* Name: achware.h -- hardware specific interfaces
- * $Revision: 49 $
+ * $Revision: 53 $
*
*****************************************************************************/
@@ -9,7 +9,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999, 2000, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999, 2000, 2001, Intel Corp.
* All rights reserved.
*
* 2. License
@@ -118,6 +118,10 @@
#define __ACHWARE_H__
+/* PM Timer ticks per second (HZ) */
+#define PM_TIMER_FREQUENCY 3579545
+
+
/* Prototypes */
@@ -183,6 +187,11 @@ void
AcpiHwClearAcpiStatus (
void);
+UINT32
+AcpiHwGetBitShift (
+ UINT32 Mask);
+
+
/* GPE support */
@@ -212,89 +221,21 @@ AcpiHwObtainSleepTypeRegisterData (
UINT8 *Slp_TypB);
-/* Cx State Prototypes */
-
-ACPI_STATUS
-AcpiHwEnterC1(
- ACPI_IO_ADDRESS PblkAddress,
- UINT32 *PmTimerTicks);
-
-ACPI_STATUS
-AcpiHwEnterC2(
- ACPI_IO_ADDRESS PblkAddress,
- UINT32 *PmTimerTicks);
-
-ACPI_STATUS
-AcpiHwEnterC3(
- ACPI_IO_ADDRESS PblkAddress,
- UINT32 *PmTimerTicks);
-
-ACPI_STATUS
-AcpiHwEnterCx (
- ACPI_IO_ADDRESS PblkAddress,
- UINT32 *PmTimerTicks);
-
-ACPI_STATUS
-AcpiHwSetCx (
- UINT32 CxState);
-
-ACPI_STATUS
-AcpiHwGetCxInfo (
- UINT32 CxStates[]);
+/* ACPI Timer prototypes */
ACPI_STATUS
-AcpiHwGetCxHandler (
- UINT32 CxState,
- ACPI_C_STATE_HANDLER *Handler);
+AcpiGetTimerResolution (
+ UINT32 *Resolution);
ACPI_STATUS
-AcpiHwSetCxHandler (
- UINT32 CxState,
- ACPI_C_STATE_HANDLER Handler);
-
-
-/* Throttling Prototypes */
-
-void
-AcpiHwEnableThrottling (
- ACPI_IO_ADDRESS PblkAddress);
-
-void
-AcpiHwDisableThrottling (
- ACPI_IO_ADDRESS PblkAddress);
-
-UINT32
-AcpiHwGetDutyCycle (
- UINT8 DutyOffset,
- ACPI_IO_ADDRESS PblkAddress,
- UINT32 NumThrottleStates);
-
-void
-AcpiHwProgramDutyCycle (
- UINT8 DutyOffset,
- UINT32 DutyCycle,
- ACPI_IO_ADDRESS PblkAddress,
- UINT32 NumThrottleStates);
-
-NATIVE_UINT
-AcpiHwLocalPow (
- NATIVE_UINT x,
- NATIVE_UINT y);
-
-
-/* ACPI Timer prototypes */
-
-UINT32
-AcpiHwPmtTicks (
- void);
-
-UINT32
-AcpiHwPmtResolution (
- void);
+AcpiGetTimer (
+ UINT32 *Ticks);
ACPI_STATUS
-AcpiGetTimer (
- UINT32 *OutTicks);
+AcpiGetTimerDuration (
+ UINT32 StartTicks,
+ UINT32 EndTicks,
+ UINT32 *TimeElapsed);
#endif /* __ACHWARE_H__ */
OpenPOWER on IntegriCloud