Messages in this thread | | | Date | Fri, 28 Feb 2003 15:51:23 -0500 | From | Pete Zaitcev <> | Subject | Re: Proposal: Eliminate GFP_DMA |
| |
> This discussion raises an issue that I've been meaning to bring up for a bit. > Currently, the DMA-API is defined as returning a cpu physical address [1], > but should the API be redefined as returning an address which is valid on > the bus which the device sits on? [...]
> dma_addr_t > dma_map_single(struct device *dev, void *cpu_addr, size_t size, > enum dma_data_direction direction) > dma_addr_t > 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?
-- Pete - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |