summaryrefslogtreecommitdiffstats
path: root/sys/dev/acpi_support/acpi_hp.c
Commit message (Collapse)AuthorAgeFilesLines
* sys: Make use of our rounddown() macro when sys/param.h is available.pfg2016-04-301-1/+2
| | | | No functional change.
* Fix multiple incorrect SYSCTL arguments in the kernel:hselasky2014-10-211-27/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | - Wrong integer type was specified. - Wrong or missing "access" specifier. The "access" specifier sometimes included the SYSCTL type, which it should not, except for procedural SYSCTL nodes. - Logical OR where binary OR was expected. - Properly assert the "access" argument passed to all SYSCTL macros, using the CTASSERT macro. This applies to both static- and dynamically created SYSCTLs. - Properly assert the the data type for both static and dynamic SYSCTLs. In the case of static SYSCTLs we only assert that the data pointed to by the SYSCTL data pointer has the correct size, hence there is no easy way to assert types in the C language outside a C-function. - Rewrote some code which doesn't pass a constant "access" specifier when creating dynamic SYSCTL nodes, which is now a requirement. - Updated "EXAMPLES" section in SYSCTL manual page. MFC after: 3 days Sponsored by: Mellanox Technologies
* Only cleanup CMI-related state on detach if the system supports CMI.jhb2013-04-291-12/+10
| | | | | PR: kern/163268 MFC after: 1 week
* Use DEVMETHOD_END macro defined in sys/bus.h instead of {0, 0} sentinel on ↵sbz2013-01-301-1/+2
| | | | | | | device_method_t arrays Reviewed by: cognet Approved by: cognet
* make acpi_hp device a child of acpi_wmiavg2010-09-111-25/+3
| | | | | | | | | to properly reflect dependency between the devices/drivers PR: kern/147858 Suggested by: jhb Tested by: Maciej Suszko <maciej@suszko.eu> MFC after: 1 week
* acpi_hp: fix bus attachment codeavg2010-09-061-7/+35
| | | | | | | | | | - add identify method to create driver's own device_t - successfully probe only driver's own device_t instead of any device_t - (ab)use device order to hopefully be probed/attached after acpi_wmi PR: kern/147858 Tested by: Maciej Suszko <maciej@suszko.eu> MFC after: 1 week
* Remove unused assignment.jkim2010-06-111-2/+0
| | | | | Found by: clang static analyzer Found by: Coverity Prevent[tm] (CID 4537, 4538, 4539)
* Fix a possible dereference of null pointer.jkim2010-06-111-1/+1
| | | | | Found by: clang static analyzer Found by: Coverity Prevent[tm] (CID 3423)
* acpi_hp.c:rpaulo2009-07-031-95/+114
| | | | | | | | | | | | | | | | | | | | | | | | - sysctl dev.acpi_hp.0.verbose to toggle debug output - A modification so this can deal with different array lengths when reading the CMI BIOS - now it works ok on HP Compaq nx7300 as well. - Change behaviour to query only max_instance-1 CMI BIOS instances, because all HPs seen so far are broken in that respect (or there is a fundamental misunderstanding on my side, possible as well). This way a disturbing ACPI Error Field exceeds Buffer message is avoided. - New bit to set on dev.acpi_hp.0.cmi_detail (0x8) to also query the highest guid instance of CMI bios acpi_hp.4: - Document dev.acpi_hp.0.verbose sysctl in man page - Document new bit for dev.acpi_hp.0.cmi_detail - Add a section to manpage about hardware that has been reported to work ok Submitted by: Michael Gmelin <freebsdusb at bindone.de> Approved by: re (kib) MFC after: 2 weeks
* acpi_wmi_if:rpaulo2009-06-301-4/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Document different semantics for ACPI_WMI_PROVIDES_GUID_STRING_METHOD acpi_wmi.c: - Modify acpi_wmi_provides_guid_string_method to return absolut number of instances known for the given GUID. acpi_hp.c: - sysctl dev.acpi_hp.0.verbose to toggle debug output - A modification so this can deal with different array lengths when reading the CMI BIOS - now it works ok on HP Compaq nx7300 as well. - Change behaviour to query only max_instance-1 CMI BIOS instances, because all HPs seen so far are broken in that respect (or there is a fundamental misunderstanding on my side, possible as well). This way a disturbing ACPI Error Field exceeds Buffer message is avoided. - New bit to set on dev.acpi_hp.0.cmi_detail (0x8) to also query the highest guid instance of CMI bios acpi_hp.4: - Document dev.acpi_hp.0.verbose sysctl in man page - Document new bit for dev.acpi_hp.0.cmi_detail - Add a section to manpage about hardware that has been reported to work ok Submitted by: Michael Gmelin, freebsdusb at bindone.de Approved by: re (kib) MFC after: 2 weeks
* * Driver for ACPI WMI (Windows Management Instrumentation)rpaulo2009-06-231-0/+1183
* Driver for ACPI HP extra functionations, which required ACPI WMI driver. Submitted by: Michael <freebsdusb at bindone.de> Approved by: re MFC after: 2 weeks
OpenPOWER on IntegriCloud