Commit 61220e09 authored by Chandramohan Akula's avatar Chandramohan Akula Committed by Jason Gunthorpe

bnxt_en: Share the bar0 address with the RoCE driver

Add a parameter in the bnxt_en_dev structure to share the bar0 address
with RoCE driver.

Link: https://lore.kernel.org/r/1689742977-9128-3-git-send-email-selvin.xavier@broadcom.com
CC: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: default avatarChandramohan Akula <chandramohan.akula@broadcom.com>
Signed-off-by: default avatarSelvin Xavier <selvin.xavier@broadcom.com>
Signed-off-by: default avatarJason Gunthorpe <jgg@nvidia.com>
parent cf1694f0
...@@ -345,7 +345,7 @@ static void bnxt_set_edev_info(struct bnxt_en_dev *edev, struct bnxt *bp) ...@@ -345,7 +345,7 @@ static void bnxt_set_edev_info(struct bnxt_en_dev *edev, struct bnxt *bp)
edev->hw_ring_stats_size = bp->hw_ring_stats_size; edev->hw_ring_stats_size = bp->hw_ring_stats_size;
edev->pf_port_id = bp->pf.port_id; edev->pf_port_id = bp->pf.port_id;
edev->en_state = bp->state; edev->en_state = bp->state;
edev->bar0 = bp->bar0;
edev->ulp_tbl->msix_requested = bnxt_get_ulp_msix_num(bp); edev->ulp_tbl->msix_requested = bnxt_get_ulp_msix_num(bp);
} }
......
...@@ -81,6 +81,7 @@ struct bnxt_en_dev { ...@@ -81,6 +81,7 @@ struct bnxt_en_dev {
* mode only. Will be * mode only. Will be
* updated in resume. * updated in resume.
*/ */
void __iomem *bar0;
}; };
static inline bool bnxt_ulp_registered(struct bnxt_en_dev *edev) static inline bool bnxt_ulp_registered(struct bnxt_en_dev *edev)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment