net/hns3: refactor multi-process initialization
[dpdk.git] / drivers / raw / cnxk_bphy / cnxk_bphy_irq.c
index bbcc285..bbe7f74 100644 (file)
@@ -7,7 +7,6 @@
 #include <rte_rawdev_pmd.h>
 
 #include <roc_api.h>
-#include <roc_bphy_irq.h>
 
 #include "cnxk_bphy_irq.h"
 
@@ -33,7 +32,7 @@ cnxk_bphy_irq_max_get(uint16_t dev_id)
        bphy_dev = cnxk_bphy_get_bphy_dev_by_dev_id(dev_id);
        irq_chip = bphy_dev->irq_chip;
 
-       return irq_chip->max_irq;
+       return roc_bphy_intr_max_get(irq_chip);
 }
 
 int
@@ -86,12 +85,12 @@ cnxk_bphy_intr_unregister(uint16_t dev_id, int irq_num)
        struct bphy_device *bphy_dev = cnxk_bphy_get_bphy_dev_by_dev_id(dev_id);
 
        if (bphy_dev->irq_chip)
-               roc_bphy_handler_clear(bphy_dev->irq_chip, irq_num);
+               roc_bphy_intr_clear(bphy_dev->irq_chip, irq_num);
        else
                plt_err("Missing irq chip");
 }
 
-struct bphy_mem *
+struct cnxk_bphy_mem *
 cnxk_bphy_mem_get(uint16_t dev_id)
 {
        struct bphy_device *bphy_dev = cnxk_bphy_get_bphy_dev_by_dev_id(dev_id);