acpivar.h (170976) | acpivar.h (172489) |
---|---|
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 170976 2007-06-21 22:50:37Z njl $ | 28 * $FreeBSD: head/sys/dev/acpica/acpivar.h 172489 2007-10-09 07:48:07Z njl $ |
29 */ 30 31#ifndef _ACPIVAR_H_ 32#define _ACPIVAR_H_ 33 34#ifdef _KERNEL 35 36#include "acpi_if.h" --- 390 unchanged lines hidden (view full) --- 427int acpi_battery_get_info_expire(void); 428int acpi_battery_bst_valid(struct acpi_bst *bst); 429int acpi_battery_bif_valid(struct acpi_bif *bif); 430int acpi_battery_get_battinfo(device_t dev, 431 struct acpi_battinfo *info); 432 433/* Embedded controller. */ 434void acpi_ec_ecdt_probe(device_t); | 29 */ 30 31#ifndef _ACPIVAR_H_ 32#define _ACPIVAR_H_ 33 34#ifdef _KERNEL 35 36#include "acpi_if.h" --- 390 unchanged lines hidden (view full) --- 427int acpi_battery_get_info_expire(void); 428int acpi_battery_bst_valid(struct acpi_bst *bst); 429int acpi_battery_bif_valid(struct acpi_bif *bif); 430int acpi_battery_get_battinfo(device_t dev, 431 struct acpi_battinfo *info); 432 433/* Embedded controller. */ 434void acpi_ec_ecdt_probe(device_t); |
435/* HPET table probe*/ 436void acpi_hpet_table_probe(device_t); | |
437 438/* AC adapter interface. */ 439int acpi_acad_get_acline(int *); 440 441/* Package manipulation convenience functions. */ 442#define ACPI_PKG_VALID(pkg, size) \ 443 ((pkg) != NULL && (pkg)->Type == ACPI_TYPE_PACKAGE && \ 444 (pkg)->Package.Count >= (size)) 445int acpi_PkgInt(ACPI_OBJECT *res, int idx, ACPI_INTEGER *dst); 446int acpi_PkgInt32(ACPI_OBJECT *res, int idx, uint32_t *dst); 447int acpi_PkgStr(ACPI_OBJECT *res, int idx, void *dst, size_t size); 448int acpi_PkgGas(device_t dev, ACPI_OBJECT *res, int idx, int *type, 449 int *rid, struct resource **dst, u_int flags); 450ACPI_HANDLE acpi_GetReference(ACPI_HANDLE scope, ACPI_OBJECT *obj); 451 | 435 436/* AC adapter interface. */ 437int acpi_acad_get_acline(int *); 438 439/* Package manipulation convenience functions. */ 440#define ACPI_PKG_VALID(pkg, size) \ 441 ((pkg) != NULL && (pkg)->Type == ACPI_TYPE_PACKAGE && \ 442 (pkg)->Package.Count >= (size)) 443int acpi_PkgInt(ACPI_OBJECT *res, int idx, ACPI_INTEGER *dst); 444int acpi_PkgInt32(ACPI_OBJECT *res, int idx, uint32_t *dst); 445int acpi_PkgStr(ACPI_OBJECT *res, int idx, void *dst, size_t size); 446int acpi_PkgGas(device_t dev, ACPI_OBJECT *res, int idx, int *type, 447 int *rid, struct resource **dst, u_int flags); 448ACPI_HANDLE acpi_GetReference(ACPI_HANDLE scope, ACPI_OBJECT *obj); 449 |
450/* 451 * Base level for BUS_ADD_CHILD. Special devices are added at orders less 452 * than this, and normal devices at or above this level. This keeps the 453 * probe order sorted so that things like sysresource are available before 454 * their children need them. 455 */ 456#define ACPI_DEV_BASE_ORDER 10 457 |
|
452/* Default number of task queue threads to start. */ 453#ifndef ACPI_MAX_THREADS 454#define ACPI_MAX_THREADS 3 455#endif 456 457/* Use the device logging level for ktr(4). */ 458#define KTR_ACPI KTR_DEV 459 460#endif /* _KERNEL */ 461#endif /* !_ACPIVAR_H_ */ | 458/* Default number of task queue threads to start. */ 459#ifndef ACPI_MAX_THREADS 460#define ACPI_MAX_THREADS 3 461#endif 462 463/* Use the device logging level for ktr(4). */ 464#define KTR_ACPI KTR_DEV 465 466#endif /* _KERNEL */ 467#endif /* !_ACPIVAR_H_ */ |