From: David Hawkins <dwh@ovro.caltech.edu>
To: Jose Almeida <jalmeida@sysgo.fr>
Cc: Joyeau Sylvain <Sylvain.Joyeau@thomson.net>,
Linuxppc-embedded@ozlabs.org
Subject: Re: little endian page mapping on PQ3
Date: Fri, 24 Aug 2007 08:49:46 -0700 [thread overview]
Message-ID: <46CEFE1A.40905@ovro.caltech.edu> (raw)
In-Reply-To: <46CED851.70002@sysgo.fr>
Hi Jose,
> I want to do using an mmap() entry point in a driver, in order to map
> this to the user. Of course in that case ioremap() does not work.
>
> Any Clue ?
>
I used the little-endian flag on the Yosemite board (440EP)
to test what the flag did.
http://www.ovro.caltech.edu/~dwh/correlator/pdf/LNX-762-Hawkins.pdf
http://www.ovro.caltech.edu/~dwh/correlator/software/driver_design.tar.gz
Look at the mmap function in pci_io.c.
/* PowerPC endian control
* - default is cleared, big-endian
*/
#ifdef _PAGE_ENDIAN
if (bar->little_endian) {
pgprot_val(vma->vm_page_prot) |= _PAGE_ENDIAN;
} else {
pgprot_val(vma->vm_page_prot) &= ~_PAGE_ENDIAN;
}
if (pgprot_val(vma->vm_page_prot) & _PAGE_ENDIAN) {
LOG_DEBUG("_PAGE_ENDIAN is set\n");
} else {
LOG_DEBUG("_PAGE_ENDIAN is not set\n");
}
#endif
It might be the same for the PQ3 ... at least it'll be
pretty similar.
Dave
next prev parent reply other threads:[~2007-08-24 15:49 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-24 11:40 little endian page mapping on PQ3 Joyeau Sylvain
2007-08-24 13:08 ` Jose Almeida
2007-08-24 15:49 ` David Hawkins [this message]
-- strict thread matches above, loose matches on Subject: below --
2007-08-24 7:59 Jose Almeida
2007-08-24 13:19 ` Clemens Koller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=46CEFE1A.40905@ovro.caltech.edu \
--to=dwh@ovro.caltech.edu \
--cc=Linuxppc-embedded@ozlabs.org \
--cc=Sylvain.Joyeau@thomson.net \
--cc=jalmeida@sysgo.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.