On Tue, Aug 14, 2001 at 10:12:49AM +0200, Tommy S. Christensen wrote: > vtonocache(p) is defined as KSEG1ADDR(virt_to_phys(p)). > This is for linux-2.2.12 from MIPS, remember. > > > Aside it's a crude hack anyway. If you have problems with caches use > > the API defined in Documentation/DMA-mapping.txt. > > I don't see why this is a hack. Sure, the Dynamic DMA > interface is a lot cleaner, but it ends up with more or > less the same. Less. It's a non-portable construct which for example will fail on any machine that uses some sort of DMA address translation. And would you expect the maintainers to accept such a bunch of #ifdefs? Ralf