| .. | .. |
|---|
| 91 | 91 | #define GEN3_DB_TOTAL_SHIFT 33 |
|---|
| 92 | 92 | #define GEN3_SPAD_COUNT 16 |
|---|
| 93 | 93 | |
|---|
| 94 | | -static inline u64 gen3_db_ioread(void __iomem *mmio) |
|---|
| 94 | +static inline u64 gen3_db_ioread(const void __iomem *mmio) |
|---|
| 95 | 95 | { |
|---|
| 96 | 96 | return ioread64(mmio); |
|---|
| 97 | 97 | } |
|---|
| .. | .. |
|---|
| 104 | 104 | ssize_t ndev_ntb3_debugfs_read(struct file *filp, char __user *ubuf, |
|---|
| 105 | 105 | size_t count, loff_t *offp); |
|---|
| 106 | 106 | int gen3_init_dev(struct intel_ntb_dev *ndev); |
|---|
| 107 | +int intel_ntb3_link_enable(struct ntb_dev *ntb, enum ntb_speed max_speed, |
|---|
| 108 | + enum ntb_width max_width); |
|---|
| 109 | +u64 intel_ntb3_db_read(struct ntb_dev *ntb); |
|---|
| 110 | +int intel_ntb3_db_clear(struct ntb_dev *ntb, u64 db_bits); |
|---|
| 111 | +int intel_ntb3_peer_db_set(struct ntb_dev *ntb, u64 db_bits); |
|---|
| 112 | +int intel_ntb3_peer_db_addr(struct ntb_dev *ntb, phys_addr_t *db_addr, |
|---|
| 113 | + resource_size_t *db_size, |
|---|
| 114 | + u64 *db_data, int db_bit); |
|---|
| 107 | 115 | |
|---|
| 108 | 116 | extern const struct ntb_dev_ops intel_ntb3_ops; |
|---|
| 109 | 117 | |
|---|