Messages in this thread | | | Subject | Re: [Patch] DMA mapping API for Alpha | From | Marc Zyngier <> | Date | 29 Apr 2003 13:58:29 +0200 |
| |
>>>>> "Ivan" == Ivan Kokshaysky <ink@jurassic.park.msu.ru> writes:
Ivan> Then the rest would be
Ivan> static inline dma_addr_t Ivan> dma_map_single(struct device *dev, void *cpu_addr, size_t size, Ivan> enum dma_data_direction dir) Ivan> { Ivan> return pci_map_single(pci_dev_to_pci(dev), cpu_addr, size, dir); Ivan> }
That's exactly what I wanted to avoid : It we feed NULL (for a non PCI device) to pci_map_single (for example), we limit the max DMA address to 24 bits, and this is quite bad for an EISA device, which is 32 bits capable.
This approch doesn't look better to me than the pci_* implementation, while the one I suggested gives us some full control over the DMA mask.
Or am I completly wrong ?
M. -- Places change, faces change. Life is so very strange. - 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/
| |