linux-mips
[Top] [All Lists]

Re: Titan ethernet and little endian

To: Rojhalat Ibrahim <ibrahim@schenk.isar.de>
Subject: Re: Titan ethernet and little endian
From: Manish Lachwani <mlachwani@mvista.com>
Date: Thu, 03 Feb 2005 10:13:21 -0800
Cc: linux-mips@linux-mips.org, Ralf Baechle <ralf@linux-mips.org>
In-reply-to: <42023C54.7060801@schenk.isar.de>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <42023C54.7060801@schenk.isar.de>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4.2) Gecko/20040308
Rojhalat Ibrahim wrote:

Hi,
a while ago I posted the attached patch,
which makes the titan_ge driver work in
little-endian mode. I got no reaction
whatsoever. What did I do wrong?
Rojhalat Ibrahim

------------------------------------------------------------------------

Index: titan_ge.h
===================================================================
RCS file: /home/cvs/linux/drivers/net/titan_ge.h,v
retrieving revision 1.17
diff -u -r1.17 titan_ge.h
--- titan_ge.h  4 Dec 2004 23:42:53 -0000       1.17
+++ titan_ge.h  10 Jan 2005 12:59:20 -0000
@@ -153,8 +153,10 @@

/* Define the Rx descriptor */
typedef struct eth_rx_desc {
-       u32     buffer_addr;    /* Buffer address inclusive of checksum */
-       u32     cmd_sts;        /* Command and Status info */
+       u32     buffer_addr;    /* CPU buffer address   */
+       u32     reserved;       /* Unused               */
+       u32     buffer;         /* XDMA buffer address  */
+       u32     cmd_sts;        /* Command and Status   */
} titan_ge_rx_desc;

/* Define the Tx descriptor */
Hi !

So, have you got the titan to work in the LE mode? Are you using the Yosemite board? Does this patch break BE?

Please do let us know.

Thanks
Manish Lachwani



<Prev in Thread] Current Thread [Next in Thread>