diff options
author | yongari <yongari@FreeBSD.org> | 2011-11-07 22:17:44 +0000 |
---|---|---|
committer | yongari <yongari@FreeBSD.org> | 2011-11-07 22:17:44 +0000 |
commit | 17a190b301e59271e105421156747dd407d22810 (patch) | |
tree | 669888d9561d68b80a47d7ffa2db4f24236bb198 /sys/dev/ti | |
parent | ab2f26b102bec132db8ea050e243e44d069c3509 (diff) | |
download | FreeBSD-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.c | 5 |
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])) |