diff options
author | James Smart <jsmart2021@gmail.com> | 2021-06-02 02:54:45 +0300 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2021-06-16 06:39:29 +0300 |
commit | 7c5b76831ec45dba58d89ed7bd5f8c5373443e12 (patch) | |
tree | 3c659e1416730d782126c4b0fb1e855c7e73d0a2 /drivers/scsi/elx/include/efc_common.h | |
parent | 18be69fa34863e737130db78e6474ad44d85aaf6 (diff) | |
download | linux-7c5b76831ec45dba58d89ed7bd5f8c5373443e12.tar.xz |
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.com
Reviewed-by: Daniel Wagner <dwagner@suse.de>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Co-developed-by: Ram Vegesna <ram.vegesna@broadcom.com>
Signed-off-by: Ram Vegesna <ram.vegesna@broadcom.com>
Signed-off-by: James Smart <jsmart2021@gmail.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/elx/include/efc_common.h')
-rw-r--r-- | drivers/scsi/elx/include/efc_common.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/drivers/scsi/elx/include/efc_common.h b/drivers/scsi/elx/include/efc_common.h index a333b1439caf..8d57f69ace0a 100644 --- a/drivers/scsi/elx/include/efc_common.h +++ b/drivers/scsi/elx/include/efc_common.h @@ -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__ */ |