diff options
author | Paul Irofti <pirofti@cvs.openbsd.org> | 2012-11-27 17:38:47 +0000 |
---|---|---|
committer | Paul Irofti <pirofti@cvs.openbsd.org> | 2012-11-27 17:38:47 +0000 |
commit | 4ce4a3d78f15bc213ebe455a7c1418ae98dc0941 (patch) | |
tree | e70799ce089fb1f042e1b117e1356246e947d3cc /sys/dev/acpi | |
parent | d51f5cddc8d73c07fbba14de4cd999b975ef3287 (diff) |
Add acpi_{acquire,release}_glk locking functions.
These functions represent the basic blocks for using the ACPI global
lock that provides mutual exclusion between the OSPM and the BIOS.
No functional change. Okay kettenis@, deraadt@.
Diffstat (limited to 'sys/dev/acpi')
-rw-r--r-- | sys/dev/acpi/acpivar.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/dev/acpi/acpivar.h b/sys/dev/acpi/acpivar.h index 2f9b0e1afcd..78e8303df3c 100644 --- a/sys/dev/acpi/acpivar.h +++ b/sys/dev/acpi/acpivar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: acpivar.h,v 1.74 2012/10/08 21:47:50 deraadt Exp $ */ +/* $OpenBSD: acpivar.h,v 1.75 2012/11/27 17:38:46 pirofti Exp $ */ /* * Copyright (c) 2005 Thorsten Lockert <tholo@sigmasoft.com> * @@ -325,6 +325,12 @@ int acpi_dotask(struct acpi_softc *); void acpi_powerdown_task(void *, int); void acpi_sleep_task(void *, int); +/* Section 5.2.10.1: global lock acquire/release functions */ +#define GL_BIT_PENDING 0x01 +#define GL_BIT_OWNED 0x02 +int acpi_acquire_glk(uint32_t *); +int acpi_release_glk(uint32_t *); + void acpi_pciroots_attach(struct device *, void *, cfprint_t); #endif |