Received: from mail.onstor.com ([66.201.51.107]) by onstor-exch02.onstor.net with Microsoft SMTPSVC(6.0.3790.3959);
	 Tue, 28 Oct 2008 06:32:59 -0700
Received: from dalesmta2-3.messageone.com ([129.41.169.249]) by mail.onstor.com with Microsoft SMTPSVC(6.0.3790.3959);
	 Tue, 28 Oct 2008 06:32:58 -0700
Received: from ftp.linux-mips.org (ftp.linux-mips.org [213.58.128.207])
	by dalesmta2-3.messageone.com (8.13.8/8.13.8) with ESMTP id m9SDW0bf014887
	for <andy.sharp@onstor.com>; Tue, 28 Oct 2008 08:32:55 -0500
Received: from localhost.localdomain ([127.0.0.1]:34518 "EHLO
	ftp.linux-mips.org") by ftp.linux-mips.org with ESMTP
	id S22582836AbYJ1Naw (ORCPT <rfc822;andy.sharp@onstor.com>);
	Tue, 28 Oct 2008 13:30:52 +0000
Received: with ECARTIS (v1.0.0; list linux-mips); Tue, 28 Oct 2008 13:30:35 +0000 (GMT)
Received: from mba.ocn.ne.jp ([122.1.235.107]:24276 "HELO smtp.mba.ocn.ne.jp")
	by ftp.linux-mips.org with SMTP id S22582824AbYJ1Na1 (ORCPT
	<rfc822;linux-mips@linux-mips.org>); Tue, 28 Oct 2008 13:30:27 +0000
Received: from localhost (p3097-ipad313funabasi.chiba.ocn.ne.jp [123.217.229.97])
	by smtp.mba.ocn.ne.jp (Postfix) with ESMTP
	id EF2E0AF04; Tue, 28 Oct 2008 22:30:21 +0900 (JST)
Date: 	Tue, 28 Oct 2008 22:30:23 +0900 (JST)
Message-Id: <20081028.223023.93205850.anemo@mba.ocn.ne.jp>
To: linux-mips@linux-mips.org
Cc: Jeff Garzik <jeff@garzik.org>, netdev@vger.kernel.org
Subject: [PATCH] tc35815: Define more Rx status bits
From: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
X-Fingerprint: 6ACA 1623 39BD 9A94 9B1A  B746 CA77 FE94 2874 D52F
X-Pgp-Public-Key: http://wwwkeys.pgp.net/pks/lookup?op=get&search=0x2874D52F
X-Mailer: Mew version 5.2 on Emacs 21.4 / Mule 5.0 (SAKAKI)
Mime-Version: 1.0
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-archive-position: 21056
X-ecartis-version: Ecartis v1.0.0
Sender: linux-mips-bounce@linux-mips.org
Errors-to: linux-mips-bounce@linux-mips.org
X-original-sender: anemo@mba.ocn.ne.jp
Precedence: bulk
X-list: 	linux-mips
X-MessageOne-Virus-Version: vendor=fsecure engine=4.65.7400:2.4.4,1.2.40,4.0.164 definitions=2008-10-28_05:2008-10-10,2008-10-28,2008-10-28 signatures=0
X-MessageOne-Virus-Scanned: Clean
X-MessageOne-Envelope-Sender: linux-mips-bounce@linux-mips.org
X-MessageOne-Spam-Details: rule=m773emszm_notspam policy=m773emszm score=0 spamscore=0 ipscore=0 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx engine=3.1.0-0810130000 definitions=main-0810280052
X-MessageOne-Spam-Score: 0
X-MessageOne-Spam-Bar: 
Return-Path: linux-mips-bounce@linux-mips.org
X-OriginalArrivalTime: 28 Oct 2008 13:32:59.0171 (UTC) FILETIME=[B1744F30:01C93901]

This change does not change driver's behaviour, just make its debug
output a bit meaningful.

Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
---
 drivers/net/tc35815.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/drivers/net/tc35815.c b/drivers/net/tc35815.c
index df20caf..385b174 100644
--- a/drivers/net/tc35815.c
+++ b/drivers/net/tc35815.c
@@ -236,7 +236,7 @@ struct tc35815_regs {
 #define Rx_Halted	       0x00008000 /* Rx Halted			     */
 #define Rx_Good		       0x00004000 /* Rx Good			     */
 #define Rx_RxPar	       0x00002000 /* Rx Parity Error		     */
-			    /* 0x00001000    not use			     */
+#define Rx_TypePkt	       0x00001000 /* Rx Type Packet		     */
 #define Rx_LongErr	       0x00000800 /* Rx Long Error		     */
 #define Rx_Over		       0x00000400 /* Rx Overflow		     */
 #define Rx_CRCErr	       0x00000200 /* Rx CRC Error		     */
@@ -244,8 +244,9 @@ struct tc35815_regs {
 #define Rx_10Stat	       0x00000080 /* Rx 10Mbps Status		     */
 #define Rx_IntRx	       0x00000040 /* Rx Interrupt		     */
 #define Rx_CtlRecd	       0x00000020 /* Rx Control Receive		     */
+#define Rx_InLenErr	       0x00000010 /* Rx In Range Frame Length Error  */
 
-#define Rx_Stat_Mask	       0x0000EFC0 /* Rx All Status Mask		     */
+#define Rx_Stat_Mask	       0x0000FFF0 /* Rx All Status Mask		     */
 
 /* Int_En bit asign -------------------------------------------------------- */
 #define Int_NRAbtEn	       0x00000800 /* 1:Non-recoverable Abort Enable  */
-- 
1.5.6.3

