physical address of the packet from OS

Hi Group!
Iam working on wlan station driver for pci device.Iam
facing some problems with handling the packet that we receive from OS
,actually the packet is contained in multiple buffers and for which
various APIs are there to extract data, as of now iam copying the data
pkt into the local contiguous buffer in my driver, which is an
additional overhead. Device for which iam working supports Scatter
Gather DMA so if i can get the physical addresses of the buffers i can
directly configure the DMA by giving the physical addresses and lengths,
so is there any way to get the physical addresses of these buffers.

and one more thing,

can we indicate to OS that we want a packet in single contiguous buffer
instead of multiple buffers, as we do it in linux.

Thanks in Advance
ajay kumar v

> so is there any way to get the physical addresses of these buffers.

NDIS_BUFFER is a MDL, so, just pass it to ->MapTransfer or ->GetScatterGatherList


Maxim S. Shatskih
Windows DDK MVP
xxxxx@storagecraft.com
http://www.storagecraft.com