ethdev: change input parameters for Rx queue count
[dpdk.git] / drivers / net / txgbe / base / txgbe_dummy.h
index 495daa1..dcabe66 100644 (file)
@@ -1,5 +1,5 @@
 /* SPDX-License-Identifier: BSD-3-Clause
- * Copyright(c) 2015-2020
+ * Copyright(c) 2015-2020 Beijing WangXun Technology Co., Ltd.
  */
 
 #ifndef _TXGBE_TYPE_DUMMY_H_
@@ -7,7 +7,7 @@
 
 #ifdef TUP
 #elif defined(__GNUC__)
-#define TUP(x) x##_unused __attribute__((unused))
+#define TUP(x) x##_unused txgbe_unused
 #elif defined(__LCLINT__)
 #define TUP(x) x /*@unused@*/
 #else
@@ -326,7 +326,7 @@ static inline void txgbe_mac_fc_autoneg_dummy(struct txgbe_hw *TUP0)
 {
 }
 static inline s32 txgbe_mac_set_fw_drv_ver_dummy(struct txgbe_hw *TUP0, u8 TUP1,
-                       u8 TUP2, u8 TUP3, u8 TUP4, u16 TUP5, char *TUP6)
+                       u8 TUP2, u8 TUP3, u8 TUP4, u16 TUP5, const char *TUP6)
 {
        return TXGBE_ERR_OPS_DUMMY;
 }
@@ -424,6 +424,11 @@ static inline s32 txgbe_phy_check_link_dummy(struct txgbe_hw *TUP0, u32 *TUP1,
 {
        return TXGBE_ERR_OPS_DUMMY;
 }
+static inline s32 txgbe_get_phy_fw_version_dummy(struct txgbe_hw *TUP0,
+                                       u32 *TUP1)
+{
+       return TXGBE_ERR_OPS_DUMMY;
+}
 static inline s32 txgbe_phy_read_i2c_byte_dummy(struct txgbe_hw *TUP0, u8 TUP1,
                                        u8 TUP2, u8 *TUP3)
 {
@@ -628,6 +633,7 @@ static inline void txgbe_init_ops_dummy(struct txgbe_hw *hw)
        hw->phy.setup_link = txgbe_phy_setup_link_dummy;
        hw->phy.setup_link_speed = txgbe_phy_setup_link_speed_dummy;
        hw->phy.check_link = txgbe_phy_check_link_dummy;
+       hw->phy.get_fw_version = txgbe_get_phy_fw_version_dummy;
        hw->phy.read_i2c_byte = txgbe_phy_read_i2c_byte_dummy;
        hw->phy.write_i2c_byte = txgbe_phy_write_i2c_byte_dummy;
        hw->phy.read_i2c_sff8472 = txgbe_phy_read_i2c_sff8472_dummy;