diff options
author | Pyun YongHyeon <yongari@FreeBSD.org> | 2011-11-07 22:17:44 +0000 |
---|---|---|
committer | Pyun YongHyeon <yongari@FreeBSD.org> | 2011-11-07 22:17:44 +0000 |
commit | 6280f2fb3418e310e8e4ac1c13dafc1a575b6b17 (patch) | |
tree | 669888d9561d68b80a47d7ffa2db4f24236bb198 /sys/dev/ti | |
parent | 7beaf112a5d45ccc1f15f1487d5dfc3cb1151fc5 (diff) | |
download | src-6280f2fb3418e310e8e4ac1c13dafc1a575b6b17.tar.gz src-6280f2fb3418e310e8e4ac1c13dafc1a575b6b17.zip |
Mini ring is not available on Tigon 1 so do not create DMA maps for
mini ring on Tigon 1 to save resources.
Notes
Notes:
svn path=/head/; revision=227319
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 8ce82ce3c400..0901f1ac0f02 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])) |