NDIS_BUFFER_TO_SPAN_PAGES (Windows Embedded CE 6.0)
This macro determines how many physical pages of memory are being used to back a specified buffer.
This macro is used by DMA drivers to determine how many physical discontiguities exist in a specified virtual buffer.
The NDIS_BUFFER_TO_SPAN_PAGES macro is defined as follows.
#define NDIS_BUFFER_TO_SPAN_PAGES(_Buffer) \ (MmGetMdlByteCount(_Buffer)==0 ? \ 1 : \ (COMPUTE_PAGES_SPANNED( \ MmGetMdlVirtualAddress(_Buffer), \ MmGetMdlByteCount(_Buffer))))