All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Jens Ch. Restemeier" <jenschrr@post.uni-bielefeld.de>
To: Bryan Christianson <bryanc@ihug.co.nz>
Cc: linuxppc-dev@lists.linuxppc.org
Subject: Re: Porting  a driver from x86 to LinucPPC
Date: Fri, 18 Dec 1998 11:46:39 +0100	[thread overview]
Message-ID: <367A328E.9ED@post.uni-bielefeld.de> (raw)
In-Reply-To: l03130300b29d351e3bbc@[172.16.10.14]


Bryan Christianson wrote:
> 
> I'm trying to port a device driver from x86 to linuxppc. I am running into
> problems with big/little endian-ness.
> 
> The device is a PCI card. Do I need to explicitly translate the data
> between big-endian and little-endian or will the io routines (outl, inl and
> inw) take care of this for me? On x86 I didn't even think about this issue,
> but now I have a feeling that maybe I should have.

I just fixed the NE2000 driver for this.

inl/outl will fix PCI's liddle-endianess to host-endianness. There is
some documentation in include/asm/io.h.

Jens


[[ This message was sent via the linuxppc-dev mailing list. Replies are ]]
[[ not forced back to the list, so be sure to  Cc linuxppc-dev  if your ]]
[[ reply is of general interest. To unsubscribe from linuxppc-dev, send ]]
[[ the message 'unsubscribe' to linuxppc-dev-request@lists.linuxppc.org ]]

  reply	other threads:[~1998-12-18 10:46 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-12-16 10:06 Porting a driver from x86 to LinucPPC Bryan Christianson
1998-12-18 10:46 ` Jens Ch. Restemeier [this message]
1998-12-19 10:34   ` Bryan Christianson

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=367A328E.9ED@post.uni-bielefeld.de \
    --to=jenschrr@post.uni-bielefeld.de \
    --cc=bryanc@ihug.co.nz \
    --cc=linuxppc-dev@lists.linuxppc.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.