aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2013-09-23 14:37:59 -0400
committerJoe Perches <joe@perches.com>2013-09-24 15:51:37 -0400
commit5ccc921af41a862fe969809228f029035f851502 (patch)
tree2147a9de3f7c5b9320aa651df6b35f2ae1897fc4 /drivers
parentd4cb2ee17dbb9fb636e5e127e8cb6cbde9d28cef (diff)
intel: Remove extern from function prototypes
There are a mix of function prototypes with and without extern in the kernel sources. Standardize on not using extern for function prototypes. Function prototypes don't need to be written with extern. extern is assumed by the compiler. Its use is as unnecessary as using auto to declare automatic/local variables in a block. Signed-off-by: Joe Perches <joe@perches.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/ethernet/intel/e1000/e1000.h32
-rw-r--r--drivers/net/ethernet/intel/e1000e/e1000.h45
-rw-r--r--drivers/net/ethernet/intel/igb/e1000_82575.h16
-rw-r--r--drivers/net/ethernet/intel/igb/e1000_hw.h6
-rw-r--r--drivers/net/ethernet/intel/igb/e1000_i210.h38
-rw-r--r--drivers/net/ethernet/intel/igb/e1000_mac.h2
-rw-r--r--drivers/net/ethernet/intel/igb/igb.h73
-rw-r--r--drivers/net/ethernet/intel/igbvf/igbvf.h22
-rw-r--r--drivers/net/ethernet/intel/ixgb/ixgb.h22
-rw-r--r--drivers/net/ethernet/intel/ixgb/ixgb_hw.h25
-rw-r--r--drivers/net/ethernet/intel/ixgbe/ixgbe.h172
-rw-r--r--drivers/net/ethernet/intel/ixgbevf/ixgbevf.h34
12 files changed, 233 insertions, 254 deletions
diff --git a/drivers/net/ethernet/intel/e1000/e1000.h b/drivers/net/ethernet/intel/e1000/e1000.h
index 26d9cd59ec75..58c147271a36 100644
--- a/drivers/net/ethernet/intel/e1000/e1000.h
+++ b/drivers/net/ethernet/intel/e1000/e1000.h
@@ -325,7 +325,7 @@ enum e1000_state_t {
325#undef pr_fmt 325#undef pr_fmt
326#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt 326#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
327 327
328extern struct net_device *e1000_get_hw_dev(struct e1000_hw *hw); 328struct net_device *e1000_get_hw_dev(struct e1000_hw *hw);
329#define e_dbg(format, arg...) \ 329#define e_dbg(format, arg...) \
330 netdev_dbg(e1000_get_hw_dev(hw), format, ## arg) 330 netdev_dbg(e1000_get_hw_dev(hw), format, ## arg)
331#define e_err(msglvl, format, arg...) \ 331#define e_err(msglvl, format, arg...) \
@@ -346,20 +346,20 @@ extern struct net_device *e1000_get_hw_dev(struct e1000_hw *hw);
346extern char e1000_driver_name[]; 346extern char e1000_driver_name[];
347extern const char e1000_driver_version[]; 347extern const char e1000_driver_version[];
348 348
349extern int e1000_up(struct e1000_adapter *adapter); 349int e1000_up(struct e1000_adapter *adapter);
350extern void e1000_down(struct e1000_adapter *adapter); 350void e1000_down(struct e1000_adapter *adapter);
351extern void e1000_reinit_locked(struct e1000_adapter *adapter); 351void e1000_reinit_locked(struct e1000_adapter *adapter);
352extern void e1000_reset(struct e1000_adapter *adapter); 352void e1000_reset(struct e1000_adapter *adapter);
353extern int e1000_set_spd_dplx(struct e1000_adapter *adapter, u32 spd, u8 dplx); 353int e1000_set_spd_dplx(struct e1000_adapter *adapter, u32 spd, u8 dplx);
354extern int e1000_setup_all_rx_resources(struct e1000_adapter *adapter); 354int e1000_setup_all_rx_resources(struct e1000_adapter *adapter);
355extern int e1000_setup_all_tx_resources(struct e1000_adapter *adapter); 355int e1000_setup_all_tx_resources(struct e1000_adapter *adapter);
356extern void e1000_free_all_rx_resources(struct e1000_adapter *adapter); 356void e1000_free_all_rx_resources(struct e1000_adapter *adapter);
357extern void e1000_free_all_tx_resources(struct e1000_adapter *adapter); 357void e1000_free_all_tx_resources(struct e1000_adapter *adapter);
358extern void e1000_update_stats(struct e1000_adapter *adapter); 358void e1000_update_stats(struct e1000_adapter *adapter);
359extern bool e1000_has_link(struct e1000_adapter *adapter); 359bool e1000_has_link(struct e1000_adapter *adapter);
360extern void e1000_power_up_phy(struct e1000_adapter *); 360void e1000_power_up_phy(struct e1000_adapter *);
361extern void e1000_set_ethtool_ops(struct net_device *netdev); 361void e1000_set_ethtool_ops(struct net_device *netdev);
362extern void e1000_check_options(struct e1000_adapter *adapter); 362void e1000_check_options(struct e1000_adapter *adapter);
363extern char *e1000_get_hw_dev_name(struct e1000_hw *hw); 363char *e1000_get_hw_dev_name(struct e1000_hw *hw);
364 364
365#endif /* _E1000_H_ */ 365#endif /* _E1000_H_ */
diff --git a/drivers/net/ethernet/intel/e1000e/e1000.h b/drivers/net/ethernet/intel/e1000e/e1000.h
index ad0edd11015d..0150f7fc893d 100644
--- a/drivers/net/ethernet/intel/e1000e/e1000.h
+++ b/drivers/net/ethernet/intel/e1000e/e1000.h
@@ -472,26 +472,25 @@ enum latency_range {
472extern char e1000e_driver_name[]; 472extern char e1000e_driver_name[];
473extern const char e1000e_driver_version[]; 473extern const char e1000e_driver_version[];
474 474
475extern void e1000e_check_options(struct e1000_adapter *adapter); 475void e1000e_check_options(struct e1000_adapter *adapter);
476extern void e1000e_set_ethtool_ops(struct net_device *netdev); 476void e1000e_set_ethtool_ops(struct net_device *netdev);
477 477
478extern int e1000e_up(struct e1000_adapter *adapter); 478int e1000e_up(struct e1000_adapter *adapter);
479extern void e1000e_down(struct e1000_adapter *adapter); 479void e1000e_down(struct e1000_adapter *adapter);
480extern void e1000e_reinit_locked(struct e1000_adapter *adapter); 480void e1000e_reinit_locked(struct e1000_adapter *adapter);
481extern void e1000e_reset(struct e1000_adapter *adapter); 481void e1000e_reset(struct e1000_adapter *adapter);
482extern void e1000e_power_up_phy(struct e1000_adapter *adapter); 482void e1000e_power_up_phy(struct e1000_adapter *adapter);
483extern int e1000e_setup_rx_resources(struct e1000_ring *ring); 483int e1000e_setup_rx_resources(struct e1000_ring *ring);
484extern int e1000e_setup_tx_resources(struct e1000_ring *ring); 484int e1000e_setup_tx_resources(struct e1000_ring *ring);
485extern void e1000e_free_rx_resources(struct e1000_ring *ring); 485void e1000e_free_rx_resources(struct e1000_ring *ring);
486extern void e1000e_free_tx_resources(struct e1000_ring *ring); 486void e1000e_free_tx_resources(struct e1000_ring *ring);
487extern struct rtnl_link_stats64 *e1000e_get_stats64(struct net_device *netdev, 487struct rtnl_link_stats64 *e1000e_get_stats64(struct net_device *netdev,
488 struct rtnl_link_stats64 488 struct rtnl_link_stats64 *stats);
489 *stats); 489void e1000e_set_interrupt_capability(struct e1000_adapter *adapter);
490extern void e1000e_set_interrupt_capability(struct e1000_adapter *adapter); 490void e1000e_reset_interrupt_capability(struct e1000_adapter *adapter);
491extern void e1000e_reset_interrupt_capability(struct e1000_adapter *adapter); 491void e1000e_get_hw_control(struct e1000_adapter *adapter);
492extern void e1000e_get_hw_control(struct e1000_adapter *adapter); 492void e1000e_release_hw_control(struct e1000_adapter *adapter);
493extern void e1000e_release_hw_control(struct e1000_adapter *adapter); 493void e1000e_write_itr(struct e1000_adapter *adapter, u32 itr);
494extern void e1000e_write_itr(struct e1000_adapter *adapter, u32 itr);
495 494
496extern unsigned int copybreak; 495extern unsigned int copybreak;
497 496
@@ -508,8 +507,8 @@ extern const struct e1000_info e1000_pch2_info;
508extern const struct e1000_info e1000_pch_lpt_info; 507extern const struct e1000_info e1000_pch_lpt_info;
509extern const struct e1000_info e1000_es2_info; 508extern const struct e1000_info e1000_es2_info;
510 509
511extern void e1000e_ptp_init(struct e1000_adapter *adapter); 510void e1000e_ptp_init(struct e1000_adapter *adapter);
512extern void e1000e_ptp_remove(struct e1000_adapter *adapter); 511void e1000e_ptp_remove(struct e1000_adapter *adapter);
513 512
514static inline s32 e1000_phy_hw_reset(struct e1000_hw *hw) 513static inline s32 e1000_phy_hw_reset(struct e1000_hw *hw)
515{ 514{
@@ -536,7 +535,7 @@ static inline s32 e1e_wphy_locked(struct e1000_hw *hw, u32 offset, u16 data)
536 return hw->phy.ops.write_reg_locked(hw, offset, data); 535 return hw->phy.ops.write_reg_locked(hw, offset, data);
537} 536}
538 537
539extern void e1000e_reload_nvm_generic(struct e1000_hw *hw); 538void e1000e_reload_nvm_generic(struct e1000_hw *hw);
540 539
541static inline s32 e1000e_read_mac_addr(struct e1000_hw *hw) 540static inline s32 e1000e_read_mac_addr(struct e1000_hw *hw)
542{ 541{
diff --git a/drivers/net/ethernet/intel/igb/e1000_82575.h b/drivers/net/ethernet/intel/igb/e1000_82575.h
index 74a1506b4235..8c2437722aad 100644
--- a/drivers/net/ethernet/intel/igb/e1000_82575.h
+++ b/drivers/net/ethernet/intel/igb/e1000_82575.h
@@ -28,14 +28,14 @@
28#ifndef _E1000_82575_H_ 28#ifndef _E1000_82575_H_
29#define _E1000_82575_H_ 29#define _E1000_82575_H_
30 30
31extern void igb_shutdown_serdes_link_82575(struct e1000_hw *hw); 31void igb_shutdown_serdes_link_82575(struct e1000_hw *hw);
32extern void igb_power_up_serdes_link_82575(struct e1000_hw *hw); 32void igb_power_up_serdes_link_82575(struct e1000_hw *hw);
33extern void igb_power_down_phy_copper_82575(struct e1000_hw *hw); 33void igb_power_down_phy_copper_82575(struct e1000_hw *hw);
34extern void igb_rx_fifo_flush_82575(struct e1000_hw *hw); 34void igb_rx_fifo_flush_82575(struct e1000_hw *hw);
35extern s32 igb_read_i2c_byte(struct e1000_hw *hw, u8 byte_offset, 35s32 igb_read_i2c_byte(struct e1000_hw *hw, u8 byte_offset, u8 dev_addr,
36 u8 dev_addr, u8 *data); 36 u8 *data);
37extern s32 igb_write_i2c_byte(struct e1000_hw *hw, u8 byte_offset, 37s32 igb_write_i2c_byte(struct e1000_hw *hw, u8 byte_offset, u8 dev_addr,
38 u8 dev_addr, u8 data); 38 u8 data);
39 39
40#define ID_LED_DEFAULT_82575_SERDES ((ID_LED_DEF1_DEF2 << 12) | \ 40#define ID_LED_DEFAULT_82575_SERDES ((ID_LED_DEF1_DEF2 << 12) | \
41 (ID_LED_DEF1_DEF2 << 8) | \ 41 (ID_LED_DEF1_DEF2 << 8) | \
diff --git a/drivers/net/ethernet/intel/igb/e1000_hw.h b/drivers/net/ethernet/intel/igb/e1000_hw.h
index 37a9c06a6c68..2e166b22d52b 100644
--- a/drivers/net/ethernet/intel/igb/e1000_hw.h
+++ b/drivers/net/ethernet/intel/igb/e1000_hw.h
@@ -562,11 +562,11 @@ struct e1000_hw {
562 u8 revision_id; 562 u8 revision_id;
563}; 563};
564 564
565extern struct net_device *igb_get_hw_dev(struct e1000_hw *hw); 565struct net_device *igb_get_hw_dev(struct e1000_hw *hw);
566#define hw_dbg(format, arg...) \ 566#define hw_dbg(format, arg...) \
567 netdev_dbg(igb_get_hw_dev(hw), format, ##arg) 567 netdev_dbg(igb_get_hw_dev(hw), format, ##arg)
568 568
569/* These functions must be implemented by drivers */ 569/* These functions must be implemented by drivers */
570s32 igb_read_pcie_cap_reg(struct e1000_hw *hw, u32 reg, u16 *value); 570s32 igb_read_pcie_cap_reg(struct e1000_hw *hw, u32 reg, u16 *value);
571s32 igb_write_pcie_cap_reg(struct e1000_hw *hw, u32 reg, u16 *value); 571s32 igb_write_pcie_cap_reg(struct e1000_hw *hw, u32 reg, u16 *value);
572#endif /* _E1000_HW_H_ */ 572#endif /* _E1000_HW_H_ */
diff --git a/drivers/net/ethernet/intel/igb/e1000_i210.h b/drivers/net/ethernet/intel/igb/e1000_i210.h
index dde3c4b7ea99..2d913716573a 100644
--- a/drivers/net/ethernet/intel/igb/e1000_i210.h
+++ b/drivers/net/ethernet/intel/igb/e1000_i210.h
@@ -28,26 +28,24 @@
28#ifndef _E1000_I210_H_ 28#ifndef _E1000_I210_H_
29#define _E1000_I210_H_ 29#define _E1000_I210_H_
30 30
31extern s32 igb_update_flash_i210(struct e1000_hw *hw); 31s32 igb_update_flash_i210(struct e1000_hw *hw);
32extern s32 igb_update_nvm_checksum_i210(struct e1000_hw *hw); 32s32 igb_update_nvm_checksum_i210(struct e1000_hw *hw);
33extern s32 igb_validate_nvm_checksum_i210(struct e1000_hw *hw); 33s32 igb_validate_nvm_checksum_i210(struct e1000_hw *hw);
34extern s32 igb_write_nvm_srwr_i210(struct e1000_hw *hw, u16 offset, 34s32 igb_write_nvm_srwr_i210(struct e1000_hw *hw, u16 offset, u16 words,
35 u16 words, u16 *data); 35 u16 *data);
36extern s32 igb_read_nvm_srrd_i210(struct e1000_hw *hw, u16 offset, 36s32 igb_read_nvm_srrd_i210(struct e1000_hw *hw, u16 offset, u16 words,
37 u16 words, u16 *data); 37 u16 *data);
38extern s32 igb_acquire_swfw_sync_i210(struct e1000_hw *hw, u16 mask); 38s32 igb_acquire_swfw_sync_i210(struct e1000_hw *hw, u16 mask);
39extern void igb_release_swfw_sync_i210(struct e1000_hw *hw, u16 mask); 39void igb_release_swfw_sync_i210(struct e1000_hw *hw, u16 mask);
40extern s32 igb_acquire_nvm_i210(struct e1000_hw *hw); 40s32 igb_acquire_nvm_i210(struct e1000_hw *hw);
41extern void igb_release_nvm_i210(struct e1000_hw *hw); 41void igb_release_nvm_i210(struct e1000_hw *hw);
42extern s32 igb_valid_led_default_i210(struct e1000_hw *hw, u16 *data); 42s32 igb_valid_led_default_i210(struct e1000_hw *hw, u16 *data);
43extern s32 igb_read_invm_version(struct e1000_hw *hw, 43s32 igb_read_invm_version(struct e1000_hw *hw,
44 struct e1000_fw_version *invm_ver); 44 struct e1000_fw_version *invm_ver);
45extern s32 igb_read_xmdio_reg(struct e1000_hw *hw, u16 addr, u8 dev_addr, 45s32 igb_read_xmdio_reg(struct e1000_hw *hw, u16 addr, u8 dev_addr, u16 *data);
46 u16 *data); 46s32 igb_write_xmdio_reg(struct e1000_hw *hw, u16 addr, u8 dev_addr, u16 data);
47extern s32 igb_write_xmdio_reg(struct e1000_hw *hw, u16 addr, u8 dev_addr, 47s32 igb_init_nvm_params_i210(struct e1000_hw *hw);
48 u16 data); 48bool igb_get_flash_presence_i210(struct e1000_hw *hw);
49extern s32 igb_init_nvm_params_i210(struct e1000_hw *hw);
50extern bool igb_get_flash_presence_i210(struct e1000_hw *hw);
51 49
52#define E1000_STM_OPCODE 0xDB00 50#define E1000_STM_OPCODE 0xDB00
53#define E1000_EEPROM_FLASH_SIZE_WORD 0x11 51#define E1000_EEPROM_FLASH_SIZE_WORD 0x11
diff --git a/drivers/net/ethernet/intel/igb/e1000_mac.h b/drivers/net/ethernet/intel/igb/e1000_mac.h
index 5e13e83cc608..e4cbe8ef67b3 100644
--- a/drivers/net/ethernet/intel/igb/e1000_mac.h
+++ b/drivers/net/ethernet/intel/igb/e1000_mac.h
@@ -86,6 +86,6 @@ enum e1000_mng_mode {
86 86
87#define E1000_MNG_DHCP_COOKIE_STATUS_VLAN 0x2 87#define E1000_MNG_DHCP_COOKIE_STATUS_VLAN 0x2
88 88
89extern void e1000_init_function_pointers_82575(struct e1000_hw *hw); 89void e1000_init_function_pointers_82575(struct e1000_hw *hw);
90 90
91#endif 91#endif
diff --git a/drivers/net/ethernet/intel/igb/igb.h b/drivers/net/ethernet/intel/igb/igb.h
index 6807b098edae..cdaa2bcefc4c 100644
--- a/drivers/net/ethernet/intel/igb/igb.h
+++ b/drivers/net/ethernet/intel/igb/igb.h
@@ -483,40 +483,37 @@ enum igb_boards {
483extern char igb_driver_name[]; 483extern char igb_driver_name[];
484extern char igb_driver_version[]; 484extern char igb_driver_version[];
485 485
486extern int igb_up(struct igb_adapter *); 486int igb_up(struct igb_adapter *);
487extern void igb_down(struct igb_adapter *); 487void igb_down(struct igb_adapter *);
488extern void igb_reinit_locked(struct igb_adapter *); 488void igb_reinit_locked(struct igb_adapter *);
489extern void igb_reset(struct igb_adapter *); 489void igb_reset(struct igb_adapter *);
490extern void igb_write_rss_indir_tbl(struct igb_adapter *); 490void igb_write_rss_indir_tbl(struct igb_adapter *);
491extern int igb_set_spd_dplx(struct igb_adapter *, u32, u8); 491int igb_set_spd_dplx(struct igb_adapter *, u32, u8);
492extern int igb_setup_tx_resources(struct igb_ring *); 492int igb_setup_tx_resources(struct igb_ring *);
493extern int igb_setup_rx_resources(struct igb_ring *); 493int igb_setup_rx_resources(struct igb_ring *);
494extern void igb_free_tx_resources(struct igb_ring *); 494void igb_free_tx_resources(struct igb_ring *);
495extern void igb_free_rx_resources(struct igb_ring *); 495void igb_free_rx_resources(struct igb_ring *);
496extern void igb_configure_tx_ring(struct igb_adapter *, struct igb_ring *); 496void igb_configure_tx_ring(struct igb_adapter *, struct igb_ring *);
497extern void igb_configure_rx_ring(struct igb_adapter *, struct igb_ring *); 497void igb_configure_rx_ring(struct igb_adapter *, struct igb_ring *);
498extern void igb_setup_tctl(struct igb_adapter *); 498void igb_setup_tctl(struct igb_adapter *);
499extern void igb_setup_rctl(struct igb_adapter *); 499void igb_setup_rctl(struct igb_adapter *);
500extern netdev_tx_t igb_xmit_frame_ring(struct sk_buff *, struct igb_ring *); 500netdev_tx_t igb_xmit_frame_ring(struct sk_buff *, struct igb_ring *);
501extern void igb_unmap_and_free_tx_resource(struct igb_ring *, 501void igb_unmap_and_free_tx_resource(struct igb_ring *, struct igb_tx_buffer *);
502 struct igb_tx_buffer *); 502void igb_alloc_rx_buffers(struct igb_ring *, u16);
503extern void igb_alloc_rx_buffers(struct igb_ring *, u16); 503void igb_update_stats(struct igb_adapter *, struct rtnl_link_stats64 *);
504extern void igb_update_stats(struct igb_adapter *, struct rtnl_link_stats64 *); 504bool igb_has_link(struct igb_adapter *adapter);
505extern bool igb_has_link(struct igb_adapter *adapter); 505void igb_set_ethtool_ops(struct net_device *);
506extern void igb_set_ethtool_ops(struct net_device *); 506void igb_power_up_link(struct igb_adapter *);
507extern void igb_power_up_link(struct igb_adapter *); 507void igb_set_fw_version(struct igb_adapter *);
508extern void igb_set_fw_version(struct igb_adapter *); 508void igb_ptp_init(struct igb_adapter *adapter);
509extern void igb_ptp_init(struct igb_adapter *adapter); 509void igb_ptp_stop(struct igb_adapter *adapter);
510extern void igb_ptp_stop(struct igb_adapter *adapter); 510void igb_ptp_reset(struct igb_adapter *adapter);
511extern void igb_ptp_reset(struct igb_adapter *adapter); 511void igb_ptp_tx_work(struct work_struct *work);
512extern void igb_ptp_tx_work(struct work_struct *work); 512void igb_ptp_rx_hang(struct igb_adapter *adapter);
513extern void igb_ptp_rx_hang(struct igb_adapter *adapter); 513void igb_ptp_tx_hwtstamp(struct igb_adapter *adapter);
514extern void igb_ptp_tx_hwtstamp(struct igb_adapter *adapter); 514void igb_ptp_rx_rgtstamp(struct igb_q_vector *q_vector, struct sk_buff *skb);
515extern void igb_ptp_rx_rgtstamp(struct igb_q_vector *q_vector, 515void igb_ptp_rx_pktstamp(struct igb_q_vector *q_vector, unsigned char *va,
516 struct sk_buff *skb); 516 struct sk_buff *skb);
517extern void igb_ptp_rx_pktstamp(struct igb_q_vector *q_vector,
518 unsigned char *va,
519 struct sk_buff *skb);
520static inline void igb_ptp_rx_hwtstamp(struct igb_ring *rx_ring, 517static inline void igb_ptp_rx_hwtstamp(struct igb_ring *rx_ring,
521 union e1000_adv_rx_desc *rx_desc, 518 union e1000_adv_rx_desc *rx_desc,
522 struct sk_buff *skb) 519 struct sk_buff *skb)
@@ -531,11 +528,11 @@ static inline void igb_ptp_rx_hwtstamp(struct igb_ring *rx_ring,
531 rx_ring->last_rx_timestamp = jiffies; 528 rx_ring->last_rx_timestamp = jiffies;
532} 529}
533 530
534extern int igb_ptp_hwtstamp_ioctl(struct net_device *netdev, 531int igb_ptp_hwtstamp_ioctl(struct net_device *netdev, struct ifreq *ifr,
535 struct ifreq *ifr, int cmd); 532 int cmd);
536#ifdef CONFIG_IGB_HWMON 533#ifdef CONFIG_IGB_HWMON
537extern void igb_sysfs_exit(struct igb_adapter *adapter); 534void igb_sysfs_exit(struct igb_adapter *adapter);
538extern int igb_sysfs_init(struct igb_adapter *adapter); 535int igb_sysfs_init(struct igb_adapter *adapter);
539#endif 536#endif
540static inline s32 igb_reset_phy(struct e1000_hw *hw) 537static inline s32 igb_reset_phy(struct e1000_hw *hw)
541{ 538{
diff --git a/drivers/net/ethernet/intel/igbvf/igbvf.h b/drivers/net/ethernet/intel/igbvf/igbvf.h
index a1463e3d14c0..7d6a25c8f889 100644
--- a/drivers/net/ethernet/intel/igbvf/igbvf.h
+++ b/drivers/net/ethernet/intel/igbvf/igbvf.h
@@ -312,17 +312,17 @@ enum igbvf_state_t {
312extern char igbvf_driver_name[]; 312extern char igbvf_driver_name[];
313extern const char igbvf_driver_version[]; 313extern const char igbvf_driver_version[];
314 314
315extern void igbvf_check_options(struct igbvf_adapter *); 315void igbvf_check_options(struct igbvf_adapter *);
316extern void igbvf_set_ethtool_ops(struct net_device *); 316void igbvf_set_ethtool_ops(struct net_device *);
317 317
318extern int igbvf_up(struct igbvf_adapter *); 318int igbvf_up(struct igbvf_adapter *);
319extern void igbvf_down(struct igbvf_adapter *); 319void igbvf_down(struct igbvf_adapter *);
320extern void igbvf_reinit_locked(struct igbvf_adapter *); 320void igbvf_reinit_locked(struct igbvf_adapter *);
321extern int igbvf_setup_rx_resources(struct igbvf_adapter *, struct igbvf_ring *); 321int igbvf_setup_rx_resources(struct igbvf_adapter *, struct igbvf_ring *);
322extern int igbvf_setup_tx_resources(struct igbvf_adapter *, struct igbvf_ring *); 322int igbvf_setup_tx_resources(struct igbvf_adapter *, struct igbvf_ring *);
323extern void igbvf_free_rx_resources(struct igbvf_ring *); 323void igbvf_free_rx_resources(struct igbvf_ring *);
324extern void igbvf_free_tx_resources(struct igbvf_ring *); 324void igbvf_free_tx_resources(struct igbvf_ring *);
325extern void igbvf_update_stats(struct igbvf_adapter *); 325void igbvf_update_stats(struct igbvf_adapter *);
326 326
327extern unsigned int copybreak; 327extern unsigned int copybreak;
328 328
diff --git a/drivers/net/ethernet/intel/ixgb/ixgb.h b/drivers/net/ethernet/intel/ixgb/ixgb.h
index 4d2ae97ff1b3..2224cc2edf13 100644
--- a/drivers/net/ethernet/intel/ixgb/ixgb.h
+++ b/drivers/net/ethernet/intel/ixgb/ixgb.h
@@ -187,21 +187,21 @@ enum ixgb_state_t {
187}; 187};
188 188
189/* Exported from other modules */ 189/* Exported from other modules */
190extern void ixgb_check_options(struct ixgb_adapter *adapter); 190void ixgb_check_options(struct ixgb_adapter *adapter);
191extern void ixgb_set_ethtool_ops(struct net_device *netdev); 191void ixgb_set_ethtool_ops(struct net_device *netdev);
192extern char ixgb_driver_name[]; 192extern char ixgb_driver_name[];
193extern const char ixgb_driver_version[]; 193extern const char ixgb_driver_version[];
194 194
195extern void ixgb_set_speed_duplex(struct net_device *netdev); 195void ixgb_set_speed_duplex(struct net_device *netdev);
196 196
197extern int ixgb_up(struct ixgb_adapter *adapter); 197int ixgb_up(struct ixgb_adapter *adapter);
198extern void ixgb_down(struct ixgb_adapter *adapter, bool kill_watchdog); 198void ixgb_down(struct ixgb_adapter *adapter, bool kill_watchdog);
199extern void ixgb_reset(struct ixgb_adapter *adapter); 199void ixgb_reset(struct ixgb_adapter *adapter);
200extern int ixgb_setup_rx_resources(struct ixgb_adapter *adapter); 200int ixgb_setup_rx_resources(struct ixgb_adapter *adapter);
201extern int ixgb_setup_tx_resources(struct ixgb_adapter *adapter); 201int ixgb_setup_tx_resources(struct ixgb_adapter *adapter);
202extern void ixgb_free_rx_resources(struct ixgb_adapter *adapter); 202void ixgb_free_rx_resources(struct ixgb_adapter *adapter);
203extern void ixgb_free_tx_resources(struct ixgb_adapter *adapter); 203void ixgb_free_tx_resources(struct ixgb_adapter *adapter);
204extern void ixgb_update_stats(struct ixgb_adapter *adapter); 204void ixgb_update_stats(struct ixgb_adapter *adapter);
205 205
206 206
207#endif /* _IXGB_H_ */ 207#endif /* _IXGB_H_ */
diff --git a/drivers/net/ethernet/intel/ixgb/ixgb_hw.h b/drivers/net/ethernet/intel/ixgb/ixgb_hw.h
index 2a99a35c33aa..0bd5d72e1af5 100644
--- a/drivers/net/ethernet/intel/ixgb/ixgb_hw.h
+++ b/drivers/net/ethernet/intel/ixgb/ixgb_hw.h
@@ -759,27 +759,20 @@ struct ixgb_hw_stats {
759}; 759};
760 760
761/* Function Prototypes */ 761/* Function Prototypes */
762extern bool ixgb_adapter_stop(struct ixgb_hw *hw); 762bool ixgb_adapter_stop(struct ixgb_hw *hw);
763extern bool ixgb_init_hw(struct ixgb_hw *hw); 763bool ixgb_init_hw(struct ixgb_hw *hw);
764extern bool ixgb_adapter_start(struct ixgb_hw *hw); 764bool ixgb_adapter_start(struct ixgb_hw *hw);
765extern void ixgb_check_for_link(struct ixgb_hw *hw); 765void ixgb_check_for_link(struct ixgb_hw *hw);
766extern bool ixgb_check_for_bad_link(struct ixgb_hw *hw); 766bool ixgb_check_for_bad_link(struct ixgb_hw *hw);
767
768extern void ixgb_rar_set(struct ixgb_hw *hw,
769 u8 *addr,
770 u32 index);
771 767
768void ixgb_rar_set(struct ixgb_hw *hw, u8 *addr, u32 index);
772 769
773/* Filters (multicast, vlan, receive) */ 770/* Filters (multicast, vlan, receive) */
774extern void ixgb_mc_addr_list_update(struct ixgb_hw *hw, 771void ixgb_mc_addr_list_update(struct ixgb_hw *hw, u8 *mc_addr_list,
775 u8 *mc_addr_list, 772 u32 mc_addr_count, u32 pad);
776 u32 mc_addr_count,
777 u32 pad);
778 773
779/* Vfta functions */ 774/* Vfta functions */
780extern void ixgb_write_vfta(struct ixgb_hw *hw, 775void ixgb_write_vfta(struct ixgb_hw *hw, u32 offset, u32 value);
781 u32 offset,
782 u32 value);
783 776
784/* Access functions to eeprom data */ 777/* Access functions to eeprom data */
785void ixgb_get_ee_mac_addr(struct ixgb_hw *hw, u8 *mac_addr); 778void ixgb_get_ee_mac_addr(struct ixgb_hw *hw, u8 *mac_addr);
diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe.h b/drivers/net/ethernet/intel/ixgbe/ixgbe.h
index 0ac6b11c6e4e..3637841daea4 100644
--- a/drivers/net/ethernet/intel/ixgbe/ixgbe.h
+++ b/drivers/net/ethernet/intel/ixgbe/ixgbe.h
@@ -786,93 +786,89 @@ extern const char ixgbe_driver_version[];
786extern char ixgbe_default_device_descr[]; 786extern char ixgbe_default_device_descr[];
787#endif /* IXGBE_FCOE */ 787#endif /* IXGBE_FCOE */
788 788
789extern void ixgbe_up(struct ixgbe_adapter *adapter); 789void ixgbe_up(struct ixgbe_adapter *adapter);
790extern void ixgbe_down(struct ixgbe_adapter *adapter); 790void ixgbe_down(struct ixgbe_adapter *adapter);
791extern void ixgbe_reinit_locked(struct ixgbe_adapter *adapter); 791void ixgbe_reinit_locked(struct ixgbe_adapter *adapter);
792extern void ixgbe_reset(struct ixgbe_adapter *adapter); 792void ixgbe_reset(struct ixgbe_adapter *adapter);
793extern void ixgbe_set_ethtool_ops(struct net_device *netdev); 793void ixgbe_set_ethtool_ops(struct net_device *netdev);
794extern int ixgbe_setup_rx_resources(struct ixgbe_ring *); 794int ixgbe_setup_rx_resources(struct ixgbe_ring *);
795extern int ixgbe_setup_tx_resources(struct ixgbe_ring *); 795int ixgbe_setup_tx_resources(struct ixgbe_ring *);
796extern void ixgbe_free_rx_resources(struct ixgbe_ring *); 796void ixgbe_free_rx_resources(struct ixgbe_ring *);
797extern void ixgbe_free_tx_resources(struct ixgbe_ring *); 797void ixgbe_free_tx_resources(struct ixgbe_ring *);
798extern void ixgbe_configure_rx_ring(struct ixgbe_adapter *,struct ixgbe_ring *); 798void ixgbe_configure_rx_ring(struct ixgbe_adapter *, struct ixgbe_ring *);
799extern void ixgbe_configure_tx_ring(struct ixgbe_adapter *,struct ixgbe_ring *); 799void ixgbe_configure_tx_ring(struct ixgbe_adapter *, struct ixgbe_ring *);
800extern void ixgbe_disable_rx_queue(struct ixgbe_adapter *adapter, 800void ixgbe_disable_rx_queue(struct ixgbe_adapter *adapter, struct ixgbe_ring *);
801 struct ixgbe_ring *); 801void ixgbe_update_stats(struct ixgbe_adapter *adapter);
802extern void ixgbe_update_stats(struct ixgbe_adapter *adapter); 802int ixgbe_init_interrupt_scheme(struct ixgbe_adapter *adapter);
803extern int ixgbe_init_interrupt_scheme(struct ixgbe_adapter *adapter); 803int ixgbe_wol_supported(struct ixgbe_adapter *adapter, u16 device_id,
804extern int ixgbe_wol_supported(struct ixgbe_adapter *adapter, u16 device_id,
805 u16 subdevice_id); 804 u16 subdevice_id);
806extern void ixgbe_clear_interrupt_scheme(struct ixgbe_adapter *adapter); 805void ixgbe_clear_interrupt_scheme(struct ixgbe_adapter *adapter);
807extern netdev_tx_t ixgbe_xmit_frame_ring(struct sk_buff *, 806netdev_tx_t ixgbe_xmit_frame_ring(struct sk_buff *, struct ixgbe_adapter *,
808 struct ixgbe_adapter *, 807 struct ixgbe_ring *);
809 struct ixgbe_ring *); 808void ixgbe_unmap_and_free_tx_resource(struct ixgbe_ring *,
810extern void ixgbe_unmap_and_free_tx_resource(struct ixgbe_ring *, 809 struct ixgbe_tx_buffer *);
811 struct ixgbe_tx_buffer *); 810void ixgbe_alloc_rx_buffers(struct ixgbe_ring *, u16);
812extern void ixgbe_alloc_rx_buffers(struct ixgbe_ring *, u16); 811void ixgbe_write_eitr(struct ixgbe_q_vector *);
813extern void ixgbe_write_eitr(struct ixgbe_q_vector *); 812int ixgbe_poll(struct napi_struct *napi, int budget);
814extern int ixgbe_poll(struct napi_struct *napi, int budget); 813int ethtool_ioctl(struct ifreq *ifr);
815extern int ethtool_ioctl(struct ifreq *ifr); 814s32 ixgbe_reinit_fdir_tables_82599(struct ixgbe_hw *hw);
816extern s32 ixgbe_reinit_fdir_tables_82599(struct ixgbe_hw *hw); 815s32 ixgbe_init_fdir_signature_82599(struct ixgbe_hw *hw, u32 fdirctrl);
817extern s32 ixgbe_init_fdir_signature_82599(struct ixgbe_hw *hw, u32 fdirctrl); 816s32 ixgbe_init_fdir_perfect_82599(struct ixgbe_hw *hw, u32 fdirctrl);
818extern s32 ixgbe_init_fdir_perfect_82599(struct ixgbe_hw *hw, u32 fdirctrl); 817s32 ixgbe_fdir_add_signature_filter_82599(struct ixgbe_hw *hw,
819extern s32 ixgbe_fdir_add_signature_filter_82599(struct ixgbe_hw *hw, 818 union ixgbe_atr_hash_dword input,
820 union ixgbe_atr_hash_dword input, 819 union ixgbe_atr_hash_dword common,
821 union ixgbe_atr_hash_dword common, 820 u8 queue);
822 u8 queue); 821s32 ixgbe_fdir_set_input_mask_82599(struct ixgbe_hw *hw,
823extern s32 ixgbe_fdir_set_input_mask_82599(struct ixgbe_hw *hw, 822 union ixgbe_atr_input *input_mask);
824 union ixgbe_atr_input *input_mask); 823s32 ixgbe_fdir_write_perfect_filter_82599(struct ixgbe_hw *hw,
825extern s32 ixgbe_fdir_write_perfect_filter_82599(struct ixgbe_hw *hw, 824 union ixgbe_atr_input *input,
826 union ixgbe_atr_input *input, 825 u16 soft_id, u8 queue);
827 u16 soft_id, u8 queue); 826s32 ixgbe_fdir_erase_perfect_filter_82599(struct ixgbe_hw *hw,
828extern s32 ixgbe_fdir_erase_perfect_filter_82599(struct ixgbe_hw *hw, 827 union ixgbe_atr_input *input,
829 union ixgbe_atr_input *input, 828 u16 soft_id);
830 u16 soft_id); 829void ixgbe_atr_compute_perfect_hash_82599(union ixgbe_atr_input *input,
831extern void ixgbe_atr_compute_perfect_hash_82599(union ixgbe_atr_input *input, 830 union ixgbe_atr_input *mask);
832 union ixgbe_atr_input *mask); 831bool ixgbe_verify_lesm_fw_enabled_82599(struct ixgbe_hw *hw);
833extern bool ixgbe_verify_lesm_fw_enabled_82599(struct ixgbe_hw *hw); 832void ixgbe_set_rx_mode(struct net_device *netdev);
834extern void ixgbe_set_rx_mode(struct net_device *netdev);
835#ifdef CONFIG_IXGBE_DCB 833#ifdef CONFIG_IXGBE_DCB
836extern void ixgbe_set_rx_drop_en(struct ixgbe_adapter *adapter); 834void ixgbe_set_rx_drop_en(struct ixgbe_adapter *adapter);
837#endif 835#endif
838extern int ixgbe_setup_tc(struct net_device *dev, u8 tc); 836int ixgbe_setup_tc(struct net_device *dev, u8 tc);
839extern void ixgbe_tx_ctxtdesc(struct ixgbe_ring *, u32, u32, u32, u32); 837void ixgbe_tx_ctxtdesc(struct ixgbe_ring *, u32, u32, u32, u32);
840extern void ixgbe_do_reset(struct net_device *netdev); 838void ixgbe_do_reset(struct net_device *netdev);
841#ifdef CONFIG_IXGBE_HWMON 839#ifdef CONFIG_IXGBE_HWMON
842extern void ixgbe_sysfs_exit(struct ixgbe_adapter *adapter); 840void ixgbe_sysfs_exit(struct ixgbe_adapter *adapter);
843extern int ixgbe_sysfs_init(struct ixgbe_adapter *adapter); 841int ixgbe_sysfs_init(struct ixgbe_adapter *adapter);
844#endif /* CONFIG_IXGBE_HWMON */ 842#endif /* CONFIG_IXGBE_HWMON */
845#ifdef IXGBE_FCOE 843#ifdef IXGBE_FCOE
846extern void ixgbe_configure_fcoe(struct ixgbe_adapter *adapter); 844void ixgbe_configure_fcoe(struct ixgbe_adapter *adapter);
847extern int ixgbe_fso(struct ixgbe_ring *tx_ring, 845int ixgbe_fso(struct ixgbe_ring *tx_ring, struct ixgbe_tx_buffer *first,
848 struct ixgbe_tx_buffer *first, 846 u8 *hdr_len);
849 u8 *hdr_len); 847int ixgbe_fcoe_ddp(struct ixgbe_adapter *adapter,
850extern int ixgbe_fcoe_ddp(struct ixgbe_adapter *adapter, 848 union ixgbe_adv_rx_desc *rx_desc, struct sk_buff *skb);
851 union ixgbe_adv_rx_desc *rx_desc, 849int ixgbe_fcoe_ddp_get(struct net_device *netdev, u16 xid,
852 struct sk_buff *skb); 850 struct scatterlist *sgl, unsigned int sgc);
853extern int ixgbe_fcoe_ddp_get(struct net_device *netdev, u16 xid, 851int ixgbe_fcoe_ddp_target(struct net_device *netdev, u16 xid,
854 struct scatterlist *sgl, unsigned int sgc); 852 struct scatterlist *sgl, unsigned int sgc);
855extern int ixgbe_fcoe_ddp_target(struct net_device *netdev, u16 xid, 853int ixgbe_fcoe_ddp_put(struct net_device *netdev, u16 xid);
856 struct scatterlist *sgl, unsigned int sgc); 854int ixgbe_setup_fcoe_ddp_resources(struct ixgbe_adapter *adapter);
857extern int ixgbe_fcoe_ddp_put(struct net_device *netdev, u16 xid); 855void ixgbe_free_fcoe_ddp_resources(struct ixgbe_adapter *adapter);
858extern int ixgbe_setup_fcoe_ddp_resources(struct ixgbe_adapter *adapter); 856int ixgbe_fcoe_enable(struct net_device *netdev);
859extern void ixgbe_free_fcoe_ddp_resources(struct ixgbe_adapter *adapter); 857int ixgbe_fcoe_disable(struct net_device *netdev);
860extern int ixgbe_fcoe_enable(struct net_device *netdev);
861extern int ixgbe_fcoe_disable(struct net_device *netdev);
862#ifdef CONFIG_IXGBE_DCB 858#ifdef CONFIG_IXGBE_DCB
863extern u8 ixgbe_fcoe_getapp(struct ixgbe_adapter *adapter); 859u8 ixgbe_fcoe_getapp(struct ixgbe_adapter *adapter);
864extern u8 ixgbe_fcoe_setapp(struct ixgbe_adapter *adapter, u8 up); 860u8 ixgbe_fcoe_setapp(struct ixgbe_adapter *adapter, u8 up);
865#endif /* CONFIG_IXGBE_DCB */ 861#endif /* CONFIG_IXGBE_DCB */
866extern int ixgbe_fcoe_get_wwn(struct net_device *netdev, u64 *wwn, int type); 862int ixgbe_fcoe_get_wwn(struct net_device *netdev, u64 *wwn, int type);
867extern int ixgbe_fcoe_get_hbainfo(struct net_device *netdev, 863int ixgbe_fcoe_get_hbainfo(struct net_device *netdev,
868 struct netdev_fcoe_hbainfo *info); 864 struct netdev_fcoe_hbainfo *info);
869extern u8 ixgbe_fcoe_get_tc(struct ixgbe_adapter *adapter); 865u8 ixgbe_fcoe_get_tc(struct ixgbe_adapter *adapter);
870#endif /* IXGBE_FCOE */ 866#endif /* IXGBE_FCOE */
871#ifdef CONFIG_DEBUG_FS 867#ifdef CONFIG_DEBUG_FS
872extern void ixgbe_dbg_adapter_init(struct ixgbe_adapter *adapter); 868void ixgbe_dbg_adapter_init(struct ixgbe_adapter *adapter);
873extern void ixgbe_dbg_adapter_exit(struct ixgbe_adapter *adapter); 869void ixgbe_dbg_adapter_exit(struct ixgbe_adapter *adapter);
874extern void ixgbe_dbg_init(void); 870void ixgbe_dbg_init(void);
875extern void ixgbe_dbg_exit(void); 871void ixgbe_dbg_exit(void);
876#else 872#else
877static inline void ixgbe_dbg_adapter_init(struct ixgbe_adapter *adapter) {} 873static inline void ixgbe_dbg_adapter_init(struct ixgbe_adapter *adapter) {}
878static inline void ixgbe_dbg_adapter_exit(struct ixgbe_adapter *adapter) {} 874static inline void ixgbe_dbg_adapter_exit(struct ixgbe_adapter *adapter) {}
@@ -884,12 +880,12 @@ static inline struct netdev_queue *txring_txq(const struct ixgbe_ring *ring)
884 return netdev_get_tx_queue(ring->netdev, ring->queue_index); 880 return netdev_get_tx_queue(ring->netdev, ring->queue_index);
885} 881}
886 882
887extern void ixgbe_ptp_init(struct ixgbe_adapter *adapter); 883void ixgbe_ptp_init(struct ixgbe_adapter *adapter);
888extern void ixgbe_ptp_stop(struct ixgbe_adapter *adapter); 884void ixgbe_ptp_stop(struct ixgbe_adapter *adapter);
889extern void ixgbe_ptp_overflow_check(struct ixgbe_adapter *adapter); 885void ixgbe_ptp_overflow_check(struct ixgbe_adapter *adapter);
890extern void ixgbe_ptp_rx_hang(struct ixgbe_adapter *adapter); 886void ixgbe_ptp_rx_hang(struct ixgbe_adapter *adapter);
891extern void __ixgbe_ptp_rx_hwtstamp(struct ixgbe_q_vector *q_vector, 887void __ixgbe_ptp_rx_hwtstamp(struct ixgbe_q_vector *q_vector,
892 struct sk_buff *skb); 888 struct sk_buff *skb);
893static inline void ixgbe_ptp_rx_hwtstamp(struct ixgbe_ring *rx_ring, 889static inline void ixgbe_ptp_rx_hwtstamp(struct ixgbe_ring *rx_ring,
894 union ixgbe_adv_rx_desc *rx_desc, 890 union ixgbe_adv_rx_desc *rx_desc,
895 struct sk_buff *skb) 891 struct sk_buff *skb)
@@ -906,11 +902,11 @@ static inline void ixgbe_ptp_rx_hwtstamp(struct ixgbe_ring *rx_ring,
906 rx_ring->last_rx_timestamp = jiffies; 902 rx_ring->last_rx_timestamp = jiffies;
907} 903}
908 904
909extern int ixgbe_ptp_hwtstamp_ioctl(struct ixgbe_adapter *adapter, 905int ixgbe_ptp_hwtstamp_ioctl(struct ixgbe_adapter *adapter, struct ifreq *ifr,
910 struct ifreq *ifr, int cmd); 906 int cmd);
911extern void ixgbe_ptp_start_cyclecounter(struct ixgbe_adapter *adapter); 907void ixgbe_ptp_start_cyclecounter(struct ixgbe_adapter *adapter);
912extern void ixgbe_ptp_reset(struct ixgbe_adapter *adapter); 908void ixgbe_ptp_reset(struct ixgbe_adapter *adapter);
913extern void ixgbe_ptp_check_pps_event(struct ixgbe_adapter *adapter, u32 eicr); 909void ixgbe_ptp_check_pps_event(struct ixgbe_adapter *adapter, u32 eicr);
914#ifdef CONFIG_PCI_IOV 910#ifdef CONFIG_PCI_IOV
915void ixgbe_sriov_reinit(struct ixgbe_adapter *adapter); 911void ixgbe_sriov_reinit(struct ixgbe_adapter *adapter);
916#endif 912#endif
diff --git a/drivers/net/ethernet/intel/ixgbevf/ixgbevf.h b/drivers/net/ethernet/intel/ixgbevf/ixgbevf.h
index fff0d9867529..64a2b912e73c 100644
--- a/drivers/net/ethernet/intel/ixgbevf/ixgbevf.h
+++ b/drivers/net/ethernet/intel/ixgbevf/ixgbevf.h
@@ -281,27 +281,23 @@ extern const struct ixgbe_mbx_operations ixgbevf_mbx_ops;
281extern const char ixgbevf_driver_name[]; 281extern const char ixgbevf_driver_name[];
282extern const char ixgbevf_driver_version[]; 282extern const char ixgbevf_driver_version[];
283 283
284extern void ixgbevf_up(struct ixgbevf_adapter *adapter); 284void ixgbevf_up(struct ixgbevf_adapter *adapter);
285extern void ixgbevf_down(struct ixgbevf_adapter *adapter); 285void ixgbevf_down(struct ixgbevf_adapter *adapter);
286extern void ixgbevf_reinit_locked(struct ixgbevf_adapter *adapter); 286void ixgbevf_reinit_locked(struct ixgbevf_adapter *adapter);
287extern void ixgbevf_reset(struct ixgbevf_adapter *adapter); 287void ixgbevf_reset(struct ixgbevf_adapter *adapter);
288extern void ixgbevf_set_ethtool_ops(struct net_device *netdev); 288void ixgbevf_set_ethtool_ops(struct net_device *netdev);
289extern int ixgbevf_setup_rx_resources(struct ixgbevf_adapter *, 289int ixgbevf_setup_rx_resources(struct ixgbevf_adapter *, struct ixgbevf_ring *);
290 struct ixgbevf_ring *); 290int ixgbevf_setup_tx_resources(struct ixgbevf_adapter *, struct ixgbevf_ring *);
291extern int ixgbevf_setup_tx_resources(struct ixgbevf_adapter *, 291void ixgbevf_free_rx_resources(struct ixgbevf_adapter *, struct ixgbevf_ring *);
292 struct ixgbevf_ring *); 292void ixgbevf_free_tx_resources(struct ixgbevf_adapter *, struct ixgbevf_ring *);
293extern void ixgbevf_free_rx_resources(struct ixgbevf_adapter *, 293void ixgbevf_update_stats(struct ixgbevf_adapter *adapter);
294 struct ixgbevf_ring *); 294int ethtool_ioctl(struct ifreq *ifr);
295extern void ixgbevf_free_tx_resources(struct ixgbevf_adapter *, 295
296 struct ixgbevf_ring *); 296void ixgbe_napi_add_all(struct ixgbevf_adapter *adapter);
297extern void ixgbevf_update_stats(struct ixgbevf_adapter *adapter); 297void ixgbe_napi_del_all(struct ixgbevf_adapter *adapter);
298extern int ethtool_ioctl(struct ifreq *ifr);
299
300extern void ixgbe_napi_add_all(struct ixgbevf_adapter *adapter);
301extern void ixgbe_napi_del_all(struct ixgbevf_adapter *adapter);
302 298
303#ifdef DEBUG 299#ifdef DEBUG
304extern char *ixgbevf_get_hw_dev_name(struct ixgbe_hw *hw); 300char *ixgbevf_get_hw_dev_name(struct ixgbe_hw *hw);
305#define hw_dbg(hw, format, arg...) \ 301#define hw_dbg(hw, format, arg...) \
306 printk(KERN_DEBUG "%s: " format, ixgbevf_get_hw_dev_name(hw), ##arg) 302 printk(KERN_DEBUG "%s: " format, ixgbevf_get_hw_dev_name(hw), ##arg)
307#else 303#else