[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:
Sir Richard 2010-06-07 21:06:16 +00:00
parent 28bde112e1
commit 1491820d8d

View file

@ -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;
} }
/* /*