diff options
author | Dave Jiang <dave.jiang@intel.com> | 2018-01-29 23:22:24 +0300 |
---|---|---|
committer | Jon Mason <jdmason@kudzu.us> | 2018-06-11 22:20:59 +0300 |
commit | f6e51c354b60c177a4287f236d353b430d3dc6c1 (patch) | |
tree | 05ac8d016d9d9ccde66a105183d3e73a6b851bcf /drivers/ntb/hw/intel/ntb_hw_gen3.h | |
parent | a9065055ed09fe6e59e5bbfd12c8de629c53005d (diff) | |
download | linux-f6e51c354b60c177a4287f236d353b430d3dc6c1.tar.xz |
ntb: intel: split out the gen3 code
Move the Intel hw gen3 code to its own source file. The ntb_hw_intel.c was
getting too large and makes it hard to maintain with future hardware
changes.
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Signed-off-by: Jon Mason <jdmason@kudzu.us>
Diffstat (limited to 'drivers/ntb/hw/intel/ntb_hw_gen3.h')
-rw-r--r-- | drivers/ntb/hw/intel/ntb_hw_gen3.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/drivers/ntb/hw/intel/ntb_hw_gen3.h b/drivers/ntb/hw/intel/ntb_hw_gen3.h index 889453ca2ce6..09fd1d3e6b5b 100644 --- a/drivers/ntb/hw/intel/ntb_hw_gen3.h +++ b/drivers/ntb/hw/intel/ntb_hw_gen3.h @@ -44,6 +44,8 @@ #ifndef _NTB_INTEL_GEN3_H_ #define _NTB_INTEL_GEN3_H_ +#include "ntb_hw_intel.h" + /* Intel Skylake Xeon hardware */ #define SKX_IMBAR1SZ_OFFSET 0x00d0 #define SKX_IMBAR2SZ_OFFSET 0x00d1 @@ -89,4 +91,21 @@ #define SKX_DB_TOTAL_SHIFT 33 #define SKX_SPAD_COUNT 16 +static inline u64 skx_db_ioread(void __iomem *mmio) +{ + return ioread64(mmio); +} + +static inline void skx_db_iowrite(u64 bits, void __iomem *mmio) +{ + iowrite64(bits, mmio); +} + +ssize_t ndev_ntb3_debugfs_read(struct file *filp, char __user *ubuf, + size_t count, loff_t *offp); +int skx_init_dev(struct intel_ntb_dev *ndev); +int skx_poll_link(struct intel_ntb_dev *ndev); + +extern const struct ntb_dev_ops intel_ntb3_ops; + #endif |