Author: cgutman
Date: Mon Jun 1 03:20:55 2009
New Revision: 41232
URL:
http://svn.reactos.org/svn/reactos?rev=41232&view=rev
Log:
- Implement and export NdisCompareAnsiString, NdisCompareUnicodeString, and
NdisInterlockedAddLargeInteger
Modified:
trunk/reactos/drivers/network/ndis/ndis.def
trunk/reactos/drivers/network/ndis/ndis/misc.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] Mon Jun 1 03:20:55 2009
@@ -67,8 +67,8 @@
NdisCoRequest@20
NdisCoRequestComplete@20
NdisCoSendPackets@12
-;NdisCompareAnsiString ?
-;NdisCompareUnicodeString ?
+NdisCompareAnsiString@12
+NdisCompareUnicodeString@12
NdisCompleteBindAdapter@12
NdisCompleteCloseAdapter@8
NdisCompleteDmaTransfer@24
@@ -150,7 +150,7 @@
NdisInitializeTimer@12
NdisInitializeWrapper@16
NdisInitUnicodeString@8
-;NdisInterlockedAddLargeInterger ?
+NdisInterlockedAddLargeInteger@16
NdisInterlockedAddUlong@12
NdisInterlockedDecrement@4
NdisInterlockedIncrement@4
Modified: trunk/reactos/drivers/network/ndis/ndis/misc.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/network/ndis/ndis/…
==============================================================================
--- trunk/reactos/drivers/network/ndis/ndis/misc.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/network/ndis/ndis/misc.c [iso-8859-1] Mon Jun 1 03:20:55 2009
@@ -20,6 +20,58 @@
ExInterlockedAddUlong ( Addend, Increment, &SpinLock->SpinLock );
}
+/*
+ * @implemented
+ */
+VOID
+EXPORT
+NdisInterlockedAddLargeInteger(
+ IN PLARGE_INTEGER Addend,
+ IN LARGE_INTEGER Increment,
+ IN PNDIS_SPIN_LOCK SpinLock)
+{
+ /* This needs to be verified. The documentation
+ * seems to be missing but it is exported by
+ * NDIS 5.1 so I'm implementing it like the other
+ * interlocked routines
+ */
+
+ ExInterlockedAddLargeInteger(Addend, Increment, &SpinLock->SpinLock);
+}
+
+/*
+ * @implemented
+ */
+LONG
+EXPORT
+NdisCompareAnsiString(
+ IN PNDIS_ANSI_STRING String1,
+ IN PNDIS_ANSI_STRING String2,
+ BOOLEAN CaseInSensitive)
+{
+ /* This one needs to be verified also. See the
+ * comment in NdisInterlockedAddLargeInteger
+ */
+
+ return RtlCompareString(String1, String2, CaseInSensitive);
+}
+
+/*
+ * @implemented
+ */
+LONG
+EXPORT
+NdisCompareUnicodeString(
+ IN PNDIS_STRING String1,
+ IN PNDIS_STRING String2,
+ IN BOOLEAN CaseInSensitive)
+{
+ /* This one needs to be verified also. See the
+ * comment in NdisInterlockedAddLargeInteger
+ */
+
+ return RtlCompareUnicodeString(String1, String2, CaseInSensitive);
+}
/*
* @implemented
@@ -34,7 +86,6 @@
{
return ExInterlockedInsertHeadList ( ListHead, ListEntry, &SpinLock->SpinLock
);
}
-
/*
* @implemented