cxgb_osdep.h (172109) | cxgb_osdep.h (174626) |
---|---|
1/************************************************************************** 2 3Copyright (c) 2007, Chelsio Inc. 4All rights reserved. 5 6Redistribution and use in source and binary forms, with or without 7modification, are permitted provided that the following conditions are met: 8 --- 12 unchanged lines hidden (view full) --- 21CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 22SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 23INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 24CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 25ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 26POSSIBILITY OF SUCH DAMAGE. 27 28 | 1/************************************************************************** 2 3Copyright (c) 2007, Chelsio Inc. 4All rights reserved. 5 6Redistribution and use in source and binary forms, with or without 7modification, are permitted provided that the following conditions are met: 8 --- 12 unchanged lines hidden (view full) --- 21CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 22SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 23INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 24CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 25ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 26POSSIBILITY OF SUCH DAMAGE. 27 28 |
29$FreeBSD: head/sys/dev/cxgb/cxgb_osdep.h 172109 2007-09-10 00:59:51Z kmacy $ | 29$FreeBSD: head/sys/dev/cxgb/cxgb_osdep.h 174626 2007-12-15 21:54:59Z kmacy $ |
30 31***************************************************************************/ 32 33#include <sys/param.h> 34#include <sys/systm.h> 35#include <sys/ctype.h> 36#include <sys/endian.h> 37#include <sys/bus.h> --- 17 unchanged lines hidden (view full) --- 55struct t3_mbuf_hdr { 56 struct mbuf *mh_head; 57 struct mbuf *mh_tail; 58}; 59 60 61#define PANIC_IF(exp) do { \ 62 if (exp) \ | 30 31***************************************************************************/ 32 33#include <sys/param.h> 34#include <sys/systm.h> 35#include <sys/ctype.h> 36#include <sys/endian.h> 37#include <sys/bus.h> --- 17 unchanged lines hidden (view full) --- 55struct t3_mbuf_hdr { 56 struct mbuf *mh_head; 57 struct mbuf *mh_tail; 58}; 59 60 61#define PANIC_IF(exp) do { \ 62 if (exp) \ |
63 panic("BUG: %s", exp); \ | 63 panic("BUG: %s", #exp); \ |
64} while (0) 65 66 67#define m_get_priority(m) ((uintptr_t)(m)->m_pkthdr.rcvif) 68#define m_set_priority(m, pri) ((m)->m_pkthdr.rcvif = (struct ifnet *)((uintptr_t)pri)) 69 70#if __FreeBSD_version > 700030 71#define INTR_FILTERS --- 20 unchanged lines hidden (view full) --- 92 * Workaround for weird Chelsio issue 93 */ 94#if __FreeBSD_version > 700029 95#define PRIV_SUPPORTED 96#endif 97 98#define CXGB_TX_CLEANUP_THRESHOLD 32 99 | 64} while (0) 65 66 67#define m_get_priority(m) ((uintptr_t)(m)->m_pkthdr.rcvif) 68#define m_set_priority(m, pri) ((m)->m_pkthdr.rcvif = (struct ifnet *)((uintptr_t)pri)) 69 70#if __FreeBSD_version > 700030 71#define INTR_FILTERS --- 20 unchanged lines hidden (view full) --- 92 * Workaround for weird Chelsio issue 93 */ 94#if __FreeBSD_version > 700029 95#define PRIV_SUPPORTED 96#endif 97 98#define CXGB_TX_CLEANUP_THRESHOLD 32 99 |
100#define LOG_WARNING 1 101#define LOG_ERR 2 102 | |
103#ifdef DEBUG_PRINT 104#define DPRINTF printf 105#else 106#define DPRINTF(...) 107#endif 108 109#define TX_MAX_SIZE (1 << 16) /* 64KB */ 110#define TX_MAX_SEGS 36 /* maximum supported by card */ --- 196 unchanged lines hidden --- | 100#ifdef DEBUG_PRINT 101#define DPRINTF printf 102#else 103#define DPRINTF(...) 104#endif 105 106#define TX_MAX_SIZE (1 << 16) /* 64KB */ 107#define TX_MAX_SEGS 36 /* maximum supported by card */ --- 196 unchanged lines hidden --- |