IB: Add DMA mapping functions to allow device drivers to interpose
authorRalph Campbell <ralph.campbell@qlogic.com>
Tue, 12 Dec 2006 22:27:41 +0000 (14:27 -0800)
committerRoland Dreier <rolandd@cisco.com>
Tue, 12 Dec 2006 22:27:41 +0000 (14:27 -0800)
The QLogic InfiniPath HCAs use programmed I/O instead of HW DMA.
This patch allows a verbs device driver to interpose on DMA mapping
function calls in order to avoid relying on bus_to_virt() and
phys_to_virt() to undo the mappings created by dma_map_single(),
dma_map_sg(), etc.

Signed-off-by: Ralph Campbell <ralph.campbell@qlogic.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>

No differences found