acpivar.h (146021) | acpivar.h (148352) |
---|---|
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 146021 2005-05-09 07:34:04Z marks $ | 28 * $FreeBSD: head/sys/dev/acpica/acpivar.h 148352 2005-07-23 19:36:00Z njl $ |
29 */ 30 31#ifndef _ACPIVAR_H_ 32#define _ACPIVAR_H_ 33 34#ifdef _KERNEL 35 36#include "acpi_if.h" --- 32 unchanged lines hidden (view full) --- 69 int acpi_s4bios; 70 int acpi_disable_on_poweroff; 71 int acpi_verbose; 72 73 bus_dma_tag_t acpi_waketag; 74 bus_dmamap_t acpi_wakemap; 75 vm_offset_t acpi_wakeaddr; 76 vm_paddr_t acpi_wakephys; | 29 */ 30 31#ifndef _ACPIVAR_H_ 32#define _ACPIVAR_H_ 33 34#ifdef _KERNEL 35 36#include "acpi_if.h" --- 32 unchanged lines hidden (view full) --- 69 int acpi_s4bios; 70 int acpi_disable_on_poweroff; 71 int acpi_verbose; 72 73 bus_dma_tag_t acpi_waketag; 74 bus_dmamap_t acpi_wakemap; 75 vm_offset_t acpi_wakeaddr; 76 vm_paddr_t acpi_wakephys; |
77 78 struct sysctl_ctx_list acpi_battery_sysctl_ctx; 79 struct sysctl_oid *acpi_battery_sysctl_tree; | |
80}; 81 82struct acpi_device { 83 /* ACPI ivars */ 84 ACPI_HANDLE ad_handle; 85 int ad_magic; 86 void *ad_private; 87 int ad_flags; --- 300 unchanged lines hidden (view full) --- 388int acpi_machdep_init(device_t dev); 389void acpi_install_wakeup_handler(struct acpi_softc *sc); 390int acpi_sleep_machdep(struct acpi_softc *sc, int state); 391int acpi_table_quirks(int *quirks); 392int acpi_machdep_quirks(int *quirks); 393 394/* Battery Abstraction. */ 395struct acpi_battinfo; | 77}; 78 79struct acpi_device { 80 /* ACPI ivars */ 81 ACPI_HANDLE ad_handle; 82 int ad_magic; 83 void *ad_private; 84 int ad_flags; --- 300 unchanged lines hidden (view full) --- 385int acpi_machdep_init(device_t dev); 386void acpi_install_wakeup_handler(struct acpi_softc *sc); 387int acpi_sleep_machdep(struct acpi_softc *sc, int state); 388int acpi_table_quirks(int *quirks); 389int acpi_machdep_quirks(int *quirks); 390 391/* Battery Abstraction. */ 392struct acpi_battinfo; |
396struct acpi_battdesc; | |
397 | 393 |
398int acpi_battery_register(int, int); 399int acpi_battery_remove(int, int); 400int acpi_battery_get_battinfo(int, struct acpi_battinfo *); | 394int acpi_battery_register(device_t dev); 395int acpi_battery_remove(device_t dev); |
401int acpi_battery_get_units(void); 402int acpi_battery_get_info_expire(void); | 396int acpi_battery_get_units(void); 397int acpi_battery_get_info_expire(void); |
403int acpi_battery_get_battdesc(int, struct acpi_battdesc *); | 398int acpi_battery_bst_valid(struct acpi_bst *bst); 399int acpi_battery_bif_valid(struct acpi_bif *bif); 400int acpi_battery_get_battinfo(device_t dev, 401 struct acpi_battinfo *info); |
404 | 402 |
405int acpi_cmbat_get_battinfo(int, struct acpi_battinfo *); 406 | |
407/* Embedded controller. */ 408void acpi_ec_ecdt_probe(device_t); 409 410/* AC adapter interface. */ 411int acpi_acad_get_acline(int *); 412 413/* Package manipulation convenience functions. */ 414#define ACPI_PKG_VALID(pkg, size) \ --- 14 unchanged lines hidden --- | 403/* Embedded controller. */ 404void acpi_ec_ecdt_probe(device_t); 405 406/* AC adapter interface. */ 407int acpi_acad_get_acline(int *); 408 409/* Package manipulation convenience functions. */ 410#define ACPI_PKG_VALID(pkg, size) \ --- 14 unchanged lines hidden --- |