Proposed changes to io.h

John Whitney johnw at sands-edge.com
Thu Apr 1 07:09:13 EST 2004


>> 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?

John


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





More information about the Linuxppc-dev mailing list