Merge tag 'trace-printf-v6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/trace...
[drm/drm-misc.git] / drivers / scsi / elx / include / efc_common.h
blob8d57f69ace0ae8f40eed267fb53702d9b5da9d49
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3 * Copyright (C) 2021 Broadcom. All Rights Reserved. The term
4 * “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.
5 */
7 #ifndef __EFC_COMMON_H__
8 #define __EFC_COMMON_H__
10 #include <linux/pci.h>
12 struct efc_dma {
13 void *virt;
14 void *alloc;
15 dma_addr_t phys;
17 size_t size;
18 size_t len;
19 struct pci_dev *pdev;
22 #define efc_log_crit(efc, fmt, args...) \
23 dev_crit(&((efc)->pci)->dev, fmt, ##args)
25 #define efc_log_err(efc, fmt, args...) \
26 dev_err(&((efc)->pci)->dev, fmt, ##args)
28 #define efc_log_warn(efc, fmt, args...) \
29 dev_warn(&((efc)->pci)->dev, fmt, ##args)
31 #define efc_log_info(efc, fmt, args...) \
32 dev_info(&((efc)->pci)->dev, fmt, ##args)
34 #define efc_log_debug(efc, fmt, args...) \
35 dev_dbg(&((efc)->pci)->dev, fmt, ##args)
37 #endif /* __EFC_COMMON_H__ */