mirror of
https://github.com/reactos/reactos.git
synced 2025-07-31 11:41:42 +00:00
Implemented NdisMPciAssignSlotResources() partially.
svn path=/trunk/; revision=5164
This commit is contained in:
parent
8e2008811b
commit
df985d0406
1 changed files with 22 additions and 3 deletions
|
@ -53,7 +53,7 @@ NdisImmediateWritePciSlotInformation(
|
|||
|
||||
|
||||
/*
|
||||
* @unimplemented
|
||||
* @implemented
|
||||
*/
|
||||
NDIS_STATUS
|
||||
EXPORT
|
||||
|
@ -62,9 +62,28 @@ NdisMPciAssignResources(
|
|||
IN ULONG SlotNumber,
|
||||
OUT PNDIS_RESOURCE_LIST *AssignedResources)
|
||||
{
|
||||
UNIMPLEMENTED
|
||||
PCM_RESOURCE_LIST ResourceList;
|
||||
NTSTATUS Status;
|
||||
|
||||
return NDIS_STATUS_FAILURE;
|
||||
ResourceList = NULL;
|
||||
Status = HalAssignSlotResources (NULL, /* FIXME: RegistryPath */
|
||||
NULL,
|
||||
NULL, /* FIXME: DriverObject */
|
||||
NULL, /* FIXME: DeviceObject */
|
||||
PCIConfiguration, /* FIXME: BusType */
|
||||
0, /* FIXME: BusNumber */
|
||||
SlotNumber,
|
||||
&ResourceList);
|
||||
if (!NT_SUCCESS (Status))
|
||||
{
|
||||
*AssignedResources = NULL;
|
||||
return NDIS_STATUS_FAILURE;
|
||||
}
|
||||
|
||||
*AssignedResources =
|
||||
(PNDIS_RESOURCE_LIST)&ResourceList->List[0].PartialResourceList;
|
||||
|
||||
return NDIS_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue