X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=drivers%2Fcommon%2Fcnxk%2Froc_idev_priv.h;h=36cdb330ebccb08a0f7345eb061090c996b76623;hb=62240569be1f9dd5b3f152bb19142e5d9be7c05f;hp=a096288a33f3a85d88ecaa6f7c39a2f1e3bc3660;hpb=665ff1ccc2c4350dd777dbd372785614d2a42f81;p=dpdk.git diff --git a/drivers/common/cnxk/roc_idev_priv.h b/drivers/common/cnxk/roc_idev_priv.h index a096288a33..36cdb330eb 100644 --- a/drivers/common/cnxk/roc_idev_priv.h +++ b/drivers/common/cnxk/roc_idev_priv.h @@ -6,7 +6,12 @@ #define _ROC_IDEV_PRIV_H_ /* Intra device related functions */ +struct npa_lf; struct idev_cfg { + uint16_t npa_pf_func; + struct npa_lf *npa; + uint16_t npa_refcnt; + uint32_t max_pools; uint16_t lmt_pf_func; uint16_t num_lmtlines; uint64_t lmt_base_addr; @@ -16,6 +21,13 @@ struct idev_cfg { struct idev_cfg *idev_get_cfg(void); void idev_set_defaults(struct idev_cfg *idev); +/* idev npa */ +uint16_t idev_npa_pffunc_get(void); +struct npa_lf *idev_npa_obj_get(void); +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 lmt */ uint16_t idev_lmt_pffunc_get(void);