net/bntx: use new API to get iova address XXX
[dpdk.git] / drivers / net / bnxt / bnxt.h
index 294a174..8ab1c7f 100644 (file)
@@ -39,6 +39,7 @@
 #include <sys/queue.h>
 
 #include <rte_pci.h>
+#include <rte_bus_pci.h>
 #include <rte_ethdev.h>
 #include <rte_memory.h>
 #include <rte_lcore.h>
@@ -132,7 +133,7 @@ struct bnxt_pf_info {
        uint16_t                max_vfs;
        uint32_t                func_cfg_flags;
        void                    *vf_req_buf;
-       phys_addr_t             vf_req_buf_dma_addr;
+       rte_iova_t              vf_req_buf_dma_addr;
        uint32_t                vf_req_fwd[8];
        uint16_t                total_vnics;
        struct bnxt_child_vf_info       *vf_info;
@@ -163,6 +164,8 @@ struct bnxt_link_info {
        uint16_t                auto_link_speed;
        uint16_t                auto_link_speed_mask;
        uint32_t                preemphasis;
+       uint8_t                 phy_type;
+       uint8_t                 media_type;
 };
 
 #define BNXT_COS_QUEUE_COUNT   8
@@ -202,14 +205,14 @@ struct bnxt {
        struct bnxt_rx_queue **rx_queues;
        const void              *rx_mem_zone;
        struct rx_port_stats    *hw_rx_port_stats;
-       phys_addr_t             hw_rx_port_stats_map;
+       rte_iova_t              hw_rx_port_stats_map;
 
        unsigned int            tx_nr_rings;
        unsigned int            tx_cp_nr_rings;
        struct bnxt_tx_queue **tx_queues;
        const void              *tx_mem_zone;
        struct tx_port_stats    *hw_tx_port_stats;
-       phys_addr_t             hw_tx_port_stats_map;
+       rte_iova_t              hw_tx_port_stats_map;
 
        /* Default completion ring */
        struct bnxt_cp_ring_info        *def_cp_ring;
@@ -235,9 +238,9 @@ struct bnxt {
 
        uint16_t                        hwrm_cmd_seq;
        void                            *hwrm_cmd_resp_addr;
-       phys_addr_t                     hwrm_cmd_resp_dma_addr;
+       rte_iova_t                      hwrm_cmd_resp_dma_addr;
        void                            *hwrm_short_cmd_req_addr;
-       phys_addr_t                     hwrm_short_cmd_req_dma_addr;
+       rte_iova_t                      hwrm_short_cmd_req_dma_addr;
        rte_spinlock_t                  hwrm_lock;
        uint16_t                        max_req_len;
        uint16_t                        max_resp_len;