summaryrefslogtreecommitdiffstats
path: root/sys/dev/ti
diff options
context:
space:
mode:
authoryongari <yongari@FreeBSD.org>2011-11-07 22:17:44 +0000
committeryongari <yongari@FreeBSD.org>2011-11-07 22:17:44 +0000
commit17a190b301e59271e105421156747dd407d22810 (patch)
tree669888d9561d68b80a47d7ffa2db4f24236bb198 /sys/dev/ti
parentab2f26b102bec132db8ea050e243e44d069c3509 (diff)
downloadFreeBSD-src-17a190b301e59271e105421156747dd407d22810.zip
FreeBSD-src-17a190b301e59271e105421156747dd407d22810.tar.gz
Mini ring is not available on Tigon 1 so do not create DMA maps for
mini ring on Tigon 1 to save resources.
Diffstat (limited to 'sys/dev/ti')
-rw-r--r--sys/dev/ti/if_ti.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/dev/ti/if_ti.c b/sys/dev/ti/if_ti.c
index 8ce82ce..0901f1a 100644
--- a/sys/dev/ti/if_ti.c
+++ b/sys/dev/ti/if_ti.c
@@ -998,6 +998,11 @@ ti_alloc_dmamaps(struct ti_softc *sc)
&sc->ti_cdata.ti_rx_jumbo_maps[i]))
return (ENOBUFS);
}
+
+ /* Mini ring is not available on Tigon 1. */
+ if (sc->ti_hwrev == TI_HWREV_TIGON)
+ return (0);
+
for (i = 0; i < TI_MINI_RX_RING_CNT; i++) {
if (bus_dmamap_create(sc->ti_mbufrx_dmat, 0,
&sc->ti_cdata.ti_rx_mini_maps[i]))
OpenPOWER on IntegriCloud