4 modified files
reactos/drivers/net/ndis
diff -u -r1.6.32.1 -r1.6.32.2
--- ndis.def 22 Oct 2004 19:52:06 -0000 1.6.32.1
+++ ndis.def 20 Nov 2004 16:44:10 -0000 1.6.32.2
@@ -175,6 +175,7 @@
NdisMFreeMapRegisters@4
NdisMFreeSharedMemory@24
NdisMGetDeviceProperty@24
+NdisMGetDmaAlignment@4
NdisMIndicateStatus@16
NdisMIndicateStatusComplete@4
NdisMInitializeScatterGatherDma@12
reactos/drivers/net/ndis/ndis
diff -u -r1.11.6.1 -r1.11.6.2
--- buffer.c 22 Oct 2004 19:52:06 -0000 1.11.6.1
+++ buffer.c 20 Nov 2004 16:44:11 -0000 1.11.6.2
@@ -1013,6 +1013,29 @@
*/
VOID
EXPORT
+NdisQueryBufferSafe(
+ IN PNDIS_BUFFER Buffer,
+ OUT PVOID *VirtualAddress OPTIONAL,
+ OUT PUINT Length,
+ IN UINT Priority)
+/*
+ * FUNCTION:
+ * ARGUMENTS:
+ * NOTES:
+ * NDIS 5.0
+ */
+{
+ if (VirtualAddress != NULL)
+ *VirtualAddress = MmGetSystemAddressForMdlSafe(Buffer, Priority);
+ *Length = MmGetMdlByteCount(Buffer);
+}
+
+
+/*
+ * @implemented
+ */
+VOID
+EXPORT
NdisQueryBufferOffset(
IN PNDIS_BUFFER Buffer,
OUT PUINT Offset,
reactos/drivers/net/ndis/ndis
diff -u -r1.19.2.2 -r1.19.2.3
--- io.c 6 Nov 2004 10:31:21 -0000 1.19.2.2
+++ io.c 20 Nov 2004 16:44:11 -0000 1.19.2.3
@@ -736,16 +736,42 @@
/*
- * @unimplemented
+ * @implemented
*/
ULONG
EXPORT
NdisMReadDmaCounter(
IN NDIS_HANDLE MiniportDmaHandle)
{
- UNIMPLEMENTED
+ PNDIS_MINIPORT_BLOCK MiniportBlock = (PNDIS_MINIPORT_BLOCK)MiniportDmaHandle;
+ PDMA_ADAPTER AdapterObject = MiniportBlock->SystemAdapterObject;
+
+ NDIS_DbgPrint(MAX_TRACE, ("Called.\n"));
+
+ if (AdapterObject == NULL)
+ return 0;
+
+ return AdapterObject->DmaOperations->ReadDmaCounter(AdapterObject);
+}
+
+
+/*
+ * @implemented
+ */
+ULONG
+EXPORT
+NdisMGetDmaAlignment(
+ IN NDIS_HANDLE MiniportDmaHandle)
+{
+ PNDIS_MINIPORT_BLOCK MiniportBlock = (PNDIS_MINIPORT_BLOCK)MiniportDmaHandle;
+ PDMA_ADAPTER AdapterObject = MiniportBlock->SystemAdapterObject;
+
+ NDIS_DbgPrint(MAX_TRACE, ("Called.\n"));
- return 0;
+ if (AdapterObject == NULL)
+ return 0;
+
+ return AdapterObject->DmaOperations->GetDmaAlignment(AdapterObject);
}
reactos/drivers/net/ndis/ndis
diff -u -r1.17.6.1 -r1.17.6.2
--- stubs.c 22 Oct 2004 19:52:06 -0000 1.17.6.1
+++ stubs.c 20 Nov 2004 16:44:11 -0000 1.17.6.2
@@ -836,27 +836,6 @@
/*
* @unimplemented
*/
-VOID
-EXPORT
-NdisQueryBufferSafe(
- IN PNDIS_BUFFER Buffer,
- OUT PVOID *VirtualAddress OPTIONAL,
- OUT PUINT Length,
- IN UINT Priority)
-/*
- * FUNCTION:
- * ARGUMENTS:
- * NOTES:
- * NDIS 5.0
- */
-{
- UNIMPLEMENTED
-}
-
-
-/*
- * @unimplemented
- */
ULONG
EXPORT
NdisReadPcmciaAttributeMemory(
CVSspam 0.2.8