]> git.droids-corp.org - dpdk.git/commitdiff
common/cnxk: support reading NPA/SSO PF function
authorTomasz Duszynski <tduszynski@marvell.com>
Sun, 15 Aug 2021 23:12:01 +0000 (01:12 +0200)
committerJerin Jacob <jerinj@marvell.com>
Tue, 28 Sep 2021 13:16:13 +0000 (15:16 +0200)
Add support for reading NPA/SSO pf_func which will be used
by a PSM to access NPA/SSO. PSM is a hardware block capable
of dispatching jobs to different blocks within a baseband
module.

Signed-off-by: Tomasz Duszynski <tduszynski@marvell.com>
Reviewed-by: Jerin Jacob <jerinj@marvell.com>
drivers/common/cnxk/roc_bphy.c
drivers/common/cnxk/roc_bphy.h
drivers/common/cnxk/version.map

index 77606d64656a0ade3023bfc93f44a2d6177789e0..12234c5dcc69f0a25b68401961dd8a2968b0cddd 100644 (file)
@@ -38,3 +38,15 @@ roc_bphy_dev_fini(struct roc_bphy *roc_bphy)
 
        return 0;
 }
+
+uint16_t
+roc_bphy_npa_pf_func_get(void)
+{
+       return idev_npa_pffunc_get();
+}
+
+uint16_t
+roc_bphy_sso_pf_func_get(void)
+{
+       return idev_sso_pffunc_get();
+}
index ea3124c6aaebd13422289861e28097699d2d57f6..f313fb6c387f88fda4aa20480a4ff7c89da41c00 100644 (file)
@@ -14,5 +14,7 @@ struct roc_bphy {
 
 int __roc_api roc_bphy_dev_init(struct roc_bphy *roc_bphy);
 int __roc_api roc_bphy_dev_fini(struct roc_bphy *roc_bphy);
+__roc_api uint16_t roc_bphy_npa_pf_func_get(void);
+__roc_api uint16_t roc_bphy_sso_pf_func_get(void);
 
 #endif /* _ROC_BPHY_ */
index 4acf80c089094a1a3b3f504b71e7f16f4e4523f6..e53cc6b9cc5ecd6534a1135ff119732adc9056e5 100644 (file)
@@ -43,6 +43,8 @@ INTERNAL {
        roc_bphy_intr_handler;
        roc_bphy_intr_init;
        roc_bphy_intr_register;
+       roc_bphy_npa_pf_func_get;
+       roc_bphy_sso_pf_func_get;
        roc_clk_freq_get;
        roc_cpt_afs_print;
        roc_cpt_dev_clear;