#include "bna.h"
static inline int
ethport_can_be_up(struct bna_ethport *ethport)
{ … }
#define ethport_is_up …
enum bna_ethport_event { … };
enum bna_enet_event { … };
enum bna_ioceth_event { … };
#define bna_stats_copy(_name, _type) … \
static void
bna_bfi_ethport_enable_aen(struct bna_ethport *ethport,
struct bfi_msgq_mhdr *msghdr)
{ … }
static void
bna_bfi_ethport_disable_aen(struct bna_ethport *ethport,
struct bfi_msgq_mhdr *msghdr)
{ … }
static void
bna_bfi_ethport_admin_rsp(struct bna_ethport *ethport,
struct bfi_msgq_mhdr *msghdr)
{ … }
static void
bna_bfi_ethport_lpbk_rsp(struct bna_ethport *ethport,
struct bfi_msgq_mhdr *msghdr)
{ … }
static void
bna_bfi_pause_set_rsp(struct bna_enet *enet, struct bfi_msgq_mhdr *msghdr)
{ … }
static void
bna_bfi_attr_get_rsp(struct bna_ioceth *ioceth,
struct bfi_msgq_mhdr *msghdr)
{ … }
static void
bna_bfi_stats_get_rsp(struct bna *bna, struct bfi_msgq_mhdr *msghdr)
{ … }
static void
bna_bfi_ethport_linkup_aen(struct bna_ethport *ethport,
struct bfi_msgq_mhdr *msghdr)
{ … }
static void
bna_bfi_ethport_linkdown_aen(struct bna_ethport *ethport,
struct bfi_msgq_mhdr *msghdr)
{ … }
static void
bna_err_handler(struct bna *bna, u32 intr_status)
{ … }
void
bna_mbox_handler(struct bna *bna, u32 intr_status)
{ … }
static void
bna_msgq_rsp_handler(void *arg, struct bfi_msgq_mhdr *msghdr)
{ … }
#define call_ethport_stop_cbfn(_ethport) …
#define call_ethport_adminup_cbfn(ethport, status) …
static void
bna_bfi_ethport_admin_up(struct bna_ethport *ethport)
{ … }
static void
bna_bfi_ethport_admin_down(struct bna_ethport *ethport)
{ … }
static void
bna_bfi_ethport_lpbk_up(struct bna_ethport *ethport)
{ … }
static void
bna_bfi_ethport_lpbk_down(struct bna_ethport *ethport)
{ … }
static void
bna_bfi_ethport_up(struct bna_ethport *ethport)
{ … }
static void
bna_bfi_ethport_down(struct bna_ethport *ethport)
{ … }
bfa_fsm_state_decl(bna_ethport, stopped, struct bna_ethport,
enum bna_ethport_event);
bfa_fsm_state_decl(bna_ethport, down, struct bna_ethport,
enum bna_ethport_event);
bfa_fsm_state_decl(bna_ethport, up_resp_wait, struct bna_ethport,
enum bna_ethport_event);
bfa_fsm_state_decl(bna_ethport, down_resp_wait, struct bna_ethport,
enum bna_ethport_event);
bfa_fsm_state_decl(bna_ethport, up, struct bna_ethport,
enum bna_ethport_event);
bfa_fsm_state_decl(bna_ethport, last_resp_wait, struct bna_ethport,
enum bna_ethport_event);
static void
bna_ethport_sm_stopped_entry(struct bna_ethport *ethport)
{ … }
static void
bna_ethport_sm_stopped(struct bna_ethport *ethport,
enum bna_ethport_event event)
{ … }
static void
bna_ethport_sm_down_entry(struct bna_ethport *ethport)
{ … }
static void
bna_ethport_sm_down(struct bna_ethport *ethport,
enum bna_ethport_event event)
{ … }
static void
bna_ethport_sm_up_resp_wait_entry(struct bna_ethport *ethport)
{ … }
static void
bna_ethport_sm_up_resp_wait(struct bna_ethport *ethport,
enum bna_ethport_event event)
{ … }
static void
bna_ethport_sm_down_resp_wait_entry(struct bna_ethport *ethport)
{ … }
static void
bna_ethport_sm_down_resp_wait(struct bna_ethport *ethport,
enum bna_ethport_event event)
{ … }
static void
bna_ethport_sm_up_entry(struct bna_ethport *ethport)
{ … }
static void
bna_ethport_sm_up(struct bna_ethport *ethport,
enum bna_ethport_event event)
{ … }
static void
bna_ethport_sm_last_resp_wait_entry(struct bna_ethport *ethport)
{ … }
static void
bna_ethport_sm_last_resp_wait(struct bna_ethport *ethport,
enum bna_ethport_event event)
{ … }
static void
bna_ethport_init(struct bna_ethport *ethport, struct bna *bna)
{ … }
static void
bna_ethport_uninit(struct bna_ethport *ethport)
{ … }
static void
bna_ethport_start(struct bna_ethport *ethport)
{ … }
static void
bna_enet_cb_ethport_stopped(struct bna_enet *enet)
{ … }
static void
bna_ethport_stop(struct bna_ethport *ethport)
{ … }
static void
bna_ethport_fail(struct bna_ethport *ethport)
{ … }
void
bna_ethport_cb_rx_started(struct bna_ethport *ethport)
{ … }
void
bna_ethport_cb_rx_stopped(struct bna_ethport *ethport)
{ … }
#define bna_enet_chld_start(enet) …
#define bna_enet_chld_stop(enet) …
#define bna_enet_chld_fail(enet) …
#define bna_enet_rx_start(enet) …
#define bna_enet_rx_stop(enet) …
#define call_enet_stop_cbfn(enet) …
#define call_enet_mtu_cbfn(enet) …
static void bna_enet_cb_chld_stopped(void *arg);
static void bna_bfi_pause_set(struct bna_enet *enet);
bfa_fsm_state_decl(bna_enet, stopped, struct bna_enet,
enum bna_enet_event);
bfa_fsm_state_decl(bna_enet, pause_init_wait, struct bna_enet,
enum bna_enet_event);
bfa_fsm_state_decl(bna_enet, last_resp_wait, struct bna_enet,
enum bna_enet_event);
bfa_fsm_state_decl(bna_enet, started, struct bna_enet,
enum bna_enet_event);
bfa_fsm_state_decl(bna_enet, cfg_wait, struct bna_enet,
enum bna_enet_event);
bfa_fsm_state_decl(bna_enet, cfg_stop_wait, struct bna_enet,
enum bna_enet_event);
bfa_fsm_state_decl(bna_enet, chld_stop_wait, struct bna_enet,
enum bna_enet_event);
static void
bna_enet_sm_stopped_entry(struct bna_enet *enet)
{ … }
static void
bna_enet_sm_stopped(struct bna_enet *enet, enum bna_enet_event event)
{ … }
static void
bna_enet_sm_pause_init_wait_entry(struct bna_enet *enet)
{ … }
static void
bna_enet_sm_pause_init_wait(struct bna_enet *enet,
enum bna_enet_event event)
{ … }
static void
bna_enet_sm_last_resp_wait_entry(struct bna_enet *enet)
{ … }
static void
bna_enet_sm_last_resp_wait(struct bna_enet *enet,
enum bna_enet_event event)
{ … }
static void
bna_enet_sm_started_entry(struct bna_enet *enet)
{ … }
static void
bna_enet_sm_started(struct bna_enet *enet,
enum bna_enet_event event)
{ … }
static void
bna_enet_sm_cfg_wait_entry(struct bna_enet *enet)
{ … }
static void
bna_enet_sm_cfg_wait(struct bna_enet *enet,
enum bna_enet_event event)
{ … }
static void
bna_enet_sm_cfg_stop_wait_entry(struct bna_enet *enet)
{ … }
static void
bna_enet_sm_cfg_stop_wait(struct bna_enet *enet,
enum bna_enet_event event)
{ … }
static void
bna_enet_sm_chld_stop_wait_entry(struct bna_enet *enet)
{ … }
static void
bna_enet_sm_chld_stop_wait(struct bna_enet *enet,
enum bna_enet_event event)
{ … }
static void
bna_bfi_pause_set(struct bna_enet *enet)
{ … }
static void
bna_enet_cb_chld_stopped(void *arg)
{ … }
static void
bna_enet_init(struct bna_enet *enet, struct bna *bna)
{ … }
static void
bna_enet_uninit(struct bna_enet *enet)
{ … }
static void
bna_enet_start(struct bna_enet *enet)
{ … }
static void
bna_ioceth_cb_enet_stopped(void *arg)
{ … }
static void
bna_enet_stop(struct bna_enet *enet)
{ … }
static void
bna_enet_fail(struct bna_enet *enet)
{ … }
void
bna_enet_cb_tx_stopped(struct bna_enet *enet)
{ … }
void
bna_enet_cb_rx_stopped(struct bna_enet *enet)
{ … }
int
bna_enet_mtu_get(struct bna_enet *enet)
{ … }
void
bna_enet_enable(struct bna_enet *enet)
{ … }
void
bna_enet_disable(struct bna_enet *enet, enum bna_cleanup_type type,
void (*cbfn)(void *))
{ … }
void
bna_enet_pause_config(struct bna_enet *enet,
struct bna_pause_config *pause_config)
{ … }
void
bna_enet_mtu_set(struct bna_enet *enet, int mtu,
void (*cbfn)(struct bnad *))
{ … }
void
bna_enet_perm_mac_get(struct bna_enet *enet, u8 *mac)
{ … }
#define enable_mbox_intr(_ioceth) …
#define disable_mbox_intr(_ioceth) …
#define call_ioceth_stop_cbfn(_ioceth) …
#define bna_stats_mod_uninit(_stats_mod) …
#define bna_stats_mod_start(_stats_mod) …
#define bna_stats_mod_stop(_stats_mod) …
#define bna_stats_mod_fail(_stats_mod) …
static void bna_bfi_attr_get(struct bna_ioceth *ioceth);
bfa_fsm_state_decl(bna_ioceth, stopped, struct bna_ioceth,
enum bna_ioceth_event);
bfa_fsm_state_decl(bna_ioceth, ioc_ready_wait, struct bna_ioceth,
enum bna_ioceth_event);
bfa_fsm_state_decl(bna_ioceth, enet_attr_wait, struct bna_ioceth,
enum bna_ioceth_event);
bfa_fsm_state_decl(bna_ioceth, ready, struct bna_ioceth,
enum bna_ioceth_event);
bfa_fsm_state_decl(bna_ioceth, last_resp_wait, struct bna_ioceth,
enum bna_ioceth_event);
bfa_fsm_state_decl(bna_ioceth, enet_stop_wait, struct bna_ioceth,
enum bna_ioceth_event);
bfa_fsm_state_decl(bna_ioceth, ioc_disable_wait, struct bna_ioceth,
enum bna_ioceth_event);
bfa_fsm_state_decl(bna_ioceth, failed, struct bna_ioceth,
enum bna_ioceth_event);
static void
bna_ioceth_sm_stopped_entry(struct bna_ioceth *ioceth)
{ … }
static void
bna_ioceth_sm_stopped(struct bna_ioceth *ioceth,
enum bna_ioceth_event event)
{ … }
static void
bna_ioceth_sm_ioc_ready_wait_entry(struct bna_ioceth *ioceth)
{ … }
static void
bna_ioceth_sm_ioc_ready_wait(struct bna_ioceth *ioceth,
enum bna_ioceth_event event)
{ … }
static void
bna_ioceth_sm_enet_attr_wait_entry(struct bna_ioceth *ioceth)
{ … }
static void
bna_ioceth_sm_enet_attr_wait(struct bna_ioceth *ioceth,
enum bna_ioceth_event event)
{ … }
static void
bna_ioceth_sm_ready_entry(struct bna_ioceth *ioceth)
{ … }
static void
bna_ioceth_sm_ready(struct bna_ioceth *ioceth, enum bna_ioceth_event event)
{ … }
static void
bna_ioceth_sm_last_resp_wait_entry(struct bna_ioceth *ioceth)
{ … }
static void
bna_ioceth_sm_last_resp_wait(struct bna_ioceth *ioceth,
enum bna_ioceth_event event)
{ … }
static void
bna_ioceth_sm_enet_stop_wait_entry(struct bna_ioceth *ioceth)
{ … }
static void
bna_ioceth_sm_enet_stop_wait(struct bna_ioceth *ioceth,
enum bna_ioceth_event event)
{ … }
static void
bna_ioceth_sm_ioc_disable_wait_entry(struct bna_ioceth *ioceth)
{ … }
static void
bna_ioceth_sm_ioc_disable_wait(struct bna_ioceth *ioceth,
enum bna_ioceth_event event)
{ … }
static void
bna_ioceth_sm_failed_entry(struct bna_ioceth *ioceth)
{ … }
static void
bna_ioceth_sm_failed(struct bna_ioceth *ioceth,
enum bna_ioceth_event event)
{ … }
static void
bna_bfi_attr_get(struct bna_ioceth *ioceth)
{ … }
static void
bna_cb_ioceth_enable(void *arg, enum bfa_status error)
{ … }
static void
bna_cb_ioceth_disable(void *arg)
{ … }
static void
bna_cb_ioceth_hbfail(void *arg)
{ … }
static void
bna_cb_ioceth_reset(void *arg)
{ … }
static struct bfa_ioc_cbfn bna_ioceth_cbfn = …;
static void bna_attr_init(struct bna_ioceth *ioceth)
{ … }
static void
bna_ioceth_init(struct bna_ioceth *ioceth, struct bna *bna,
struct bna_res_info *res_info)
{ … }
static void
bna_ioceth_uninit(struct bna_ioceth *ioceth)
{ … }
void
bna_ioceth_enable(struct bna_ioceth *ioceth)
{ … }
void
bna_ioceth_disable(struct bna_ioceth *ioceth, enum bna_cleanup_type type)
{ … }
static void
bna_ucam_mod_init(struct bna_ucam_mod *ucam_mod, struct bna *bna,
struct bna_res_info *res_info)
{ … }
static void
bna_ucam_mod_uninit(struct bna_ucam_mod *ucam_mod)
{ … }
static void
bna_mcam_mod_init(struct bna_mcam_mod *mcam_mod, struct bna *bna,
struct bna_res_info *res_info)
{ … }
static void
bna_mcam_mod_uninit(struct bna_mcam_mod *mcam_mod)
{ … }
static void
bna_bfi_stats_get(struct bna *bna)
{ … }
void
bna_res_req(struct bna_res_info *res_info)
{ … }
void
bna_mod_res_req(struct bna *bna, struct bna_res_info *res_info)
{ … }
void
bna_init(struct bna *bna, struct bnad *bnad,
struct bfa_pcidev *pcidev, struct bna_res_info *res_info)
{ … }
void
bna_mod_init(struct bna *bna, struct bna_res_info *res_info)
{ … }
void
bna_uninit(struct bna *bna)
{ … }
int
bna_num_txq_set(struct bna *bna, int num_txq)
{ … }
int
bna_num_rxp_set(struct bna *bna, int num_rxp)
{ … }
struct bna_mac *
bna_cam_mod_mac_get(struct list_head *head)
{ … }
struct bna_mcam_handle *
bna_mcam_mod_handle_get(struct bna_mcam_mod *mcam_mod)
{ … }
void
bna_mcam_mod_handle_put(struct bna_mcam_mod *mcam_mod,
struct bna_mcam_handle *handle)
{ … }
void
bna_hw_stats_get(struct bna *bna)
{ … }