summaryrefslogtreecommitdiffstats
path: root/sys/dev/acpica/acpivar.h
diff options
context:
space:
mode:
authormsmith <msmith@FreeBSD.org>2001-06-28 06:17:16 +0000
committermsmith <msmith@FreeBSD.org>2001-06-28 06:17:16 +0000
commitfc1d6b8218f16485b03e9c32b62fc0e837a78afc (patch)
treed6a06322db1956db15fed42753544214ee27e05a /sys/dev/acpica/acpivar.h
parent741be83f389e54133ba630aba5b4f1c4a663b755 (diff)
downloadFreeBSD-src-fc1d6b8218f16485b03e9c32b62fc0e837a78afc.zip
FreeBSD-src-fc1d6b8218f16485b03e9c32b62fc0e837a78afc.tar.gz
Sync to my work in progress:
- Reorder the acpi_* functions in a sensible fashion - Add acpi_ForeachPackageObject and acpi_GetHandleInScope - Use the new debugging layer/level names - Implement most of the guts of the acpi_thermal module; passive cooling isn't there yet, but active cooling should work. - Implement power resource handling (acpi_powerres.c) This compiles and mostly works, but my test coverage is small, so feedback is welcome.
Diffstat (limited to 'sys/dev/acpica/acpivar.h')
-rw-r--r--sys/dev/acpica/acpivar.h18
1 files changed, 15 insertions, 3 deletions
diff --git a/sys/dev/acpica/acpivar.h b/sys/dev/acpica/acpivar.h
index 4e39306..66c61d4 100644
--- a/sys/dev/acpica/acpivar.h
+++ b/sys/dev/acpica/acpivar.h
@@ -164,16 +164,23 @@ extern void acpi_EnterDebugger(void);
#define STEP(x)
#endif
+extern BOOLEAN acpi_DeviceIsPresent(device_t dev);
extern BOOLEAN acpi_MatchHid(device_t dev, char *hid);
+extern ACPI_STATUS acpi_GetHandleInScope(ACPI_HANDLE parent, char *path, ACPI_HANDLE *result);
+extern ACPI_BUFFER *acpi_AllocBuffer(int size);
extern ACPI_STATUS acpi_GetIntoBuffer(ACPI_HANDLE handle,
ACPI_STATUS (*func)(ACPI_HANDLE, ACPI_BUFFER *),
ACPI_BUFFER *buf);
-extern ACPI_BUFFER *acpi_AllocBuffer(int size);
+extern ACPI_STATUS acpi_EvaluateIntoBuffer(ACPI_HANDLE object, ACPI_STRING pathname,
+ ACPI_OBJECT_LIST *params, ACPI_BUFFER *buf);
+extern ACPI_STATUS acpi_EvaluateInteger(ACPI_HANDLE handle, char *path, int *number);
+extern ACPI_STATUS acpi_ForeachPackageObject(ACPI_OBJECT *obj,
+ void (* func)(ACPI_OBJECT *comp, void *arg),
+ void *arg);
+
extern ACPI_STATUS acpi_SetSleepState(struct acpi_softc *sc, int state);
extern ACPI_STATUS acpi_Enable(struct acpi_softc *sc);
extern ACPI_STATUS acpi_Disable(struct acpi_softc *sc);
-extern BOOLEAN acpi_DeviceIsPresent(device_t dev);
-extern ACPI_STATUS acpi_EvaluateInteger(ACPI_HANDLE handle, char *path, int *number);
struct acpi_parse_resource_set {
void (* set_init)(device_t dev, void **context);
@@ -214,6 +221,11 @@ typedef void (*acpi_event_handler_t) __P((void *, int));
EVENTHANDLER_DECLARE(acpi_sleep_event, acpi_event_handler_t);
EVENTHANDLER_DECLARE(acpi_wakeup_event, acpi_event_handler_t);
+/*
+ * Device power control.
+ */
+extern ACPI_STATUS acpi_pwr_switch_consumer(ACPI_HANDLE consumer, int state);
+
/*
* Misc.
*/
OpenPOWER on IntegriCloud