summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Wright <jason@cvs.openbsd.org>2001-08-17 00:01:47 +0000
committerJason Wright <jason@cvs.openbsd.org>2001-08-17 00:01:47 +0000
commit48233fe1154d63923fa0d179e533d7d6f6c8907d (patch)
tree7a9ed19a326eec5db7b2ef44895d75eb37ed33c4
parentc01d4075a90eb9fa750643b710d3ddbdbcd55069 (diff)
Oops, maxseglen and maxlen were backwards in call to bus_dmamap_create().
-rw-r--r--sys/dev/pci/if_txp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/pci/if_txp.c b/sys/dev/pci/if_txp.c
index 3237ddab9f3..4f556b830f2 100644
--- a/sys/dev/pci/if_txp.c
+++ b/sys/dev/pci/if_txp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_txp.c,v 1.50 2001/08/12 20:03:49 mickey Exp $ */
+/* $OpenBSD: if_txp.c,v 1.51 2001/08/17 00:01:46 jason Exp $ */
/*
* Copyright (c) 2001
@@ -873,8 +873,8 @@ txp_alloc_rings(sc)
sc->sc_txhir.r_cons = sc->sc_txhir.r_prod = sc->sc_txhir.r_cnt = 0;
sc->sc_txhir.r_off = &sc->sc_hostvar->hv_tx_hi_desc_read_idx;
for (i = 0; i < TX_ENTRIES; i++) {
- if (bus_dmamap_create(sc->sc_dmat, TXP_MAX_SEGLEN,
- TX_ENTRIES - 4, TXP_MAX_PKTLEN, 0,
+ if (bus_dmamap_create(sc->sc_dmat, TXP_MAX_PKTLEN,
+ TX_ENTRIES - 4, TXP_MAX_SEGLEN, 0,
BUS_DMA_NOWAIT, &sc->sc_txd[i].sd_map) != 0) {
for (j = 0; j < i; j++) {
bus_dmamap_destroy(sc->sc_dmat,