Deleted Added
full compact
cxgb_common.h (169978) cxgb_common.h (170076)
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
9 1. Redistributions of source code must retain the above copyright notice,
10 this list of conditions and the following disclaimer.
11
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
9 1. Redistributions of source code must retain the above copyright notice,
10 this list of conditions and the following disclaimer.
11
12 2. Redistributions in binary form must reproduce the above copyright
13 notice, this list of conditions and the following disclaimer in the
14 documentation and/or other materials provided with the distribution.
15
16 3. Neither the name of the Chelsio Corporation nor the names of its
12 2. Neither the name of the Chelsio Corporation nor the names of its
17 contributors may be used to endorse or promote products derived from
18 this software without specific prior written permission.
19
20THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
24LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
25CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
26SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
27INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
28CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
29ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
30POSSIBILITY OF SUCH DAMAGE.
31
13 contributors may be used to endorse or promote products derived from
14 this software without specific prior written permission.
15
16THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
17AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
20LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
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
32$FreeBSD: head/sys/dev/cxgb/common/cxgb_common.h 169978 2007-05-25 09:48:20Z kmacy $
28$FreeBSD: head/sys/dev/cxgb/common/cxgb_common.h 170076 2007-05-28 22:57:27Z kmacy $
33
34***************************************************************************/
35#ifndef __CHELSIO_COMMON_H
36#define __CHELSIO_COMMON_H
37
29
30***************************************************************************/
31#ifndef __CHELSIO_COMMON_H
32#define __CHELSIO_COMMON_H
33
34#ifdef CONFIG_DEFINED
35#include <cxgb_osdep.h>
36#else
38#include <dev/cxgb/cxgb_osdep.h>
37#include <dev/cxgb/cxgb_osdep.h>
38#endif
39
40enum {
41 MAX_NPORTS = 2, /* max # of ports */
42 MAX_FRAME_SIZE = 10240, /* max MAC frame size, including header + FCS */
43 EEPROMSIZE = 8192, /* Serial EEPROM size */
44 RSS_TABLE_SIZE = 64, /* size of RSS lookup and mapping tables */
45 TCB_SIZE = 128, /* TCB size */
46 NMTUS = 16, /* size of MTU table */

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

533#define XGM_REG(reg_addr, idx) \
534 ((reg_addr) + (idx) * (XGMAC0_1_BASE_ADDR - XGMAC0_0_BASE_ADDR))
535
536struct addr_val_pair {
537 unsigned int reg_addr;
538 unsigned int val;
539};
540
39
40enum {
41 MAX_NPORTS = 2, /* max # of ports */
42 MAX_FRAME_SIZE = 10240, /* max MAC frame size, including header + FCS */
43 EEPROMSIZE = 8192, /* Serial EEPROM size */
44 RSS_TABLE_SIZE = 64, /* size of RSS lookup and mapping tables */
45 TCB_SIZE = 128, /* TCB size */
46 NMTUS = 16, /* size of MTU table */

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

533#define XGM_REG(reg_addr, idx) \
534 ((reg_addr) + (idx) * (XGMAC0_1_BASE_ADDR - XGMAC0_0_BASE_ADDR))
535
536struct addr_val_pair {
537 unsigned int reg_addr;
538 unsigned int val;
539};
540
541#ifdef CONFIG_DEFINED
542#include <cxgb_adapter.h>
543#else
541#include <dev/cxgb/cxgb_adapter.h>
544#include <dev/cxgb/cxgb_adapter.h>
545#endif
542
543#ifndef PCI_VENDOR_ID_CHELSIO
544# define PCI_VENDOR_ID_CHELSIO 0x1425
545#endif
546
547#define for_each_port(adapter, iter) \
548 for (iter = 0; iter < (adapter)->params.nports; ++iter)
549

--- 180 unchanged lines hidden ---
546
547#ifndef PCI_VENDOR_ID_CHELSIO
548# define PCI_VENDOR_ID_CHELSIO 0x1425
549#endif
550
551#define for_each_port(adapter, iter) \
552 for (iter = 0; iter < (adapter)->params.nports; ++iter)
553

--- 180 unchanged lines hidden ---