Browse Source

more debugging

tags/v0.9.3
Udayan Kumar 17 years ago
parent
commit
f58c8511a0
1 changed files with 6 additions and 0 deletions
  1. 6
    0
      src/drivers/net/natsemi.c

+ 6
- 0
src/drivers/net/natsemi.c View File

631
 	outl ( tx_config, nat->ioaddr + TxConfig );
631
 	outl ( tx_config, nat->ioaddr + TxConfig );
632
 	outl ( rx_config, nat->ioaddr + RxConfig );
632
 	outl ( rx_config, nat->ioaddr + RxConfig );
633
 
633
 
634
+	DBG ( "Tx config register = %x Rx config register =  %x\n", 
635
+               (unsigned int) inl ( nat->ioaddr + TxConfig),
636
+	       (unsigned int) inl ( nat->ioaddr + RxConfig) );
634
 	/*start the receiver 
637
 	/*start the receiver 
635
 	 */
638
 	 */
636
         outl ( RxOn, nat->ioaddr + ChipCmd );
639
         outl ( RxOn, nat->ioaddr + ChipCmd );
641
 	do_cable_magic ( netdev ); 
644
 	do_cable_magic ( netdev ); 
642
 	init_phy_fixup ( netdev );
645
 	init_phy_fixup ( netdev );
643
 	
646
 	
647
+	
644
 
648
 
645
 	/* mask the interrupts. note interrupt is not enabled here
649
 	/* mask the interrupts. note interrupt is not enabled here
646
 	 */
650
 	 */
783
 	rx_status = (unsigned int) nat->rx[nat->rx_cur].cmdsts; 
787
 	rx_status = (unsigned int) nat->rx[nat->rx_cur].cmdsts; 
784
 	while ( ( rx_status & OWN ) ) {
788
 	while ( ( rx_status & OWN ) ) {
785
 		rx_len = ( rx_status & DSIZE ) - CRC_SIZE;
789
 		rx_len = ( rx_status & DSIZE ) - CRC_SIZE;
790
+		DBG ( " Status of received packet = %X , Lenght of Packet = %X\n",
791
+		      	rx_status,rx_len );
786
 
792
 
787
 		/*check for the corrupt packet 
793
 		/*check for the corrupt packet 
788
 		 */
794
 		 */

Loading…
Cancel
Save