Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions | Variables
be_cmds.h File Reference

Go to the source code of this file.

Data Structures

struct  be_sge
 
struct  be_mcc_wrb
 
struct  be_mcc_compl
 
struct  be_async_event_trailer
 
struct  be_async_event_link_state
 
struct  be_async_event_grp5_qos_link_speed
 
struct  be_async_event_grp5_cos_priority
 
struct  be_async_event_grp5_pvid_state
 
struct  be_mcc_mailbox
 
struct  be_cmd_req_hdr
 
struct  be_cmd_resp_hdr
 
struct  phys_addr
 
struct  amap_eq_context
 
struct  be_cmd_req_eq_create
 
struct  be_cmd_resp_eq_create
 
struct  mac_addr
 
struct  be_cmd_req_mac_query
 
struct  be_cmd_resp_mac_query
 
struct  be_cmd_req_pmac_add
 
struct  be_cmd_resp_pmac_add
 
struct  be_cmd_req_pmac_del
 
struct  amap_cq_context_be
 
struct  amap_cq_context_lancer
 
struct  be_cmd_req_cq_create
 
struct  be_cmd_resp_cq_create
 
struct  be_cmd_req_get_fat
 
struct  be_cmd_resp_get_fat
 
struct  amap_mcc_context_be
 
struct  amap_mcc_context_lancer
 
struct  be_cmd_req_mcc_create
 
struct  be_cmd_req_mcc_ext_create
 
struct  be_cmd_resp_mcc_create
 
struct  amap_tx_context
 
struct  be_cmd_req_eth_tx_create
 
struct  be_cmd_resp_eth_tx_create
 
struct  be_cmd_req_eth_rx_create
 
struct  be_cmd_resp_eth_rx_create
 
struct  be_cmd_req_q_destroy
 
struct  be_cmd_req_if_create
 
struct  be_cmd_resp_if_create
 
struct  be_cmd_req_if_destroy
 
struct  be_port_rxf_stats_v0
 
struct  be_rxf_stats_v0
 
struct  be_erx_stats_v0
 
struct  be_pmem_stats
 
struct  be_hw_stats_v0
 
struct  be_cmd_req_get_stats_v0
 
struct  be_cmd_resp_get_stats_v0
 
struct  lancer_pport_stats
 
struct  pport_stats_params
 
struct  lancer_cmd_req_pport_stats
 
struct  lancer_cmd_resp_pport_stats
 
struct  be_cmd_req_get_cntl_addnl_attribs
 
struct  be_cmd_resp_get_cntl_addnl_attribs
 
struct  be_cmd_req_vlan_config
 
struct  macaddr
 
struct  be_cmd_req_rx_filter
 
struct  be_cmd_req_link_status
 
struct  be_cmd_resp_link_status
 
struct  be_cmd_req_port_type
 
struct  be_cmd_resp_port_type
 
struct  be_cmd_resp_port_type::data
 
struct  be_cmd_req_get_fw_version
 
struct  be_cmd_resp_get_fw_version
 
struct  be_cmd_req_set_flow_control
 
struct  be_cmd_req_get_flow_control
 
struct  be_cmd_resp_get_flow_control
 
struct  be_cmd_req_modify_eq_delay
 
struct  be_cmd_resp_modify_eq_delay
 
struct  be_cmd_req_query_fw_cfg
 
struct  be_cmd_resp_query_fw_cfg
 
struct  be_cmd_req_rss_config
 
struct  be_cmd_req_enable_disable_beacon
 
struct  be_cmd_resp_enable_disable_beacon
 
struct  be_cmd_req_get_beacon_state
 
struct  be_cmd_resp_get_beacon_state
 
struct  flashrom_params
 
struct  be_cmd_write_flashrom
 
struct  amap_lancer_write_obj_context
 
struct  lancer_cmd_req_write_object
 
struct  lancer_cmd_resp_write_object
 
struct  lancer_cmd_req_read_object
 
struct  lancer_cmd_resp_read_object
 
struct  be_cmd_req_acpi_wol_magic_config
 
struct  be_cmd_req_acpi_wol_magic_config_v1
 
struct  be_cmd_resp_acpi_wol_magic_config_v1
 
struct  be_cmd_req_loopback_test
 
struct  be_cmd_resp_loopback_test
 
struct  be_cmd_req_set_lmode
 
struct  be_cmd_resp_set_lmode
 
struct  be_cmd_req_ddrdma_test
 
struct  be_cmd_resp_ddrdma_test
 
struct  be_cmd_req_seeprom_read
 
struct  be_cmd_resp_seeprom_read
 
struct  be_cmd_req_get_phy_info
 
struct  be_phy_info
 
struct  be_cmd_resp_get_phy_info
 
struct  be_cmd_req_set_qos
 
struct  be_cmd_resp_set_qos
 
struct  be_cmd_req_cntl_attribs
 
struct  be_cmd_resp_cntl_attribs
 
struct  be_cmd_req_set_func_cap
 
struct  be_cmd_resp_set_func_cap
 
struct  be_cmd_req_get_mac_list
 
struct  get_list_macaddr
 
struct  be_cmd_resp_get_mac_list
 
struct  be_cmd_req_set_mac_list
 
struct  amap_set_hsw_context
 
struct  be_cmd_req_set_hsw_config
 
struct  be_cmd_resp_set_hsw_config
 
struct  amap_get_hsw_req_context
 
struct  amap_get_hsw_resp_context
 
struct  be_cmd_req_get_hsw_config
 
struct  be_cmd_resp_get_hsw_config
 
struct  be_cmd_req_get_port_name
 
struct  be_cmd_resp_get_port_name
 
struct  be_port_rxf_stats_v1
 
struct  be_rxf_stats_v1
 
struct  be_erx_stats_v1
 
struct  be_hw_stats_v1
 
struct  be_cmd_req_get_stats_v1
 
struct  be_cmd_resp_get_stats_v1
 
struct  ext_fat_mode
 
struct  ext_fat_modules
 
struct  be_fat_conf_params
 
struct  be_cmd_req_get_ext_fat_caps
 
struct  be_cmd_resp_get_ext_fat_caps
 
struct  be_cmd_req_set_ext_fat_caps
 

Macros

#define MCC_WRB_EMBEDDED_MASK   1 /* bit 0 of dword 0*/
 
#define MCC_WRB_SGE_CNT_SHIFT   3 /* bits 3 - 7 of dword 0 */
 
#define MCC_WRB_SGE_CNT_MASK   0x1F /* bits 3 - 7 of dword 0 */
 
#define CQE_FLAGS_VALID_MASK   (1 << 31)
 
#define CQE_FLAGS_ASYNC_MASK   (1 << 30)
 
#define CQE_FLAGS_COMPLETED_MASK   (1 << 28)
 
#define CQE_FLAGS_CONSUMED_MASK   (1 << 27)
 
#define CQE_STATUS_COMPL_MASK   0xFFFF
 
#define CQE_STATUS_COMPL_SHIFT   0 /* bits 0 - 15 */
 
#define CQE_STATUS_EXTD_MASK   0xFFFF
 
#define CQE_STATUS_EXTD_SHIFT   16 /* bits 16 - 31 */
 
#define ASYNC_TRAILER_EVENT_CODE_SHIFT   8 /* bits 8 - 15 */
 
#define ASYNC_TRAILER_EVENT_CODE_MASK   0xFF
 
#define ASYNC_TRAILER_EVENT_TYPE_SHIFT   16
 
#define ASYNC_TRAILER_EVENT_TYPE_MASK   0xFF
 
#define ASYNC_EVENT_CODE_LINK_STATE   0x1
 
#define ASYNC_EVENT_CODE_GRP_5   0x5
 
#define ASYNC_EVENT_QOS_SPEED   0x1
 
#define ASYNC_EVENT_COS_PRIORITY   0x2
 
#define ASYNC_EVENT_PVID_STATE   0x3
 
#define LINK_STATUS_MASK   0x1
 
#define LOGICAL_LINK_STATUS_MASK   0x2
 
#define CMD_SUBSYSTEM_COMMON   0x1
 
#define CMD_SUBSYSTEM_ETH   0x3
 
#define CMD_SUBSYSTEM_LOWLEVEL   0xb
 
#define OPCODE_COMMON_NTWK_MAC_QUERY   1
 
#define OPCODE_COMMON_NTWK_MAC_SET   2
 
#define OPCODE_COMMON_NTWK_MULTICAST_SET   3
 
#define OPCODE_COMMON_NTWK_VLAN_CONFIG   4
 
#define OPCODE_COMMON_NTWK_LINK_STATUS_QUERY   5
 
#define OPCODE_COMMON_READ_FLASHROM   6
 
#define OPCODE_COMMON_WRITE_FLASHROM   7
 
#define OPCODE_COMMON_CQ_CREATE   12
 
#define OPCODE_COMMON_EQ_CREATE   13
 
#define OPCODE_COMMON_MCC_CREATE   21
 
#define OPCODE_COMMON_SET_QOS   28
 
#define OPCODE_COMMON_MCC_CREATE_EXT   90
 
#define OPCODE_COMMON_SEEPROM_READ   30
 
#define OPCODE_COMMON_GET_CNTL_ATTRIBUTES   32
 
#define OPCODE_COMMON_NTWK_RX_FILTER   34
 
#define OPCODE_COMMON_GET_FW_VERSION   35
 
#define OPCODE_COMMON_SET_FLOW_CONTROL   36
 
#define OPCODE_COMMON_GET_FLOW_CONTROL   37
 
#define OPCODE_COMMON_SET_FRAME_SIZE   39
 
#define OPCODE_COMMON_MODIFY_EQ_DELAY   41
 
#define OPCODE_COMMON_FIRMWARE_CONFIG   42
 
#define OPCODE_COMMON_NTWK_INTERFACE_CREATE   50
 
#define OPCODE_COMMON_NTWK_INTERFACE_DESTROY   51
 
#define OPCODE_COMMON_MCC_DESTROY   53
 
#define OPCODE_COMMON_CQ_DESTROY   54
 
#define OPCODE_COMMON_EQ_DESTROY   55
 
#define OPCODE_COMMON_QUERY_FIRMWARE_CONFIG   58
 
#define OPCODE_COMMON_NTWK_PMAC_ADD   59
 
#define OPCODE_COMMON_NTWK_PMAC_DEL   60
 
#define OPCODE_COMMON_FUNCTION_RESET   61
 
#define OPCODE_COMMON_MANAGE_FAT   68
 
#define OPCODE_COMMON_ENABLE_DISABLE_BEACON   69
 
#define OPCODE_COMMON_GET_BEACON_STATE   70
 
#define OPCODE_COMMON_READ_TRANSRECV_DATA   73
 
#define OPCODE_COMMON_GET_PORT_NAME   77
 
#define OPCODE_COMMON_GET_PHY_DETAILS   102
 
#define OPCODE_COMMON_SET_DRIVER_FUNCTION_CAP   103
 
#define OPCODE_COMMON_GET_CNTL_ADDITIONAL_ATTRIBUTES   121
 
#define OPCODE_COMMON_GET_EXT_FAT_CAPABILITES   125
 
#define OPCODE_COMMON_SET_EXT_FAT_CAPABILITES   126
 
#define OPCODE_COMMON_GET_MAC_LIST   147
 
#define OPCODE_COMMON_SET_MAC_LIST   148
 
#define OPCODE_COMMON_GET_HSW_CONFIG   152
 
#define OPCODE_COMMON_SET_HSW_CONFIG   153
 
#define OPCODE_COMMON_READ_OBJECT   171
 
#define OPCODE_COMMON_WRITE_OBJECT   172
 
#define OPCODE_ETH_RSS_CONFIG   1
 
#define OPCODE_ETH_ACPI_CONFIG   2
 
#define OPCODE_ETH_PROMISCUOUS   3
 
#define OPCODE_ETH_GET_STATISTICS   4
 
#define OPCODE_ETH_TX_CREATE   7
 
#define OPCODE_ETH_RX_CREATE   8
 
#define OPCODE_ETH_TX_DESTROY   9
 
#define OPCODE_ETH_RX_DESTROY   10
 
#define OPCODE_ETH_ACPI_WOL_MAGIC_CONFIG   12
 
#define OPCODE_ETH_GET_PPORT_STATS   18
 
#define OPCODE_LOWLEVEL_HOST_DDR_DMA   17
 
#define OPCODE_LOWLEVEL_LOOPBACK_TEST   18
 
#define OPCODE_LOWLEVEL_SET_LOOPBACK_MODE   19
 
#define RESP_HDR_INFO_OPCODE_SHIFT   0 /* bits 0 - 7 */
 
#define RESP_HDR_INFO_SUBSYS_SHIFT   8 /* bits 8 - 15 */
 
#define BE_ETH_TX_RING_TYPE_STANDARD   2
 
#define BE_ULP1_NUM   1
 
#define BE_MAX_MC   64 /* set mcast promisc if > 64 */
 
#define BE_FUNCTION_CAPS_RSS   0x2
 
#define RDMA_ENABLED   0x4
 
#define FLEX10_MODE   0x400
 
#define VNIC_MODE   0x20000
 
#define UMC_ENABLED   0x1000000
 
#define RSS_ENABLE_NONE   0x0
 
#define RSS_ENABLE_IPV4   0x1
 
#define RSS_ENABLE_TCP_IPV4   0x2
 
#define RSS_ENABLE_IPV6   0x4
 
#define RSS_ENABLE_TCP_IPV6   0x8
 
#define RSS_ENABLE_UDP_IPV4   0x10
 
#define RSS_ENABLE_UDP_IPV6   0x20
 
#define BEACON_STATE_ENABLED   0x1
 
#define BEACON_STATE_DISABLED   0x0
 
#define LANCER_NO_RESET_NEEDED   0x00
 
#define LANCER_FW_RESET_NEEDED   0x02
 
#define LANCER_READ_FILE_CHUNK   (32*1024)
 
#define LANCER_READ_FILE_EOF_MASK   0x80000000
 
#define LANCER_FW_DUMP_FILE   "/dbg/dump.bin"
 
#define LANCER_VPD_PF_FILE   "/vpd/ntr_pf.vpd"
 
#define LANCER_VPD_VF_FILE   "/vpd/ntr_vf.vpd"
 
#define BE_GET_WOL_CAP   2
 
#define BE_WOL_CAP   0x1
 
#define BE_PME_D0_CAP   0x8
 
#define BE_PME_D1_CAP   0x10
 
#define BE_PME_D2_CAP   0x20
 
#define BE_PME_D3HOT_CAP   0x40
 
#define BE_PME_D3COLD_CAP   0x80
 
#define BE_READ_SEEPROM_LEN   1024
 
#define BE_SUPPORTED_SPEED_NONE   0
 
#define BE_SUPPORTED_SPEED_10MBPS   1
 
#define BE_SUPPORTED_SPEED_100MBPS   2
 
#define BE_SUPPORTED_SPEED_1GBPS   4
 
#define BE_SUPPORTED_SPEED_10GBPS   8
 
#define BE_AN_EN   0x2
 
#define BE_PAUSE_SYM_EN   0x80
 
#define SPEED_DEFAULT   0x0
 
#define SPEED_FORCED_10GB   0x1
 
#define SPEED_FORCED_1GB   0x2
 
#define SPEED_AUTONEG_10GB   0x3
 
#define SPEED_AUTONEG_1GB   0x4
 
#define SPEED_AUTONEG_100MB   0x5
 
#define SPEED_AUTONEG_10GB_1GB   0x6
 
#define SPEED_AUTONEG_10GB_1GB_100MB   0x7
 
#define SPEED_AUTONEG_1GB_100MB   0x8
 
#define SPEED_AUTONEG_10MB   0x9
 
#define SPEED_AUTONEG_1GB_100MB_10MB   0xa
 
#define SPEED_AUTONEG_100MB_10MB   0xb
 
#define SPEED_FORCED_100MB   0xc
 
#define SPEED_FORCED_10MB   0xd
 
#define BE_QOS_BITS_NIC   1
 
#define CAPABILITY_SW_TIMESTAMPS   2
 
#define CAPABILITY_BE3_NATIVE_ERX_API   4
 
#define BE_MAX_MAC   64
 
#define BE_TXP_SW_SZ   48
 
#define MAX_MODULES   27
 
#define MAX_MODES   4
 
#define MODE_UART   0
 
#define FW_LOG_LEVEL_DEFAULT   48
 
#define FW_LOG_LEVEL_FATAL   64
 

Enumerations

enum  {
  MCC_STATUS_SUCCESS = 0, MCC_STATUS_FAILED = 1, MCC_STATUS_ILLEGAL_REQUEST = 2, MCC_STATUS_ILLEGAL_FIELD = 3,
  MCC_STATUS_INSUFFICIENT_BUFFER = 4, MCC_STATUS_UNAUTHORIZED_REQUEST = 5, MCC_STATUS_NOT_SUPPORTED = 66
}
 
enum  { LINK_DOWN = 0x0, LINK_UP = 0x1 }
 
enum  { MAC_ADDRESS_TYPE_STORAGE = 0x0, MAC_ADDRESS_TYPE_NETWORK = 0x1, MAC_ADDRESS_TYPE_PD = 0x2, MAC_ADDRESS_TYPE_MANAGEMENT = 0x3 }
 
enum  {
  QTYPE_EQ = 1, QTYPE_CQ, QTYPE_TXQ, QTYPE_RXQ,
  QTYPE_MCCQ
}
 
enum  be_if_flags {
  BE_IF_FLAGS_RSS = 0x4, BE_IF_FLAGS_PROMISCUOUS = 0x8, BE_IF_FLAGS_BROADCAST = 0x10, BE_IF_FLAGS_UNTAGGED = 0x20,
  BE_IF_FLAGS_ULP = 0x40, BE_IF_FLAGS_VLAN_PROMISCUOUS = 0x80, BE_IF_FLAGS_VLAN = 0x100, BE_IF_FLAGS_MCAST_PROMISCUOUS = 0x200,
  BE_IF_FLAGS_PASS_L2_ERRORS = 0x400, BE_IF_FLAGS_PASS_L3L4_ERRORS = 0x800, BE_IF_FLAGS_MULTICAST = 0x1000
}
 
enum  { PHY_LINK_DUPLEX_NONE = 0x0, PHY_LINK_DUPLEX_HALF = 0x1, PHY_LINK_DUPLEX_FULL = 0x2 }
 
enum  {
  PHY_LINK_SPEED_ZERO = 0x0, PHY_LINK_SPEED_10MBPS = 0x1, PHY_LINK_SPEED_100MBPS = 0x2, PHY_LINK_SPEED_1GBPS = 0x3,
  PHY_LINK_SPEED_10GBPS = 0x4
}
 
enum  { TR_PAGE_A0 = 0xa0, TR_PAGE_A2 = 0xa2 }
 
enum  {
  PHY_TYPE_CX4_10GB = 0, PHY_TYPE_XFP_10GB, PHY_TYPE_SFP_1GB, PHY_TYPE_SFP_PLUS_10GB,
  PHY_TYPE_KR_10GB, PHY_TYPE_KX4_10GB, PHY_TYPE_BASET_10GB, PHY_TYPE_BASET_1GB,
  PHY_TYPE_BASEX_1GB, PHY_TYPE_SGMII, PHY_TYPE_DISABLED = 255
}
 

Functions

int be_pci_fnum_get (struct be_adapter *adapter)
 
int be_fw_wait_ready (struct be_adapter *adapter)
 
int be_cmd_mac_addr_query (struct be_adapter *adapter, u8 *mac_addr, bool permanent, u32 if_handle, u32 pmac_id)
 
int be_cmd_pmac_add (struct be_adapter *adapter, u8 *mac_addr, u32 if_id, u32 *pmac_id, u32 domain)
 
int be_cmd_pmac_del (struct be_adapter *adapter, u32 if_id, int pmac_id, u32 domain)
 
int be_cmd_if_create (struct be_adapter *adapter, u32 cap_flags, u32 en_flags, u32 *if_handle, u32 domain)
 
int be_cmd_if_destroy (struct be_adapter *adapter, int if_handle, u32 domain)
 
int be_cmd_eq_create (struct be_adapter *adapter, struct be_queue_info *eq, int eq_delay)
 
int be_cmd_cq_create (struct be_adapter *adapter, struct be_queue_info *cq, struct be_queue_info *eq, bool no_delay, int num_cqe_dma_coalesce)
 
int be_cmd_mccq_create (struct be_adapter *adapter, struct be_queue_info *mccq, struct be_queue_info *cq)
 
int be_cmd_txq_create (struct be_adapter *adapter, struct be_queue_info *txq, struct be_queue_info *cq)
 
int be_cmd_rxq_create (struct be_adapter *adapter, struct be_queue_info *rxq, u16 cq_id, u16 frag_size, u32 if_id, u32 rss, u8 *rss_id)
 
int be_cmd_q_destroy (struct be_adapter *adapter, struct be_queue_info *q, int type)
 
int be_cmd_rxq_destroy (struct be_adapter *adapter, struct be_queue_info *q)
 
int be_cmd_link_status_query (struct be_adapter *adapter, u16 *link_speed, u8 *link_status, u32 dom)
 
int be_cmd_reset (struct be_adapter *adapter)
 
int be_cmd_get_stats (struct be_adapter *adapter, struct be_dma_mem *nonemb_cmd)
 
int lancer_cmd_get_pport_stats (struct be_adapter *adapter, struct be_dma_mem *nonemb_cmd)
 
int be_cmd_get_fw_ver (struct be_adapter *adapter, char *fw_ver, char *fw_on_flash)
 
int be_cmd_modify_eqd (struct be_adapter *adapter, u32 eq_id, u32 eqd)
 
int be_cmd_vlan_config (struct be_adapter *adapter, u32 if_id, u16 *vtag_array, u32 num, bool untagged, bool promiscuous)
 
int be_cmd_rx_filter (struct be_adapter *adapter, u32 flags, u32 status)
 
int be_cmd_set_flow_control (struct be_adapter *adapter, u32 tx_fc, u32 rx_fc)
 
int be_cmd_get_flow_control (struct be_adapter *adapter, u32 *tx_fc, u32 *rx_fc)
 
int be_cmd_query_fw_cfg (struct be_adapter *adapter, u32 *port_num, u32 *function_mode, u32 *function_caps)
 
int be_cmd_reset_function (struct be_adapter *adapter)
 
int be_cmd_rss_config (struct be_adapter *adapter, u8 *rsstable, u16 table_size)
 
int be_process_mcc (struct be_adapter *adapter)
 
int be_cmd_set_beacon_state (struct be_adapter *adapter, u8 port_num, u8 beacon, u8 status, u8 state)
 
int be_cmd_get_beacon_state (struct be_adapter *adapter, u8 port_num, u32 *state)
 
int be_cmd_write_flashrom (struct be_adapter *adapter, struct be_dma_mem *cmd, u32 flash_oper, u32 flash_opcode, u32 buf_size)
 
int lancer_cmd_write_object (struct be_adapter *adapter, struct be_dma_mem *cmd, u32 data_size, u32 data_offset, const char *obj_name, u32 *data_written, u8 *change_status, u8 *addn_status)
 
int lancer_cmd_read_object (struct be_adapter *adapter, struct be_dma_mem *cmd, u32 data_size, u32 data_offset, const char *obj_name, u32 *data_read, u32 *eof, u8 *addn_status)
 
int be_cmd_get_flash_crc (struct be_adapter *adapter, u8 *flashed_crc, int offset)
 
int be_cmd_enable_magic_wol (struct be_adapter *adapter, u8 *mac, struct be_dma_mem *nonemb_cmd)
 
int be_cmd_fw_init (struct be_adapter *adapter)
 
int be_cmd_fw_clean (struct be_adapter *adapter)
 
void be_async_mcc_enable (struct be_adapter *adapter)
 
void be_async_mcc_disable (struct be_adapter *adapter)
 
int be_cmd_loopback_test (struct be_adapter *adapter, u32 port_num, u32 loopback_type, u32 pkt_size, u32 num_pkts, u64 pattern)
 
int be_cmd_ddr_dma_test (struct be_adapter *adapter, u64 pattern, u32 byte_cnt, struct be_dma_mem *cmd)
 
int be_cmd_get_seeprom_data (struct be_adapter *adapter, struct be_dma_mem *nonemb_cmd)
 
int be_cmd_set_loopback (struct be_adapter *adapter, u8 port_num, u8 loopback_type, u8 enable)
 
int be_cmd_get_phy_info (struct be_adapter *adapter)
 
int be_cmd_set_qos (struct be_adapter *adapter, u32 bps, u32 domain)
 
void be_detect_error (struct be_adapter *adapter)
 
int be_cmd_get_die_temperature (struct be_adapter *adapter)
 
int be_cmd_get_cntl_attributes (struct be_adapter *adapter)
 
int be_cmd_req_native_mode (struct be_adapter *adapter)
 
int be_cmd_get_reg_len (struct be_adapter *adapter, u32 *log_size)
 
void be_cmd_get_regs (struct be_adapter *adapter, u32 buf_len, void *buf)
 
int be_cmd_get_mac_from_list (struct be_adapter *adapter, u8 *mac, bool *pmac_id_active, u32 *pmac_id, u8 domain)
 
int be_cmd_set_mac_list (struct be_adapter *adapter, u8 *mac_array, u8 mac_count, u32 domain)
 
int be_cmd_set_hsw_config (struct be_adapter *adapter, u16 pvid, u32 domain, u16 intf_id)
 
int be_cmd_get_hsw_config (struct be_adapter *adapter, u16 *pvid, u32 domain, u16 intf_id)
 
int be_cmd_get_acpi_wol_cap (struct be_adapter *adapter)
 
int be_cmd_get_ext_fat_capabilites (struct be_adapter *adapter, struct be_dma_mem *cmd)
 
int be_cmd_set_ext_fat_capabilites (struct be_adapter *adapter, struct be_dma_mem *cmd, struct be_fat_conf_params *cfgs)
 
int lancer_wait_ready (struct be_adapter *adapter)
 
int lancer_test_and_set_rdy_state (struct be_adapter *adapter)
 
int be_cmd_query_port_name (struct be_adapter *adapter, u8 *port_name)
 

Variables

struct be_async_event_link_state __packed
 

Macro Definition Documentation

#define ASYNC_EVENT_CODE_GRP_5   0x5

Definition at line 83 of file be_cmds.h.

#define ASYNC_EVENT_CODE_LINK_STATE   0x1

Definition at line 82 of file be_cmds.h.

#define ASYNC_EVENT_COS_PRIORITY   0x2

Definition at line 85 of file be_cmds.h.

#define ASYNC_EVENT_PVID_STATE   0x3

Definition at line 86 of file be_cmds.h.

#define ASYNC_EVENT_QOS_SPEED   0x1

Definition at line 84 of file be_cmds.h.

#define ASYNC_TRAILER_EVENT_CODE_MASK   0xFF

Definition at line 79 of file be_cmds.h.

#define ASYNC_TRAILER_EVENT_CODE_SHIFT   8 /* bits 8 - 15 */

Definition at line 78 of file be_cmds.h.

#define ASYNC_TRAILER_EVENT_TYPE_MASK   0xFF

Definition at line 81 of file be_cmds.h.

#define ASYNC_TRAILER_EVENT_TYPE_SHIFT   16

Definition at line 80 of file be_cmds.h.

#define BE_AN_EN   0x2

Definition at line 1348 of file be_cmds.h.

#define BE_ETH_TX_RING_TYPE_STANDARD   2

Definition at line 467 of file be_cmds.h.

#define BE_FUNCTION_CAPS_RSS   0x2

Definition at line 1063 of file be_cmds.h.

#define BE_GET_WOL_CAP   2

Definition at line 1254 of file be_cmds.h.

#define BE_MAX_MAC   64

Definition at line 1433 of file be_cmds.h.

#define BE_MAX_MC   64 /* set mcast promisc if > 64 */

Definition at line 928 of file be_cmds.h.

#define BE_PAUSE_SYM_EN   0x80

Definition at line 1349 of file be_cmds.h.

#define BE_PME_D0_CAP   0x8

Definition at line 1257 of file be_cmds.h.

#define BE_PME_D1_CAP   0x10

Definition at line 1258 of file be_cmds.h.

#define BE_PME_D2_CAP   0x20

Definition at line 1259 of file be_cmds.h.

#define BE_PME_D3COLD_CAP   0x80

Definition at line 1261 of file be_cmds.h.

#define BE_PME_D3HOT_CAP   0x40

Definition at line 1260 of file be_cmds.h.

#define BE_QOS_BITS_NIC   1

Definition at line 1390 of file be_cmds.h.

#define BE_READ_SEEPROM_LEN   1024

Definition at line 1317 of file be_cmds.h.

#define BE_SUPPORTED_SPEED_100MBPS   2

Definition at line 1344 of file be_cmds.h.

#define BE_SUPPORTED_SPEED_10GBPS   8

Definition at line 1346 of file be_cmds.h.

#define BE_SUPPORTED_SPEED_10MBPS   1

Definition at line 1343 of file be_cmds.h.

#define BE_SUPPORTED_SPEED_1GBPS   4

Definition at line 1345 of file be_cmds.h.

#define BE_SUPPORTED_SPEED_NONE   0

Definition at line 1342 of file be_cmds.h.

#define BE_TXP_SW_SZ   48

Definition at line 1535 of file be_cmds.h.

#define BE_ULP1_NUM   1

Definition at line 468 of file be_cmds.h.

#define BE_WOL_CAP   0x1

Definition at line 1256 of file be_cmds.h.

#define BEACON_STATE_DISABLED   0x0

Definition at line 1120 of file be_cmds.h.

#define BEACON_STATE_ENABLED   0x1

Definition at line 1119 of file be_cmds.h.

#define CAPABILITY_BE3_NATIVE_ERX_API   4

Definition at line 1416 of file be_cmds.h.

#define CAPABILITY_SW_TIMESTAMPS   2

Definition at line 1415 of file be_cmds.h.

#define CMD_SUBSYSTEM_COMMON   0x1

Definition at line 152 of file be_cmds.h.

#define CMD_SUBSYSTEM_ETH   0x3

Definition at line 153 of file be_cmds.h.

#define CMD_SUBSYSTEM_LOWLEVEL   0xb

Definition at line 154 of file be_cmds.h.

#define CQE_FLAGS_ASYNC_MASK   (1 << 30)

Definition at line 48 of file be_cmds.h.

#define CQE_FLAGS_COMPLETED_MASK   (1 << 28)

Definition at line 49 of file be_cmds.h.

#define CQE_FLAGS_CONSUMED_MASK   (1 << 27)

Definition at line 50 of file be_cmds.h.

#define CQE_FLAGS_VALID_MASK   (1 << 31)

Definition at line 47 of file be_cmds.h.

#define CQE_STATUS_COMPL_MASK   0xFFFF

Definition at line 63 of file be_cmds.h.

#define CQE_STATUS_COMPL_SHIFT   0 /* bits 0 - 15 */

Definition at line 64 of file be_cmds.h.

#define CQE_STATUS_EXTD_MASK   0xFFFF

Definition at line 65 of file be_cmds.h.

#define CQE_STATUS_EXTD_SHIFT   16 /* bits 16 - 31 */

Definition at line 66 of file be_cmds.h.

#define FLEX10_MODE   0x400

Definition at line 1068 of file be_cmds.h.

#define FW_LOG_LEVEL_DEFAULT   48

Definition at line 1642 of file be_cmds.h.

#define FW_LOG_LEVEL_FATAL   64

Definition at line 1643 of file be_cmds.h.

#define LANCER_FW_DUMP_FILE   "/dbg/dump.bin"

Definition at line 1200 of file be_cmds.h.

#define LANCER_FW_RESET_NEEDED   0x02

Definition at line 1181 of file be_cmds.h.

#define LANCER_NO_RESET_NEEDED   0x00

Definition at line 1180 of file be_cmds.h.

#define LANCER_READ_FILE_CHUNK   (32*1024)

Definition at line 1197 of file be_cmds.h.

#define LANCER_READ_FILE_EOF_MASK   0x80000000

Definition at line 1198 of file be_cmds.h.

#define LANCER_VPD_PF_FILE   "/vpd/ntr_pf.vpd"

Definition at line 1201 of file be_cmds.h.

#define LANCER_VPD_VF_FILE   "/vpd/ntr_vf.vpd"

Definition at line 1202 of file be_cmds.h.

#define LINK_STATUS_MASK   0x1

Definition at line 95 of file be_cmds.h.

#define LOGICAL_LINK_STATUS_MASK   0x2

Definition at line 96 of file be_cmds.h.

#define MAX_MODES   4

Definition at line 1640 of file be_cmds.h.

#define MAX_MODULES   27

Definition at line 1639 of file be_cmds.h.

#define MCC_WRB_EMBEDDED_MASK   1 /* bit 0 of dword 0*/

Definition at line 32 of file be_cmds.h.

#define MCC_WRB_SGE_CNT_MASK   0x1F /* bits 3 - 7 of dword 0 */

Definition at line 34 of file be_cmds.h.

#define MCC_WRB_SGE_CNT_SHIFT   3 /* bits 3 - 7 of dword 0 */

Definition at line 33 of file be_cmds.h.

#define MODE_UART   0

Definition at line 1641 of file be_cmds.h.

#define OPCODE_COMMON_CQ_CREATE   12

Definition at line 163 of file be_cmds.h.

#define OPCODE_COMMON_CQ_DESTROY   54

Definition at line 180 of file be_cmds.h.

#define OPCODE_COMMON_ENABLE_DISABLE_BEACON   69

Definition at line 187 of file be_cmds.h.

#define OPCODE_COMMON_EQ_CREATE   13

Definition at line 164 of file be_cmds.h.

#define OPCODE_COMMON_EQ_DESTROY   55

Definition at line 181 of file be_cmds.h.

#define OPCODE_COMMON_FIRMWARE_CONFIG   42

Definition at line 176 of file be_cmds.h.

#define OPCODE_COMMON_FUNCTION_RESET   61

Definition at line 185 of file be_cmds.h.

#define OPCODE_COMMON_GET_BEACON_STATE   70

Definition at line 188 of file be_cmds.h.

#define OPCODE_COMMON_GET_CNTL_ADDITIONAL_ATTRIBUTES   121

Definition at line 193 of file be_cmds.h.

#define OPCODE_COMMON_GET_CNTL_ATTRIBUTES   32

Definition at line 169 of file be_cmds.h.

#define OPCODE_COMMON_GET_EXT_FAT_CAPABILITES   125

Definition at line 194 of file be_cmds.h.

#define OPCODE_COMMON_GET_FLOW_CONTROL   37

Definition at line 173 of file be_cmds.h.

#define OPCODE_COMMON_GET_FW_VERSION   35

Definition at line 171 of file be_cmds.h.

#define OPCODE_COMMON_GET_HSW_CONFIG   152

Definition at line 198 of file be_cmds.h.

#define OPCODE_COMMON_GET_MAC_LIST   147

Definition at line 196 of file be_cmds.h.

#define OPCODE_COMMON_GET_PHY_DETAILS   102

Definition at line 191 of file be_cmds.h.

#define OPCODE_COMMON_GET_PORT_NAME   77

Definition at line 190 of file be_cmds.h.

#define OPCODE_COMMON_MANAGE_FAT   68

Definition at line 186 of file be_cmds.h.

#define OPCODE_COMMON_MCC_CREATE   21

Definition at line 165 of file be_cmds.h.

#define OPCODE_COMMON_MCC_CREATE_EXT   90

Definition at line 167 of file be_cmds.h.

#define OPCODE_COMMON_MCC_DESTROY   53

Definition at line 179 of file be_cmds.h.

#define OPCODE_COMMON_MODIFY_EQ_DELAY   41

Definition at line 175 of file be_cmds.h.

#define OPCODE_COMMON_NTWK_INTERFACE_CREATE   50

Definition at line 177 of file be_cmds.h.

#define OPCODE_COMMON_NTWK_INTERFACE_DESTROY   51

Definition at line 178 of file be_cmds.h.

#define OPCODE_COMMON_NTWK_LINK_STATUS_QUERY   5

Definition at line 160 of file be_cmds.h.

#define OPCODE_COMMON_NTWK_MAC_QUERY   1

Definition at line 156 of file be_cmds.h.

#define OPCODE_COMMON_NTWK_MAC_SET   2

Definition at line 157 of file be_cmds.h.

#define OPCODE_COMMON_NTWK_MULTICAST_SET   3

Definition at line 158 of file be_cmds.h.

#define OPCODE_COMMON_NTWK_PMAC_ADD   59

Definition at line 183 of file be_cmds.h.

#define OPCODE_COMMON_NTWK_PMAC_DEL   60

Definition at line 184 of file be_cmds.h.

#define OPCODE_COMMON_NTWK_RX_FILTER   34

Definition at line 170 of file be_cmds.h.

#define OPCODE_COMMON_NTWK_VLAN_CONFIG   4

Definition at line 159 of file be_cmds.h.

#define OPCODE_COMMON_QUERY_FIRMWARE_CONFIG   58

Definition at line 182 of file be_cmds.h.

#define OPCODE_COMMON_READ_FLASHROM   6

Definition at line 161 of file be_cmds.h.

#define OPCODE_COMMON_READ_OBJECT   171

Definition at line 200 of file be_cmds.h.

#define OPCODE_COMMON_READ_TRANSRECV_DATA   73

Definition at line 189 of file be_cmds.h.

#define OPCODE_COMMON_SEEPROM_READ   30

Definition at line 168 of file be_cmds.h.

#define OPCODE_COMMON_SET_DRIVER_FUNCTION_CAP   103

Definition at line 192 of file be_cmds.h.

#define OPCODE_COMMON_SET_EXT_FAT_CAPABILITES   126

Definition at line 195 of file be_cmds.h.

#define OPCODE_COMMON_SET_FLOW_CONTROL   36

Definition at line 172 of file be_cmds.h.

#define OPCODE_COMMON_SET_FRAME_SIZE   39

Definition at line 174 of file be_cmds.h.

#define OPCODE_COMMON_SET_HSW_CONFIG   153

Definition at line 199 of file be_cmds.h.

#define OPCODE_COMMON_SET_MAC_LIST   148

Definition at line 197 of file be_cmds.h.

#define OPCODE_COMMON_SET_QOS   28

Definition at line 166 of file be_cmds.h.

#define OPCODE_COMMON_WRITE_FLASHROM   7

Definition at line 162 of file be_cmds.h.

#define OPCODE_COMMON_WRITE_OBJECT   172

Definition at line 201 of file be_cmds.h.

#define OPCODE_ETH_ACPI_CONFIG   2

Definition at line 204 of file be_cmds.h.

#define OPCODE_ETH_ACPI_WOL_MAGIC_CONFIG   12

Definition at line 211 of file be_cmds.h.

#define OPCODE_ETH_GET_PPORT_STATS   18

Definition at line 212 of file be_cmds.h.

#define OPCODE_ETH_GET_STATISTICS   4

Definition at line 206 of file be_cmds.h.

#define OPCODE_ETH_PROMISCUOUS   3

Definition at line 205 of file be_cmds.h.

#define OPCODE_ETH_RSS_CONFIG   1

Definition at line 203 of file be_cmds.h.

#define OPCODE_ETH_RX_CREATE   8

Definition at line 208 of file be_cmds.h.

#define OPCODE_ETH_RX_DESTROY   10

Definition at line 210 of file be_cmds.h.

#define OPCODE_ETH_TX_CREATE   7

Definition at line 207 of file be_cmds.h.

#define OPCODE_ETH_TX_DESTROY   9

Definition at line 209 of file be_cmds.h.

#define OPCODE_LOWLEVEL_HOST_DDR_DMA   17

Definition at line 214 of file be_cmds.h.

#define OPCODE_LOWLEVEL_LOOPBACK_TEST   18

Definition at line 215 of file be_cmds.h.

#define OPCODE_LOWLEVEL_SET_LOOPBACK_MODE   19

Definition at line 216 of file be_cmds.h.

#define RDMA_ENABLED   0x4

Definition at line 1067 of file be_cmds.h.

#define RESP_HDR_INFO_OPCODE_SHIFT   0 /* bits 0 - 7 */

Definition at line 229 of file be_cmds.h.

#define RESP_HDR_INFO_SUBSYS_SHIFT   8 /* bits 8 - 15 */

Definition at line 230 of file be_cmds.h.

#define RSS_ENABLE_IPV4   0x1

Definition at line 1099 of file be_cmds.h.

#define RSS_ENABLE_IPV6   0x4

Definition at line 1101 of file be_cmds.h.

#define RSS_ENABLE_NONE   0x0

Definition at line 1098 of file be_cmds.h.

#define RSS_ENABLE_TCP_IPV4   0x2

Definition at line 1100 of file be_cmds.h.

#define RSS_ENABLE_TCP_IPV6   0x8

Definition at line 1102 of file be_cmds.h.

#define RSS_ENABLE_UDP_IPV4   0x10

Definition at line 1103 of file be_cmds.h.

#define RSS_ENABLE_UDP_IPV6   0x20

Definition at line 1104 of file be_cmds.h.

#define SPEED_AUTONEG_100MB   0x5

Definition at line 1357 of file be_cmds.h.

#define SPEED_AUTONEG_100MB_10MB   0xb

Definition at line 1363 of file be_cmds.h.

#define SPEED_AUTONEG_10GB   0x3

Definition at line 1355 of file be_cmds.h.

#define SPEED_AUTONEG_10GB_1GB   0x6

Definition at line 1358 of file be_cmds.h.

#define SPEED_AUTONEG_10GB_1GB_100MB   0x7

Definition at line 1359 of file be_cmds.h.

#define SPEED_AUTONEG_10MB   0x9

Definition at line 1361 of file be_cmds.h.

#define SPEED_AUTONEG_1GB   0x4

Definition at line 1356 of file be_cmds.h.

#define SPEED_AUTONEG_1GB_100MB   0x8

Definition at line 1360 of file be_cmds.h.

#define SPEED_AUTONEG_1GB_100MB_10MB   0xa

Definition at line 1362 of file be_cmds.h.

#define SPEED_DEFAULT   0x0

Definition at line 1352 of file be_cmds.h.

#define SPEED_FORCED_100MB   0xc

Definition at line 1364 of file be_cmds.h.

#define SPEED_FORCED_10GB   0x1

Definition at line 1353 of file be_cmds.h.

#define SPEED_FORCED_10MB   0xd

Definition at line 1365 of file be_cmds.h.

#define SPEED_FORCED_1GB   0x2

Definition at line 1354 of file be_cmds.h.

#define UMC_ENABLED   0x1000000

Definition at line 1070 of file be_cmds.h.

#define VNIC_MODE   0x20000

Definition at line 1069 of file be_cmds.h.

Enumeration Type Documentation

anonymous enum
Enumerator:
MCC_STATUS_SUCCESS 
MCC_STATUS_FAILED 
MCC_STATUS_ILLEGAL_REQUEST 
MCC_STATUS_ILLEGAL_FIELD 
MCC_STATUS_INSUFFICIENT_BUFFER 
MCC_STATUS_UNAUTHORIZED_REQUEST 
MCC_STATUS_NOT_SUPPORTED 

Definition at line 53 of file be_cmds.h.

anonymous enum
Enumerator:
LINK_DOWN 
LINK_UP 

Definition at line 91 of file be_cmds.h.

anonymous enum
Enumerator:
MAC_ADDRESS_TYPE_STORAGE 
MAC_ADDRESS_TYPE_NETWORK 
MAC_ADDRESS_TYPE_PD 
MAC_ADDRESS_TYPE_MANAGEMENT 

Definition at line 293 of file be_cmds.h.

anonymous enum
Enumerator:
QTYPE_EQ 
QTYPE_CQ 
QTYPE_TXQ 
QTYPE_RXQ 
QTYPE_MCCQ 

Definition at line 534 of file be_cmds.h.

anonymous enum
Enumerator:
PHY_LINK_DUPLEX_NONE 
PHY_LINK_DUPLEX_HALF 
PHY_LINK_DUPLEX_FULL 

Definition at line 950 of file be_cmds.h.

anonymous enum
Enumerator:
PHY_LINK_SPEED_ZERO 
PHY_LINK_SPEED_10MBPS 
PHY_LINK_SPEED_100MBPS 
PHY_LINK_SPEED_1GBPS 
PHY_LINK_SPEED_10GBPS 

Definition at line 956 of file be_cmds.h.

anonymous enum
Enumerator:
TR_PAGE_A0 
TR_PAGE_A2 

Definition at line 985 of file be_cmds.h.

anonymous enum
Enumerator:
PHY_TYPE_CX4_10GB 
PHY_TYPE_XFP_10GB 
PHY_TYPE_SFP_1GB 
PHY_TYPE_SFP_PLUS_10GB 
PHY_TYPE_KR_10GB 
PHY_TYPE_KX4_10GB 
PHY_TYPE_BASET_10GB 
PHY_TYPE_BASET_1GB 
PHY_TYPE_BASEX_1GB 
PHY_TYPE_SGMII 
PHY_TYPE_DISABLED 

Definition at line 1328 of file be_cmds.h.

Enumerator:
BE_IF_FLAGS_RSS 
BE_IF_FLAGS_PROMISCUOUS 
BE_IF_FLAGS_BROADCAST 
BE_IF_FLAGS_UNTAGGED 
BE_IF_FLAGS_ULP 
BE_IF_FLAGS_VLAN_PROMISCUOUS 
BE_IF_FLAGS_VLAN 
BE_IF_FLAGS_MCAST_PROMISCUOUS 
BE_IF_FLAGS_PASS_L2_ERRORS 
BE_IF_FLAGS_PASS_L3L4_ERRORS 
BE_IF_FLAGS_MULTICAST 

Definition at line 551 of file be_cmds.h.

Function Documentation

void be_async_mcc_disable ( struct be_adapter adapter)

Definition at line 250 of file be_cmds.c.

void be_async_mcc_enable ( struct be_adapter adapter)

Definition at line 240 of file be_cmds.c.

int be_cmd_cq_create ( struct be_adapter adapter,
struct be_queue_info cq,
struct be_queue_info eq,
bool  no_delay,
int  num_cqe_dma_coalesce 
)

Definition at line 829 of file be_cmds.c.

int be_cmd_ddr_dma_test ( struct be_adapter adapter,
u64  pattern,
u32  byte_cnt,
struct be_dma_mem cmd 
)

Definition at line 2198 of file be_cmds.c.

int be_cmd_enable_magic_wol ( struct be_adapter adapter,
u8 mac,
struct be_dma_mem nonemb_cmd 
)

Definition at line 2099 of file be_cmds.c.

int be_cmd_eq_create ( struct be_adapter adapter,
struct be_queue_info eq,
int  eq_delay 
)

Definition at line 676 of file be_cmds.c.

int be_cmd_fw_clean ( struct be_adapter adapter)

Definition at line 649 of file be_cmds.c.

int be_cmd_fw_init ( struct be_adapter adapter)

Definition at line 619 of file be_cmds.c.

int be_cmd_get_acpi_wol_cap ( struct be_adapter adapter)

Definition at line 2646 of file be_cmds.c.

int be_cmd_get_beacon_state ( struct be_adapter adapter,
u8  port_num,
u32 state 
)

Definition at line 1874 of file be_cmds.c.

int be_cmd_get_cntl_attributes ( struct be_adapter adapter)

Definition at line 2351 of file be_cmds.c.

int be_cmd_get_die_temperature ( struct be_adapter adapter)

Definition at line 1396 of file be_cmds.c.

int be_cmd_get_ext_fat_capabilites ( struct be_adapter adapter,
struct be_dma_mem cmd 
)

Definition at line 2701 of file be_cmds.c.

int be_cmd_get_flash_crc ( struct be_adapter adapter,
u8 flashed_crc,
int  offset 
)

Definition at line 2066 of file be_cmds.c.

int be_cmd_get_flow_control ( struct be_adapter adapter,
u32 tx_fc,
u32 rx_fc 
)

Definition at line 1706 of file be_cmds.c.

int be_cmd_get_fw_ver ( struct be_adapter adapter,
char fw_ver,
char fw_on_flash 
)

Definition at line 1522 of file be_cmds.c.

int be_cmd_get_hsw_config ( struct be_adapter adapter,
u16 pvid,
u32  domain,
u16  intf_id 
)

Definition at line 2601 of file be_cmds.c.

int be_cmd_get_mac_from_list ( struct be_adapter adapter,
u8 mac,
bool pmac_id_active,
u32 pmac_id,
u8  domain 
)

Definition at line 2438 of file be_cmds.c.

int be_cmd_get_phy_info ( struct be_adapter adapter)

Definition at line 2271 of file be_cmds.c.

int be_cmd_get_reg_len ( struct be_adapter adapter,
u32 log_size 
)

Definition at line 1423 of file be_cmds.c.

void be_cmd_get_regs ( struct be_adapter adapter,
u32  buf_len,
void buf 
)

Definition at line 1453 of file be_cmds.c.

int be_cmd_get_seeprom_data ( struct be_adapter adapter,
struct be_dma_mem nonemb_cmd 
)

Definition at line 2242 of file be_cmds.c.

int be_cmd_get_stats ( struct be_adapter adapter,
struct be_dma_mem nonemb_cmd 
)

Definition at line 1266 of file be_cmds.c.

int be_cmd_if_create ( struct be_adapter adapter,
u32  cap_flags,
u32  en_flags,
u32 if_handle,
u32  domain 
)

Definition at line 1197 of file be_cmds.c.

int be_cmd_if_destroy ( struct be_adapter adapter,
int  if_handle,
u32  domain 
)

Definition at line 1233 of file be_cmds.c.

int be_cmd_link_status_query ( struct be_adapter adapter,
u16 link_speed,
u8 link_status,
u32  dom 
)

Definition at line 1348 of file be_cmds.c.

int be_cmd_loopback_test ( struct be_adapter adapter,
u32  port_num,
u32  loopback_type,
u32  pkt_size,
u32  num_pkts,
u64  pattern 
)

Definition at line 2159 of file be_cmds.c.

int be_cmd_mac_addr_query ( struct be_adapter adapter,
u8 mac_addr,
bool  permanent,
u32  if_handle,
u32  pmac_id 
)

Definition at line 718 of file be_cmds.c.

int be_cmd_mccq_create ( struct be_adapter adapter,
struct be_queue_info mccq,
struct be_queue_info cq 
)

Definition at line 996 of file be_cmds.c.

int be_cmd_modify_eqd ( struct be_adapter adapter,
u32  eq_id,
u32  eqd 
)

Definition at line 1556 of file be_cmds.c.

int be_cmd_pmac_add ( struct be_adapter adapter,
u8 mac_addr,
u32  if_id,
u32 pmac_id,
u32  domain 
)

Definition at line 757 of file be_cmds.c.

int be_cmd_pmac_del ( struct be_adapter adapter,
u32  if_id,
int  pmac_id,
u32  domain 
)

Definition at line 796 of file be_cmds.c.

int be_cmd_q_destroy ( struct be_adapter adapter,
struct be_queue_info q,
int  type 
)

Definition at line 1114 of file be_cmds.c.

int be_cmd_query_fw_cfg ( struct be_adapter adapter,
u32 port_num,
u32 function_mode,
u32 function_caps 
)

Definition at line 1738 of file be_cmds.c.

int be_cmd_query_port_name ( struct be_adapter adapter,
u8 port_name 
)

Definition at line 2757 of file be_cmds.c.

int be_cmd_req_native_mode ( struct be_adapter adapter)

Definition at line 2399 of file be_cmds.c.

int be_cmd_reset ( struct be_adapter adapter)
int be_cmd_reset_function ( struct be_adapter adapter)

Definition at line 1767 of file be_cmds.c.

int be_cmd_rss_config ( struct be_adapter adapter,
u8 rsstable,
u16  table_size 
)

Definition at line 1802 of file be_cmds.c.

int be_cmd_rx_filter ( struct be_adapter adapter,
u32  flags,
u32  status 
)

Definition at line 1622 of file be_cmds.c.

int be_cmd_rxq_create ( struct be_adapter adapter,
struct be_queue_info rxq,
u16  cq_id,
u16  frag_size,
u32  if_id,
u32  rss,
u8 rss_id 
)

Definition at line 1069 of file be_cmds.c.

int be_cmd_rxq_destroy ( struct be_adapter adapter,
struct be_queue_info q 
)

Definition at line 1166 of file be_cmds.c.

int be_cmd_set_beacon_state ( struct be_adapter adapter,
u8  port_num,
u8  beacon,
u8  status,
u8  state 
)

Definition at line 1842 of file be_cmds.c.

int be_cmd_set_ext_fat_capabilites ( struct be_adapter adapter,
struct be_dma_mem cmd,
struct be_fat_conf_params cfgs 
)

Definition at line 2729 of file be_cmds.c.

int be_cmd_set_flow_control ( struct be_adapter adapter,
u32  tx_fc,
u32  rx_fc 
)

Definition at line 1677 of file be_cmds.c.

int be_cmd_set_hsw_config ( struct be_adapter adapter,
u16  pvid,
u32  domain,
u16  intf_id 
)

Definition at line 2563 of file be_cmds.c.

int be_cmd_set_loopback ( struct be_adapter adapter,
u8  port_num,
u8  loopback_type,
u8  enable 
)

Definition at line 2127 of file be_cmds.c.

int be_cmd_set_mac_list ( struct be_adapter adapter,
u8 mac_array,
u8  mac_count,
u32  domain 
)

Definition at line 2519 of file be_cmds.c.

int be_cmd_set_qos ( struct be_adapter adapter,
u32  bps,
u32  domain 
)

Definition at line 2321 of file be_cmds.c.

int be_cmd_txq_create ( struct be_adapter adapter,
struct be_queue_info txq,
struct be_queue_info cq 
)

Definition at line 1012 of file be_cmds.c.

int be_cmd_vlan_config ( struct be_adapter adapter,
u32  if_id,
u16 vtag_array,
u32  num,
bool  untagged,
bool  promiscuous 
)

Definition at line 1587 of file be_cmds.c.

int be_cmd_write_flashrom ( struct be_adapter adapter,
struct be_dma_mem cmd,
u32  flash_oper,
u32  flash_opcode,
u32  buf_size 
)

Definition at line 2026 of file be_cmds.c.

void be_detect_error ( struct be_adapter adapter)

Definition at line 2101 of file be_main.c.

int be_fw_wait_ready ( struct be_adapter adapter)

Definition at line 483 of file be_cmds.c.

int be_pci_fnum_get ( struct be_adapter adapter)
int be_process_mcc ( struct be_adapter adapter)

Definition at line 255 of file be_cmds.c.

int lancer_cmd_get_pport_stats ( struct be_adapter adapter,
struct be_dma_mem nonemb_cmd 
)

Definition at line 1296 of file be_cmds.c.

int lancer_cmd_read_object ( struct be_adapter adapter,
struct be_dma_mem cmd,
u32  data_size,
u32  data_offset,
const char obj_name,
u32 data_read,
u32 eof,
u8 addn_status 
)

Definition at line 1979 of file be_cmds.c.

int lancer_cmd_write_object ( struct be_adapter adapter,
struct be_dma_mem cmd,
u32  data_size,
u32  data_offset,
const char obj_name,
u32 data_written,
u8 change_status,
u8 addn_status 
)

Definition at line 1906 of file be_cmds.c.

int lancer_test_and_set_rdy_state ( struct be_adapter adapter)

Definition at line 455 of file be_cmds.c.

int lancer_wait_ready ( struct be_adapter adapter)

Definition at line 435 of file be_cmds.c.

Variable Documentation