mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 20:35:43 +00:00
[HAL]: Implement HalAdjustResourceList using Bus Handler support. Previous HAL said this was "deprecated" and faked success. Although correct on ACPI HALs, this is a legacy HALs, so Bus Handlers have a chance to do ajdustment.
svn path=/trunk/; revision=47680
This commit is contained in:
parent
28bde112e1
commit
1491820d8d
1 changed files with 17 additions and 3 deletions
|
@ -1234,10 +1234,24 @@ HaliTranslateBusAddress(IN INTERFACE_TYPE InterfaceType,
|
||||||
*/
|
*/
|
||||||
NTSTATUS
|
NTSTATUS
|
||||||
NTAPI
|
NTAPI
|
||||||
HalAdjustResourceList(IN PCM_RESOURCE_LIST Resources)
|
HalAdjustResourceList(IN PIO_RESOURCE_REQUIREMENTS_LIST *ResourceList)
|
||||||
{
|
{
|
||||||
/* Deprecated, return success */
|
PBUS_HANDLER Handler;
|
||||||
return STATUS_SUCCESS;
|
ULONG Status;
|
||||||
|
|
||||||
|
/* Find the handler */
|
||||||
|
Handler = HalReferenceHandlerForBus((*ResourceList)->InterfaceType,
|
||||||
|
(*ResourceList)->BusNumber);
|
||||||
|
if (!Handler) return STATUS_SUCCESS;
|
||||||
|
|
||||||
|
/* Do the assignment */
|
||||||
|
Status = Handler->AdjustResourceList(Handler,
|
||||||
|
Handler,
|
||||||
|
ResourceList);
|
||||||
|
|
||||||
|
/* Dereference the handler and return */
|
||||||
|
HalDereferenceBusHandler(Handler);
|
||||||
|
return Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue