Commit in reactos/drivers/net/ndis on ndis_wip_22102004
ndis.def+11.6.32.1 -> 1.6.32.2
ndis/buffer.c+231.11.6.1 -> 1.11.6.2
    /io.c+29-31.19.2.2 -> 1.19.2.3
    /stubs.c-211.17.6.1 -> 1.17.6.2
+53-24
4 modified files
- Implement NdisMGetDmaAlignment, NdisMReadDmaCounter and NdisQueryBufferSafe.

reactos/drivers/net/ndis
ndis.def 1.6.32.1 -> 1.6.32.2
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
buffer.c 1.11.6.1 -> 1.11.6.2
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
io.c 1.19.2.2 -> 1.19.2.3
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
stubs.c 1.17.6.1 -> 1.17.6.2
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