From f58c8511a046467b2da897c92fb537ba83791f59 Mon Sep 17 00:00:00 2001 From: Udayan Kumar Date: Tue, 10 Jul 2007 15:47:34 -0400 Subject: [PATCH] more debugging --- src/drivers/net/natsemi.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/drivers/net/natsemi.c b/src/drivers/net/natsemi.c index 5e9f4dfa..0267c1bc 100644 --- a/src/drivers/net/natsemi.c +++ b/src/drivers/net/natsemi.c @@ -631,6 +631,9 @@ static int nat_open ( struct net_device *netdev ) { outl ( tx_config, nat->ioaddr + TxConfig ); outl ( rx_config, nat->ioaddr + RxConfig ); + DBG ( "Tx config register = %x Rx config register = %x\n", + (unsigned int) inl ( nat->ioaddr + TxConfig), + (unsigned int) inl ( nat->ioaddr + RxConfig) ); /*start the receiver */ outl ( RxOn, nat->ioaddr + ChipCmd ); @@ -641,6 +644,7 @@ static int nat_open ( struct net_device *netdev ) { do_cable_magic ( netdev ); init_phy_fixup ( netdev ); + /* mask the interrupts. note interrupt is not enabled here */ @@ -783,6 +787,8 @@ static void nat_poll ( struct net_device *netdev) { rx_status = (unsigned int) nat->rx[nat->rx_cur].cmdsts; while ( ( rx_status & OWN ) ) { rx_len = ( rx_status & DSIZE ) - CRC_SIZE; + DBG ( " Status of received packet = %X , Lenght of Packet = %X\n", + rx_status,rx_len ); /*check for the corrupt packet */