linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* How to do IO mapped Implimentation ???
@ 2007-12-28  5:12 Misbah khan
  2007-12-28 17:35 ` Jeyner Gil Caga
                   ` (4 more replies)
  0 siblings, 5 replies; 9+ messages in thread
From: Misbah khan @ 2007-12-28  5:12 UTC (permalink / raw)
  To: linuxppc-embedded


Hi all...

I am writing a driver in which device port is mapped to CPLD and 8 bit data
bus is directly connected from processor to CPLD. Read write on CPLD memory
mapped (buffer/register) is required to control the device. This is now IO
mapped to processor.

I need to know whether i am right if i impliment like this :-
         addr=ioremap(base_addr);          // Remap to Mem mapped address
         outb(addr) and inb(addr);

Please suggest me if i am wrong or there could be better solution to this .

-----Misbah <><
         
-- 
View this message in context: http://www.nabble.com/How-to-do-IO-mapped-Implimentation-----tp14522349p14522349.html
Sent from the linuxppc-embedded mailing list archive at Nabble.com.

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2008-01-02  9:18 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-28  5:12 How to do IO mapped Implimentation ??? Misbah khan
2007-12-28 17:35 ` Jeyner Gil Caga
2007-12-31  6:46 ` Misbah khan
2007-12-31  8:09   ` Jeyner Gil Caga
2007-12-31 10:02 ` Misbah khan
2007-12-31 11:57   ` Jeyner Gil Caga
2007-12-31 12:44 ` Misbah khan
2007-12-31 14:43   ` Jeyner Gil Caga
2008-01-02  9:18 ` Misbah khan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).