From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from hs-out-2122.google.com (hs-out-0708.google.com [64.233.178.250]) by ozlabs.org (Postfix) with ESMTP id C76ABDDE1E for ; Tue, 1 Jan 2008 01:43:11 +1100 (EST) Received: by hs-out-2122.google.com with SMTP id x43so3860353hsb.9 for ; Mon, 31 Dec 2007 06:43:10 -0800 (PST) Message-ID: Date: Mon, 31 Dec 2007 22:43:10 +0800 From: "Jeyner Gil Caga" To: "Misbah khan" , linuxppc-embedded@ozlabs.org Subject: Re: How to do IO mapped Implimentation ??? In-Reply-To: <14557204.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_3512_22829686.1199112190411" References: <14522349.post@talk.nabble.com> <14557204.post@talk.nabble.com> List-Id: Linux on Embedded PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , ------=_Part_3512_22829686.1199112190411 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Oh, I just missed the io mapped in your previous email. Unfortunately, my experience is only limited to memory map. I think they should be the same. On 12/31/07, Misbah khan wrote: > > > You are absolutly right and i guess it will certainly work for 8248 as > well , > but the only concern is that " here in mine case the register is not > memory > mapped where as its IO mapped " we have to consider the memory as IO port > and then access the data .... > > What you have used i guess its memory mapped ...Is it that accessing > memory > mapped is same as io mapped ????? > > > ---Misbah > > 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-----tp14522349p14557204.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_3512_22829686.1199112190411 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Oh, I just missed the io mapped in your previous email. Unfortunately, my experience is only limited to memory map. I think they should be the same.

On 12/31/07, Misbah khan <misbah_khan@engineer.com> wrote:

You are absolutly right and i guess it will certainly work for 8248 as well ,
but the only concern is that " here in mine case the register is not memory
mapped where as its IO mapped " we have to consider the memory as IO port
and then access the data ....

What you have used i guess its memory mapped ...Is it that accessing memory
mapped is same as io mapped ?????


---Misbah

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-----tp14522349p14557204.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_3512_22829686.1199112190411--