netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Stephen Hemminger <shemminger@osdl.org>
To: "Patel, Shalin" <shalinip@ti.com>
Cc: <netdev@vger.kernel.org>
Subject: Re: Big Endian PCI driver
Date: Wed, 1 Nov 2006 21:15:58 -0800	[thread overview]
Message-ID: <20061101211558.3da6fccd@localhost.localdomain> (raw)
In-Reply-To: <B2EAB41A1AF603458C6A01E3CC809C44027F009F@dbde01.ent.ti.com>

On Thu, 2 Nov 2006 10:37:20 +0530
"Patel, Shalin" <shalinip@ti.com> wrote:

> 
> Hi, 
> 
> I am trying to run PCI based Ethernet card (RTL 8139) on a big endian
> host. 
> 
> The pci controller that I have does not have any mechanism for swapping
> the Big Endian data to Little Endian. While running the 8139too.c driver
> I see that the data generated on the line is Endian swapped. 
> 
> In the data sheet of RTL 8139 I could not find any BSWAP bit neither the
> 8139too.c driver does any swapping of data while transmitting or
> receiving. However, if I change the driver to swap data before
> transmitting and after receiving I am able to get it working.
> 
> Does the RTL 8139 driver in 2.6.10 support Big Endian? Is there any
> other Ethernet card driver which supports big endian host (with a PCI
> controller which does not support byte swapping)?
> 
> Thanks,
> Shalin Patel

Skge does the byte swapping in hardware on the card.
Sky2 it was easier to do the byte swapping in software. It isn't hard
to do it in software.

      reply	other threads:[~2006-11-02  5:16 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-02  5:07 Big Endian PCI driver Patel, Shalin
2006-11-02  5:15 ` Stephen Hemminger [this message]

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=20061101211558.3da6fccd@localhost.localdomain \
    --to=shemminger@osdl.org \
    --cc=netdev@vger.kernel.org \
    --cc=shalinip@ti.com \
    /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;
as well as URLs for NNTP newsgroup(s).