<span class="gmail_quote"><br></span><div><br>&nbsp; Thanks!&nbsp; I'd already seen the #1 (#2) link in the FAQ and understood that.&nbsp; I'm not doing this from userland, so I was assuming it did not apply, although I was going to use it to play with in user space. 
<br><br>&nbsp; The #3 comes up as an error for me, the 
<a href="http://lists.linuxppc.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">lists.linuxppc.org</a> domain name does not resolve.&nbsp; Several other links in the FAQ do not resolve properly. One now points to a page that has paid links to other pages. 
<br><br><br>thanks again,<br></div><div><span class="sg">Wade</span></div><div><span class="e" id="q_10d3117a7bd021ba_2"><br>&nbsp;&nbsp; <br><br><div><span class="gmail_quote">On 8/21/06, <b class="gmail_sendername">Fillod Stephane
</b> &lt;<a href="mailto:stephane.fillod@thomson.net" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">stephane.fillod@thomson.net</a>&gt; wrote:
</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div>









<div link="blue" vlink="#606420" lang="FR">

<div>

<p><font face="Courier New" size="2"><span style="font-size: 10pt;" lang="EN-GB">Your question is
a linuxppc-embedded FAQ. User-land access</span></font></p>

<p><font face="Courier New" size="2"><span style="font-size: 10pt;" lang="EN-GB">is documented in
Denx's FAQ[1], and accessible through shorter URL[2].</span></font></p>

<p><font face="Courier New" size="2"><span style="font-size: 10pt;" lang="EN-GB">For more
information, please follow this thread[3] (not ppc specific actually).</span></font></p>

<p><font face="Courier New" size="2"><span style="font-size: 10pt;" lang="EN-GB">&nbsp;</span></font></p>

<p><font face="Courier New" size="2"><span style="font-size: 10pt;" lang="EN-GB">[1] </span></font><font face="Courier New" size="2"><span style="font-size: 10pt;"><a href="http://www.denx.de/twiki/bin/view/PPCEmbedded/DeviceDrivers#Section_AccessingPeripheralsFromUserSpace" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">

<span lang="EN-GB">http://www.denx.de/twiki/bin/view/PPCEmbedded/DeviceDrivers#Section_AccessingPeripheralsFromUserSpace</span></a></span></font><font face="Courier New" size="2"><span style="font-size: 10pt;" lang="EN-GB">

</span></font></p>

<p><font face="Courier New" size="2"><span style="font-size: 10pt;" lang="EN-GB">[2] </span></font><font face="Courier New" size="2"><span style="font-size: 10pt;"><a href="http://tinyurl.com/6c7th" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">

<span lang="EN-GB">http://tinyurl.com/6c7th</span></a></span></font><font face="Courier New" size="2"><span style="font-size: 10pt;" lang="EN-GB"></span></font></p>

<p><font face="Courier New" size="2"><span style="font-size: 10pt;" lang="EN-GB">[3] </span></font><font face="Courier New" size="2"><span style="font-size: 10pt;"><a href="http://lists.linuxppc.org/linuxppc-embedded/200403/msg00059.html" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">

<span lang="EN-GB">http://lists.linuxppc.org/linuxppc-embedded/200403/msg00059.html</span></a></span></font><font face="Courier New" size="2"><span style="font-size: 10pt;" lang="EN-GB"></span></font></p>

<p><font face="Courier New" size="2"><span style="font-size: 10pt;" lang="EN-GB">&nbsp;</span></font></p>

<p><font face="Courier New" size="2"><span style="font-size: 10pt;" lang="EN-GB">In kernel land,
ioremap() is all you need.</span></font></p>

<p><font face="Courier New" size="2"><span style="font-size: 10pt;" lang="EN-GB">&nbsp;</span></font></p>

<p><font face="Courier New" size="2"><span style="font-size: 10pt;" lang="EN-GB">Don't
forget to use the 'eieio' asm instruction if you want explicit I/O
ordering.</span></font></p>

<p><font face="Courier New" size="2"><span style="font-size: 10pt;" lang="EN-GB">&nbsp;</span></font></p>

<p><font face="Courier New" size="2"><span style="font-size: 10pt;">Regards,</span></font></p>

<p><font face="Courier New" size="2"><span style="font-size: 10pt;">-- </span></font></p>

<p><font face="Courier New" size="2"><span style="font-size: 10pt;">Stephane</span></font></p>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">&nbsp;</span></font></p>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">&nbsp;</span></font></p>

<div>

<div style="text-align: center;" align="center"><font face="Times New Roman" size="3"><span style="font-size: 12pt;">

<hr align="center" size="2" width="100%">

</span></font></div>

<p><b><font face="Tahoma" size="2"><span style="font-size: 10pt; font-family: Tahoma; font-weight: bold;">Envoyé&nbsp;:</span></font></b><font face="Tahoma" size="2"><span style="font-size: 10pt; font-family: Tahoma;"> lundi 21
août 2006 15:51<br>
<b><span style="font-weight: bold;">Objet&nbsp;:</span></b> PPC beginner
questions</span></font></p>

</div>

<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;">&nbsp;</span></font></p>

<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;"><br>
&nbsp; I'm new to the PPC and I have a few questions.&nbsp; I have written
a&nbsp; driver in the past for the X86 family, using i/o ports, but it was
kernel 2.0 and i/o ports are not mmu handled.<br>
&nbsp; I've been looking through the archive and I am slowly growing more
confused. <br>
<br>
&nbsp; We are using Xilinx with PPC built in.<br>
<br>
&nbsp;&nbsp; The PPC has a memory management unit.&nbsp; All of the IP we've
added is mapped to physical addresses.<br>
<br>
&nbsp;&nbsp; 1. Can I access the memory the peripherasl are mapped to directly
within the driver without going through functions? <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if NOT, then Do I use <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1. ioremap(), <br>
&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp; 2. request_mem_region(), <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 3. request_region()<br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 4. something else?<br>
<br>
&nbsp;&nbsp; 2.&nbsp; Are there any gotcha's with the ppc 405 that Xilinx uses
that I should know about? <br>
<br>
<br>
thanks,<br>
wade<br>
<br>
&nbsp;</span></font></p>

</div>

</div>



</div></blockquote></div><br>

</span></div>