Commit 7c5b7683 authored by James Smart's avatar James Smart Committed by Martin K. Petersen

scsi: elx: libefc_sli: Queue create/destroy/parse routines

Add service routines to create mailbox commands and add APIs to
create/destroy/parse SLI-4 EQ, CQ, RQ and MQ queues.

Link: https://lore.kernel.org/r/20210601235512.20104-5-jsmart2021@gmail.comReviewed-by: default avatarDaniel Wagner <dwagner@suse.de>
Reviewed-by: default avatarHannes Reinecke <hare@suse.de>
Co-developed-by: default avatarRam Vegesna <ram.vegesna@broadcom.com>
Signed-off-by: default avatarRam Vegesna <ram.vegesna@broadcom.com>
Signed-off-by: default avatarJames Smart <jsmart2021@gmail.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent 18be69fa
......@@ -19,4 +19,19 @@ struct efc_dma {
struct pci_dev *pdev;
};
#define efc_log_crit(efc, fmt, args...) \
dev_crit(&((efc)->pci)->dev, fmt, ##args)
#define efc_log_err(efc, fmt, args...) \
dev_err(&((efc)->pci)->dev, fmt, ##args)
#define efc_log_warn(efc, fmt, args...) \
dev_warn(&((efc)->pci)->dev, fmt, ##args)
#define efc_log_info(efc, fmt, args...) \
dev_info(&((efc)->pci)->dev, fmt, ##args)
#define efc_log_debug(efc, fmt, args...) \
dev_dbg(&((efc)->pci)->dev, fmt, ##args)
#endif /* __EFC_COMMON_H__ */
This diff is collapsed.
......@@ -3718,4 +3718,13 @@ struct sli4 {
struct efc_dma vpd_data;
};
static inline void
sli_cmd_fill_hdr(struct sli4_rqst_hdr *hdr, u8 opc, u8 sub, u32 ver, __le32 len)
{
hdr->opcode = opc;
hdr->subsystem = sub;
hdr->dw3_version = cpu_to_le32(ver);
hdr->request_length = len;
}
#endif /* !_SLI4_H */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment