]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC 298370,298372,298377,298379,298380,298484:
authorjhb <jhb@FreeBSD.org>
Sat, 23 Jul 2016 17:41:47 +0000 (17:41 +0000)
committerjhb <jhb@FreeBSD.org>
Sat, 23 Jul 2016 17:41:47 +0000 (17:41 +0000)
commit876fac0db641623bff3fda866239798202e6a0d3
tree0f5ed2326a0ee740dd2d730a7617017188c9b774
parent46354a4b7a2ac3c8657be258c0fb2ab3f73e273c
MFC 298370,298372,298377,298379,298380,298484:
Abstract out _OSC handling and invoke it for PCI bridges.

r298370:
Add a wrapper for evaluating _OSC methods.

This wrapper does not translate errors in the first word to ACPI
error status returns.  Use this wrapper in the acpi_cpu(4) driver in
place of the existing _OSC code.  While here, fix a bug where the wrong
count of words was passed when invoking _OSC.

r298372:
Invoke _OSC on Host-PCI bridges.

Tell the firmware that we support PCI-express config space access
and MSI.

r298377:
Remove query flag from acpi_EvaluateOSC().  This function does not support
return buffer (yet).

r298379:
There is no need to use array any more.  No functional change.

r298380:
Prefer sizeof(*pointer) over sizeof(type).  No funtional change.

r298484:
Optionally return the output capabilities list from _OSC.

Both of the callers were expecting the input cap_set to be modified.
This fixes them to request cap_set to be updated with the returned buffer.
sys/dev/acpica/acpi.c
sys/dev/acpica/acpi_cpu.c
sys/dev/acpica/acpi_pcib_acpi.c
sys/dev/acpica/acpivar.h