The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: Kyle McMartin <kyle@mcmartin.ca>
To: Alexey Zaytsev <alexey.zaytsev@gmail.com>
Cc: Kyle McMartin <kyle@mcmartin.ca>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: ioread32 endianess.
Date: Tue, 27 Feb 2007 08:20:21 -0500	[thread overview]
Message-ID: <20070227132021.GC3545@athena.road.mcmartin.ca> (raw)
In-Reply-To: <f19298770702270431i198e032fhe025e221a625140f@mail.gmail.com>

On Tue, Feb 27, 2007 at 03:31:20PM +0300, Alexey Zaytsev wrote:
> Than how should one write a portable endian-independent driver? Should
> I wrap ioread32 with an le32_to_cpu?
> 

PCI is always little endian, unless it's not. In which case you're probably
dealing with a graphics card which likely has some kind of palindromic
register which you can read and write to set the endianness of the host
interface. Whoo. Run on sentence.

  reply	other threads:[~2007-02-27 13:20 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-26 15:36 ioread32 endianess Alexey Zaytsev
2007-02-26 16:04 ` Kyle McMartin
2007-02-27 12:31   ` Alexey Zaytsev
2007-02-27 13:20     ` Kyle McMartin [this message]
2007-02-27 13:55       ` Kyle McMartin
2007-02-27 14:27         ` Haavard Skinnemoen
2007-02-27 14:36         ` Alexey Zaytsev

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=20070227132021.GC3545@athena.road.mcmartin.ca \
    --to=kyle@mcmartin.ca \
    --cc=alexey.zaytsev@gmail.com \
    --cc=linux-kernel@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox