Messages in this thread |  | | Subject | Re: pci - dma definative? | Date | Mon, 21 Aug 2000 10:48:52 +0100 (BST) | From | Alan Cox <> |
| |
> blocks, 128k in size to the host on each transfer. What i am unsure about is > the memory allocation. > > cardptr->busaddr = __get_free_pages(GFP_KERNEL,6); > 6 being for the two blocks of 128k. > > is this the way to do it for the 2.2 kernel?
Same as in 2.0. The problem you have is your code works by luck for 2.0 x86
Do
cardptr->virtaddr = _get_free... cardptr->busaddr = virt_to_bus(cardptr->virtaddr);
2.4test adds a pci_alloc_consistent() API for doing this and more (it will handle the cache coherency issues on non x86 etc for you)
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org Please read the FAQ at http://www.tux.org/lkml/
|  |