From: "Roland Vossen" <rvossen@broadcom.com>
To: sparclinux@vger.kernel.org
Subject: Sparc, dma mapping and endianness
Date: Sun, 31 Jul 2011 08:36:40 +0000 [thread overview]
Message-ID: <4E351418.50101@broadcom.com> (raw)
Hello David,
I have got a DMA capable PCI device that writes its data into host
memory. The CPU reads that data. For little endian processor this works
fine, but for big endian processors the data has to be endianness
swapped before interpretation.
The broadcom BCM47XX (MIPS) series has a hardware provision for this:
its memory controller defines a 'SDRAM swap window'.
I read that the Sparc-V9 64 bit architecture also supports endianness
swapping of pages. I wonder if it is easy to make use of this
functionality in Linux.
Also I wonder if Linux supports an arch agnostic API to accomplish this.
I did read Documentation/DMA-mapping.txt but that did not provide more
information on this subject to me.
Thanks, Roland.
next reply other threads:[~2011-07-31 8:36 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-31 8:36 Roland Vossen [this message]
2011-07-31 9:07 ` Sparc, dma mapping and endianness David Miller
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=4E351418.50101@broadcom.com \
--to=rvossen@broadcom.com \
--cc=sparclinux@vger.kernel.org \
/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.