net/bnxt: move PMD specific functions
[dpdk.git] / drivers / net / bnxt / bnxt.h
index c1f9095..1538aa5 100644 (file)
@@ -103,8 +103,8 @@ struct bnxt_child_vf_info {
        uint32_t                func_cfg_flags;
        uint32_t                l2_rx_mask;
        uint16_t                fid;
-       uint16_t                dflt_vlan;
        uint16_t                max_tx_rate;
+       uint16_t                dflt_vlan;
        uint16_t                vlan_count;
        uint8_t                 mac_spoof_en;
        uint8_t                 vlan_spoof_en;
@@ -250,32 +250,6 @@ struct bnxt {
        uint8_t                 num_leds;
 };
 
-/*
- * Response sent back to the caller after callback
- */
-enum rte_pmd_bnxt_mb_event_rsp {
-       RTE_PMD_BNXT_MB_EVENT_NOOP_ACK,  /**< skip mbox request and ACK */
-       RTE_PMD_BNXT_MB_EVENT_NOOP_NACK, /**< skip mbox request and NACK */
-       RTE_PMD_BNXT_MB_EVENT_PROCEED,  /**< proceed with mbox request  */
-       RTE_PMD_BNXT_MB_EVENT_MAX       /**< max value of this enum */
-};
-
-/* mailbox message types */
-#define BNXT_VF_RESET                  0x01 /* VF requests reset */
-#define BNXT_VF_SET_MAC_ADDR   0x02 /* VF requests PF to set MAC addr */
-#define BNXT_VF_SET_VLAN               0x03 /* VF requests PF to set VLAN */
-#define BNXT_VF_SET_MTU                        0x04 /* VF requests PF to set MTU */
-#define BNXT_VF_SET_MRU                        0x05 /* VF requests PF to set MRU */
-
-/*
- * Data sent to the caller when the callback is executed.
- */
-struct rte_pmd_bnxt_mb_event_param {
-       uint16_t vf_id; /* Virtual Function number */
-       int     retval; /* return value */
-       void    *msg;   /* pointer to message */
-};
-
 int bnxt_link_update_op(struct rte_eth_dev *eth_dev, int wait_to_complete);
 int bnxt_rcv_msg_from_vf(struct bnxt *bp, uint16_t vf_id, void *msg);