From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.226]) by ozlabs.org (Postfix) with ESMTP id 1676CDDDFD for ; Sat, 29 Dec 2007 04:35:10 +1100 (EST) Received: by wx-out-0506.google.com with SMTP id h27so853325wxd.15 for ; Fri, 28 Dec 2007 09:35:09 -0800 (PST) Message-ID: Date: Sat, 29 Dec 2007 01:35:09 +0800 From: "Jeyner Gil Caga" To: "Misbah khan" , linuxppc-embedded@ozlabs.org Subject: Re: How to do IO mapped Implimentation ??? In-Reply-To: <14522349.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_367_3884992.1198863309699" References: <14522349.post@talk.nabble.com> List-Id: Linux on Embedded PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , ------=_Part_367_3884992.1198863309699 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi Misbah, 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. Regards, gil On 12/28/07, Misbah khan wrote: > > > 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. > > _______________________________________________ > Linuxppc-embedded mailing list > Linuxppc-embedded@ozlabs.org > https://ozlabs.org/mailman/listinfo/linuxppc-embedded > ------=_Part_367_3884992.1198863309699 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline
Hi Misbah,
 
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.
 
 
Regards,
gil
 
On 12/28/07, Misbah khan <misbah_khan@engineer.com> wrote:

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.

_______________________________________________
Linuxppc-embedded mailing list
Linuxppc-embedded@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-embedded

------=_Part_367_3884992.1198863309699--