DMA transfer into sk_buff - cached memory question
Eugene Surovegin
ebs at ebshome.net
Wed Mar 10 08:28:28 EST 2004
On Tue, Mar 09, 2004 at 01:02:54PM -0800, John Feller wrote:
>
> > Please, read Documentation/DMA-mapping.txt.
>
> Ah - I'm an idiot. I had read about "pci_map_single", but it didn't occur
> to me that it could be used after memory was kmalloc'd elsewhere. Looked at
> some existing networking code (tulip driver) to see how it is done. The
> "pci" in the name confused me, I guess :o}
BTW, if your driver will only run on 4xx hardware you can use
consistent_* routines (PCI DMA API is implemented using them).
Take a look at drivers/net/ibm_emac for example.
Eugene.
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
More information about the Linuxppc-embedded
mailing list