#ifndef _NTB_INTEL_GEN1_H_
#define _NTB_INTEL_GEN1_H_
#include "ntb_hw_intel.h"
#define XEON_PBAR23LMT_OFFSET …
#define XEON_PBAR45LMT_OFFSET …
#define XEON_PBAR4LMT_OFFSET …
#define XEON_PBAR5LMT_OFFSET …
#define XEON_PBAR23XLAT_OFFSET …
#define XEON_PBAR45XLAT_OFFSET …
#define XEON_PBAR4XLAT_OFFSET …
#define XEON_PBAR5XLAT_OFFSET …
#define XEON_SBAR23LMT_OFFSET …
#define XEON_SBAR45LMT_OFFSET …
#define XEON_SBAR4LMT_OFFSET …
#define XEON_SBAR5LMT_OFFSET …
#define XEON_SBAR23XLAT_OFFSET …
#define XEON_SBAR45XLAT_OFFSET …
#define XEON_SBAR4XLAT_OFFSET …
#define XEON_SBAR5XLAT_OFFSET …
#define XEON_SBAR0BASE_OFFSET …
#define XEON_SBAR23BASE_OFFSET …
#define XEON_SBAR45BASE_OFFSET …
#define XEON_SBAR4BASE_OFFSET …
#define XEON_SBAR5BASE_OFFSET …
#define XEON_SBDF_OFFSET …
#define XEON_NTBCNTL_OFFSET …
#define XEON_PDOORBELL_OFFSET …
#define XEON_PDBMSK_OFFSET …
#define XEON_SDOORBELL_OFFSET …
#define XEON_SDBMSK_OFFSET …
#define XEON_USMEMMISS_OFFSET …
#define XEON_SPAD_OFFSET …
#define XEON_PBAR23SZ_OFFSET …
#define XEON_PBAR45SZ_OFFSET …
#define XEON_PBAR4SZ_OFFSET …
#define XEON_SBAR23SZ_OFFSET …
#define XEON_SBAR45SZ_OFFSET …
#define XEON_SBAR4SZ_OFFSET …
#define XEON_PPD_OFFSET …
#define XEON_PBAR5SZ_OFFSET …
#define XEON_SBAR5SZ_OFFSET …
#define XEON_WCCNTRL_OFFSET …
#define XEON_UNCERRSTS_OFFSET …
#define XEON_CORERRSTS_OFFSET …
#define XEON_LINK_STATUS_OFFSET …
#define XEON_SPCICMD_OFFSET …
#define XEON_DEVCTRL_OFFSET …
#define XEON_DEVSTS_OFFSET …
#define XEON_SLINK_STATUS_OFFSET …
#define XEON_B2B_SPAD_OFFSET …
#define XEON_B2B_DOORBELL_OFFSET …
#define XEON_B2B_XLAT_OFFSETL …
#define XEON_B2B_XLAT_OFFSETU …
#define XEON_PPD_CONN_MASK …
#define XEON_PPD_CONN_TRANSPARENT …
#define XEON_PPD_CONN_B2B …
#define XEON_PPD_CONN_RP …
#define XEON_PPD_DEV_MASK …
#define XEON_PPD_DEV_USD …
#define XEON_PPD_DEV_DSD …
#define XEON_PPD_SPLIT_BAR_MASK …
#define XEON_PPD_TOPO_MASK …
#define XEON_PPD_TOPO_PRI_USD …
#define XEON_PPD_TOPO_PRI_DSD …
#define XEON_PPD_TOPO_SEC_USD …
#define XEON_PPD_TOPO_SEC_DSD …
#define XEON_PPD_TOPO_B2B_USD …
#define XEON_PPD_TOPO_B2B_DSD …
#define XEON_MW_COUNT …
#define HSX_SPLIT_BAR_MW_COUNT …
#define XEON_DB_COUNT …
#define XEON_DB_LINK …
#define XEON_DB_LINK_BIT …
#define XEON_DB_MSIX_VECTOR_COUNT …
#define XEON_DB_MSIX_VECTOR_SHIFT …
#define XEON_DB_TOTAL_SHIFT …
#define XEON_SPAD_COUNT …
#define XEON_B2B_BAR0_ADDR …
#define XEON_B2B_BAR2_ADDR64 …
#define XEON_B2B_BAR4_ADDR64 …
#define XEON_B2B_BAR4_ADDR32 …
#define XEON_B2B_BAR5_ADDR32 …
#define XEON_B2B_MIN_SIZE …
#define NTB_HWERR_SDOORBELL_LOCKUP …
#define NTB_HWERR_SB01BASE_LOCKUP …
#define NTB_HWERR_B2BDOORBELL_BIT14 …
#define NTB_HWERR_MSIX_VECTOR32_BAD …
#define NTB_HWERR_BAR_ALIGN …
#define NTB_HWERR_LTR_BAD …
extern struct intel_b2b_addr xeon_b2b_usd_addr;
extern struct intel_b2b_addr xeon_b2b_dsd_addr;
int ndev_init_isr(struct intel_ntb_dev *ndev, int msix_min, int msix_max,
int msix_shift, int total_shift);
enum ntb_topo xeon_ppd_topo(struct intel_ntb_dev *ndev, u8 ppd);
void ndev_db_addr(struct intel_ntb_dev *ndev,
phys_addr_t *db_addr, resource_size_t *db_size,
phys_addr_t reg_addr, unsigned long reg);
u64 ndev_db_read(struct intel_ntb_dev *ndev, void __iomem *mmio);
int ndev_db_write(struct intel_ntb_dev *ndev, u64 db_bits,
void __iomem *mmio);
int ndev_mw_to_bar(struct intel_ntb_dev *ndev, int idx);
int intel_ntb_mw_count(struct ntb_dev *ntb, int pidx);
int intel_ntb_mw_get_align(struct ntb_dev *ntb, int pidx, int idx,
resource_size_t *addr_align, resource_size_t *size_align,
resource_size_t *size_max);
int intel_ntb_peer_mw_count(struct ntb_dev *ntb);
int intel_ntb_peer_mw_get_addr(struct ntb_dev *ntb, int idx,
phys_addr_t *base, resource_size_t *size);
u64 intel_ntb_link_is_up(struct ntb_dev *ntb, enum ntb_speed *speed,
enum ntb_width *width);
int intel_ntb_link_disable(struct ntb_dev *ntb);
u64 intel_ntb_db_valid_mask(struct ntb_dev *ntb);
int intel_ntb_db_vector_count(struct ntb_dev *ntb);
u64 intel_ntb_db_vector_mask(struct ntb_dev *ntb, int db_vector);
int intel_ntb_db_set_mask(struct ntb_dev *ntb, u64 db_bits);
int intel_ntb_db_clear_mask(struct ntb_dev *ntb, u64 db_bits);
int intel_ntb_spad_is_unsafe(struct ntb_dev *ntb);
int intel_ntb_spad_count(struct ntb_dev *ntb);
u32 intel_ntb_spad_read(struct ntb_dev *ntb, int idx);
int intel_ntb_spad_write(struct ntb_dev *ntb, int idx, u32 val);
u32 intel_ntb_peer_spad_read(struct ntb_dev *ntb, int pidx, int sidx);
int intel_ntb_peer_spad_write(struct ntb_dev *ntb, int pidx, int sidx,
u32 val);
int intel_ntb_peer_spad_addr(struct ntb_dev *ntb, int pidx, int sidx,
phys_addr_t *spad_addr);
int xeon_link_is_up(struct intel_ntb_dev *ndev);
#endif