0001
0002
0003
0004
0005
0006
0007 #ifndef __EFC_COMMON_H__
0008 #define __EFC_COMMON_H__
0009
0010 #include <linux/pci.h>
0011
0012 struct efc_dma {
0013 void *virt;
0014 void *alloc;
0015 dma_addr_t phys;
0016
0017 size_t size;
0018 size_t len;
0019 struct pci_dev *pdev;
0020 };
0021
0022 #define efc_log_crit(efc, fmt, args...) \
0023 dev_crit(&((efc)->pci)->dev, fmt, ##args)
0024
0025 #define efc_log_err(efc, fmt, args...) \
0026 dev_err(&((efc)->pci)->dev, fmt, ##args)
0027
0028 #define efc_log_warn(efc, fmt, args...) \
0029 dev_warn(&((efc)->pci)->dev, fmt, ##args)
0030
0031 #define efc_log_info(efc, fmt, args...) \
0032 dev_info(&((efc)->pci)->dev, fmt, ##args)
0033
0034 #define efc_log_debug(efc, fmt, args...) \
0035 dev_dbg(&((efc)->pci)->dev, fmt, ##args)
0036
0037 #endif