1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(C) 2021 Marvell.
5 #ifndef _ROC_IDEV_PRIV_H_
6 #define _ROC_IDEV_PRIV_H_
8 /* Intra device related functions */
20 uint16_t num_lmtlines;
21 uint64_t lmt_base_addr;
22 struct roc_bphy *bphy;
24 struct nix_inl_dev *nix_inl_dev;
25 plt_spinlock_t nix_inl_dev_lock;
29 struct idev_cfg *idev_get_cfg(void);
30 void idev_set_defaults(struct idev_cfg *idev);
33 uint16_t idev_npa_pffunc_get(void);
34 struct npa_lf *idev_npa_obj_get(void);
35 uint32_t idev_npa_maxpools_get(void);
36 void idev_npa_maxpools_set(uint32_t max_pools);
37 uint16_t idev_npa_lf_active(struct dev *dev);
40 void idev_sso_pffunc_set(uint16_t sso_pf_func);
41 uint16_t idev_sso_pffunc_get(void);
44 uint16_t idev_lmt_pffunc_get(void);
46 #endif /* _ROC_IDEV_PRIV_H_ */