Messages in this thread | | | From | (Alan Cox) | Subject | Re: virt_to_bus and >1G of memory (was MAX_DMA_ADDRESS ...) | Date | Fri, 13 Nov 1998 20:57:52 +0000 (GMT) |
| |
> The "virt_to_phys()" and "virt_to_bus()" things are _only_ supposed to > work on normal kernel mappings, the kind of mappings you get from > "get_free_pages()" etc. Assuming anything else is just stupid, because it > assumes a level of complexity that I never want to see.
If you need to do this (eg as the bttv driver sort of does) then you can walk the page tables but then it goes non portable. It'll do until we get a nice DMA api in 2.3.x
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |