mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 06:26:00 +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
|
||||
NTAPI
|
||||
HalAdjustResourceList(IN PCM_RESOURCE_LIST Resources)
|
||||
HalAdjustResourceList(IN PIO_RESOURCE_REQUIREMENTS_LIST *ResourceList)
|
||||
{
|
||||
/* Deprecated, return success */
|
||||
return STATUS_SUCCESS;
|
||||
PBUS_HANDLER Handler;
|
||||
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