diff options
author | Brad Smith <brad@cvs.openbsd.org> | 2005-10-09 23:41:56 +0000 |
---|---|---|
committer | Brad Smith <brad@cvs.openbsd.org> | 2005-10-09 23:41:56 +0000 |
commit | 909742cfa3f8a3c9b9fa36d675ea4e1f1282fbc9 (patch) | |
tree | 6b48b5259d310c28045b61f29cd7cfa284e915d5 /sys | |
parent | 906b9ccf9356337ef0d295829eeb9b5309a00a5d (diff) |
BGE_RSLOTS is only used in one spot, BGE_TX_RING_CNT
should be used instead.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/pci/if_bge.c | 4 | ||||
-rw-r--r-- | sys/dev/pci/if_bgereg.h | 3 |
2 files changed, 3 insertions, 4 deletions
diff --git a/sys/dev/pci/if_bge.c b/sys/dev/pci/if_bge.c index 28e9dbc8339..9d0be4293fe 100644 --- a/sys/dev/pci/if_bge.c +++ b/sys/dev/pci/if_bge.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_bge.c,v 1.85 2005/10/09 20:55:41 brad Exp $ */ +/* $OpenBSD: if_bge.c,v 1.86 2005/10/09 23:41:55 brad Exp $ */ /* * Copyright (c) 2001 Wind River Systems @@ -914,7 +914,7 @@ bge_init_tx_ring(sc) CSR_WRITE_4(sc, BGE_MBX_TX_NIC_PROD0_LO, 0); SLIST_INIT(&sc->txdma_list); - for (i = 0; i < BGE_RSLOTS; i++) { + for (i = 0; i < BGE_TX_RING_CNT; i++) { if (bus_dmamap_create(sc->bge_dmatag, BGE_JLEN, BGE_NTXSEG, BGE_JLEN, 0, BUS_DMA_NOWAIT, &dmamap)) diff --git a/sys/dev/pci/if_bgereg.h b/sys/dev/pci/if_bgereg.h index 9f6618d35c4..d0962d8a1a0 100644 --- a/sys/dev/pci/if_bgereg.h +++ b/sys/dev/pci/if_bgereg.h @@ -1,4 +1,4 @@ -/* $OpenBSD: if_bgereg.h,v 1.29 2005/10/09 20:07:32 brad Exp $ */ +/* $OpenBSD: if_bgereg.h,v 1.30 2005/10/09 23:41:55 brad Exp $ */ /* * Copyright (c) 2001 Wind River Systems @@ -2214,7 +2214,6 @@ struct vpd_key { #else #define BGE_JSLOTS 384 #endif -#define BGE_RSLOTS 256 #define BGE_JRAWLEN (ETHER_MAX_LEN_JUMBO + ETHER_ALIGN) #define BGE_JLEN (BGE_JRAWLEN + (sizeof(u_int64_t) - \ |