X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=drivers%2Fcommon%2Fcnxk%2Froc_idev_priv.h;h=46eebffcbb6200046f703e1a707c5d3f76d16e25;hb=bce33776a72a0b52d78999d8786099a916d48320;hp=36cdb330ebccb08a0f7345eb061090c996b76623;hpb=124ff1a4cbb3318421b03391b2cbc6735410f4bc;p=dpdk.git diff --git a/drivers/common/cnxk/roc_idev_priv.h b/drivers/common/cnxk/roc_idev_priv.h index 36cdb330eb..46eebffcbb 100644 --- a/drivers/common/cnxk/roc_idev_priv.h +++ b/drivers/common/cnxk/roc_idev_priv.h @@ -7,7 +7,11 @@ /* Intra device related functions */ struct npa_lf; +struct roc_bphy; +struct roc_cpt; +struct nix_inl_dev; struct idev_cfg { + uint16_t sso_pf_func; uint16_t npa_pf_func; struct npa_lf *npa; uint16_t npa_refcnt; @@ -15,6 +19,11 @@ struct idev_cfg { uint16_t lmt_pf_func; uint16_t num_lmtlines; uint64_t lmt_base_addr; + struct roc_bphy *bphy; + struct roc_cpt *cpt; + struct roc_sso *sso; + struct nix_inl_dev *nix_inl_dev; + plt_spinlock_t nix_inl_dev_lock; }; /* Generic */ @@ -28,6 +37,12 @@ uint32_t idev_npa_maxpools_get(void); void idev_npa_maxpools_set(uint32_t max_pools); uint16_t idev_npa_lf_active(struct dev *dev); +/* idev sso */ +void idev_sso_pffunc_set(uint16_t sso_pf_func); +uint16_t idev_sso_pffunc_get(void); +struct roc_sso *idev_sso_get(void); +void idev_sso_set(struct roc_sso *sso); + /* idev lmt */ uint16_t idev_lmt_pffunc_get(void);