aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/s2io.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/s2io.c')
-rw-r--r--drivers/net/s2io.c78
1 files changed, 39 insertions, 39 deletions
diff --git a/drivers/net/s2io.c b/drivers/net/s2io.c
index cec9fe0b1132..62369341cb2c 100644
--- a/drivers/net/s2io.c
+++ b/drivers/net/s2io.c
@@ -357,7 +357,7 @@ static void s2io_vlan_rx_register(struct net_device *dev,
357 struct vlan_group *grp) 357 struct vlan_group *grp)
358{ 358{
359 int i; 359 int i;
360 struct s2io_nic *nic = dev->priv; 360 struct s2io_nic *nic = netdev_priv(dev);
361 unsigned long flags[MAX_TX_FIFOS]; 361 unsigned long flags[MAX_TX_FIFOS];
362 struct mac_info *mac_control = &nic->mac_control; 362 struct mac_info *mac_control = &nic->mac_control;
363 struct config_param *config = &nic->config; 363 struct config_param *config = &nic->config;
@@ -375,7 +375,7 @@ static void s2io_vlan_rx_register(struct net_device *dev,
375static void s2io_vlan_rx_kill_vid(struct net_device *dev, unsigned long vid) 375static void s2io_vlan_rx_kill_vid(struct net_device *dev, unsigned long vid)
376{ 376{
377 int i; 377 int i;
378 struct s2io_nic *nic = dev->priv; 378 struct s2io_nic *nic = netdev_priv(dev);
379 unsigned long flags[MAX_TX_FIFOS]; 379 unsigned long flags[MAX_TX_FIFOS];
380 struct mac_info *mac_control = &nic->mac_control; 380 struct mac_info *mac_control = &nic->mac_control;
381 struct config_param *config = &nic->config; 381 struct config_param *config = &nic->config;
@@ -2837,7 +2837,7 @@ static int s2io_poll_msix(struct napi_struct *napi, int budget)
2837 int pkts_processed = 0; 2837 int pkts_processed = 0;
2838 u8 __iomem *addr = NULL; 2838 u8 __iomem *addr = NULL;
2839 u8 val8 = 0; 2839 u8 val8 = 0;
2840 struct s2io_nic *nic = dev->priv; 2840 struct s2io_nic *nic = netdev_priv(dev);
2841 struct XENA_dev_config __iomem *bar0 = nic->bar0; 2841 struct XENA_dev_config __iomem *bar0 = nic->bar0;
2842 int budget_org = budget; 2842 int budget_org = budget;
2843 2843
@@ -2909,7 +2909,7 @@ static int s2io_poll_inta(struct napi_struct *napi, int budget)
2909 */ 2909 */
2910static void s2io_netpoll(struct net_device *dev) 2910static void s2io_netpoll(struct net_device *dev)
2911{ 2911{
2912 struct s2io_nic *nic = dev->priv; 2912 struct s2io_nic *nic = netdev_priv(dev);
2913 struct mac_info *mac_control; 2913 struct mac_info *mac_control;
2914 struct config_param *config; 2914 struct config_param *config;
2915 struct XENA_dev_config __iomem *bar0 = nic->bar0; 2915 struct XENA_dev_config __iomem *bar0 = nic->bar0;
@@ -3171,7 +3171,7 @@ static void tx_intr_handler(struct fifo_info *fifo_data)
3171static void s2io_mdio_write(u32 mmd_type, u64 addr, u16 value, struct net_device *dev) 3171static void s2io_mdio_write(u32 mmd_type, u64 addr, u16 value, struct net_device *dev)
3172{ 3172{
3173 u64 val64 = 0x0; 3173 u64 val64 = 0x0;
3174 struct s2io_nic *sp = dev->priv; 3174 struct s2io_nic *sp = netdev_priv(dev);
3175 struct XENA_dev_config __iomem *bar0 = sp->bar0; 3175 struct XENA_dev_config __iomem *bar0 = sp->bar0;
3176 3176
3177 //address transaction 3177 //address transaction
@@ -3220,7 +3220,7 @@ static u64 s2io_mdio_read(u32 mmd_type, u64 addr, struct net_device *dev)
3220{ 3220{
3221 u64 val64 = 0x0; 3221 u64 val64 = 0x0;
3222 u64 rval64 = 0x0; 3222 u64 rval64 = 0x0;
3223 struct s2io_nic *sp = dev->priv; 3223 struct s2io_nic *sp = netdev_priv(dev);
3224 struct XENA_dev_config __iomem *bar0 = sp->bar0; 3224 struct XENA_dev_config __iomem *bar0 = sp->bar0;
3225 3225
3226 /* address transaction */ 3226 /* address transaction */
@@ -3324,7 +3324,7 @@ static void s2io_updt_xpak_counter(struct net_device *dev)
3324 u64 val64 = 0x0; 3324 u64 val64 = 0x0;
3325 u64 addr = 0x0; 3325 u64 addr = 0x0;
3326 3326
3327 struct s2io_nic *sp = dev->priv; 3327 struct s2io_nic *sp = netdev_priv(dev);
3328 struct stat_block *stat_info = sp->mac_control.stats_info; 3328 struct stat_block *stat_info = sp->mac_control.stats_info;
3329 3329
3330 /* Check the communication with the MDIO slave */ 3330 /* Check the communication with the MDIO slave */
@@ -3990,7 +3990,7 @@ static void remove_inta_isr(struct s2io_nic *sp)
3990 3990
3991static int s2io_open(struct net_device *dev) 3991static int s2io_open(struct net_device *dev)
3992{ 3992{
3993 struct s2io_nic *sp = dev->priv; 3993 struct s2io_nic *sp = netdev_priv(dev);
3994 int err = 0; 3994 int err = 0;
3995 3995
3996 /* 3996 /*
@@ -4048,7 +4048,7 @@ hw_init_failed:
4048 4048
4049static int s2io_close(struct net_device *dev) 4049static int s2io_close(struct net_device *dev)
4050{ 4050{
4051 struct s2io_nic *sp = dev->priv; 4051 struct s2io_nic *sp = netdev_priv(dev);
4052 struct config_param *config = &sp->config; 4052 struct config_param *config = &sp->config;
4053 u64 tmp64; 4053 u64 tmp64;
4054 int offset; 4054 int offset;
@@ -4087,7 +4087,7 @@ static int s2io_close(struct net_device *dev)
4087 4087
4088static int s2io_xmit(struct sk_buff *skb, struct net_device *dev) 4088static int s2io_xmit(struct sk_buff *skb, struct net_device *dev)
4089{ 4089{
4090 struct s2io_nic *sp = dev->priv; 4090 struct s2io_nic *sp = netdev_priv(dev);
4091 u16 frg_cnt, frg_len, i, queue, queue_len, put_off, get_off; 4091 u16 frg_cnt, frg_len, i, queue, queue_len, put_off, get_off;
4092 register u64 val64; 4092 register u64 val64;
4093 struct TxD *txdp; 4093 struct TxD *txdp;
@@ -4485,7 +4485,7 @@ static int do_s2io_chk_alarm_bit(u64 value, void __iomem * addr,
4485static void s2io_handle_errors(void * dev_id) 4485static void s2io_handle_errors(void * dev_id)
4486{ 4486{
4487 struct net_device *dev = (struct net_device *) dev_id; 4487 struct net_device *dev = (struct net_device *) dev_id;
4488 struct s2io_nic *sp = dev->priv; 4488 struct s2io_nic *sp = netdev_priv(dev);
4489 struct XENA_dev_config __iomem *bar0 = sp->bar0; 4489 struct XENA_dev_config __iomem *bar0 = sp->bar0;
4490 u64 temp64 = 0,val64=0; 4490 u64 temp64 = 0,val64=0;
4491 int i = 0; 4491 int i = 0;
@@ -4752,7 +4752,7 @@ reset:
4752static irqreturn_t s2io_isr(int irq, void *dev_id) 4752static irqreturn_t s2io_isr(int irq, void *dev_id)
4753{ 4753{
4754 struct net_device *dev = (struct net_device *) dev_id; 4754 struct net_device *dev = (struct net_device *) dev_id;
4755 struct s2io_nic *sp = dev->priv; 4755 struct s2io_nic *sp = netdev_priv(dev);
4756 struct XENA_dev_config __iomem *bar0 = sp->bar0; 4756 struct XENA_dev_config __iomem *bar0 = sp->bar0;
4757 int i; 4757 int i;
4758 u64 reason = 0; 4758 u64 reason = 0;
@@ -4881,7 +4881,7 @@ static void s2io_updt_stats(struct s2io_nic *sp)
4881 4881
4882static struct net_device_stats *s2io_get_stats(struct net_device *dev) 4882static struct net_device_stats *s2io_get_stats(struct net_device *dev)
4883{ 4883{
4884 struct s2io_nic *sp = dev->priv; 4884 struct s2io_nic *sp = netdev_priv(dev);
4885 struct mac_info *mac_control; 4885 struct mac_info *mac_control;
4886 struct config_param *config; 4886 struct config_param *config;
4887 int i; 4887 int i;
@@ -4948,7 +4948,7 @@ static void s2io_set_multicast(struct net_device *dev)
4948{ 4948{
4949 int i, j, prev_cnt; 4949 int i, j, prev_cnt;
4950 struct dev_mc_list *mclist; 4950 struct dev_mc_list *mclist;
4951 struct s2io_nic *sp = dev->priv; 4951 struct s2io_nic *sp = netdev_priv(dev);
4952 struct XENA_dev_config __iomem *bar0 = sp->bar0; 4952 struct XENA_dev_config __iomem *bar0 = sp->bar0;
4953 u64 val64 = 0, multi_mac = 0x010203040506ULL, mask = 4953 u64 val64 = 0, multi_mac = 0x010203040506ULL, mask =
4954 0xfeffffffffffULL; 4954 0xfeffffffffffULL;
@@ -5277,7 +5277,7 @@ static int s2io_set_mac_addr(struct net_device *dev, void *p)
5277 5277
5278static int do_s2io_prog_unicast(struct net_device *dev, u8 *addr) 5278static int do_s2io_prog_unicast(struct net_device *dev, u8 *addr)
5279{ 5279{
5280 struct s2io_nic *sp = dev->priv; 5280 struct s2io_nic *sp = netdev_priv(dev);
5281 register u64 mac_addr = 0, perm_addr = 0; 5281 register u64 mac_addr = 0, perm_addr = 0;
5282 int i; 5282 int i;
5283 u64 tmp64; 5283 u64 tmp64;
@@ -5336,7 +5336,7 @@ static int do_s2io_prog_unicast(struct net_device *dev, u8 *addr)
5336static int s2io_ethtool_sset(struct net_device *dev, 5336static int s2io_ethtool_sset(struct net_device *dev,
5337 struct ethtool_cmd *info) 5337 struct ethtool_cmd *info)
5338{ 5338{
5339 struct s2io_nic *sp = dev->priv; 5339 struct s2io_nic *sp = netdev_priv(dev);
5340 if ((info->autoneg == AUTONEG_ENABLE) || 5340 if ((info->autoneg == AUTONEG_ENABLE) ||
5341 (info->speed != SPEED_10000) || (info->duplex != DUPLEX_FULL)) 5341 (info->speed != SPEED_10000) || (info->duplex != DUPLEX_FULL))
5342 return -EINVAL; 5342 return -EINVAL;
@@ -5362,7 +5362,7 @@ static int s2io_ethtool_sset(struct net_device *dev,
5362 5362
5363static int s2io_ethtool_gset(struct net_device *dev, struct ethtool_cmd *info) 5363static int s2io_ethtool_gset(struct net_device *dev, struct ethtool_cmd *info)
5364{ 5364{
5365 struct s2io_nic *sp = dev->priv; 5365 struct s2io_nic *sp = netdev_priv(dev);
5366 info->supported = (SUPPORTED_10000baseT_Full | SUPPORTED_FIBRE); 5366 info->supported = (SUPPORTED_10000baseT_Full | SUPPORTED_FIBRE);
5367 info->advertising = (SUPPORTED_10000baseT_Full | SUPPORTED_FIBRE); 5367 info->advertising = (SUPPORTED_10000baseT_Full | SUPPORTED_FIBRE);
5368 info->port = PORT_FIBRE; 5368 info->port = PORT_FIBRE;
@@ -5397,7 +5397,7 @@ static int s2io_ethtool_gset(struct net_device *dev, struct ethtool_cmd *info)
5397static void s2io_ethtool_gdrvinfo(struct net_device *dev, 5397static void s2io_ethtool_gdrvinfo(struct net_device *dev,
5398 struct ethtool_drvinfo *info) 5398 struct ethtool_drvinfo *info)
5399{ 5399{
5400 struct s2io_nic *sp = dev->priv; 5400 struct s2io_nic *sp = netdev_priv(dev);
5401 5401
5402 strncpy(info->driver, s2io_driver_name, sizeof(info->driver)); 5402 strncpy(info->driver, s2io_driver_name, sizeof(info->driver));
5403 strncpy(info->version, s2io_driver_version, sizeof(info->version)); 5403 strncpy(info->version, s2io_driver_version, sizeof(info->version));
@@ -5427,7 +5427,7 @@ static void s2io_ethtool_gregs(struct net_device *dev,
5427 int i; 5427 int i;
5428 u64 reg; 5428 u64 reg;
5429 u8 *reg_space = (u8 *) space; 5429 u8 *reg_space = (u8 *) space;
5430 struct s2io_nic *sp = dev->priv; 5430 struct s2io_nic *sp = netdev_priv(dev);
5431 5431
5432 regs->len = XENA_REG_SPACE; 5432 regs->len = XENA_REG_SPACE;
5433 regs->version = sp->pdev->subsystem_device; 5433 regs->version = sp->pdev->subsystem_device;
@@ -5487,7 +5487,7 @@ static void s2io_phy_id(unsigned long data)
5487static int s2io_ethtool_idnic(struct net_device *dev, u32 data) 5487static int s2io_ethtool_idnic(struct net_device *dev, u32 data)
5488{ 5488{
5489 u64 val64 = 0, last_gpio_ctrl_val; 5489 u64 val64 = 0, last_gpio_ctrl_val;
5490 struct s2io_nic *sp = dev->priv; 5490 struct s2io_nic *sp = netdev_priv(dev);
5491 struct XENA_dev_config __iomem *bar0 = sp->bar0; 5491 struct XENA_dev_config __iomem *bar0 = sp->bar0;
5492 u16 subid; 5492 u16 subid;
5493 5493
@@ -5525,7 +5525,7 @@ static int s2io_ethtool_idnic(struct net_device *dev, u32 data)
5525static void s2io_ethtool_gringparam(struct net_device *dev, 5525static void s2io_ethtool_gringparam(struct net_device *dev,
5526 struct ethtool_ringparam *ering) 5526 struct ethtool_ringparam *ering)
5527{ 5527{
5528 struct s2io_nic *sp = dev->priv; 5528 struct s2io_nic *sp = netdev_priv(dev);
5529 int i,tx_desc_count=0,rx_desc_count=0; 5529 int i,tx_desc_count=0,rx_desc_count=0;
5530 5530
5531 if (sp->rxd_mode == RXD_MODE_1) 5531 if (sp->rxd_mode == RXD_MODE_1)
@@ -5568,7 +5568,7 @@ static void s2io_ethtool_getpause_data(struct net_device *dev,
5568 struct ethtool_pauseparam *ep) 5568 struct ethtool_pauseparam *ep)
5569{ 5569{
5570 u64 val64; 5570 u64 val64;
5571 struct s2io_nic *sp = dev->priv; 5571 struct s2io_nic *sp = netdev_priv(dev);
5572 struct XENA_dev_config __iomem *bar0 = sp->bar0; 5572 struct XENA_dev_config __iomem *bar0 = sp->bar0;
5573 5573
5574 val64 = readq(&bar0->rmac_pause_cfg); 5574 val64 = readq(&bar0->rmac_pause_cfg);
@@ -5595,7 +5595,7 @@ static int s2io_ethtool_setpause_data(struct net_device *dev,
5595 struct ethtool_pauseparam *ep) 5595 struct ethtool_pauseparam *ep)
5596{ 5596{
5597 u64 val64; 5597 u64 val64;
5598 struct s2io_nic *sp = dev->priv; 5598 struct s2io_nic *sp = netdev_priv(dev);
5599 struct XENA_dev_config __iomem *bar0 = sp->bar0; 5599 struct XENA_dev_config __iomem *bar0 = sp->bar0;
5600 5600
5601 val64 = readq(&bar0->rmac_pause_cfg); 5601 val64 = readq(&bar0->rmac_pause_cfg);
@@ -5825,7 +5825,7 @@ static int s2io_ethtool_geeprom(struct net_device *dev,
5825{ 5825{
5826 u32 i, valid; 5826 u32 i, valid;
5827 u64 data; 5827 u64 data;
5828 struct s2io_nic *sp = dev->priv; 5828 struct s2io_nic *sp = netdev_priv(dev);
5829 5829
5830 eeprom->magic = sp->pdev->vendor | (sp->pdev->device << 16); 5830 eeprom->magic = sp->pdev->vendor | (sp->pdev->device << 16);
5831 5831
@@ -5863,7 +5863,7 @@ static int s2io_ethtool_seeprom(struct net_device *dev,
5863{ 5863{
5864 int len = eeprom->len, cnt = 0; 5864 int len = eeprom->len, cnt = 0;
5865 u64 valid = 0, data; 5865 u64 valid = 0, data;
5866 struct s2io_nic *sp = dev->priv; 5866 struct s2io_nic *sp = netdev_priv(dev);
5867 5867
5868 if (eeprom->magic != (sp->pdev->vendor | (sp->pdev->device << 16))) { 5868 if (eeprom->magic != (sp->pdev->vendor | (sp->pdev->device << 16))) {
5869 DBG_PRINT(ERR_DBG, 5869 DBG_PRINT(ERR_DBG,
@@ -6243,7 +6243,7 @@ static void s2io_ethtool_test(struct net_device *dev,
6243 struct ethtool_test *ethtest, 6243 struct ethtool_test *ethtest,
6244 uint64_t * data) 6244 uint64_t * data)
6245{ 6245{
6246 struct s2io_nic *sp = dev->priv; 6246 struct s2io_nic *sp = netdev_priv(dev);
6247 int orig_state = netif_running(sp->dev); 6247 int orig_state = netif_running(sp->dev);
6248 6248
6249 if (ethtest->flags == ETH_TEST_FL_OFFLINE) { 6249 if (ethtest->flags == ETH_TEST_FL_OFFLINE) {
@@ -6299,7 +6299,7 @@ static void s2io_get_ethtool_stats(struct net_device *dev,
6299 u64 * tmp_stats) 6299 u64 * tmp_stats)
6300{ 6300{
6301 int i = 0, k; 6301 int i = 0, k;
6302 struct s2io_nic *sp = dev->priv; 6302 struct s2io_nic *sp = netdev_priv(dev);
6303 struct stat_block *stat_info = sp->mac_control.stats_info; 6303 struct stat_block *stat_info = sp->mac_control.stats_info;
6304 6304
6305 s2io_updt_stats(sp); 6305 s2io_updt_stats(sp);
@@ -6578,14 +6578,14 @@ static int s2io_ethtool_get_regs_len(struct net_device *dev)
6578 6578
6579static u32 s2io_ethtool_get_rx_csum(struct net_device * dev) 6579static u32 s2io_ethtool_get_rx_csum(struct net_device * dev)
6580{ 6580{
6581 struct s2io_nic *sp = dev->priv; 6581 struct s2io_nic *sp = netdev_priv(dev);
6582 6582
6583 return (sp->rx_csum); 6583 return (sp->rx_csum);
6584} 6584}
6585 6585
6586static int s2io_ethtool_set_rx_csum(struct net_device *dev, u32 data) 6586static int s2io_ethtool_set_rx_csum(struct net_device *dev, u32 data)
6587{ 6587{
6588 struct s2io_nic *sp = dev->priv; 6588 struct s2io_nic *sp = netdev_priv(dev);
6589 6589
6590 if (data) 6590 if (data)
6591 sp->rx_csum = 1; 6591 sp->rx_csum = 1;
@@ -6602,7 +6602,7 @@ static int s2io_get_eeprom_len(struct net_device *dev)
6602 6602
6603static int s2io_get_sset_count(struct net_device *dev, int sset) 6603static int s2io_get_sset_count(struct net_device *dev, int sset)
6604{ 6604{
6605 struct s2io_nic *sp = dev->priv; 6605 struct s2io_nic *sp = netdev_priv(dev);
6606 6606
6607 switch (sset) { 6607 switch (sset) {
6608 case ETH_SS_TEST: 6608 case ETH_SS_TEST:
@@ -6625,7 +6625,7 @@ static void s2io_ethtool_get_strings(struct net_device *dev,
6625 u32 stringset, u8 * data) 6625 u32 stringset, u8 * data)
6626{ 6626{
6627 int stat_size = 0; 6627 int stat_size = 0;
6628 struct s2io_nic *sp = dev->priv; 6628 struct s2io_nic *sp = netdev_priv(dev);
6629 6629
6630 switch (stringset) { 6630 switch (stringset) {
6631 case ETH_SS_TEST: 6631 case ETH_SS_TEST:
@@ -6727,7 +6727,7 @@ static int s2io_ioctl(struct net_device *dev, struct ifreq *rq, int cmd)
6727 6727
6728static int s2io_change_mtu(struct net_device *dev, int new_mtu) 6728static int s2io_change_mtu(struct net_device *dev, int new_mtu)
6729{ 6729{
6730 struct s2io_nic *sp = dev->priv; 6730 struct s2io_nic *sp = netdev_priv(dev);
6731 int ret = 0; 6731 int ret = 0;
6732 6732
6733 if ((new_mtu < MIN_MTU) || (new_mtu > S2IO_JUMBO_SIZE)) { 6733 if ((new_mtu < MIN_MTU) || (new_mtu > S2IO_JUMBO_SIZE)) {
@@ -7331,7 +7331,7 @@ out_unlock:
7331 7331
7332static void s2io_tx_watchdog(struct net_device *dev) 7332static void s2io_tx_watchdog(struct net_device *dev)
7333{ 7333{
7334 struct s2io_nic *sp = dev->priv; 7334 struct s2io_nic *sp = netdev_priv(dev);
7335 7335
7336 if (netif_carrier_ok(dev)) { 7336 if (netif_carrier_ok(dev)) {
7337 sp->mac_control.stats_info->sw_stat.watchdog_timer_cnt++; 7337 sp->mac_control.stats_info->sw_stat.watchdog_timer_cnt++;
@@ -7796,7 +7796,7 @@ s2io_init_nic(struct pci_dev *pdev, const struct pci_device_id *pre)
7796 SET_NETDEV_DEV(dev, &pdev->dev); 7796 SET_NETDEV_DEV(dev, &pdev->dev);
7797 7797
7798 /* Private member variable initialized to s2io NIC structure */ 7798 /* Private member variable initialized to s2io NIC structure */
7799 sp = dev->priv; 7799 sp = netdev_priv(dev);
7800 memset(sp, 0, sizeof(struct s2io_nic)); 7800 memset(sp, 0, sizeof(struct s2io_nic));
7801 sp->dev = dev; 7801 sp->dev = dev;
7802 sp->pdev = pdev; 7802 sp->pdev = pdev;
@@ -8250,7 +8250,7 @@ static void __devexit s2io_rem_nic(struct pci_dev *pdev)
8250 8250
8251 flush_scheduled_work(); 8251 flush_scheduled_work();
8252 8252
8253 sp = dev->priv; 8253 sp = netdev_priv(dev);
8254 unregister_netdev(dev); 8254 unregister_netdev(dev);
8255 8255
8256 free_shared_mem(sp); 8256 free_shared_mem(sp);
@@ -8585,7 +8585,7 @@ static void clear_lro_session(struct lro *lro)
8585static void queue_rx_frame(struct sk_buff *skb, u16 vlan_tag) 8585static void queue_rx_frame(struct sk_buff *skb, u16 vlan_tag)
8586{ 8586{
8587 struct net_device *dev = skb->dev; 8587 struct net_device *dev = skb->dev;
8588 struct s2io_nic *sp = dev->priv; 8588 struct s2io_nic *sp = netdev_priv(dev);
8589 8589
8590 skb->protocol = eth_type_trans(skb, dev); 8590 skb->protocol = eth_type_trans(skb, dev);
8591 if (sp->vlgrp && vlan_tag 8591 if (sp->vlgrp && vlan_tag
@@ -8634,7 +8634,7 @@ static pci_ers_result_t s2io_io_error_detected(struct pci_dev *pdev,
8634 pci_channel_state_t state) 8634 pci_channel_state_t state)
8635{ 8635{
8636 struct net_device *netdev = pci_get_drvdata(pdev); 8636 struct net_device *netdev = pci_get_drvdata(pdev);
8637 struct s2io_nic *sp = netdev->priv; 8637 struct s2io_nic *sp = netdev_priv(netdev);
8638 8638
8639 netif_device_detach(netdev); 8639 netif_device_detach(netdev);
8640 8640
@@ -8659,7 +8659,7 @@ static pci_ers_result_t s2io_io_error_detected(struct pci_dev *pdev,
8659static pci_ers_result_t s2io_io_slot_reset(struct pci_dev *pdev) 8659static pci_ers_result_t s2io_io_slot_reset(struct pci_dev *pdev)
8660{ 8660{
8661 struct net_device *netdev = pci_get_drvdata(pdev); 8661 struct net_device *netdev = pci_get_drvdata(pdev);
8662 struct s2io_nic *sp = netdev->priv; 8662 struct s2io_nic *sp = netdev_priv(netdev);
8663 8663
8664 if (pci_enable_device(pdev)) { 8664 if (pci_enable_device(pdev)) {
8665 printk(KERN_ERR "s2io: " 8665 printk(KERN_ERR "s2io: "
@@ -8683,7 +8683,7 @@ static pci_ers_result_t s2io_io_slot_reset(struct pci_dev *pdev)
8683static void s2io_io_resume(struct pci_dev *pdev) 8683static void s2io_io_resume(struct pci_dev *pdev)
8684{ 8684{
8685 struct net_device *netdev = pci_get_drvdata(pdev); 8685 struct net_device *netdev = pci_get_drvdata(pdev);
8686 struct s2io_nic *sp = netdev->priv; 8686 struct s2io_nic *sp = netdev_priv(netdev);
8687 8687
8688 if (netif_running(netdev)) { 8688 if (netif_running(netdev)) {
8689 if (s2io_card_up(sp)) { 8689 if (s2io_card_up(sp)) {