Deleted Added
full compact
cxgb_osdep.h (178800) cxgb_osdep.h (180583)
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 178800 2008-05-05 22:37:21Z kmacy $
29$FreeBSD: head/sys/dev/cxgb/cxgb_osdep.h 180583 2008-07-18 06:12:31Z 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>

--- 12 unchanged lines hidden (view full) ---

50#endif
51
52#ifndef _CXGB_OSDEP_H_
53#define _CXGB_OSDEP_H_
54
55typedef struct adapter adapter_t;
56struct sge_rspq;
57
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>

--- 12 unchanged lines hidden (view full) ---

50#endif
51
52#ifndef _CXGB_OSDEP_H_
53#define _CXGB_OSDEP_H_
54
55typedef struct adapter adapter_t;
56struct sge_rspq;
57
58enum {
59 TP_TMR_RES = 200, /* TP timer resolution in usec */
60 MAX_NPORTS = 4, /* max # of ports */
61 TP_SRAM_OFFSET = 4096, /* TP SRAM content offset in eeprom */
62 TP_SRAM_LEN = 2112, /* TP SRAM content offset in eeprom */
63};
58
59struct t3_mbuf_hdr {
60 struct mbuf *mh_head;
61 struct mbuf *mh_tail;
62};
63
64#ifndef PANIC_IF
65#define PANIC_IF(exp) do { \

--- 317 unchanged lines hidden (view full) ---

383#define ADVERTISE_100HALF ANAR_TX
384
385
386#define ADVERTISE_1000XHALF ANAR_X_HD
387#define ADVERTISE_1000XFULL ANAR_X_FD
388#define ADVERTISE_1000XPSE_ASYM ANAR_X_PAUSE_ASYM
389#define ADVERTISE_1000XPAUSE ANAR_X_PAUSE_SYM
390
64
65struct t3_mbuf_hdr {
66 struct mbuf *mh_head;
67 struct mbuf *mh_tail;
68};
69
70#ifndef PANIC_IF
71#define PANIC_IF(exp) do { \

--- 317 unchanged lines hidden (view full) ---

389#define ADVERTISE_100HALF ANAR_TX
390
391
392#define ADVERTISE_1000XHALF ANAR_X_HD
393#define ADVERTISE_1000XFULL ANAR_X_FD
394#define ADVERTISE_1000XPSE_ASYM ANAR_X_PAUSE_ASYM
395#define ADVERTISE_1000XPAUSE ANAR_X_PAUSE_SYM
396
397#define ADVERTISE_CSMA ANAR_CSMA
398#define ADVERTISE_NPAGE ANAR_NP
391
399
400
392/* Standard PCI Extended Capaibilities definitions */
393#define PCI_CAP_ID_VPD 0x03
394#define PCI_VPD_ADDR 2
395#define PCI_VPD_ADDR_F 0x8000
396#define PCI_VPD_DATA 4
397
398#define PCI_CAP_ID_EXP 0x10
399#define PCI_EXP_DEVCTL 8

--- 91 unchanged lines hidden ---
401/* Standard PCI Extended Capaibilities definitions */
402#define PCI_CAP_ID_VPD 0x03
403#define PCI_VPD_ADDR 2
404#define PCI_VPD_ADDR_F 0x8000
405#define PCI_VPD_DATA 4
406
407#define PCI_CAP_ID_EXP 0x10
408#define PCI_EXP_DEVCTL 8

--- 91 unchanged lines hidden ---