freebsd-skq/sys/dev/acpica
njl 1cb806cc9e Rewrite the acpi_battery interface to allow for other battery types
(i.e., smart battery) and fix various bugs found during the cleanup.

API changes:
* kernel access:
Access to individual batteries is now via devclass_find("battery").
Introduce new methods ACPI_BATT_GET_STATUS (for _BST-formatted data) and
ACPI_BATT_GET_INFO (for _BIF-formatted data).  The helper function
acpi_battery_get_battinfo() now takes a device_t instead of a unit #
argument.  If dev is NULL, this signifies all batteries.

* ioctl access:
The ACPIIO_BATT_GET_TYPE and ACPIIO_BATT_GET_BATTDESC ioctls have been
removed.  Since there is now no need for a mapping between "virtual" unit
and physical unit, usermode programs can just specify the unit directly and
skip the old translation steps.  In fact, acpiconf(8) was actually already
doing this and virtual unit was the same as physical unit in all cases
since there was previously only one battery type (acpi_cmbat).  Additionally,
we now map the ACPIIO_BATT_GET_BIF and ACPIIO_BATT_GET_BST ioctls for all
batteries, if they provide the associated methods.

* apm compatibility device/ioctls:  no change
* sysctl:  no change

Since most third-party applications use the apm(4) compat interface, there
should be very few affected applications (if any).

Reviewed by:	bruno
MFC after:	5 days
2005-07-23 19:36:00 +00:00
..
Osd Standardize __FBSDID identifiers. 2005-07-22 23:10:02 +00:00
acpi_acad.c Standardize __FBSDID identifiers. 2005-07-22 23:10:02 +00:00
acpi_battery.c Rewrite the acpi_battery interface to allow for other battery types 2005-07-23 19:36:00 +00:00
acpi_button.c Fix SCM ID's. 2005-03-02 09:22:34 +00:00
acpi_cmbat.c Rewrite the acpi_battery interface to allow for other battery types 2005-07-23 19:36:00 +00:00
acpi_cpu.c Advertise that we can handle unified SMP control of processor power 2005-04-10 19:21:42 +00:00
acpi_ec.c If there is a problem during probe, be sure to free up any resources 2005-05-12 22:35:08 +00:00
acpi_if.m Rewrite the acpi_battery interface to allow for other battery types 2005-07-23 19:36:00 +00:00
acpi_isab.c Use the acpi_id_probe() method instead of acpi_MatchHid(), which is now 2004-06-29 19:02:27 +00:00
acpi_lid.c Remove code to initialize the lid state at boot. It interfered with lid 2004-08-25 20:09:15 +00:00
acpi_package.c Standardize __FBSDID identifiers. 2005-07-22 23:10:02 +00:00
acpi_pci_link.c - Add support for link devices where _CRS just outright fails to execute. 2005-01-18 20:18:46 +00:00
acpi_pci.c Start each of the license/copyright comments with /*-, minor shuffle of lines 2005-01-06 01:43:34 +00:00
acpi_pcib_acpi.c Fix SCM ID's. 2005-03-02 09:22:34 +00:00
acpi_pcib_pci.c Remove trailing whitespace. 2004-12-27 05:36:47 +00:00
acpi_pcib.c - If we fail to find an entry in the PRT, output a warning message. 2005-03-08 17:22:11 +00:00
acpi_pcibvar.h Protect against multiple includes and use _KERNEL to protect the PCI fns. 2005-02-28 05:39:34 +00:00
acpi_perf.c Remove bus_{mem,p}io.h and related code for a micro-optimization on i386 2005-05-29 04:42:30 +00:00
acpi_powerres.c Remove trailing whitespace. 2004-12-27 05:36:47 +00:00
acpi_quirk.c Standardize __FBSDID identifiers. 2005-07-22 23:10:02 +00:00
acpi_quirks Add a quirk for a motherboard whose acpi timer runs too fast. 2005-06-26 18:19:14 +00:00
acpi_resource.c s/SLIST/STAILQ/ 2005-03-18 11:57:44 +00:00
acpi_thermal.c Implement passive cooling. It is enabled for tz0 by default where 2005-07-18 20:12:23 +00:00
acpi_throttle.c Set CPU speed to 100% in acpi_throttle attach. This is needed for some 2005-04-10 20:04:30 +00:00
acpi_timer.c Fix SCM ID's. 2005-03-02 09:22:34 +00:00
acpi_video.c Fix SCM ID's. 2005-03-02 09:22:34 +00:00
acpi.c In newbus land, ivars can only be accessed for direct child, or when 2005-06-03 20:12:12 +00:00
acpiio.h Rewrite the acpi_battery interface to allow for other battery types 2005-07-23 19:36:00 +00:00
acpivar.h Rewrite the acpi_battery interface to allow for other battery types 2005-07-23 19:36:00 +00:00