diff options
Diffstat (limited to 'drivers/infiniband/hw/ocrdma/ocrdma_hw.h')
-rw-r--r-- | drivers/infiniband/hw/ocrdma/ocrdma_hw.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/ocrdma/ocrdma_hw.h b/drivers/infiniband/hw/ocrdma/ocrdma_hw.h index cc90ac3b6d42..044db74e780a 100644 --- a/drivers/infiniband/hw/ocrdma/ocrdma_hw.h +++ b/drivers/infiniband/hw/ocrdma/ocrdma_hw.h | |||
@@ -78,6 +78,11 @@ static inline void ocrdma_copy_le32_to_cpu(void *dst, void *src, u32 len) | |||
78 | #endif | 78 | #endif |
79 | } | 79 | } |
80 | 80 | ||
81 | static inline u64 ocrdma_get_db_addr(struct ocrdma_dev *dev, u32 pdid) | ||
82 | { | ||
83 | return dev->nic_info.unmapped_db + (pdid * dev->nic_info.db_page_size); | ||
84 | } | ||
85 | |||
81 | int ocrdma_init_hw(struct ocrdma_dev *); | 86 | int ocrdma_init_hw(struct ocrdma_dev *); |
82 | void ocrdma_cleanup_hw(struct ocrdma_dev *); | 87 | void ocrdma_cleanup_hw(struct ocrdma_dev *); |
83 | 88 | ||
@@ -100,7 +105,7 @@ int ocrdma_mbx_dealloc_lkey(struct ocrdma_dev *, int fmr, u32 lkey); | |||
100 | int ocrdma_reg_mr(struct ocrdma_dev *, struct ocrdma_hw_mr *hwmr, | 105 | int ocrdma_reg_mr(struct ocrdma_dev *, struct ocrdma_hw_mr *hwmr, |
101 | u32 pd_id, int acc); | 106 | u32 pd_id, int acc); |
102 | int ocrdma_mbx_create_cq(struct ocrdma_dev *, struct ocrdma_cq *, | 107 | int ocrdma_mbx_create_cq(struct ocrdma_dev *, struct ocrdma_cq *, |
103 | int entries, int dpp_cq); | 108 | int entries, int dpp_cq, u16 pd_id); |
104 | int ocrdma_mbx_destroy_cq(struct ocrdma_dev *, struct ocrdma_cq *); | 109 | int ocrdma_mbx_destroy_cq(struct ocrdma_dev *, struct ocrdma_cq *); |
105 | 110 | ||
106 | int ocrdma_mbx_create_qp(struct ocrdma_qp *, struct ib_qp_init_attr *attrs, | 111 | int ocrdma_mbx_create_qp(struct ocrdma_qp *, struct ib_qp_init_attr *attrs, |