aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/skfp
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/skfp')
-rw-r--r--drivers/net/skfp/skfddi.c27
1 files changed, 15 insertions, 12 deletions
diff --git a/drivers/net/skfp/skfddi.c b/drivers/net/skfp/skfddi.c
index a2b092bb3626..607efeaf0bc5 100644
--- a/drivers/net/skfp/skfddi.c
+++ b/drivers/net/skfp/skfddi.c
@@ -168,6 +168,17 @@ static int num_boards; /* total number of adapters configured */
168#define PRINTK(s, args...) 168#define PRINTK(s, args...)
169#endif // DRIVERDEBUG 169#endif // DRIVERDEBUG
170 170
171static const struct net_device_ops skfp_netdev_ops = {
172 .ndo_open = skfp_open,
173 .ndo_stop = skfp_close,
174 .ndo_start_xmit = skfp_send_pkt,
175 .ndo_get_stats = skfp_ctl_get_stats,
176 .ndo_change_mtu = fddi_change_mtu,
177 .ndo_set_multicast_list = skfp_ctl_set_multicast_list,
178 .ndo_set_mac_address = skfp_ctl_set_mac_address,
179 .ndo_do_ioctl = skfp_ioctl,
180};
181
171/* 182/*
172 * ================= 183 * =================
173 * = skfp_init_one = 184 * = skfp_init_one =
@@ -253,13 +264,7 @@ static int skfp_init_one(struct pci_dev *pdev,
253 } 264 }
254 265
255 dev->irq = pdev->irq; 266 dev->irq = pdev->irq;
256 dev->get_stats = &skfp_ctl_get_stats; 267 dev->netdev_ops = &skfp_netdev_ops;
257 dev->open = &skfp_open;
258 dev->stop = &skfp_close;
259 dev->hard_start_xmit = &skfp_send_pkt;
260 dev->set_multicast_list = &skfp_ctl_set_multicast_list;
261 dev->set_mac_address = &skfp_ctl_set_mac_address;
262 dev->do_ioctl = &skfp_ioctl;
263 268
264 SET_NETDEV_DEV(dev, &pdev->dev); 269 SET_NETDEV_DEV(dev, &pdev->dev);
265 270
@@ -612,7 +617,7 @@ static int skfp_close(struct net_device *dev)
612 * Interrupts are disabled, then reenabled at the adapter. 617 * Interrupts are disabled, then reenabled at the adapter.
613 */ 618 */
614 619
615irqreturn_t skfp_interrupt(int irq, void *dev_id) 620static irqreturn_t skfp_interrupt(int irq, void *dev_id)
616{ 621{
617 struct net_device *dev = dev_id; 622 struct net_device *dev = dev_id;
618 struct s_smc *smc; /* private board structure pointer */ 623 struct s_smc *smc; /* private board structure pointer */
@@ -679,7 +684,7 @@ irqreturn_t skfp_interrupt(int irq, void *dev_id)
679 * independent. 684 * independent.
680 * 685 *
681 */ 686 */
682struct net_device_stats *skfp_ctl_get_stats(struct net_device *dev) 687static struct net_device_stats *skfp_ctl_get_stats(struct net_device *dev)
683{ 688{
684 struct s_smc *bp = netdev_priv(dev); 689 struct s_smc *bp = netdev_priv(dev);
685 690
@@ -1224,7 +1229,7 @@ static void send_queued_packets(struct s_smc *smc)
1224 * Verify if the source address is set. Insert it if necessary. 1229 * Verify if the source address is set. Insert it if necessary.
1225 * 1230 *
1226 ************************/ 1231 ************************/
1227void CheckSourceAddress(unsigned char *frame, unsigned char *hw_addr) 1232static void CheckSourceAddress(unsigned char *frame, unsigned char *hw_addr)
1228{ 1233{
1229 unsigned char SRBit; 1234 unsigned char SRBit;
1230 1235
@@ -1680,7 +1685,6 @@ void mac_drv_rx_complete(struct s_smc *smc, volatile struct s_smt_fp_rxd *rxd,
1680 skb->protocol = fddi_type_trans(skb, bp->dev); 1685 skb->protocol = fddi_type_trans(skb, bp->dev);
1681 1686
1682 netif_rx(skb); 1687 netif_rx(skb);
1683 bp->dev->last_rx = jiffies;
1684 1688
1685 HWM_RX_CHECK(smc, RX_LOW_WATERMARK); 1689 HWM_RX_CHECK(smc, RX_LOW_WATERMARK);
1686 return; 1690 return;
@@ -1939,7 +1943,6 @@ int mac_drv_rx_init(struct s_smc *smc, int len, int fc,
1939 1943
1940 // deliver frame to system 1944 // deliver frame to system
1941 skb->protocol = fddi_type_trans(skb, smc->os.dev); 1945 skb->protocol = fddi_type_trans(skb, smc->os.dev);
1942 skb->dev->last_rx = jiffies;
1943 netif_rx(skb); 1946 netif_rx(skb);
1944 1947
1945 return (0); 1948 return (0);