mirror of https://github.com/ipxe/ipxe.git
more debugging
parent
d6ceb8bbd7
commit
f58c8511a0
|
@ -631,6 +631,9 @@ static int nat_open ( struct net_device *netdev ) {
|
||||||
outl ( tx_config, nat->ioaddr + TxConfig );
|
outl ( tx_config, nat->ioaddr + TxConfig );
|
||||||
outl ( rx_config, nat->ioaddr + RxConfig );
|
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
|
/*start the receiver
|
||||||
*/
|
*/
|
||||||
outl ( RxOn, nat->ioaddr + ChipCmd );
|
outl ( RxOn, nat->ioaddr + ChipCmd );
|
||||||
|
@ -641,6 +644,7 @@ static int nat_open ( struct net_device *netdev ) {
|
||||||
do_cable_magic ( netdev );
|
do_cable_magic ( netdev );
|
||||||
init_phy_fixup ( netdev );
|
init_phy_fixup ( netdev );
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* mask the interrupts. note interrupt is not enabled here
|
/* 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;
|
rx_status = (unsigned int) nat->rx[nat->rx_cur].cmdsts;
|
||||||
while ( ( rx_status & OWN ) ) {
|
while ( ( rx_status & OWN ) ) {
|
||||||
rx_len = ( rx_status & DSIZE ) - CRC_SIZE;
|
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
|
/*check for the corrupt packet
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue