bxe.h (255736) | bxe.h (258187) |
---|---|
1/*- 2 * Copyright (c) 2007-2013 Broadcom Corporation. All rights reserved. 3 * 4 * Eric Davis <edavis@broadcom.com> 5 * David Christensen <davidch@broadcom.com> 6 * Gary Zambrano <zambrano@broadcom.com> 7 * 8 * Redistribution and use in source and binary forms, with or without --- 21 unchanged lines hidden (view full) --- 30 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 31 * THE POSSIBILITY OF SUCH DAMAGE. 32 */ 33 34#ifndef __BXE_H__ 35#define __BXE_H__ 36 37#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2007-2013 Broadcom Corporation. All rights reserved. 3 * 4 * Eric Davis <edavis@broadcom.com> 5 * David Christensen <davidch@broadcom.com> 6 * Gary Zambrano <zambrano@broadcom.com> 7 * 8 * Redistribution and use in source and binary forms, with or without --- 21 unchanged lines hidden (view full) --- 30 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 31 * THE POSSIBILITY OF SUCH DAMAGE. 32 */ 33 34#ifndef __BXE_H__ 35#define __BXE_H__ 36 37#include <sys/cdefs.h> |
38__FBSDID("$FreeBSD: head/sys/dev/bxe/bxe.h 255736 2013-09-20 20:18:49Z davidch $"); | 38__FBSDID("$FreeBSD: head/sys/dev/bxe/bxe.h 258187 2013-11-15 20:26:14Z edavis $"); |
39 40#include <sys/param.h> 41#include <sys/kernel.h> 42#include <sys/systm.h> 43#include <sys/lock.h> 44#include <sys/mutex.h> 45#include <sys/sx.h> 46#include <sys/module.h> --- 696 unchanged lines hidden (view full) --- 743#define BXE_VF_CID_WND 0 744#define BXE_CIDS_PER_VF (1 << BXE_VF_CID_WND) 745#define BXE_CLIENTS_PER_VF 1 746#define BXE_FIRST_VF_CID 256 747#define BXE_VF_CIDS (BXE_MAX_NUM_OF_VFS * BXE_CIDS_PER_VF) 748#define BXE_VF_ID_INVALID 0xFF 749#define IS_SRIOV(sc) 0 750 | 39 40#include <sys/param.h> 41#include <sys/kernel.h> 42#include <sys/systm.h> 43#include <sys/lock.h> 44#include <sys/mutex.h> 45#include <sys/sx.h> 46#include <sys/module.h> --- 696 unchanged lines hidden (view full) --- 743#define BXE_VF_CID_WND 0 744#define BXE_CIDS_PER_VF (1 << BXE_VF_CID_WND) 745#define BXE_CLIENTS_PER_VF 1 746#define BXE_FIRST_VF_CID 256 747#define BXE_VF_CIDS (BXE_MAX_NUM_OF_VFS * BXE_CIDS_PER_VF) 748#define BXE_VF_ID_INVALID 0xFF 749#define IS_SRIOV(sc) 0 750 |
751#define GET_NUM_VFS_PER_PATH(sc) 0 752#define GET_NUM_VFS_PER_PF(sc) 0 753 |
|
751/* maximum number of fast-path interrupt contexts */ 752#define FP_SB_MAX_E1x 16 753#define FP_SB_MAX_E2 HC_SB_MAX_SB_E2 754 755union cdu_context { 756 struct eth_context eth; 757 char pad[1024]; 758}; --- 641 unchanged lines hidden (view full) --- 1400//#define BXE_USING_MSI_FLAG 0x00000040 1401//#define BXE_DISABLE_MSI_FLAG 0x00000080 1402#define BXE_NO_MCP_FLAG 0x00000200 1403#define BXE_NOMCP(sc) (sc->flags & BXE_NO_MCP_FLAG) 1404//#define BXE_SAFC_TX_FLAG 0x00000400 1405#define BXE_MF_FUNC_DIS 0x00000800 1406#define BXE_TX_SWITCHING 0x00001000 1407 | 754/* maximum number of fast-path interrupt contexts */ 755#define FP_SB_MAX_E1x 16 756#define FP_SB_MAX_E2 HC_SB_MAX_SB_E2 757 758union cdu_context { 759 struct eth_context eth; 760 char pad[1024]; 761}; --- 641 unchanged lines hidden (view full) --- 1403//#define BXE_USING_MSI_FLAG 0x00000040 1404//#define BXE_DISABLE_MSI_FLAG 0x00000080 1405#define BXE_NO_MCP_FLAG 0x00000200 1406#define BXE_NOMCP(sc) (sc->flags & BXE_NO_MCP_FLAG) 1407//#define BXE_SAFC_TX_FLAG 0x00000400 1408#define BXE_MF_FUNC_DIS 0x00000800 1409#define BXE_TX_SWITCHING 0x00001000 1410 |
1408 uint32_t debug; /* per-instance debug logging config */ | 1411 unsigned long debug; /* per-instance debug logging config */ |
1409 1410#define MAX_BARS 5 1411 struct bxe_bar bar[MAX_BARS]; /* map BARs 0, 2, 4 */ 1412 1413 uint16_t doorbell_size; 1414 1415 /* periodic timer callout */ 1416#define PERIODIC_STOP 0 --- 181 unchanged lines hidden (view full) --- 1598 1599 struct cmng_init cmng; 1600 1601 /* user configs */ 1602 int num_queues; 1603 int max_rx_bufs; 1604 int hc_rx_ticks; 1605 int hc_tx_ticks; | 1412 1413#define MAX_BARS 5 1414 struct bxe_bar bar[MAX_BARS]; /* map BARs 0, 2, 4 */ 1415 1416 uint16_t doorbell_size; 1417 1418 /* periodic timer callout */ 1419#define PERIODIC_STOP 0 --- 181 unchanged lines hidden (view full) --- 1601 1602 struct cmng_init cmng; 1603 1604 /* user configs */ 1605 int num_queues; 1606 int max_rx_bufs; 1607 int hc_rx_ticks; 1608 int hc_tx_ticks; |
1606 uint32_t rx_budget; | 1609 int rx_budget; |
1607 int max_aggregation_size; 1608 int mrrs; 1609 int autogreeen; 1610#define AUTO_GREEN_HW_DEFAULT 0 1611#define AUTO_GREEN_FORCE_ON 1 1612#define AUTO_GREEN_FORCE_OFF 2 1613 int interrupt_mode; 1614#define INTR_MODE_INTX 0 --- 883 unchanged lines hidden --- | 1610 int max_aggregation_size; 1611 int mrrs; 1612 int autogreeen; 1613#define AUTO_GREEN_HW_DEFAULT 0 1614#define AUTO_GREEN_FORCE_ON 1 1615#define AUTO_GREEN_FORCE_OFF 2 1616 int interrupt_mode; 1617#define INTR_MODE_INTX 0 --- 883 unchanged lines hidden --- |