acpivar.h (126517) | acpivar.h (126560) |
---|---|
1/*- 2 * Copyright (c) 2000 Mitsuru IWASAKI <iwasaki@jp.freebsd.org> 3 * Copyright (c) 2000 Michael Smith <msmith@freebsd.org> 4 * Copyright (c) 2000 BSDi 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 11 unchanged lines hidden (view full) --- 20 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 21 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26 * SUCH DAMAGE. 27 * | 1/*- 2 * Copyright (c) 2000 Mitsuru IWASAKI <iwasaki@jp.freebsd.org> 3 * Copyright (c) 2000 Michael Smith <msmith@freebsd.org> 4 * Copyright (c) 2000 BSDi 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 11 unchanged lines hidden (view full) --- 20 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 21 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26 * SUCH DAMAGE. 27 * |
28 * $FreeBSD: head/sys/dev/acpica/acpivar.h 126517 2004-03-03 03:02:17Z njl $ | 28 * $FreeBSD: head/sys/dev/acpica/acpivar.h 126560 2004-03-03 18:34:42Z njl $ |
29 */ 30 31#include "bus_if.h" 32#include <sys/eventhandler.h> 33#include <sys/sysctl.h> 34#if __FreeBSD_version >= 500000 35#include <sys/lock.h> 36#include <sys/mutex.h> --- 133 unchanged lines hidden (view full) --- 170 171#define ACPI_DEVINFO_PRESENT(x) (((x) & 0x9) == 9) 172extern BOOLEAN acpi_DeviceIsPresent(device_t dev); 173extern BOOLEAN acpi_BatteryIsPresent(device_t dev); 174extern BOOLEAN acpi_MatchHid(device_t dev, char *hid); 175extern ACPI_STATUS acpi_GetHandleInScope(ACPI_HANDLE parent, char *path, 176 ACPI_HANDLE *result); 177extern ACPI_BUFFER *acpi_AllocBuffer(int size); | 29 */ 30 31#include "bus_if.h" 32#include <sys/eventhandler.h> 33#include <sys/sysctl.h> 34#if __FreeBSD_version >= 500000 35#include <sys/lock.h> 36#include <sys/mutex.h> --- 133 unchanged lines hidden (view full) --- 170 171#define ACPI_DEVINFO_PRESENT(x) (((x) & 0x9) == 9) 172extern BOOLEAN acpi_DeviceIsPresent(device_t dev); 173extern BOOLEAN acpi_BatteryIsPresent(device_t dev); 174extern BOOLEAN acpi_MatchHid(device_t dev, char *hid); 175extern ACPI_STATUS acpi_GetHandleInScope(ACPI_HANDLE parent, char *path, 176 ACPI_HANDLE *result); 177extern ACPI_BUFFER *acpi_AllocBuffer(int size); |
178extern ACPI_STATUS acpi_EvaluateInteger(ACPI_HANDLE handle, char *path, 179 int *number); | |
180extern ACPI_STATUS acpi_ConvertBufferToInteger(ACPI_BUFFER *bufp, | 178extern ACPI_STATUS acpi_ConvertBufferToInteger(ACPI_BUFFER *bufp, |
181 int *number); | 179 int *number); 180extern ACPI_STATUS acpi_GetInteger(ACPI_HANDLE handle, char *path, 181 int *number); 182extern ACPI_STATUS acpi_SetInteger(ACPI_HANDLE handle, char *path, 183 int number); |
182extern ACPI_STATUS acpi_ForeachPackageObject(ACPI_OBJECT *obj, 183 void (*func)(ACPI_OBJECT *comp, void *arg), 184 void *arg); 185extern ACPI_STATUS acpi_FindIndexedResource(ACPI_BUFFER *buf, int index, 186 ACPI_RESOURCE **resp); 187extern ACPI_STATUS acpi_AppendBufferResource(ACPI_BUFFER *buf, 188 ACPI_RESOURCE *res); 189extern ACPI_STATUS acpi_OverrideInterruptLevel(UINT32 InterruptNumber); --- 123 unchanged lines hidden --- | 184extern ACPI_STATUS acpi_ForeachPackageObject(ACPI_OBJECT *obj, 185 void (*func)(ACPI_OBJECT *comp, void *arg), 186 void *arg); 187extern ACPI_STATUS acpi_FindIndexedResource(ACPI_BUFFER *buf, int index, 188 ACPI_RESOURCE **resp); 189extern ACPI_STATUS acpi_AppendBufferResource(ACPI_BUFFER *buf, 190 ACPI_RESOURCE *res); 191extern ACPI_STATUS acpi_OverrideInterruptLevel(UINT32 InterruptNumber); --- 123 unchanged lines hidden --- |