mirror of
https://github.com/reactos/reactos.git
synced 2025-06-03 08:20:27 +00:00
[ACPI] Register a device interface class with ACPI fans
As the commit title says, the point of registering a device interface with ACPI fans is to receive incoming PnP notifications of incoming ACPI fan drivers so that the power manager can connect to them by creating a power device policies dedicated to them during power manager initialization. CORE-18969
This commit is contained in:
parent
0b97a997d2
commit
f69e256376
1 changed files with 8 additions and 0 deletions
|
@ -76,6 +76,14 @@ Bus_PDO_PnP (
|
||||||
NULL,
|
NULL,
|
||||||
&DeviceData->InterfaceName);
|
&DeviceData->InterfaceName);
|
||||||
}
|
}
|
||||||
|
else if (device->flags.hardware_id &&
|
||||||
|
strstr(device->pnp.hardware_id, ACPI_FAN_HID))
|
||||||
|
{
|
||||||
|
status = IoRegisterDeviceInterface(DeviceData->Common.Self,
|
||||||
|
&GUID_DEVICE_FAN,
|
||||||
|
NULL,
|
||||||
|
&DeviceData->InterfaceName);
|
||||||
|
}
|
||||||
else if (device->flags.hardware_id &&
|
else if (device->flags.hardware_id &&
|
||||||
strstr(device->pnp.hardware_id, ACPI_BUTTON_HID_LID))
|
strstr(device->pnp.hardware_id, ACPI_BUTTON_HID_LID))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue