OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [or1ksim/] [peripheral/] [eth.c] - Diff between revs 437 and 442

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 437 Rev 442
Line 367... Line 367...
 
 
      break;
      break;
    }
    }
 
 
  /* Reschedule */
  /* Reschedule */
  if (eth->tx.state == ETH_TXSTATE_WAIT4BD)
 
    SCHED_ADD (eth_controller_tx_clock, dat, 10);
 
  else
 
    SCHED_ADD (eth_controller_tx_clock, dat, 1);
    SCHED_ADD (eth_controller_tx_clock, dat, 1);
}
}
 
 
/* ========================================================================= */
/* ========================================================================= */
 
 
Line 687... Line 684...
        }
        }
      break;
      break;
    }
    }
 
 
  /* Reschedule */
  /* Reschedule */
  if (eth->rx.state == ETH_RXSTATE_RECV)
 
    SCHED_ADD (eth_controller_rx_clock, dat, 10);
 
  else
 
    SCHED_ADD (eth_controller_rx_clock, dat, 1);
    SCHED_ADD (eth_controller_rx_clock, dat, 1);
}
}
 
 
/* ========================================================================= */
/* ========================================================================= */
/* Move to next RX BD */
/* Move to next RX BD */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.