diff options
Diffstat (limited to 'drivers/net/ethernet/intel/ixgbe/ixgbe.h')
-rw-r--r-- | drivers/net/ethernet/intel/ixgbe/ixgbe.h | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe.h b/drivers/net/ethernet/intel/ixgbe/ixgbe.h index 30efc9f0f47a..8e786764c60e 100644 --- a/drivers/net/ethernet/intel/ixgbe/ixgbe.h +++ b/drivers/net/ethernet/intel/ixgbe/ixgbe.h | |||
@@ -36,11 +36,9 @@ | |||
36 | #include <linux/aer.h> | 36 | #include <linux/aer.h> |
37 | #include <linux/if_vlan.h> | 37 | #include <linux/if_vlan.h> |
38 | 38 | ||
39 | #ifdef CONFIG_IXGBE_PTP | ||
40 | #include <linux/clocksource.h> | 39 | #include <linux/clocksource.h> |
41 | #include <linux/net_tstamp.h> | 40 | #include <linux/net_tstamp.h> |
42 | #include <linux/ptp_clock_kernel.h> | 41 | #include <linux/ptp_clock_kernel.h> |
43 | #endif /* CONFIG_IXGBE_PTP */ | ||
44 | 42 | ||
45 | #include "ixgbe_type.h" | 43 | #include "ixgbe_type.h" |
46 | #include "ixgbe_common.h" | 44 | #include "ixgbe_common.h" |
@@ -135,6 +133,7 @@ struct vf_data_storage { | |||
135 | u16 tx_rate; | 133 | u16 tx_rate; |
136 | u16 vlan_count; | 134 | u16 vlan_count; |
137 | u8 spoofchk_enabled; | 135 | u8 spoofchk_enabled; |
136 | unsigned int vf_api; | ||
138 | }; | 137 | }; |
139 | 138 | ||
140 | struct vf_macvlans { | 139 | struct vf_macvlans { |
@@ -482,8 +481,9 @@ struct ixgbe_adapter { | |||
482 | #define IXGBE_FLAG2_FDIR_REQUIRES_REINIT (u32)(1 << 7) | 481 | #define IXGBE_FLAG2_FDIR_REQUIRES_REINIT (u32)(1 << 7) |
483 | #define IXGBE_FLAG2_RSS_FIELD_IPV4_UDP (u32)(1 << 8) | 482 | #define IXGBE_FLAG2_RSS_FIELD_IPV4_UDP (u32)(1 << 8) |
484 | #define IXGBE_FLAG2_RSS_FIELD_IPV6_UDP (u32)(1 << 9) | 483 | #define IXGBE_FLAG2_RSS_FIELD_IPV6_UDP (u32)(1 << 9) |
485 | #define IXGBE_FLAG2_OVERFLOW_CHECK_ENABLED (u32)(1 << 10) | 484 | #define IXGBE_FLAG2_PTP_ENABLED (u32)(1 << 10) |
486 | #define IXGBE_FLAG2_PTP_PPS_ENABLED (u32)(1 << 11) | 485 | #define IXGBE_FLAG2_PTP_PPS_ENABLED (u32)(1 << 11) |
486 | #define IXGBE_FLAG2_BRIDGE_MODE_VEB (u32)(1 << 12) | ||
487 | 487 | ||
488 | /* Tx fast path data */ | 488 | /* Tx fast path data */ |
489 | int num_tx_queues; | 489 | int num_tx_queues; |
@@ -571,7 +571,6 @@ struct ixgbe_adapter { | |||
571 | u32 interrupt_event; | 571 | u32 interrupt_event; |
572 | u32 led_reg; | 572 | u32 led_reg; |
573 | 573 | ||
574 | #ifdef CONFIG_IXGBE_PTP | ||
575 | struct ptp_clock *ptp_clock; | 574 | struct ptp_clock *ptp_clock; |
576 | struct ptp_clock_info ptp_caps; | 575 | struct ptp_clock_info ptp_caps; |
577 | unsigned long last_overflow_check; | 576 | unsigned long last_overflow_check; |
@@ -580,8 +579,6 @@ struct ixgbe_adapter { | |||
580 | struct timecounter tc; | 579 | struct timecounter tc; |
581 | int rx_hwtstamp_filter; | 580 | int rx_hwtstamp_filter; |
582 | u32 base_incval; | 581 | u32 base_incval; |
583 | u32 cycle_speed; | ||
584 | #endif /* CONFIG_IXGBE_PTP */ | ||
585 | 582 | ||
586 | /* SR-IOV */ | 583 | /* SR-IOV */ |
587 | DECLARE_BITMAP(active_vfs, IXGBE_MAX_VF_FUNCTIONS); | 584 | DECLARE_BITMAP(active_vfs, IXGBE_MAX_VF_FUNCTIONS); |
@@ -600,6 +597,8 @@ struct ixgbe_adapter { | |||
600 | #ifdef CONFIG_DEBUG_FS | 597 | #ifdef CONFIG_DEBUG_FS |
601 | struct dentry *ixgbe_dbg_adapter; | 598 | struct dentry *ixgbe_dbg_adapter; |
602 | #endif /*CONFIG_DEBUG_FS*/ | 599 | #endif /*CONFIG_DEBUG_FS*/ |
600 | |||
601 | u8 default_up; | ||
603 | }; | 602 | }; |
604 | 603 | ||
605 | struct ixgbe_fdir_filter { | 604 | struct ixgbe_fdir_filter { |
@@ -691,6 +690,7 @@ extern s32 ixgbe_fdir_erase_perfect_filter_82599(struct ixgbe_hw *hw, | |||
691 | u16 soft_id); | 690 | u16 soft_id); |
692 | extern void ixgbe_atr_compute_perfect_hash_82599(union ixgbe_atr_input *input, | 691 | extern void ixgbe_atr_compute_perfect_hash_82599(union ixgbe_atr_input *input, |
693 | union ixgbe_atr_input *mask); | 692 | union ixgbe_atr_input *mask); |
693 | extern bool ixgbe_verify_lesm_fw_enabled_82599(struct ixgbe_hw *hw); | ||
694 | extern void ixgbe_set_rx_mode(struct net_device *netdev); | 694 | extern void ixgbe_set_rx_mode(struct net_device *netdev); |
695 | #ifdef CONFIG_IXGBE_DCB | 695 | #ifdef CONFIG_IXGBE_DCB |
696 | extern void ixgbe_set_rx_drop_en(struct ixgbe_adapter *adapter); | 696 | extern void ixgbe_set_rx_drop_en(struct ixgbe_adapter *adapter); |
@@ -739,7 +739,6 @@ static inline struct netdev_queue *txring_txq(const struct ixgbe_ring *ring) | |||
739 | return netdev_get_tx_queue(ring->netdev, ring->queue_index); | 739 | return netdev_get_tx_queue(ring->netdev, ring->queue_index); |
740 | } | 740 | } |
741 | 741 | ||
742 | #ifdef CONFIG_IXGBE_PTP | ||
743 | extern void ixgbe_ptp_init(struct ixgbe_adapter *adapter); | 742 | extern void ixgbe_ptp_init(struct ixgbe_adapter *adapter); |
744 | extern void ixgbe_ptp_stop(struct ixgbe_adapter *adapter); | 743 | extern void ixgbe_ptp_stop(struct ixgbe_adapter *adapter); |
745 | extern void ixgbe_ptp_overflow_check(struct ixgbe_adapter *adapter); | 744 | extern void ixgbe_ptp_overflow_check(struct ixgbe_adapter *adapter); |
@@ -751,7 +750,7 @@ extern void ixgbe_ptp_rx_hwtstamp(struct ixgbe_q_vector *q_vector, | |||
751 | extern int ixgbe_ptp_hwtstamp_ioctl(struct ixgbe_adapter *adapter, | 750 | extern int ixgbe_ptp_hwtstamp_ioctl(struct ixgbe_adapter *adapter, |
752 | struct ifreq *ifr, int cmd); | 751 | struct ifreq *ifr, int cmd); |
753 | extern void ixgbe_ptp_start_cyclecounter(struct ixgbe_adapter *adapter); | 752 | extern void ixgbe_ptp_start_cyclecounter(struct ixgbe_adapter *adapter); |
753 | extern void ixgbe_ptp_reset(struct ixgbe_adapter *adapter); | ||
754 | extern void ixgbe_ptp_check_pps_event(struct ixgbe_adapter *adapter, u32 eicr); | 754 | extern void ixgbe_ptp_check_pps_event(struct ixgbe_adapter *adapter, u32 eicr); |
755 | #endif /* CONFIG_IXGBE_PTP */ | ||
756 | 755 | ||
757 | #endif /* _IXGBE_H_ */ | 756 | #endif /* _IXGBE_H_ */ |