Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Tue, 13 Aug 2002 07:28:11 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Tue, 13 Aug 2002 07:28:11 -0400 Received: from webmail22.rediffmail.com ([203.199.83.144]:50881 "HELO webmail22.rediffmail.com") by vger.kernel.org with SMTP id ; Tue, 13 Aug 2002 07:28:10 -0400 Date: 13 Aug 2002 11:31:13 -0000 Message-ID: <20020813113113.3956.qmail@webmail22.rediffmail.com> MIME-Version: 1.0 From: "Nandakumar NarayanaSwamy" Reply-To: "Nandakumar NarayanaSwamy" To: "Matti Aarnio" Cc: linux-kernel@vger.kernel.org Subject: Re: Re: RealTek RTL8139C Content-type: text/plain; format=flowed Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2215 Lines: 77 Hi Matti Aarnio, Thanks for your response. Our target board is little endian and some initial code is working which is compiled in little endian mode. Also the PCI bus will also work in little endian mode. Thanks again for your response. With best regards, Nanda On Tue, 13 Aug 2002 Matti Aarnio wrote : >On Tue, Aug 13, 2002 at 10:09:56AM -0000, Nandakumar >NarayanaSwamy wrote: > > Hi All, > > > > Sorry for disturbing the list again. > > > > I am using RTL8139C in our target board which is based on >MIPS > > IDT32334 processor. >... > > My doubt is whether this 8139too.c is tested with MIPS >processors? > > Because in one of the article i found that the supported > > processors are ARM, i386 etc. > > ( Are you sure you don't want to use 8139cp.c driver ? ) > > It might. The issue is most likely the ENDIANITY of command > registers, and how they are supported. > > The i386 is little-endian machine, and most hardware is made >for that. > However in case of embedded systems, there are very system >dependent > details no how the host processor accesses PCI-bus, and what >happens > then... > > Talk with your harware maker. At least the 8139*.c drivers >use > cpu_to_le32() and friends for these byte-order mapping issues, >but > if there happens some gratuitious byte-order wrap-around when >posting > IO from the CPU to the PCI bus, then you have major problems, >and > will need experienced kernel hacker to get you thru... > > That is, if the CPU does post a big-endian (data byte order) >operation > into the bus, and the cpu<->bus host-bridge will not do any >magic byte- > order wrap-around, then the driver should just simply work. > > > Of course with MIPS processors you can have two different >byte-orders > active in the system (one at the time, of course). You need >to know > which you are using. > > > > Can any body throw some light on this? > > with best regards, > > Nanda - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/