net/txgbe: add interrupt operation
[dpdk.git] / drivers / net / txgbe / base / txgbe_hw.c
index d2d12a9..31f8688 100644 (file)
@@ -8,6 +8,8 @@
 #include "txgbe_mng.h"
 #include "txgbe_hw.h"
 
+#define TXGBE_RAPTOR_MAX_TX_QUEUES 128
+#define TXGBE_RAPTOR_MAX_RX_QUEUES 128
 #define TXGBE_RAPTOR_RAR_ENTRIES   128
 
 /**
@@ -291,15 +293,19 @@ s32 txgbe_init_ops_pf(struct txgbe_hw *hw)
        /* PHY */
        phy->identify = txgbe_identify_phy;
        phy->init = txgbe_init_phy_raptor;
+       phy->read_reg = txgbe_read_phy_reg;
+       phy->write_reg = txgbe_write_phy_reg;
+       phy->read_reg_mdi = txgbe_read_phy_reg_mdi;
+       phy->write_reg_mdi = txgbe_write_phy_reg_mdi;
        phy->read_i2c_byte = txgbe_read_i2c_byte;
        phy->write_i2c_byte = txgbe_write_i2c_byte;
        phy->read_i2c_eeprom = txgbe_read_i2c_eeprom;
        phy->write_i2c_eeprom = txgbe_write_i2c_eeprom;
+       phy->reset = txgbe_reset_phy;
 
        /* MAC */
        mac->init_hw = txgbe_init_hw;
        mac->reset_hw = txgbe_reset_hw;
-       mac->num_rar_entries    = TXGBE_RAPTOR_RAR_ENTRIES;
 
        /* EEPROM */
        rom->init_params = txgbe_init_eeprom_params;
@@ -315,6 +321,10 @@ s32 txgbe_init_ops_pf(struct txgbe_hw *hw)
        rom->update_checksum = txgbe_update_eeprom_checksum;
        rom->calc_checksum = txgbe_calc_eeprom_checksum;
 
+       mac->num_rar_entries    = TXGBE_RAPTOR_RAR_ENTRIES;
+       mac->max_rx_queues      = TXGBE_RAPTOR_MAX_RX_QUEUES;
+       mac->max_tx_queues      = TXGBE_RAPTOR_MAX_TX_QUEUES;
+
        return 0;
 }