Device driver FAQ/Information
Tobias Otto-Adamczak
tobias.otto-adamczak at e-technik.tu-chemnitz.de
Wed Dec 20 04:02:31 EST 2000
> Dan Winkler wrote:
> I know most drivers used the Dual port ram to send the data but would
> it work just as easily with external ram.
The internal DP RAM is very limited so many device drivers use external
RAM for their data buffers. Don't confuse with the buffer descriptors
which are held in the DP RAM. Using DP RAM for buffers may speed up your
system a little bit (?).
> The macros which I am confused with are the __va __pa etc... Can I
> find an explaination of this anywhere....
This is due to the fact that the core (the Linux kernel if you want) uses
address translation while the CPM does not. So if kernel code wants to
tell CPM about a RAM address it has to translate from his view of memory
(virtual addresses) to CPM's view (physical addresses). Thats what
__pa(addr) is for and vice versa.
Ciao - Tobias
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
More information about the Linuxppc-embedded
mailing list