linux-mips
[Top] [All Lists]

Re: titan code question

To: Manish Lachwani <mlachwani@mvista.com>
Subject: Re: titan code question
From: "Maciej W. Rozycki" <macro@linux-mips.org>
Date: Mon, 22 Nov 2004 19:40:28 +0000 (GMT)
Cc: Thomas Koeller <thomas.koeller@baslerweb.com>, linux-mips@linux-mips.org
In-reply-to: <41A2234C.8090809@mvista.com>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <200411191623.14760.thomas.koeller@baslerweb.com> <41A2234C.8090809@mvista.com>
Sender: linux-mips-bounce@linux-mips.org
On Mon, 22 Nov 2004, Manish Lachwani wrote:

> Hence, they used this register. I am not sure if this is even 
> documented. However, this code has been written based on the feedback 
> from the chip designers. If you dont use this code, the MAC subsystem of 
> titan will stop aligning IP headers and you will need to implement the 
> code in the driver to do the aligning.

 That means you should use macros for registers and their contents,
preferably with some nearby documentation in the form of comments to
clarify less obvious bits.  Otherwise you end up with an unmaintainable
mess, especially once other sources of information drain out.

  Maciej

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