static int skge_nway_reset(struct net_device *dev)
{
        struct skge_port *skge = netdev_priv(dev);
        struct skge_hw *hw = skge->hw;
        int port = skge->port;

        if (skge->autoneg != AUTONEG_ENABLE || !netif_running(dev))
                return -EINVAL;

        spin_lock_bh(&hw->phy_lock);
        if (hw->chip_id == CHIP_ID_GENESIS) {
                genesis_reset(hw, port);
                genesis_mac_init(hw, port);
[...]
static void genesis_mac_init(struct skge_hw *hw, int port)
{
        struct net_device *dev = hw->dev[port];
        struct skge_port *skge = netdev_priv(dev);
        int jumbo = hw->dev[port]->mtu > ETH_DATA_LEN;
[...]
        spin_lock_bh(&hw->phy_lock);

--
Ueimor
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to