diff --git a/sys/pci/if_tl.c b/sys/pci/if_tl.c index abf68c9e2b8..2df567691c8 100644 --- a/sys/pci/if_tl.c +++ b/sys/pci/if_tl.c @@ -29,7 +29,7 @@ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF * THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: if_tl.c,v 1.17 1998/10/04 18:47:38 wpaul Exp $ + * $Id: if_tl.c,v 1.18 1998/10/08 15:45:36 wpaul Exp $ */ /* @@ -218,7 +218,7 @@ #ifndef lint static char rcsid[] = - "$Id: if_tl.c,v 1.17 1998/10/04 18:47:38 wpaul Exp $"; + "$Id: if_tl.c,v 1.18 1998/10/08 15:45:36 wpaul Exp $"; #endif #ifdef TL_DEBUG @@ -1823,12 +1823,12 @@ static int tl_list_rx_init(sc) cd = &sc->tl_cdata; ld = sc->tl_ldata; - for (i = 0; i < TL_TX_LIST_CNT; i++) { + for (i = 0; i < TL_RX_LIST_CNT; i++) { cd->tl_rx_chain[i].tl_ptr = (struct tl_list_onefrag *)&ld->tl_rx_list[i]; if (tl_newbuf(sc, &cd->tl_rx_chain[i]) == ENOBUFS) return(ENOBUFS); - if (i == (TL_TX_LIST_CNT - 1)) { + if (i == (TL_RX_LIST_CNT - 1)) { cd->tl_rx_chain[i].tl_next = NULL; ld->tl_rx_list[i].tlist_fptr = 0; } else { diff --git a/sys/pci/if_tlreg.h b/sys/pci/if_tlreg.h index a9b80ea6441..b8b3769f7bb 100644 --- a/sys/pci/if_tlreg.h +++ b/sys/pci/if_tlreg.h @@ -29,7 +29,7 @@ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF * THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: if_tlreg.h,v 1.12 1998/09/17 21:16:31 wpaul Exp $ + * $Id: if_tlreg.h,v 1.6 1998/09/23 05:08:54 wpaul Exp $ */ @@ -49,8 +49,8 @@ struct tl_type { */ #define TL_MAXFRAGS 10 -#define TL_RX_LIST_CNT 10 -#define TL_TX_LIST_CNT 10 +#define TL_RX_LIST_CNT 20 +#define TL_TX_LIST_CNT 20 #define TL_MIN_FRAMELEN 64 struct tl_frag { @@ -141,7 +141,7 @@ struct tl_softc { /* * Transmit interrupt threshold. */ -#define TX_THR 0x00000001 +#define TX_THR 0x00000004 #define TL_FLAG_FORCEDELAY 1 #define TL_FLAG_SCHEDDELAY 2