diff options
Diffstat (limited to 'drivers/net/ethernet/intel/igb/igb.h')
-rw-r--r-- | drivers/net/ethernet/intel/igb/igb.h | 74 |
1 files changed, 36 insertions, 38 deletions
diff --git a/drivers/net/ethernet/intel/igb/igb.h b/drivers/net/ethernet/intel/igb/igb.h index 6807b098edae..5e9ed89403aa 100644 --- a/drivers/net/ethernet/intel/igb/igb.h +++ b/drivers/net/ethernet/intel/igb/igb.h | |||
@@ -483,40 +483,38 @@ enum igb_boards { | |||
483 | extern char igb_driver_name[]; | 483 | extern char igb_driver_name[]; |
484 | extern char igb_driver_version[]; | 484 | extern char igb_driver_version[]; |
485 | 485 | ||
486 | extern int igb_up(struct igb_adapter *); | 486 | int igb_up(struct igb_adapter *); |
487 | extern void igb_down(struct igb_adapter *); | 487 | void igb_down(struct igb_adapter *); |
488 | extern void igb_reinit_locked(struct igb_adapter *); | 488 | void igb_reinit_locked(struct igb_adapter *); |
489 | extern void igb_reset(struct igb_adapter *); | 489 | void igb_reset(struct igb_adapter *); |
490 | extern void igb_write_rss_indir_tbl(struct igb_adapter *); | 490 | int igb_reinit_queues(struct igb_adapter *); |
491 | extern int igb_set_spd_dplx(struct igb_adapter *, u32, u8); | 491 | void igb_write_rss_indir_tbl(struct igb_adapter *); |
492 | extern int igb_setup_tx_resources(struct igb_ring *); | 492 | int igb_set_spd_dplx(struct igb_adapter *, u32, u8); |
493 | extern int igb_setup_rx_resources(struct igb_ring *); | 493 | int igb_setup_tx_resources(struct igb_ring *); |
494 | extern void igb_free_tx_resources(struct igb_ring *); | 494 | int igb_setup_rx_resources(struct igb_ring *); |
495 | extern void igb_free_rx_resources(struct igb_ring *); | 495 | void igb_free_tx_resources(struct igb_ring *); |
496 | extern void igb_configure_tx_ring(struct igb_adapter *, struct igb_ring *); | 496 | void igb_free_rx_resources(struct igb_ring *); |
497 | extern void igb_configure_rx_ring(struct igb_adapter *, struct igb_ring *); | 497 | void igb_configure_tx_ring(struct igb_adapter *, struct igb_ring *); |
498 | extern void igb_setup_tctl(struct igb_adapter *); | 498 | void igb_configure_rx_ring(struct igb_adapter *, struct igb_ring *); |
499 | extern void igb_setup_rctl(struct igb_adapter *); | 499 | void igb_setup_tctl(struct igb_adapter *); |
500 | extern netdev_tx_t igb_xmit_frame_ring(struct sk_buff *, struct igb_ring *); | 500 | void igb_setup_rctl(struct igb_adapter *); |
501 | extern void igb_unmap_and_free_tx_resource(struct igb_ring *, | 501 | netdev_tx_t igb_xmit_frame_ring(struct sk_buff *, struct igb_ring *); |
502 | struct igb_tx_buffer *); | 502 | void igb_unmap_and_free_tx_resource(struct igb_ring *, struct igb_tx_buffer *); |
503 | extern void igb_alloc_rx_buffers(struct igb_ring *, u16); | 503 | void igb_alloc_rx_buffers(struct igb_ring *, u16); |
504 | extern void igb_update_stats(struct igb_adapter *, struct rtnl_link_stats64 *); | 504 | void igb_update_stats(struct igb_adapter *, struct rtnl_link_stats64 *); |
505 | extern bool igb_has_link(struct igb_adapter *adapter); | 505 | bool igb_has_link(struct igb_adapter *adapter); |
506 | extern void igb_set_ethtool_ops(struct net_device *); | 506 | void igb_set_ethtool_ops(struct net_device *); |
507 | extern void igb_power_up_link(struct igb_adapter *); | 507 | void igb_power_up_link(struct igb_adapter *); |
508 | extern void igb_set_fw_version(struct igb_adapter *); | 508 | void igb_set_fw_version(struct igb_adapter *); |
509 | extern void igb_ptp_init(struct igb_adapter *adapter); | 509 | void igb_ptp_init(struct igb_adapter *adapter); |
510 | extern void igb_ptp_stop(struct igb_adapter *adapter); | 510 | void igb_ptp_stop(struct igb_adapter *adapter); |
511 | extern void igb_ptp_reset(struct igb_adapter *adapter); | 511 | void igb_ptp_reset(struct igb_adapter *adapter); |
512 | extern void igb_ptp_tx_work(struct work_struct *work); | 512 | void igb_ptp_tx_work(struct work_struct *work); |
513 | extern void igb_ptp_rx_hang(struct igb_adapter *adapter); | 513 | void igb_ptp_rx_hang(struct igb_adapter *adapter); |
514 | extern void igb_ptp_tx_hwtstamp(struct igb_adapter *adapter); | 514 | void igb_ptp_tx_hwtstamp(struct igb_adapter *adapter); |
515 | extern void igb_ptp_rx_rgtstamp(struct igb_q_vector *q_vector, | 515 | void igb_ptp_rx_rgtstamp(struct igb_q_vector *q_vector, struct sk_buff *skb); |
516 | struct sk_buff *skb); | 516 | void igb_ptp_rx_pktstamp(struct igb_q_vector *q_vector, unsigned char *va, |
517 | extern void igb_ptp_rx_pktstamp(struct igb_q_vector *q_vector, | 517 | struct sk_buff *skb); |
518 | unsigned char *va, | ||
519 | struct sk_buff *skb); | ||
520 | static inline void igb_ptp_rx_hwtstamp(struct igb_ring *rx_ring, | 518 | static inline void igb_ptp_rx_hwtstamp(struct igb_ring *rx_ring, |
521 | union e1000_adv_rx_desc *rx_desc, | 519 | union e1000_adv_rx_desc *rx_desc, |
522 | struct sk_buff *skb) | 520 | struct sk_buff *skb) |
@@ -531,11 +529,11 @@ static inline void igb_ptp_rx_hwtstamp(struct igb_ring *rx_ring, | |||
531 | rx_ring->last_rx_timestamp = jiffies; | 529 | rx_ring->last_rx_timestamp = jiffies; |
532 | } | 530 | } |
533 | 531 | ||
534 | extern int igb_ptp_hwtstamp_ioctl(struct net_device *netdev, | 532 | int igb_ptp_hwtstamp_ioctl(struct net_device *netdev, struct ifreq *ifr, |
535 | struct ifreq *ifr, int cmd); | 533 | int cmd); |
536 | #ifdef CONFIG_IGB_HWMON | 534 | #ifdef CONFIG_IGB_HWMON |
537 | extern void igb_sysfs_exit(struct igb_adapter *adapter); | 535 | void igb_sysfs_exit(struct igb_adapter *adapter); |
538 | extern int igb_sysfs_init(struct igb_adapter *adapter); | 536 | int igb_sysfs_init(struct igb_adapter *adapter); |
539 | #endif | 537 | #endif |
540 | static inline s32 igb_reset_phy(struct e1000_hw *hw) | 538 | static inline s32 igb_reset_phy(struct e1000_hw *hw) |
541 | { | 539 | { |