#ifndef _NTB_INTEL_GEN3_H_
#define _NTB_INTEL_GEN3_H_
#include "ntb_hw_intel.h"
#define GEN3_IMBAR1SZ_OFFSET …
#define GEN3_IMBAR2SZ_OFFSET …
#define GEN3_EMBAR1SZ_OFFSET …
#define GEN3_EMBAR2SZ_OFFSET …
#define GEN3_DEVCTRL_OFFSET …
#define GEN3_DEVSTS_OFFSET …
#define GEN3_UNCERRSTS_OFFSET …
#define GEN3_CORERRSTS_OFFSET …
#define GEN3_LINK_STATUS_OFFSET …
#define GEN3_NTBCNTL_OFFSET …
#define GEN3_IMBAR1XBASE_OFFSET …
#define GEN3_IMBAR1XLMT_OFFSET …
#define GEN3_IMBAR2XBASE_OFFSET …
#define GEN3_IMBAR2XLMT_OFFSET …
#define GEN3_IM_INT_STATUS_OFFSET …
#define GEN3_IM_INT_DISABLE_OFFSET …
#define GEN3_IM_SPAD_OFFSET …
#define GEN3_USMEMMISS_OFFSET …
#define GEN3_INTVEC_OFFSET …
#define GEN3_IM_DOORBELL_OFFSET …
#define GEN3_B2B_SPAD_OFFSET …
#define GEN3_EMBAR0XBASE_OFFSET …
#define GEN3_EMBAR1XBASE_OFFSET …
#define GEN3_EMBAR1XLMT_OFFSET …
#define GEN3_EMBAR2XBASE_OFFSET …
#define GEN3_EMBAR2XLMT_OFFSET …
#define GEN3_EM_INT_STATUS_OFFSET …
#define GEN3_EM_INT_DISABLE_OFFSET …
#define GEN3_EM_SPAD_OFFSET …
#define GEN3_EM_DOORBELL_OFFSET …
#define GEN3_SPCICMD_OFFSET …
#define GEN3_EMBAR0_OFFSET …
#define GEN3_EMBAR1_OFFSET …
#define GEN3_EMBAR2_OFFSET …
#define GEN3_DB_COUNT …
#define GEN3_DB_LINK …
#define GEN3_DB_LINK_BIT …
#define GEN3_DB_MSIX_VECTOR_COUNT …
#define GEN3_DB_MSIX_VECTOR_SHIFT …
#define GEN3_DB_TOTAL_SHIFT …
#define GEN3_SPAD_COUNT …
static inline u64 gen3_db_ioread(const void __iomem *mmio)
{ … }
static inline void gen3_db_iowrite(u64 bits, void __iomem *mmio)
{ … }
ssize_t ndev_ntb3_debugfs_read(struct file *filp, char __user *ubuf,
size_t count, loff_t *offp);
int gen3_init_dev(struct intel_ntb_dev *ndev);
int intel_ntb3_link_enable(struct ntb_dev *ntb, enum ntb_speed max_speed,
enum ntb_width max_width);
u64 intel_ntb3_db_read(struct ntb_dev *ntb);
int intel_ntb3_db_clear(struct ntb_dev *ntb, u64 db_bits);
int intel_ntb3_peer_db_set(struct ntb_dev *ntb, u64 db_bits);
int intel_ntb3_peer_db_addr(struct ntb_dev *ntb, phys_addr_t *db_addr,
resource_size_t *db_size,
u64 *db_data, int db_bit);
extern const struct ntb_dev_ops intel_ntb3_ops;
#endif