Deleted Added
full compact
bxe.h (331722) bxe.h (339881)
1/*-
2 * Copyright (c) 2007-2014 QLogic Corporation. All rights reserved.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 *
8 * 1. Redistributions of source code must retain the above copyright

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

23 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
24 * THE POSSIBILITY OF SUCH DAMAGE.
25 */
26
27#ifndef __BXE_H__
28#define __BXE_H__
29
30#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2007-2014 QLogic Corporation. All rights reserved.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 *
8 * 1. Redistributions of source code must retain the above copyright

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

23 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
24 * THE POSSIBILITY OF SUCH DAMAGE.
25 */
26
27#ifndef __BXE_H__
28#define __BXE_H__
29
30#include <sys/cdefs.h>
31__FBSDID("$FreeBSD: stable/11/sys/dev/bxe/bxe.h 331722 2018-03-29 02:50:57Z eadler $");
31__FBSDID("$FreeBSD: stable/11/sys/dev/bxe/bxe.h 339881 2018-10-29 21:09:39Z davidcs $");
32
33#include <sys/param.h>
34#include <sys/kernel.h>
35#include <sys/systm.h>
36#include <sys/lock.h>
37#include <sys/mutex.h>
38#include <sys/sx.h>
39#include <sys/module.h>

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

470/* max supported alignment is 256 (8 shift) */
471//#define BXE_RX_ALIGN_SHIFT ((CACHE_LINE_SHIFT < 8) ? CACHE_LINE_SHIFT : 8)
472#define BXE_RX_ALIGN_SHIFT 8
473/* FW uses 2 cache lines alignment for start packet and size */
474#define BXE_FW_RX_ALIGN_START (1 << BXE_RX_ALIGN_SHIFT)
475#define BXE_FW_RX_ALIGN_END (1 << BXE_RX_ALIGN_SHIFT)
476
477#define BXE_PXP_DRAM_ALIGN (BXE_RX_ALIGN_SHIFT - 5) /* XXX ??? */
32
33#include <sys/param.h>
34#include <sys/kernel.h>
35#include <sys/systm.h>
36#include <sys/lock.h>
37#include <sys/mutex.h>
38#include <sys/sx.h>
39#include <sys/module.h>

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

470/* max supported alignment is 256 (8 shift) */
471//#define BXE_RX_ALIGN_SHIFT ((CACHE_LINE_SHIFT < 8) ? CACHE_LINE_SHIFT : 8)
472#define BXE_RX_ALIGN_SHIFT 8
473/* FW uses 2 cache lines alignment for start packet and size */
474#define BXE_FW_RX_ALIGN_START (1 << BXE_RX_ALIGN_SHIFT)
475#define BXE_FW_RX_ALIGN_END (1 << BXE_RX_ALIGN_SHIFT)
476
477#define BXE_PXP_DRAM_ALIGN (BXE_RX_ALIGN_SHIFT - 5) /* XXX ??? */
478#define BXE_SET_ERROR_BIT(sc, error) \
479{ \
480 (sc)->error_status |= (error); \
481}
478
479struct bxe_bar {
480 struct resource *resource;
481 int rid;
482 bus_space_tag_t tag;
483 bus_space_handle_t handle;
484 vm_offset_t kva;
485};

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

1383#define CHIP_TQ_START 1
1384#define CHIP_TQ_STOP 2
1385#define CHIP_TQ_REINIT 3
1386 volatile unsigned long chip_tq_flags;
1387 struct task chip_tq_task;
1388 struct taskqueue *chip_tq;
1389 char chip_tq_name[32];
1390
482
483struct bxe_bar {
484 struct resource *resource;
485 int rid;
486 bus_space_tag_t tag;
487 bus_space_handle_t handle;
488 vm_offset_t kva;
489};

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

1387#define CHIP_TQ_START 1
1388#define CHIP_TQ_STOP 2
1389#define CHIP_TQ_REINIT 3
1390 volatile unsigned long chip_tq_flags;
1391 struct task chip_tq_task;
1392 struct taskqueue *chip_tq;
1393 char chip_tq_name[32];
1394
1395 struct timeout_task sp_err_timeout_task;
1396
1391 /* slowpath interrupt taskqueue */
1392 struct task sp_tq_task;
1393 struct taskqueue *sp_tq;
1394 char sp_tq_name[32];
1395
1396 struct bxe_fastpath fp[MAX_RSS_CHAINS];
1397 struct bxe_sp_objs sp_objs[MAX_RSS_CHAINS];
1398

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

1537 int is_leader;
1538 int recovery_state;
1539#define BXE_RECOVERY_DONE 1
1540#define BXE_RECOVERY_INIT 2
1541#define BXE_RECOVERY_WAIT 3
1542#define BXE_RECOVERY_FAILED 4
1543#define BXE_RECOVERY_NIC_LOADING 5
1544
1397 /* slowpath interrupt taskqueue */
1398 struct task sp_tq_task;
1399 struct taskqueue *sp_tq;
1400 char sp_tq_name[32];
1401
1402 struct bxe_fastpath fp[MAX_RSS_CHAINS];
1403 struct bxe_sp_objs sp_objs[MAX_RSS_CHAINS];
1404

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

1543 int is_leader;
1544 int recovery_state;
1545#define BXE_RECOVERY_DONE 1
1546#define BXE_RECOVERY_INIT 2
1547#define BXE_RECOVERY_WAIT 3
1548#define BXE_RECOVERY_FAILED 4
1549#define BXE_RECOVERY_NIC_LOADING 5
1550
1551#define BXE_ERR_TXQ_STUCK 0x1 /* Tx queue stuck detected by driver. */
1552#define BXE_ERR_MISC 0x2 /* MISC ERR */
1553#define BXE_ERR_PARITY 0x4 /* Parity error detected. */
1554#define BXE_ERR_STATS_TO 0x8 /* Statistics timeout detected. */
1555#define BXE_ERR_MC_ASSERT 0x10 /* MC assert attention received. */
1556#define BXE_ERR_PANIC 0x20 /* Driver asserted. */
1557#define BXE_ERR_MCP_ASSERT 0x40 /* MCP assert attention received. No Recovery*/
1558#define BXE_ERR_GLOBAL 0x80 /* PCIe/PXP/IGU/MISC/NIG device blocks error- needs PCIe/Fundamental reset */
1559 uint32_t error_status;
1560
1545 uint32_t rx_mode;
1546#define BXE_RX_MODE_NONE 0
1547#define BXE_RX_MODE_NORMAL 1
1548#define BXE_RX_MODE_ALLMULTI 2
1549#define BXE_RX_MODE_PROMISC 3
1550#define BXE_MAX_MULTICAST 64
1551
1552 struct bxe_port port;

--- 934 unchanged lines hidden ---
1561 uint32_t rx_mode;
1562#define BXE_RX_MODE_NONE 0
1563#define BXE_RX_MODE_NORMAL 1
1564#define BXE_RX_MODE_ALLMULTI 2
1565#define BXE_RX_MODE_PROMISC 3
1566#define BXE_MAX_MULTICAST 64
1567
1568 struct bxe_port port;

--- 934 unchanged lines hidden ---