linux/drivers/net/ethernet/brocade/bna/bfa_msgq.h

/* SPDX-License-Identifier: GPL-2.0-only */
/*
 * Linux network driver for QLogic BR-series Converged Network Adapter.
 */
/*
 * Copyright (c) 2005-2014 Brocade Communications Systems, Inc.
 * Copyright (c) 2014-2015 QLogic Corporation
 * All rights reserved
 * www.qlogic.com
 */

#ifndef __BFA_MSGQ_H__
#define __BFA_MSGQ_H__

#include "bfa_defs.h"
#include "bfi.h"
#include "bfa_ioc.h"
#include "bfa_cs.h"

#define BFA_MSGQ_FREE_CNT(_q)

#define BFA_MSGQ_INDX_ADD(_q_indx, _qe_num, _q_depth)

#define BFA_MSGQ_CMDQ_NUM_ENTRY
#define BFA_MSGQ_CMDQ_SIZE

#define BFA_MSGQ_RSPQ_NUM_ENTRY
#define BFA_MSGQ_RSPQ_SIZE

#define bfa_msgq_cmd_set(_cmd, _cbfn, _cbarg, _msg_size, _msg_hdr)

struct bfa_msgq;

bfa_msgq_cmdcbfn_t;

struct bfa_msgq_cmd_entry {};

enum bfa_msgq_cmdq_flags {};

enum cmdq_event;

struct bfa_msgq_cmdq {};

enum bfa_msgq_rspq_flags {};

bfa_msgq_mcfunc_t;

enum rspq_event;

struct bfa_msgq_rspq {};

struct bfa_msgq {};

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);

#endif