Debian Codegraph @

drivers/scsi/elx/include/efc_common.h

raw
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 */
6
7 #ifndef __EFC_COMMON_H__
8 #define __EFC_COMMON_H__
9
10 #include <linux/pci.h>
11
12 struct efc_dma {
13 void *virt;
14 void *alloc;
15 dma_addr_t phys;
16
17 size_t size;
18 size_t len;
19 struct pci_dev *pdev;
20 };
21
22 #define efc_log_crit(efc, fmt, args...) \
23 dev_crit(&((efc)->pci)->dev, fmt, ##args)
24
25 #define efc_log_err(efc, fmt, args...) \
26 dev_err(&((efc)->pci)->dev, fmt, ##args)
27
28 #define efc_log_warn(efc, fmt, args...) \
29 dev_warn(&((efc)->pci)->dev, fmt, ##args)
30
31 #define efc_log_info(efc, fmt, args...) \
32 dev_info(&((efc)->pci)->dev, fmt, ##args)
33
34 #define efc_log_debug(efc, fmt, args...) \
35 dev_dbg(&((efc)->pci)->dev, fmt, ##args)
36
37 #endif /* __EFC_COMMON_H__ */