Author: cgutman
Date: Sun May 31 20:04:43 2009
New Revision: 41225
URL:
http://svn.reactos.org/svn/reactos?rev=41225&view=rev
Log:
- Implement and export NdisOverrideBusNumber
Modified:
trunk/reactos/drivers/network/ndis/ndis.def
trunk/reactos/drivers/network/ndis/ndis/40stubs.c
trunk/reactos/drivers/network/ndis/ndis/hardware.c
Modified: trunk/reactos/drivers/network/ndis/ndis.def
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/network/ndis/ndis.…
==============================================================================
--- trunk/reactos/drivers/network/ndis/ndis.def [iso-8859-1] (original)
+++ trunk/reactos/drivers/network/ndis/ndis.def [iso-8859-1] Sun May 31 20:04:43 2009
@@ -234,7 +234,7 @@
NdisOpenConfigurationKeyByName@16
NdisOpenFile@24
NdisOpenProtocolConfiguration@12
-;NdisOverrideBusNumber ?
+NdisOverrideBusNumber@12
NdisPacketPoolUsage@4
NdisPacketSize@4
NdisPciAssignResources@20
Modified: trunk/reactos/drivers/network/ndis/ndis/40stubs.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/network/ndis/ndis/…
==============================================================================
--- trunk/reactos/drivers/network/ndis/ndis/40stubs.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/network/ndis/ndis/40stubs.c [iso-8859-1] Sun May 31 20:04:43
2009
@@ -148,26 +148,6 @@
UNIMPLEMENTED
return FALSE;
-}
-
-
-/*
- * @unimplemented
- */
-VOID
-EXPORT
-NdisOverrideBusNumber(
- IN NDIS_HANDLE WrapperConfigurationContext,
- IN NDIS_HANDLE MiniportAdapterHandle OPTIONAL,
- IN ULONG BusNumber)
-/*
- * FUNCTION:
- * ARGUMENTS:
- * NOTES:
- * NDIS 4.0
- */
-{
- UNIMPLEMENTED
}
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] Sun May 31 20:04:43
2009
@@ -302,4 +302,31 @@
Length);
}
+/*
+ * @implemented
+ */
+VOID
+EXPORT
+NdisOverrideBusNumber(
+ IN NDIS_HANDLE WrapperConfigurationContext,
+ IN NDIS_HANDLE MiniportAdapterHandle OPTIONAL,
+ IN ULONG BusNumber)
+/*
+ * FUNCTION:
+ * ARGUMENTS:
+ * NOTES:
+ * NDIS 4.0
+ */
+{
+ PNDIS_WRAPPER_CONTEXT Wrapper = WrapperConfigurationContext;
+ PLOGICAL_ADAPTER Adapter = MiniportAdapterHandle;
+
+ NDIS_DbgPrint(MAX_TRACE, ("Called.\n"));
+
+ Wrapper->BusNumber = BusNumber;
+
+ if (Adapter)
+ Adapter->NdisMiniportBlock.BusNumber = BusNumber;
+}
+
/* EOF */