#include "qlcnic.h"
static const struct qlcnic_mailbox_metadata qlcnic_mbx_tbl[] = …;
static inline u32 qlcnic_get_cmd_signature(struct qlcnic_hardware_context *ahw)
{ … }
int qlcnic_82xx_alloc_mbx_args(struct qlcnic_cmd_args *mbx,
struct qlcnic_adapter *adapter, u32 type)
{ … }
void qlcnic_free_mbx_args(struct qlcnic_cmd_args *cmd)
{ … }
static u32
qlcnic_poll_rsp(struct qlcnic_adapter *adapter)
{ … }
int qlcnic_82xx_issue_cmd(struct qlcnic_adapter *adapter,
struct qlcnic_cmd_args *cmd)
{ … }
int qlcnic_fw_cmd_set_drv_version(struct qlcnic_adapter *adapter, u32 fw_cmd)
{ … }
int
qlcnic_fw_cmd_set_mtu(struct qlcnic_adapter *adapter, int mtu)
{ … }
int qlcnic_82xx_fw_cmd_create_rx_ctx(struct qlcnic_adapter *adapter)
{ … }
void qlcnic_82xx_fw_cmd_del_rx_ctx(struct qlcnic_adapter *adapter)
{ … }
int qlcnic_82xx_fw_cmd_create_tx_ctx(struct qlcnic_adapter *adapter,
struct qlcnic_host_tx_ring *tx_ring,
int ring)
{ … }
void qlcnic_82xx_fw_cmd_del_tx_ctx(struct qlcnic_adapter *adapter,
struct qlcnic_host_tx_ring *tx_ring)
{ … }
int
qlcnic_fw_cmd_set_port(struct qlcnic_adapter *adapter, u32 config)
{ … }
int qlcnic_alloc_hw_resources(struct qlcnic_adapter *adapter)
{ … }
int qlcnic_fw_create_ctx(struct qlcnic_adapter *dev)
{ … }
void qlcnic_fw_destroy_ctx(struct qlcnic_adapter *adapter)
{ … }
void qlcnic_free_hw_resources(struct qlcnic_adapter *adapter)
{ … }
int qlcnic_82xx_config_intrpt(struct qlcnic_adapter *adapter, u8 op_type)
{ … }
int qlcnic_82xx_get_mac_address(struct qlcnic_adapter *adapter, u8 *mac,
u8 function)
{ … }
int qlcnic_82xx_get_nic_info(struct qlcnic_adapter *adapter,
struct qlcnic_info *npar_info, u8 func_id)
{ … }
int qlcnic_82xx_set_nic_info(struct qlcnic_adapter *adapter,
struct qlcnic_info *nic)
{ … }
int qlcnic_82xx_get_pci_info(struct qlcnic_adapter *adapter,
struct qlcnic_pci_info *pci_info)
{ … }
int qlcnic_config_port_mirroring(struct qlcnic_adapter *adapter, u8 id,
u8 enable_mirroring, u8 pci_func)
{ … }
int qlcnic_get_port_stats(struct qlcnic_adapter *adapter, const u8 func,
const u8 rx_tx, struct __qlcnic_esw_statistics *esw_stats) { … }
int qlcnic_get_mac_stats(struct qlcnic_adapter *adapter,
struct qlcnic_mac_statistics *mac_stats)
{ … }
int qlcnic_get_eswitch_stats(struct qlcnic_adapter *adapter, const u8 eswitch,
const u8 rx_tx, struct __qlcnic_esw_statistics *esw_stats) { … }
int qlcnic_clear_esw_stats(struct qlcnic_adapter *adapter, const u8 func_esw,
const u8 port, const u8 rx_tx)
{ … }
static int __qlcnic_get_eswitch_port_config(struct qlcnic_adapter *adapter,
u32 *arg1, u32 *arg2)
{ … }
int qlcnic_config_switch_port(struct qlcnic_adapter *adapter,
struct qlcnic_esw_func_cfg *esw_cfg)
{ … }
int
qlcnic_get_eswitch_port_config(struct qlcnic_adapter *adapter,
struct qlcnic_esw_func_cfg *esw_cfg)
{ … }