NT drivers of busmaster DMA devices can use the following kinds of system-supplied DMA support:
Depending on the nature of the busmaster adapter, some NT drivers use packet-based DMA exclusively, some use common-buffer DMA exclusively, and some use both. For example, the driver of a busmaster adapter that uses a mailbox scheme to communicate status information and commands might use a common buffer for the mailboxes shared between the driver and its adapter, together with packet-based DMA for data transfers.
Use common-buffer DMA economically.
Setting up common-buffer area(s) economically, such as in PAGE_SIZE chunks or in a single allocation, leaves more map registers available for such a driver’s packet-based DMA operations, if any. It also leaves more system memory free for other purposes, which yields better overall driver and system performance.
The following subsections explain each kind of busmaster DMA separately.