diff options
Diffstat (limited to 'drivers/net/sfc/net_driver.h')
-rw-r--r-- | drivers/net/sfc/net_driver.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/drivers/net/sfc/net_driver.h b/drivers/net/sfc/net_driver.h index 96d3f00df645..ec132038b26d 100644 --- a/drivers/net/sfc/net_driver.h +++ b/drivers/net/sfc/net_driver.h | |||
@@ -706,6 +706,7 @@ union efx_multicast_hash { | |||
706 | * @phy_op: PHY interface | 706 | * @phy_op: PHY interface |
707 | * @phy_data: PHY private data (including PHY-specific stats) | 707 | * @phy_data: PHY private data (including PHY-specific stats) |
708 | * @mdio: PHY MDIO interface | 708 | * @mdio: PHY MDIO interface |
709 | * @mdio_bus: PHY MDIO bus ID (only used by Siena) | ||
709 | * @phy_mode: PHY operating mode. Serialised by @mac_lock. | 710 | * @phy_mode: PHY operating mode. Serialised by @mac_lock. |
710 | * @xmac_poll_required: XMAC link state needs polling | 711 | * @xmac_poll_required: XMAC link state needs polling |
711 | * @link_advertising: Autonegotiation advertising flags | 712 | * @link_advertising: Autonegotiation advertising flags |
@@ -756,6 +757,7 @@ struct efx_nic { | |||
756 | 757 | ||
757 | struct efx_buffer irq_status; | 758 | struct efx_buffer irq_status; |
758 | volatile signed int last_irq_cpu; | 759 | volatile signed int last_irq_cpu; |
760 | unsigned long irq_zero_count; | ||
759 | 761 | ||
760 | struct efx_spi_device *spi_flash; | 762 | struct efx_spi_device *spi_flash; |
761 | struct efx_spi_device *spi_eeprom; | 763 | struct efx_spi_device *spi_eeprom; |
@@ -766,7 +768,7 @@ struct efx_nic { | |||
766 | 768 | ||
767 | unsigned n_rx_nodesc_drop_cnt; | 769 | unsigned n_rx_nodesc_drop_cnt; |
768 | 770 | ||
769 | struct falcon_nic_data *nic_data; | 771 | void *nic_data; |
770 | 772 | ||
771 | struct mutex mac_lock; | 773 | struct mutex mac_lock; |
772 | struct work_struct mac_work; | 774 | struct work_struct mac_work; |
@@ -792,6 +794,7 @@ struct efx_nic { | |||
792 | struct efx_phy_operations *phy_op; | 794 | struct efx_phy_operations *phy_op; |
793 | void *phy_data; | 795 | void *phy_data; |
794 | struct mdio_if_info mdio; | 796 | struct mdio_if_info mdio; |
797 | unsigned int mdio_bus; | ||
795 | enum efx_phy_mode phy_mode; | 798 | enum efx_phy_mode phy_mode; |
796 | 799 | ||
797 | bool xmac_poll_required; | 800 | bool xmac_poll_required; |
@@ -824,6 +827,11 @@ static inline const char *efx_dev_name(struct efx_nic *efx) | |||
824 | return efx_dev_registered(efx) ? efx->name : ""; | 827 | return efx_dev_registered(efx) ? efx->name : ""; |
825 | } | 828 | } |
826 | 829 | ||
830 | static inline unsigned int efx_port_num(struct efx_nic *efx) | ||
831 | { | ||
832 | return PCI_FUNC(efx->pci_dev->devfn); | ||
833 | } | ||
834 | |||
827 | /** | 835 | /** |
828 | * struct efx_nic_type - Efx device type definition | 836 | * struct efx_nic_type - Efx device type definition |
829 | * @probe: Probe the controller | 837 | * @probe: Probe the controller |