Author: cgutman
Date: Tue Nov 15 18:41:34 2011
New Revision: 54387
URL:
http://svn.reactos.org/svn/reactos?rev=54387&view=rev
Log:
[NDIS]
- Implement NdisPciAssignResources
Modified:
trunk/reactos/drivers/network/ndis/ndis/30stubs.c
trunk/reactos/drivers/network/ndis/ndis/hardware.c
Modified: trunk/reactos/drivers/network/ndis/ndis/30stubs.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/network/ndis/ndis/…
==============================================================================
--- trunk/reactos/drivers/network/ndis/ndis/30stubs.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/network/ndis/ndis/30stubs.c [iso-8859-1] Tue Nov 15 18:41:34
2011
@@ -73,24 +73,6 @@
/*
* @unimplemented
*/
-NDIS_STATUS
-EXPORT
-NdisPciAssignResources(
- IN NDIS_HANDLE NdisMacHandle,
- IN NDIS_HANDLE NdisWrapperHandle,
- IN NDIS_HANDLE WrapperConfigurationContext,
- IN ULONG SlotNumber,
- OUT PNDIS_RESOURCE_LIST *AssignedResources)
-{
- UNIMPLEMENTED
-
- return NDIS_STATUS_FAILURE;
-}
-
-
-/*
- * @unimplemented
- */
VOID
EXPORT
NdisReadBindingInformation (
Modified: trunk/reactos/drivers/network/ndis/ndis/hardware.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/network/ndis/ndis/…
==============================================================================
--- trunk/reactos/drivers/network/ndis/ndis/hardware.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/network/ndis/ndis/hardware.c [iso-8859-1] Tue Nov 15 18:41:34
2011
@@ -78,7 +78,25 @@
return NDIS_STATUS_SUCCESS;
}
-
+/*
+ * @implemented
+ */
+NDIS_STATUS
+EXPORT
+NdisPciAssignResources(
+ IN NDIS_HANDLE NdisMacHandle,
+ IN NDIS_HANDLE NdisWrapperHandle,
+ IN NDIS_HANDLE WrapperConfigurationContext,
+ IN ULONG SlotNumber,
+ OUT PNDIS_RESOURCE_LIST *AssignedResources)
+{
+ PNDIS_WRAPPER_CONTEXT WrapperContext =
(PNDIS_WRAPPER_CONTEXT)WrapperConfigurationContext;
+ PLOGICAL_ADAPTER Adapter = WrapperContext->DeviceObject->DeviceExtension;
+
+ return NdisMPciAssignResources(Adapter,
+ SlotNumber,
+ AssignedResources);
+}
/*
* @implemented
*/