> dma_map_single(struct device *dev, void *cpu_addr, size_t size,
> enum dma_data_direction direction)
> pci_map_single(struct device *dev, void *cpu_addr, size_t size,
> int direction)
> Maps a piece of processor virtual memory so it can be accessed by the
> device and returns the _physical_ handle of the memory.
That's only a sloppy documentation, obviously it returns a bus
address, not a physical address. Simply the x86 graduate who wrote
it cannot see the difference, that's all. Pay it no mind and
implement it properly, that means copy it from sparc64.
Who reads documentation anyway when we have the source?
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to email@example.com
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/