• Home
  • Raw
  • Download

Lines Matching refs:sis_priv

414 	struct sis900_private *sis_priv;  in sis900_probe()  local
455 sis_priv = netdev_priv(net_dev); in sis900_probe()
458 sis_priv->pci_dev = pci_dev; in sis900_probe()
459 spin_lock_init(&sis_priv->lock); in sis900_probe()
468 sis_priv->tx_ring = (BufferDesc *)ring_space; in sis900_probe()
469 sis_priv->tx_ring_dma = ring_dma; in sis900_probe()
476 sis_priv->rx_ring = (BufferDesc *)ring_space; in sis900_probe()
477 sis_priv->rx_ring_dma = ring_dma; in sis900_probe()
485 sis_priv->msg_enable = sis900_debug; in sis900_probe()
487 sis_priv->msg_enable = SIS900_DEF_MSG; in sis900_probe()
489 sis_priv->mii_info.dev = net_dev; in sis900_probe()
490 sis_priv->mii_info.mdio_read = mdio_read; in sis900_probe()
491 sis_priv->mii_info.mdio_write = mdio_write; in sis900_probe()
492 sis_priv->mii_info.phy_id_mask = 0x1f; in sis900_probe()
493 sis_priv->mii_info.reg_num_mask = 0x1f; in sis900_probe()
496 pci_read_config_byte(pci_dev, PCI_CLASS_REVISION, &(sis_priv->chipset_rev)); in sis900_probe()
497 if(netif_msg_probe(sis_priv)) in sis900_probe()
500 dev_name, sis_priv->chipset_rev); in sis900_probe()
503 if (sis_priv->chipset_rev == SIS630E_900_REV) in sis900_probe()
505 else if ((sis_priv->chipset_rev > 0x81) && (sis_priv->chipset_rev <= 0x90) ) in sis900_probe()
507 else if (sis_priv->chipset_rev == SIS96x_900_REV) in sis900_probe()
519 if (sis_priv->chipset_rev == SIS630ET_900_REV) in sis900_probe()
533 pci_read_config_byte(dev, PCI_CLASS_REVISION, &sis_priv->host_bridge_rev); in sis900_probe()
548 if (netif_msg_probe(sis_priv) && (ret & PME_D3C) == 0) in sis900_probe()
554 pci_free_consistent(pci_dev, RX_TOTAL_SIZE, sis_priv->rx_ring, in sis900_probe()
555 sis_priv->rx_ring_dma); in sis900_probe()
557 pci_free_consistent(pci_dev, TX_TOTAL_SIZE, sis_priv->tx_ring, in sis900_probe()
558 sis_priv->tx_ring_dma); in sis900_probe()
578 struct sis900_private *sis_priv = netdev_priv(net_dev); in sis900_mii_probe() local
579 const char *dev_name = pci_name(sis_priv->pci_dev); in sis900_mii_probe()
584 sis_priv->mii = NULL; in sis900_mii_probe()
597 if (netif_msg_probe(sis_priv)) in sis900_mii_probe()
606 mii_phy = sis_priv->first_mii; in sis900_mii_probe()
620 mii_phy->next = sis_priv->mii; in sis900_mii_probe()
621 sis_priv->mii = mii_phy; in sis900_mii_probe()
622 sis_priv->first_mii = mii_phy; in sis900_mii_probe()
646 if (sis_priv->mii == NULL) { in sis900_mii_probe()
652 sis_priv->mii = NULL; in sis900_mii_probe()
656 if ((sis_priv->mii->phy_id0 == 0x001D) && in sis900_mii_probe()
657 ((sis_priv->mii->phy_id1&0xFFF0) == 0x8000)) in sis900_mii_probe()
658 status = sis900_reset_phy(net_dev, sis_priv->cur_phy); in sis900_mii_probe()
661 if ((sis_priv->mii->phy_id0 == 0x0015) && in sis900_mii_probe()
662 ((sis_priv->mii->phy_id1&0xFFF0) == 0xF440)) in sis900_mii_probe()
663 mdio_write(net_dev, sis_priv->cur_phy, 0x0018, 0xD200); in sis900_mii_probe()
669 poll_bit ^= (mdio_read(net_dev, sis_priv->cur_phy, MII_STATUS) & poll_bit); in sis900_mii_probe()
678 if (sis_priv->chipset_rev == SIS630E_900_REV) { in sis900_mii_probe()
680 mdio_write(net_dev, sis_priv->cur_phy, MII_ANADV, 0x05e1); in sis900_mii_probe()
681 mdio_write(net_dev, sis_priv->cur_phy, MII_CONFIG1, 0x22); in sis900_mii_probe()
682 mdio_write(net_dev, sis_priv->cur_phy, MII_CONFIG2, 0xff00); in sis900_mii_probe()
683 mdio_write(net_dev, sis_priv->cur_phy, MII_MASK, 0xffc0); in sis900_mii_probe()
687 if (sis_priv->mii->status & MII_STAT_LINK) in sis900_mii_probe()
706 struct sis900_private *sis_priv = netdev_priv(net_dev); in sis900_default_phy() local
711 for (phy=sis_priv->first_mii; phy; phy=phy->next) { in sis900_default_phy()
735 default_phy = sis_priv->first_mii; in sis900_default_phy()
737 if (sis_priv->mii != default_phy) { in sis900_default_phy()
738 sis_priv->mii = default_phy; in sis900_default_phy()
739 sis_priv->cur_phy = default_phy->phy_addr; in sis900_default_phy()
741 pci_name(sis_priv->pci_dev), sis_priv->cur_phy); in sis900_default_phy()
744 sis_priv->mii_info.phy_id = sis_priv->cur_phy; in sis900_default_phy()
746 status = mdio_read(net_dev, sis_priv->cur_phy, MII_CONTROL); in sis900_default_phy()
749 mdio_write(net_dev, sis_priv->cur_phy, MII_CONTROL, status); in sis900_default_phy()
750 status = mdio_read(net_dev, sis_priv->cur_phy, MII_STATUS); in sis900_default_phy()
751 status = mdio_read(net_dev, sis_priv->cur_phy, MII_STATUS); in sis900_default_phy()
1007 struct sis900_private *sis_priv = netdev_priv(net_dev); in sis900_open() local
1015 sis630_set_eq(net_dev, sis_priv->chipset_rev); in sis900_open()
1039 sis900_check_mode(net_dev, sis_priv->mii); in sis900_open()
1043 init_timer(&sis_priv->timer); in sis900_open()
1044 sis_priv->timer.expires = jiffies + HZ; in sis900_open()
1045 sis_priv->timer.data = (unsigned long)net_dev; in sis900_open()
1046 sis_priv->timer.function = &sis900_timer; in sis900_open()
1047 add_timer(&sis_priv->timer); in sis900_open()
1063 struct sis900_private *sis_priv = netdev_priv(net_dev); in sis900_init_rxfilter() local
1081 if (netif_msg_hw(sis_priv)) { in sis900_init_rxfilter()
1101 struct sis900_private *sis_priv = netdev_priv(net_dev); in sis900_init_tx_ring() local
1105 sis_priv->tx_full = 0; in sis900_init_tx_ring()
1106 sis_priv->dirty_tx = sis_priv->cur_tx = 0; in sis900_init_tx_ring()
1109 sis_priv->tx_skbuff[i] = NULL; in sis900_init_tx_ring()
1111 sis_priv->tx_ring[i].link = sis_priv->tx_ring_dma + in sis900_init_tx_ring()
1113 sis_priv->tx_ring[i].cmdsts = 0; in sis900_init_tx_ring()
1114 sis_priv->tx_ring[i].bufptr = 0; in sis900_init_tx_ring()
1118 outl(sis_priv->tx_ring_dma, ioaddr + txdp); in sis900_init_tx_ring()
1119 if (netif_msg_hw(sis_priv)) in sis900_init_tx_ring()
1135 struct sis900_private *sis_priv = netdev_priv(net_dev); in sis900_init_rx_ring() local
1139 sis_priv->cur_rx = 0; in sis900_init_rx_ring()
1140 sis_priv->dirty_rx = 0; in sis900_init_rx_ring()
1144 sis_priv->rx_skbuff[i] = NULL; in sis900_init_rx_ring()
1146 sis_priv->rx_ring[i].link = sis_priv->rx_ring_dma + in sis900_init_rx_ring()
1148 sis_priv->rx_ring[i].cmdsts = 0; in sis900_init_rx_ring()
1149 sis_priv->rx_ring[i].bufptr = 0; in sis900_init_rx_ring()
1163 sis_priv->rx_skbuff[i] = skb; in sis900_init_rx_ring()
1164 sis_priv->rx_ring[i].cmdsts = RX_BUF_SIZE; in sis900_init_rx_ring()
1165 sis_priv->rx_ring[i].bufptr = pci_map_single(sis_priv->pci_dev, in sis900_init_rx_ring()
1168 sis_priv->dirty_rx = (unsigned int) (i - NUM_RX_DESC); in sis900_init_rx_ring()
1171 outl(sis_priv->rx_ring_dma, ioaddr + rxdp); in sis900_init_rx_ring()
1172 if (netif_msg_hw(sis_priv)) in sis900_init_rx_ring()
1206 struct sis900_private *sis_priv = netdev_priv(net_dev); in sis630_set_eq() local
1215 reg14h = mdio_read(net_dev, sis_priv->cur_phy, MII_RESV); in sis630_set_eq()
1216 mdio_write(net_dev, sis_priv->cur_phy, MII_RESV, in sis630_set_eq()
1220 sis_priv->cur_phy, MII_RESV)) >> 3; in sis630_set_eq()
1242 (sis_priv->host_bridge_rev == SIS630B0 || in sis630_set_eq()
1243 sis_priv->host_bridge_rev == SIS630B1)) { in sis630_set_eq()
1250 reg14h = mdio_read(net_dev, sis_priv->cur_phy, MII_RESV); in sis630_set_eq()
1253 mdio_write(net_dev, sis_priv->cur_phy, MII_RESV, reg14h); in sis630_set_eq()
1255 reg14h = mdio_read(net_dev, sis_priv->cur_phy, MII_RESV); in sis630_set_eq()
1257 (sis_priv->host_bridge_rev == SIS630B0 || in sis630_set_eq()
1258 sis_priv->host_bridge_rev == SIS630B1)) in sis630_set_eq()
1259 mdio_write(net_dev, sis_priv->cur_phy, MII_RESV, in sis630_set_eq()
1262 mdio_write(net_dev, sis_priv->cur_phy, MII_RESV, in sis630_set_eq()
1279 struct sis900_private *sis_priv = netdev_priv(net_dev); in sis900_timer() local
1280 struct mii_phy *mii_phy = sis_priv->mii; in sis900_timer()
1284 if (!sis_priv->autong_complete){ in sis900_timer()
1290 sis630_set_eq(net_dev, sis_priv->chipset_rev); in sis900_timer()
1294 sis_priv->timer.expires = jiffies + HZ; in sis900_timer()
1295 add_timer(&sis_priv->timer); in sis900_timer()
1299 status = mdio_read(net_dev, sis_priv->cur_phy, MII_STATUS); in sis900_timer()
1300 status = mdio_read(net_dev, sis_priv->cur_phy, MII_STATUS); in sis900_timer()
1307 mii_phy = sis_priv->mii; in sis900_timer()
1317 if(netif_msg_link(sis_priv)) in sis900_timer()
1323 sis900_reset_phy(net_dev, sis_priv->cur_phy); in sis900_timer()
1325 sis630_set_eq(net_dev, sis_priv->chipset_rev); in sis900_timer()
1331 sis_priv->timer.expires = jiffies + next_tick; in sis900_timer()
1332 add_timer(&sis_priv->timer); in sis900_timer()
1349 struct sis900_private *sis_priv = netdev_priv(net_dev); in sis900_check_mode() local
1356 sis900_auto_negotiate(net_dev, sis_priv->cur_phy); in sis900_check_mode()
1362 sis_priv->autong_complete = 1; in sis900_check_mode()
1428 struct sis900_private *sis_priv = netdev_priv(net_dev); in sis900_auto_negotiate() local
1436 if(netif_msg_link(sis_priv)) in sis900_auto_negotiate()
1438 sis_priv->autong_complete = 1; in sis900_auto_negotiate()
1446 sis_priv->autong_complete = 0; in sis900_auto_negotiate()
1463 struct sis900_private *sis_priv = netdev_priv(net_dev); in sis900_read_mode() local
1464 struct mii_phy *phy = sis_priv->mii; in sis900_read_mode()
1465 int phy_addr = sis_priv->cur_phy; in sis900_read_mode()
1489 sis_priv->autong_complete = 1; in sis900_read_mode()
1499 if(netif_msg_link(sis_priv)) in sis900_read_mode()
1518 struct sis900_private *sis_priv = netdev_priv(net_dev); in sis900_tx_timeout() local
1523 if(netif_msg_tx_err(sis_priv)) in sis900_tx_timeout()
1531 spin_lock_irqsave(&sis_priv->lock, flags); in sis900_tx_timeout()
1534 sis_priv->dirty_tx = sis_priv->cur_tx = 0; in sis900_tx_timeout()
1536 struct sk_buff *skb = sis_priv->tx_skbuff[i]; in sis900_tx_timeout()
1539 pci_unmap_single(sis_priv->pci_dev, in sis900_tx_timeout()
1540 sis_priv->tx_ring[i].bufptr, skb->len, in sis900_tx_timeout()
1543 sis_priv->tx_skbuff[i] = NULL; in sis900_tx_timeout()
1544 sis_priv->tx_ring[i].cmdsts = 0; in sis900_tx_timeout()
1545 sis_priv->tx_ring[i].bufptr = 0; in sis900_tx_timeout()
1549 sis_priv->tx_full = 0; in sis900_tx_timeout()
1552 spin_unlock_irqrestore(&sis_priv->lock, flags); in sis900_tx_timeout()
1557 outl(sis_priv->tx_ring_dma, ioaddr + txdp); in sis900_tx_timeout()
1577 struct sis900_private *sis_priv = netdev_priv(net_dev); in sis900_start_xmit() local
1585 if(!sis_priv->autong_complete){ in sis900_start_xmit()
1590 spin_lock_irqsave(&sis_priv->lock, flags); in sis900_start_xmit()
1593 entry = sis_priv->cur_tx % NUM_TX_DESC; in sis900_start_xmit()
1594 sis_priv->tx_skbuff[entry] = skb; in sis900_start_xmit()
1597 sis_priv->tx_ring[entry].bufptr = pci_map_single(sis_priv->pci_dev, in sis900_start_xmit()
1599 sis_priv->tx_ring[entry].cmdsts = (OWN | skb->len); in sis900_start_xmit()
1602 sis_priv->cur_tx ++; in sis900_start_xmit()
1603 index_cur_tx = sis_priv->cur_tx; in sis900_start_xmit()
1604 index_dirty_tx = sis_priv->dirty_tx; in sis900_start_xmit()
1611 sis_priv->tx_full = 1; in sis900_start_xmit()
1618 sis_priv->tx_full = 1; in sis900_start_xmit()
1622 spin_unlock_irqrestore(&sis_priv->lock, flags); in sis900_start_xmit()
1626 if (netif_msg_tx_queued(sis_priv)) in sis900_start_xmit()
1646 struct sis900_private *sis_priv = netdev_priv(net_dev); in sis900_interrupt() local
1652 spin_lock (&sis_priv->lock); in sis900_interrupt()
1673 if(netif_msg_intr(sis_priv)) in sis900_interrupt()
1679 if(netif_msg_intr(sis_priv)) in sis900_interrupt()
1687 if(netif_msg_intr(sis_priv)) in sis900_interrupt()
1692 spin_unlock (&sis_priv->lock); in sis900_interrupt()
1708 struct sis900_private *sis_priv = netdev_priv(net_dev); in sis900_rx() local
1710 unsigned int entry = sis_priv->cur_rx % NUM_RX_DESC; in sis900_rx()
1711 u32 rx_status = sis_priv->rx_ring[entry].cmdsts; in sis900_rx()
1714 if (netif_msg_rx_status(sis_priv)) in sis900_rx()
1717 sis_priv->cur_rx, sis_priv->dirty_rx, rx_status); in sis900_rx()
1718 rx_work_limit = sis_priv->dirty_rx + NUM_RX_DESC - sis_priv->cur_rx; in sis900_rx()
1738 if (netif_msg_rx_err(sis_priv)) in sis900_rx()
1752 sis_priv->rx_ring[entry].cmdsts = RX_BUF_SIZE; in sis900_rx()
1757 pci_unmap_single(sis_priv->pci_dev, in sis900_rx()
1758 sis_priv->rx_ring[entry].bufptr, RX_BUF_SIZE, in sis900_rx()
1770 skb = sis_priv->rx_skbuff[entry]; in sis900_rx()
1778 if (sis_priv->rx_skbuff[entry] == NULL) { in sis900_rx()
1779 if (netif_msg_rx_err(sis_priv)) in sis900_rx()
1783 net_dev->name, sis_priv->cur_rx, in sis900_rx()
1784 sis_priv->dirty_rx); in sis900_rx()
1789 rx_skb = sis_priv->rx_skbuff[entry]; in sis900_rx()
1799 sis_priv->dirty_rx++; in sis900_rx()
1801 sis_priv->rx_skbuff[entry] = skb; in sis900_rx()
1802 sis_priv->rx_ring[entry].cmdsts = RX_BUF_SIZE; in sis900_rx()
1803 sis_priv->rx_ring[entry].bufptr = in sis900_rx()
1804 pci_map_single(sis_priv->pci_dev, skb->data, in sis900_rx()
1807 sis_priv->cur_rx++; in sis900_rx()
1808 entry = sis_priv->cur_rx % NUM_RX_DESC; in sis900_rx()
1809 rx_status = sis_priv->rx_ring[entry].cmdsts; in sis900_rx()
1814 for (; sis_priv->cur_rx != sis_priv->dirty_rx; sis_priv->dirty_rx++) { in sis900_rx()
1817 entry = sis_priv->dirty_rx % NUM_RX_DESC; in sis900_rx()
1819 if (sis_priv->rx_skbuff[entry] == NULL) { in sis900_rx()
1825 if (netif_msg_rx_err(sis_priv)) in sis900_rx()
1832 sis_priv->rx_skbuff[entry] = skb; in sis900_rx()
1833 sis_priv->rx_ring[entry].cmdsts = RX_BUF_SIZE; in sis900_rx()
1834 sis_priv->rx_ring[entry].bufptr = in sis900_rx()
1835 pci_map_single(sis_priv->pci_dev, skb->data, in sis900_rx()
1857 struct sis900_private *sis_priv = netdev_priv(net_dev); in sis900_finish_xmit() local
1859 for (; sis_priv->dirty_tx != sis_priv->cur_tx; sis_priv->dirty_tx++) { in sis900_finish_xmit()
1864 entry = sis_priv->dirty_tx % NUM_TX_DESC; in sis900_finish_xmit()
1865 tx_status = sis_priv->tx_ring[entry].cmdsts; in sis900_finish_xmit()
1876 if (netif_msg_tx_err(sis_priv)) in sis900_finish_xmit()
1896 skb = sis_priv->tx_skbuff[entry]; in sis900_finish_xmit()
1897 pci_unmap_single(sis_priv->pci_dev, in sis900_finish_xmit()
1898 sis_priv->tx_ring[entry].bufptr, skb->len, in sis900_finish_xmit()
1901 sis_priv->tx_skbuff[entry] = NULL; in sis900_finish_xmit()
1902 sis_priv->tx_ring[entry].bufptr = 0; in sis900_finish_xmit()
1903 sis_priv->tx_ring[entry].cmdsts = 0; in sis900_finish_xmit()
1906 if (sis_priv->tx_full && netif_queue_stopped(net_dev) && in sis900_finish_xmit()
1907 sis_priv->cur_tx - sis_priv->dirty_tx < NUM_TX_DESC - 4) { in sis900_finish_xmit()
1910 sis_priv->tx_full = 0; in sis900_finish_xmit()
1926 struct sis900_private *sis_priv = netdev_priv(net_dev); in sis900_close() local
1939 del_timer(&sis_priv->timer); in sis900_close()
1945 skb = sis_priv->rx_skbuff[i]; in sis900_close()
1947 pci_unmap_single(sis_priv->pci_dev, in sis900_close()
1948 sis_priv->rx_ring[i].bufptr, in sis900_close()
1951 sis_priv->rx_skbuff[i] = NULL; in sis900_close()
1955 skb = sis_priv->tx_skbuff[i]; in sis900_close()
1957 pci_unmap_single(sis_priv->pci_dev, in sis900_close()
1958 sis_priv->tx_ring[i].bufptr, skb->len, in sis900_close()
1961 sis_priv->tx_skbuff[i] = NULL; in sis900_close()
1981 struct sis900_private *sis_priv = netdev_priv(net_dev); in sis900_get_drvinfo() local
1985 strcpy (info->bus_info, pci_name(sis_priv->pci_dev)); in sis900_get_drvinfo()
1990 struct sis900_private *sis_priv = netdev_priv(net_dev); in sis900_get_msglevel() local
1991 return sis_priv->msg_enable; in sis900_get_msglevel()
1996 struct sis900_private *sis_priv = netdev_priv(net_dev); in sis900_set_msglevel() local
1997 sis_priv->msg_enable = value; in sis900_set_msglevel()
2002 struct sis900_private *sis_priv = netdev_priv(net_dev); in sis900_get_link() local
2003 return mii_link_ok(&sis_priv->mii_info); in sis900_get_link()
2009 struct sis900_private *sis_priv = netdev_priv(net_dev); in sis900_get_settings() local
2010 spin_lock_irq(&sis_priv->lock); in sis900_get_settings()
2011 mii_ethtool_gset(&sis_priv->mii_info, cmd); in sis900_get_settings()
2012 spin_unlock_irq(&sis_priv->lock); in sis900_get_settings()
2019 struct sis900_private *sis_priv = netdev_priv(net_dev); in sis900_set_settings() local
2021 spin_lock_irq(&sis_priv->lock); in sis900_set_settings()
2022 rt = mii_ethtool_sset(&sis_priv->mii_info, cmd); in sis900_set_settings()
2023 spin_unlock_irq(&sis_priv->lock); in sis900_set_settings()
2029 struct sis900_private *sis_priv = netdev_priv(net_dev); in sis900_nway_reset() local
2030 return mii_nway_restart(&sis_priv->mii_info); in sis900_nway_reset()
2046 struct sis900_private *sis_priv = netdev_priv(net_dev); in sis900_set_wol() local
2051 pci_read_config_dword(sis_priv->pci_dev, CFGPMCSR, &cfgpmcsr); in sis900_set_wol()
2053 pci_write_config_dword(sis_priv->pci_dev, CFGPMCSR, cfgpmcsr); in sis900_set_wol()
2055 if (netif_msg_wol(sis_priv)) in sis900_set_wol()
2071 pci_read_config_dword(sis_priv->pci_dev, CFGPMCSR, &cfgpmcsr); in sis900_set_wol()
2073 pci_write_config_dword(sis_priv->pci_dev, CFGPMCSR, cfgpmcsr); in sis900_set_wol()
2074 if (netif_msg_wol(sis_priv)) in sis900_set_wol()
2117 struct sis900_private *sis_priv = netdev_priv(net_dev); in mii_ioctl() local
2122 data->phy_id = sis_priv->mii->phy_addr; in mii_ioctl()
2151 struct sis900_private *sis_priv = netdev_priv(dev); in sis900_set_config() local
2152 struct mii_phy *mii_phy = sis_priv->mii; in sis900_set_config()
2274 struct sis900_private *sis_priv = netdev_priv(net_dev); in set_rx_mode() local
2280 if((sis_priv->chipset_rev >= SIS635A_900_REV) || in set_rx_mode()
2281 (sis_priv->chipset_rev == SIS900B_900_REV)) in set_rx_mode()
2307 sis900_mcast_bitnr(mclist->dmi_addr, sis_priv->chipset_rev); in set_rx_mode()
2349 struct sis900_private *sis_priv = netdev_priv(net_dev); in sis900_reset() local
2365 if( (sis_priv->chipset_rev >= SIS635A_900_REV) || in sis900_reset()
2366 (sis_priv->chipset_rev == SIS900B_900_REV) ) in sis900_reset()
2382 struct sis900_private *sis_priv = netdev_priv(net_dev); in sis900_remove() local
2385 while (sis_priv->first_mii) { in sis900_remove()
2386 phy = sis_priv->first_mii; in sis900_remove()
2387 sis_priv->first_mii = phy->next; in sis900_remove()
2391 pci_free_consistent(pci_dev, RX_TOTAL_SIZE, sis_priv->rx_ring, in sis900_remove()
2392 sis_priv->rx_ring_dma); in sis900_remove()
2393 pci_free_consistent(pci_dev, TX_TOTAL_SIZE, sis_priv->tx_ring, in sis900_remove()
2394 sis_priv->tx_ring_dma); in sis900_remove()
2426 struct sis900_private *sis_priv = netdev_priv(net_dev); in sis900_resume() local
2452 sis900_check_mode(net_dev, sis_priv->mii); in sis900_resume()