Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 21 Aug 1999 12:02:23 +0200 (CEST)
From:      Nick Hibma <n_hibma@skylink.it>
To:        FreeBSD Hackers mailing list <hackers@freebsd.org>
Subject:   DMA-able memory
Message-ID:  <Pine.BSF.4.10.9908211154190.7595-100000@heidi.plazza.it>

next in thread | raw e-mail | index | archive | help

How do I allocate DMA-able memory? Or is all memory DMA-able?

Like so:

	#include <machine/pmap.h>

	dma_addr = vtophys(addr);	


The UHCI (and OHCI) USB controllers use DMA to access the queues with
the TransferDescriptors and QueueHeads. This is going to be loads of
small (4 to 32 byte) memory blocks.

Nick
-- 
e-Mail: hibma@skylink.it



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.10.9908211154190.7595-100000>