acpi_if.m (144629) | acpi_if.m (148352) |
---|---|
1#- 2# Copyright (c) 2004 Nate Lawson 3# All rights reserved. 4# 5# Redistribution and use in source and binary forms, with or without 6# modification, are permitted provided that the following conditions 7# are met: 8# 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24# SUCH DAMAGE. 25# | 1#- 2# Copyright (c) 2004 Nate Lawson 3# All rights reserved. 4# 5# Redistribution and use in source and binary forms, with or without 6# modification, are permitted provided that the following conditions 7# are met: 8# 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24# SUCH DAMAGE. 25# |
26# $FreeBSD: head/sys/dev/acpica/acpi_if.m 144629 2005-04-04 15:46:57Z njl $ | 26# $FreeBSD: head/sys/dev/acpica/acpi_if.m 148352 2005-07-23 19:36:00Z njl $ |
27# 28 29#include <sys/bus.h> 30#include <sys/types.h> 31#include "acpi.h" 32 33INTERFACE acpi; 34 --- 11 unchanged lines hidden (view full) --- 46# 47# void *arg: argument passed in original call to acpi_scan_children() 48# 49# Returns: AE_OK if the scan should continue, otherwise an error 50# 51HEADER { 52 typedef ACPI_STATUS (*acpi_scan_cb_t)(ACPI_HANDLE h, device_t *dev, 53 int level, void *arg); | 27# 28 29#include <sys/bus.h> 30#include <sys/types.h> 31#include "acpi.h" 32 33INTERFACE acpi; 34 --- 11 unchanged lines hidden (view full) --- 46# 47# void *arg: argument passed in original call to acpi_scan_children() 48# 49# Returns: AE_OK if the scan should continue, otherwise an error 50# 51HEADER { 52 typedef ACPI_STATUS (*acpi_scan_cb_t)(ACPI_HANDLE h, device_t *dev, 53 int level, void *arg); |
54 55 struct acpi_bif; 56 struct acpi_bst; |
|
54}; 55 56# 57# Default implementation for acpi_id_probe(). 58# 59CODE { 60 static char * 61 acpi_generic_id_probe(device_t bus, device_t dev, char **ids) --- 130 unchanged lines hidden (view full) --- 192# int width: Size of value to write in bytes 193# 194METHOD int ec_write { 195 device_t dev; 196 u_int addr; 197 ACPI_INTEGER val; 198 int width; 199}; | 57}; 58 59# 60# Default implementation for acpi_id_probe(). 61# 62CODE { 63 static char * 64 acpi_generic_id_probe(device_t bus, device_t dev, char **ids) --- 130 unchanged lines hidden (view full) --- 195# int width: Size of value to write in bytes 196# 197METHOD int ec_write { 198 device_t dev; 199 u_int addr; 200 ACPI_INTEGER val; 201 int width; 202}; |
203 204# 205# Get battery information (_BIF format) 206# 207# device_t dev: Battery device 208# struct acpi_bif *bif: Pointer to storage for _BIF results 209# 210METHOD int batt_get_info { 211 device_t dev; 212 struct acpi_bif *bif; 213}; 214 215# 216# Get battery status (_BST format) 217# 218# device_t dev: Battery device 219# struct acpi_bst *bst: Pointer to storage for _BST results 220# 221METHOD int batt_get_status { 222 device_t dev; 223 struct acpi_bst *bst; 224}; |
|