Proposed changes to io.h

Eugene Surovegin ebs at ebshome.net
Thu Apr 1 07:52:48 EST 2004


On Wed, Mar 31, 2004 at 04:09:13PM -0500, John Whitney wrote:
>
> >>1. Modifications to virt_to_bus, bus_to_virt, virt_to_phys, and
> >>phys_to_virt.  With the use of fully virtual addresses for
> >
> >These are all obsolete interface and you're not supposed to use them
> >for new plattforms or drivers at all.
> >
>
> pci_map_single() (include/asm-ppc/pci.h) and dma_map_single()
> (include/asm-ppc/dma-mapping.h) use virt_to_bus().  Shouldn't some care
> be taken to ensure that ANY virtual address passed to these routines
> maps to the correct physical (bus) address?
>

Please, read DMA-mapping.txt, it's quite clear on what memory is considered
DMA'able.

Eugene.

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/





More information about the Linuxppc-dev mailing list