<div>Hi Misbah,</div>
<div>&nbsp;</div>
<div>If I am not mistaken, ioremap takes 2 parameters, ioremap(base_addr,size_to_remap). i have tried out_8() and in_8() to issue the command.<br>&nbsp;</div>
<div>&nbsp;</div>
<div>Regards,</div>
<div>gil<br>&nbsp;</div>
<div><span class="gmail_quote">On 12/28/07, <b class="gmail_sendername">Misbah khan</b> &lt;<a href="mailto:misbah_khan@engineer.com">misbah_khan@engineer.com</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><br>Hi all...<br><br>I am writing a driver in which device port is mapped to CPLD and 8 bit data<br>bus is directly connected from processor to CPLD. Read write on CPLD memory
<br>mapped (buffer/register) is required to control the device. This is now IO<br>mapped to processor.<br><br>I need to know whether i am right if i impliment like this :-<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;addr=ioremap(base_addr);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;// Remap to Mem mapped address
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;outb(addr) and inb(addr);<br><br>Please suggest me if i am wrong or there could be better solution to this .<br><br>-----Misbah &lt;&gt;&lt;<br><br>--<br>View this message in context: <a href="http://www.nabble.com/How-to-do-IO-mapped-Implimentation-----tp14522349p14522349.html">
http://www.nabble.com/How-to-do-IO-mapped-Implimentation-----tp14522349p14522349.html</a><br>Sent from the linuxppc-embedded mailing list archive at <a href="http://Nabble.com">Nabble.com</a>.<br><br>_______________________________________________
<br>Linuxppc-embedded mailing list<br><a href="mailto:Linuxppc-embedded@ozlabs.org">Linuxppc-embedded@ozlabs.org</a><br><a href="https://ozlabs.org/mailman/listinfo/linuxppc-embedded">https://ozlabs.org/mailman/listinfo/linuxppc-embedded
</a><br></blockquote></div><br>