if_txvar.h (105966) | if_txvar.h (109623) |
---|---|
1/*- 2 * Copyright (c) 1997 Semen Ustimenko 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * | 1/*- 2 * Copyright (c) 1997 Semen Ustimenko 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * |
26 * $FreeBSD: head/sys/dev/tx/if_txvar.h 105966 2002-10-25 22:06:03Z sam $ | 26 * $FreeBSD: head/sys/dev/tx/if_txvar.h 109623 2003-01-21 08:56:16Z alfred $ |
27 */ 28 29/* 30 * Configuration 31 */ 32/*#define EPIC_DIAG 1*/ 33/*#define EPIC_USEIOSPACE 1*/ 34/*#define EPIC_EARLY_RX 1*/ --- 94 unchanged lines hidden (view full) --- 129 130#define PHY_READ_2(sc, phy, reg) \ 131 epic_read_phy_reg((sc), (phy), (reg)) 132#define PHY_WRITE_2(sc, phy, reg, val) \ 133 epic_write_phy_reg((sc), (phy), (reg), (val)) 134 135/* Macro to get either mbuf cluster or nothing */ 136#define EPIC_MGETCLUSTER(m) \ | 27 */ 28 29/* 30 * Configuration 31 */ 32/*#define EPIC_DIAG 1*/ 33/*#define EPIC_USEIOSPACE 1*/ 34/*#define EPIC_EARLY_RX 1*/ --- 94 unchanged lines hidden (view full) --- 129 130#define PHY_READ_2(sc, phy, reg) \ 131 epic_read_phy_reg((sc), (phy), (reg)) 132#define PHY_WRITE_2(sc, phy, reg, val) \ 133 epic_write_phy_reg((sc), (phy), (reg), (val)) 134 135/* Macro to get either mbuf cluster or nothing */ 136#define EPIC_MGETCLUSTER(m) \ |
137 { MGETHDR((m),M_DONTWAIT,MT_DATA); \ | 137 { MGETHDR((m),M_NOWAIT,MT_DATA); \ |
138 if (m) { \ | 138 if (m) { \ |
139 MCLGET((m),M_DONTWAIT); \ | 139 MCLGET((m),M_NOWAIT); \ |
140 if( 0 == ((m)->m_flags & M_EXT) ) { \ 141 m_freem(m); \ 142 (m) = NULL; \ 143 } \ 144 } \ 145 } 146 | 140 if( 0 == ((m)->m_flags & M_EXT) ) { \ 141 m_freem(m); \ 142 (m) = NULL; \ 143 } \ 144 } \ 145 } 146 |