et131x.c (a0bbb9fe2e26dba9524247f5d81e46f18ba69c9d) et131x.c (adc01582e36fc228f6f1c82188f7501eb4c6154f)
1/* Agere Systems Inc.
2 * 10/100/1000 Base-T Ethernet Driver for the ET1301 and ET131x series MACs
3 *
4 * Copyright © 2005 Agere Systems Inc.
5 * All rights reserved.
6 * http://www.agere.com
7 *
8 * Copyright (c) 2011 Mark Einon <mark.einon@gmail.com>

--- 2776 unchanged lines hidden (view full) ---

2785
2786 /* Wake up the queue when we hit a low-water mark */
2787 if (tx_ring->used <= NUM_TCB / 3)
2788 netif_wake_queue(adapter->netdev);
2789
2790 spin_unlock_irqrestore(&adapter->tcb_send_qlock, flags);
2791}
2792
1/* Agere Systems Inc.
2 * 10/100/1000 Base-T Ethernet Driver for the ET1301 and ET131x series MACs
3 *
4 * Copyright © 2005 Agere Systems Inc.
5 * All rights reserved.
6 * http://www.agere.com
7 *
8 * Copyright (c) 2011 Mark Einon <mark.einon@gmail.com>

--- 2776 unchanged lines hidden (view full) ---

2785
2786 /* Wake up the queue when we hit a low-water mark */
2787 if (tx_ring->used <= NUM_TCB / 3)
2788 netif_wake_queue(adapter->netdev);
2789
2790 spin_unlock_irqrestore(&adapter->tcb_send_qlock, flags);
2791}
2792
2793static int et131x_get_settings(struct net_device *netdev,
2794 struct ethtool_cmd *cmd)
2795{
2796 return phy_ethtool_gset(netdev->phydev, cmd);
2797}
2798
2799static int et131x_set_settings(struct net_device *netdev,
2800 struct ethtool_cmd *cmd)
2801{
2802 return phy_ethtool_sset(netdev->phydev, cmd);
2803}
2804
2805static int et131x_get_regs_len(struct net_device *netdev)
2806{
2807#define ET131X_REGS_LEN 256
2808 return ET131X_REGS_LEN * sizeof(u32);
2809}
2810
2811static void et131x_get_regs(struct net_device *netdev,
2812 struct ethtool_regs *regs, void *regs_data)

--- 156 unchanged lines hidden (view full) ---

2969
2970 strlcpy(info->driver, DRIVER_NAME, sizeof(info->driver));
2971 strlcpy(info->version, DRIVER_VERSION, sizeof(info->version));
2972 strlcpy(info->bus_info, pci_name(adapter->pdev),
2973 sizeof(info->bus_info));
2974}
2975
2976static struct ethtool_ops et131x_ethtool_ops = {
2793static int et131x_get_regs_len(struct net_device *netdev)
2794{
2795#define ET131X_REGS_LEN 256
2796 return ET131X_REGS_LEN * sizeof(u32);
2797}
2798
2799static void et131x_get_regs(struct net_device *netdev,
2800 struct ethtool_regs *regs, void *regs_data)

--- 156 unchanged lines hidden (view full) ---

2957
2958 strlcpy(info->driver, DRIVER_NAME, sizeof(info->driver));
2959 strlcpy(info->version, DRIVER_VERSION, sizeof(info->version));
2960 strlcpy(info->bus_info, pci_name(adapter->pdev),
2961 sizeof(info->bus_info));
2962}
2963
2964static struct ethtool_ops et131x_ethtool_ops = {
2977 .get_settings = et131x_get_settings,
2978 .set_settings = et131x_set_settings,
2979 .get_drvinfo = et131x_get_drvinfo,
2980 .get_regs_len = et131x_get_regs_len,
2981 .get_regs = et131x_get_regs,
2982 .get_link = ethtool_op_get_link,
2965 .get_drvinfo = et131x_get_drvinfo,
2966 .get_regs_len = et131x_get_regs_len,
2967 .get_regs = et131x_get_regs,
2968 .get_link = ethtool_op_get_link,
2969 .get_link_ksettings = phy_ethtool_get_link_ksettings,
2970 .set_link_ksettings = phy_ethtool_set_link_ksettings,
2983};
2984
2985/* et131x_hwaddr_init - set up the MAC Address */
2986static void et131x_hwaddr_init(struct et131x_adapter *adapter)
2987{
2988 /* If have our default mac from init and no mac address from
2989 * EEPROM then we need to generate the last octet and set it on the
2990 * device

--- 1108 unchanged lines hidden ---
2971};
2972
2973/* et131x_hwaddr_init - set up the MAC Address */
2974static void et131x_hwaddr_init(struct et131x_adapter *adapter)
2975{
2976 /* If have our default mac from init and no mac address from
2977 * EEPROM then we need to generate the last octet and set it on the
2978 * device

--- 1108 unchanged lines hidden ---