Changes to support the 3Com 3c90x ndis5 driver and other bugfixes:
[reactos.git] / reactos / drivers / net / ndis / ndis / buffer.c
index 59f189c..37b736f 100644 (file)
@@ -881,7 +881,7 @@ NdisFreePacket(
 
 
 /*
- * @unimplemented
+ * @implemented
  */
 VOID
 EXPORT
@@ -895,7 +895,10 @@ NdisGetBufferPhysicalArraySize(
  *     ArraySize = Address of buffer to place number of physical blocks
  */
 {
-    UNIMPLEMENTED
+  ASSERT(KeGetCurrentIrql() <= DISPATCH_LEVEL);
+  ASSERT(Buffer && ArraySize);
+
+  *ArraySize = NDIS_BUFFER_TO_SPAN_PAGES(Buffer);
 }