X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;ds=sidebyside;f=drivers%2Fcommon%2Fcnxk%2Froc_sso_priv.h;h=5361d4f9805487d666b08f9a49cf00b3b600d11c;hb=dd9525a7154e749a5620ccf0c4806011d2e696f3;hp=1ab3f5b6886905a403e49725e95b3c923e24d103;hpb=9b727f851127adac71ce680cac14687fd8cf8f5b;p=dpdk.git diff --git a/drivers/common/cnxk/roc_sso_priv.h b/drivers/common/cnxk/roc_sso_priv.h index 1ab3f5b688..5361d4f980 100644 --- a/drivers/common/cnxk/roc_sso_priv.h +++ b/drivers/common/cnxk/roc_sso_priv.h @@ -13,6 +13,15 @@ struct sso_rsrc { struct sso { struct plt_pci_device *pci_dev; struct dev dev; + /* Interrupt handler args. */ + struct sso_rsrc hws_rsrc[MAX_RVU_BLKLF_CNT]; + struct sso_rsrc hwgrp_rsrc[MAX_RVU_BLKLF_CNT]; + /* MSIX offsets */ + uint16_t hws_msix_offset[MAX_RVU_BLKLF_CNT]; + uint16_t hwgrp_msix_offset[MAX_RVU_BLKLF_CNT]; + /* SSO link mapping. */ + struct plt_bitmap **link_map; + void *link_map_mem; } __plt_cache_aligned; enum sso_err_status { @@ -30,4 +39,12 @@ roc_sso_to_sso_priv(struct roc_sso *roc_sso) return (struct sso *)&roc_sso->reserved[0]; } +/* SSO IRQ */ +int sso_register_irqs_priv(struct roc_sso *roc_sso, + struct plt_intr_handle *handle, uint16_t nb_hws, + uint16_t nb_hwgrp); +void sso_unregister_irqs_priv(struct roc_sso *roc_sso, + struct plt_intr_handle *handle, uint16_t nb_hws, + uint16_t nb_hwgrp); + #endif /* _ROC_SSO_PRIV_H_ */