]> git.droids-corp.org - dpdk.git/blobdiff - drivers/common/cnxk/roc_dev_priv.h
common/cnxk: support NIX stats
[dpdk.git] / drivers / common / cnxk / roc_dev_priv.h
index d20b08948950b18551cb572e42e80346cd465fa8..910cfb6eccdfeddb2c11ec66bd7fa5bef384302f 100644 (file)
@@ -78,6 +78,7 @@ struct dev {
        dev_intr_t intr;
        int timer_set; /* ~0 : no alarm handling */
        uint64_t hwcap;
        dev_intr_t intr;
        int timer_set; /* ~0 : no alarm handling */
        uint64_t hwcap;
+       struct npa_lf npa;
        struct mbox *mbox;
        uint16_t maxvf;
        struct dev_ops *ops;
        struct mbox *mbox;
        uint16_t maxvf;
        struct dev_ops *ops;
@@ -85,6 +86,11 @@ struct dev {
        bool disable_shared_lmt; /* false(default): shared lmt mode enabled */
 } __plt_cache_aligned;
 
        bool disable_shared_lmt; /* false(default): shared lmt mode enabled */
 } __plt_cache_aligned;
 
+struct npa {
+       struct plt_pci_device *pci_dev;
+       struct dev dev;
+} __plt_cache_aligned;
+
 extern uint16_t dev_rclk_freq;
 extern uint16_t dev_sclk_freq;
 
 extern uint16_t dev_rclk_freq;
 extern uint16_t dev_sclk_freq;