From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.175]) by ozlabs.org (Postfix) with ESMTP id 2C39767BF7 for ; Tue, 22 Aug 2006 02:07:06 +1000 (EST) Received: by ug-out-1314.google.com with SMTP id e2so1662286ugf for ; Mon, 21 Aug 2006 09:07:04 -0700 (PDT) Message-ID: <45a1b53e0608210907k6acec26ag94b0621273109532@mail.gmail.com> Date: Mon, 21 Aug 2006 11:07:04 -0500 From: "Wade Maxfield" To: "Grant Likely" Subject: Re: PPC beginner questions In-Reply-To: <528646bc0608210838p4071f9eeie560fbba18ae2b3d@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_41813_41690.1156176424251" References: <45a1b53e0608210651s4f5de382w77e092463dbbf5b7@mail.gmail.com> <528646bc0608210714g51928043lb729e80bda753d4d@mail.gmail.com> <45a1b53e0608210759p270c2f8dy694e91f409d57729@mail.gmail.com> <528646bc0608210838p4071f9eeie560fbba18ae2b3d@mail.gmail.com> Cc: linuxppc-embedded list List-Id: Linux on Embedded PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , ------=_Part_41813_41690.1156176424251 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline OK. I'm breaking my promise. :) A couple more questions. On 8/21/06, Grant Likely wrote: > > On 8/21/06, Wade Maxfield wrote: > > Hi Grant, > > > > Thanks! > > > > in* > > out* > > > > I'm assuming inb() outb(), inw() outw()?? I've been googling and have > > come up short with info that makes sense. It is almost all x86 centric. > > in_8, in_be16, in_be32, out_8, out_be16, out_be32 for big-endian > device registers > in_8, in_le16, in_le32, out_8, out_le16, out_le32 for little endian > device registers -->Interesting. Do these functions do 'eieio' (Email, Internet, Electronic Information Officer functions (southpark cartoon), err, or Enforce In-Order Execution of Input/Output) for me, or do I have to do that? I'm still confused as to that Old MacDonald function. > > > We will not be porting these drivers, this is a captive box internal > use > > only, limited run (200 units or so), 10 to 20 year lifespan once it hits > the > > field. > > > > So, the virtual address I get back can be used directly. Can I cast > to > > short * and long * and char *? > > heh, yes you can; but if your writing new code why not use good > practice from the start? :) --> Ok, you win. How about ioread8() or inb() also? Are they not coded in PPC correctly? Or is the in_8() more modern? > > > I apologize for the basic questions, but I expect this will be a > final > > question for quite some time. > > No worries; ask away! --> is ioremap() equivalent to ioremap_nocache() on the PPC 405? THANKS AGAIN!!!! wade :) Cheers, > g. > > > BTW, when on the mailing list, please use "reply to all" and put your > comments below what you're commenting on. This keeps the thread on > the mailing list for others to see, and it makes it blatentely obvious > what you're commenting on. (just general list-etiquette) > > -- > Grant Likely, B.Sc. P.Eng. > Secret Lab Technologies Ltd. > grant.likely@secretlab.ca > (403) 399-0195 > ------=_Part_41813_41690.1156176424251 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline  OK.  I'm breaking my promise. :)  A couple more questions.

On 8/21/06, Grant Likely <grant.likely@secretlab.ca > wrote:
On 8/21/06, Wade Maxfield <wmaxfield@gmail.com > wrote:
> Hi Grant,
>
>   Thanks!
>
>   in*
>   out*
>
>   I'm assuming inb() outb(), inw() outw()??  I've been googling and have
> come up short with info that makes sense. It is almost all x86 centric.

in_8, in_be16, in_be32, out_8, out_be16, out_be32 for big-endian
device registers
in_8, in_le16, in_le32, out_8, out_le16, out_le32 for little endian
device registers

-->Interesting.  Do these functions do 'eieio'  (Email, Internet, Electronic Information Officer functions (southpark cartoon), err, or  Enforce In-Order Execution of Input/Output) for me, or do I have to do that?  I'm still confused as to that Old MacDonald function.


>
>   We will not be porting these drivers, this is a captive box internal use
> only, limited run (200 units or so), 10 to 20 year lifespan once it hits the
> field.
>
>   So, the virtual address I get back can be used directly.  Can I cast to
> short * and long * and char *?

heh, yes you can; but if your writing new code why not use good
practice from the start?  :)

--> Ok, you win.  How about ioread8() or inb() also?  Are they not coded in PPC correctly? Or is the in_8() more modern?
 

>
>    I apologize for the basic questions, but I expect this will be a final
> question for quite some time.

No worries; ask away!


--> is ioremap() equivalent to ioremap_nocache() on the PPC 405?


THANKS AGAIN!!!!
wade :)

Cheers,
g.


BTW, when on the mailing list, please use "reply to all" and put your
comments below what you're commenting on.  This keeps the thread on
the mailing list for others to see, and it makes it blatentely obvious
what you're commenting on.  (just general list-etiquette)

--
Grant Likely, B.Sc. P.Eng.
Secret Lab Technologies Ltd.
grant.likely@secretlab.ca
(403) 399-0195

------=_Part_41813_41690.1156176424251--