#include "bfi.h"
#include "bfa_msgq.h"
#include "bfa_ioc.h"
#define call_cmdq_ent_cbfn(_cmdq_ent, _status) …
static void bfa_msgq_cmdq_dbell(struct bfa_msgq_cmdq *cmdq);
static void bfa_msgq_cmdq_copy_rsp(struct bfa_msgq_cmdq *cmdq);
enum cmdq_event { … };
bfa_fsm_state_decl(cmdq, stopped, struct bfa_msgq_cmdq, enum cmdq_event);
bfa_fsm_state_decl(cmdq, init_wait, struct bfa_msgq_cmdq, enum cmdq_event);
bfa_fsm_state_decl(cmdq, ready, struct bfa_msgq_cmdq, enum cmdq_event);
bfa_fsm_state_decl(cmdq, dbell_wait, struct bfa_msgq_cmdq,
enum cmdq_event);
static void
cmdq_sm_stopped_entry(struct bfa_msgq_cmdq *cmdq)
{ … }
static void
cmdq_sm_stopped(struct bfa_msgq_cmdq *cmdq, enum cmdq_event event)
{ … }
static void
cmdq_sm_init_wait_entry(struct bfa_msgq_cmdq *cmdq)
{ … }
static void
cmdq_sm_init_wait(struct bfa_msgq_cmdq *cmdq, enum cmdq_event event)
{ … }
static void
cmdq_sm_ready_entry(struct bfa_msgq_cmdq *cmdq)
{ … }
static void
cmdq_sm_ready(struct bfa_msgq_cmdq *cmdq, enum cmdq_event event)
{ … }
static void
cmdq_sm_dbell_wait_entry(struct bfa_msgq_cmdq *cmdq)
{ … }
static void
cmdq_sm_dbell_wait(struct bfa_msgq_cmdq *cmdq, enum cmdq_event event)
{ … }
static void
bfa_msgq_cmdq_dbell_ready(void *arg)
{ … }
static void
bfa_msgq_cmdq_dbell(struct bfa_msgq_cmdq *cmdq)
{ … }
static void
__cmd_copy(struct bfa_msgq_cmdq *cmdq, struct bfa_msgq_cmd_entry *cmd)
{ … }
static void
bfa_msgq_cmdq_ci_update(struct bfa_msgq_cmdq *cmdq, struct bfi_mbmsg *mb)
{ … }
static void
bfa_msgq_cmdq_copy_next(void *arg)
{ … }
static void
bfa_msgq_cmdq_copy_req(struct bfa_msgq_cmdq *cmdq, struct bfi_mbmsg *mb)
{ … }
static void
bfa_msgq_cmdq_copy_rsp(struct bfa_msgq_cmdq *cmdq)
{ … }
static void
bfa_msgq_cmdq_attach(struct bfa_msgq_cmdq *cmdq, struct bfa_msgq *msgq)
{ … }
static void bfa_msgq_rspq_dbell(struct bfa_msgq_rspq *rspq);
enum rspq_event { … };
bfa_fsm_state_decl(rspq, stopped, struct bfa_msgq_rspq, enum rspq_event);
bfa_fsm_state_decl(rspq, init_wait, struct bfa_msgq_rspq,
enum rspq_event);
bfa_fsm_state_decl(rspq, ready, struct bfa_msgq_rspq, enum rspq_event);
bfa_fsm_state_decl(rspq, dbell_wait, struct bfa_msgq_rspq,
enum rspq_event);
static void
rspq_sm_stopped_entry(struct bfa_msgq_rspq *rspq)
{ … }
static void
rspq_sm_stopped(struct bfa_msgq_rspq *rspq, enum rspq_event event)
{ … }
static void
rspq_sm_init_wait_entry(struct bfa_msgq_rspq *rspq)
{ … }
static void
rspq_sm_init_wait(struct bfa_msgq_rspq *rspq, enum rspq_event event)
{ … }
static void
rspq_sm_ready_entry(struct bfa_msgq_rspq *rspq)
{ … }
static void
rspq_sm_ready(struct bfa_msgq_rspq *rspq, enum rspq_event event)
{ … }
static void
rspq_sm_dbell_wait_entry(struct bfa_msgq_rspq *rspq)
{ … }
static void
rspq_sm_dbell_wait(struct bfa_msgq_rspq *rspq, enum rspq_event event)
{ … }
static void
bfa_msgq_rspq_dbell_ready(void *arg)
{ … }
static void
bfa_msgq_rspq_dbell(struct bfa_msgq_rspq *rspq)
{ … }
static void
bfa_msgq_rspq_pi_update(struct bfa_msgq_rspq *rspq, struct bfi_mbmsg *mb)
{ … }
static void
bfa_msgq_rspq_attach(struct bfa_msgq_rspq *rspq, struct bfa_msgq *msgq)
{ … }
static void
bfa_msgq_init_rsp(struct bfa_msgq *msgq,
struct bfi_mbmsg *mb)
{ … }
static void
bfa_msgq_init(void *arg)
{ … }
static void
bfa_msgq_isr(void *cbarg, struct bfi_mbmsg *msg)
{ … }
static void
bfa_msgq_notify(void *cbarg, enum bfa_ioc_event event)
{ … }
u32
bfa_msgq_meminfo(void)
{ … }
void
bfa_msgq_memclaim(struct bfa_msgq *msgq, u8 *kva, u64 pa)
{ … }
void
bfa_msgq_attach(struct bfa_msgq *msgq, struct bfa_ioc *ioc)
{ … }
void
bfa_msgq_regisr(struct bfa_msgq *msgq, enum bfi_mclass mc,
bfa_msgq_mcfunc_t cbfn, void *cbarg)
{ … }
void
bfa_msgq_cmd_post(struct bfa_msgq *msgq, struct bfa_msgq_cmd_entry *cmd)
{ … }
void
bfa_msgq_rsp_copy(struct bfa_msgq *msgq, u8 *buf, size_t buf_len)
{ … }