On Fri, Feb 18, 2005 at 04:48:00AM -0500, Jes Sorensen wrote:
> Christoph,
> 
> When pci_map_page was originally introduced it was meant to deprecate
> pci_map_single, at least thats what my memory tells me.

No, it's for rather different uses.  pci_map_page would be nice to get
rid of in favour of pci_map_sg OTOH..

> If pci_map_single is suddenly recommended again we can change it back
> to that, but I don't really see the gain.

it's a micro-speedup by avoiding totally useless address arithmetics.
You first convert a buffer to page + offset and then it needs to be
converted back, e.g. in include/asm-ia64/dma-mapping.h:

#define dma_map_page(dev, pg, off, size, dir)                   \
        dma_map_single(dev, page_address(pg) + (off), (size), (dir))

(pci_map_page is mapped to dma_map_page)

-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to