[ros-diffs] [cgutman] 41405: - Implement NdisIMGetBindingContext and NdisIMGetDeviceContext

cgutman at svn.reactos.org cgutman at svn.reactos.org
Sun Jun 14 07:42:31 CEST 2009


Author: cgutman
Date: Sun Jun 14 09:42:30 2009
New Revision: 41405

URL: http://svn.reactos.org/svn/reactos?rev=41405&view=rev
Log:
 - Implement NdisIMGetBindingContext and NdisIMGetDeviceContext

Modified:
    trunk/reactos/drivers/network/ndis/ndis/50stubs.c
    trunk/reactos/drivers/network/ndis/ndis/miniport.c

Modified: trunk/reactos/drivers/network/ndis/ndis/50stubs.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/network/ndis/ndis/50stubs.c?rev=41405&r1=41404&r2=41405&view=diff
==============================================================================
--- trunk/reactos/drivers/network/ndis/ndis/50stubs.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/network/ndis/ndis/50stubs.c [iso-8859-1] Sun Jun 14 09:42:30 2009
@@ -467,46 +467,6 @@
 /*
  * @unimplemented
  */
-NDIS_HANDLE
-EXPORT
-NdisIMGetBindingContext(
-    IN  NDIS_HANDLE NdisBindingHandle)
-/*
- * FUNCTION:
- * ARGUMENTS:
- * NOTES:
- *    NDIS 5.0
- */
-{
-    UNIMPLEMENTED
-
-    return (NDIS_HANDLE)NULL;
-}
-
-
-/*
- * @unimplemented
- */
-NDIS_HANDLE
-EXPORT
-NdisIMGetDeviceContext(
-    IN  NDIS_HANDLE MiniportAdapterHandle)
-/*
- * FUNCTION:
- * ARGUMENTS:
- * NOTES:
- *    NDIS 5.0
- */
-{
-    UNIMPLEMENTED
-
-    return (NDIS_HANDLE)NULL;
-}
-
-
-/*
- * @unimplemented
- */
 NDIS_STATUS
 EXPORT
 NdisIMInitializeDeviceInstanceEx(

Modified: trunk/reactos/drivers/network/ndis/ndis/miniport.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/network/ndis/ndis/miniport.c?rev=41405&r1=41404&r2=41405&view=diff
==============================================================================
--- trunk/reactos/drivers/network/ndis/ndis/miniport.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/network/ndis/ndis/miniport.c [iso-8859-1] Sun Jun 14 09:42:30 2009
@@ -3031,5 +3031,50 @@
     }
 }
 
+
+/*
+ * @implemented
+ */
+NDIS_HANDLE
+EXPORT
+NdisIMGetBindingContext(
+    IN  NDIS_HANDLE NdisBindingHandle)
+/*
+ * FUNCTION:
+ * ARGUMENTS:
+ * NOTES:
+ *    NDIS 5.0
+ */
+{
+    PADAPTER_BINDING AdapterBinding = NdisBindingHandle;
+    PLOGICAL_ADAPTER Adapter = AdapterBinding->Adapter;
+
+    NDIS_DbgPrint(MAX_TRACE, ("Called.\n"));
+
+    return Adapter->NdisMiniportBlock.DeviceContext;
+}
+
+
+/*
+ * @implemented
+ */
+NDIS_HANDLE
+EXPORT
+NdisIMGetDeviceContext(
+    IN  NDIS_HANDLE MiniportAdapterHandle)
+/*
+ * FUNCTION:
+ * ARGUMENTS:
+ * NOTES:
+ *    NDIS 5.0
+ */
+{
+    PLOGICAL_ADAPTER Adapter = MiniportAdapterHandle;
+
+    NDIS_DbgPrint(MAX_TRACE, ("Called.\n"));
+
+    return Adapter->NdisMiniportBlock.DeviceContext;
+}
+
 /* EOF */
 



More information about the Ros-diffs mailing list