crypto/mlx5: support statistics operations
[dpdk.git] / drivers / common / octeontx2 / otx2_dev.h
index cd4fe51..d5b2b0d 100644 (file)
         (RVU_PCI_REV_MINOR(otx2_dev_revid(dev)) == 0x0) &&     \
         (RVU_PCI_REV_MIDR_ID(otx2_dev_revid(dev)) == 0x0))
 
+#define otx2_dev_is_98xx(dev)                                   \
+        (RVU_PCI_REV_MIDR_ID(otx2_dev_revid(dev)) == 0x3)
+
 struct otx2_dev;
 
-/* Link status callback */
-typedef void (*otx2_link_status_t)(struct otx2_dev *dev,
+/* Link status update callback */
+typedef void (*otx2_link_status_update_t)(struct otx2_dev *dev,
                                   struct cgx_link_user_info *link);
 /* PTP info callback */
 typedef int (*otx2_ptp_info_t)(struct otx2_dev *dev, bool ptp_en);
+/* Link status get callback */
+typedef void (*otx2_link_status_get_t)(struct otx2_dev *dev,
+                                  struct cgx_link_user_info *link);
 
 struct otx2_dev_ops {
-       otx2_link_status_t link_status_update;
+       otx2_link_status_update_t link_status_update;
        otx2_ptp_info_t ptp_info_update;
+       otx2_link_status_get_t link_status_get;
 };
 
 #define OTX2_DEV                                       \