Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 133802
b: refs/heads/master
c: f3701c2
h: refs/heads/master
v: v3
  • Loading branch information
Stephen Hemminger authored and David S. Miller committed Jan 21, 2009
1 parent c0b42b8 commit 1c9b0b9
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3186ae8f3f5a30ecfed9faa76ce113830da39fbd
refs/heads/master: f3701c2f0e2ede7ae265fcf627f01f2a795ac41b
21 changes: 15 additions & 6 deletions trunk/drivers/net/3c515.c
Original file line number Diff line number Diff line change
Expand Up @@ -563,6 +563,20 @@ static struct net_device *corkscrew_scan(int unit)
return NULL;
}


static const struct net_device_ops netdev_ops = {
.ndo_open = corkscrew_open,
.ndo_stop = corkscrew_close,
.ndo_start_xmit = corkscrew_start_xmit,
.ndo_tx_timeout = corkscrew_timeout,
.ndo_get_stats = corkscrew_get_stats,
.ndo_set_multicast_list = set_rx_mode,
.ndo_change_mtu = eth_change_mtu,
.ndo_set_mac_address = eth_mac_addr,
.ndo_validate_addr = eth_validate_addr,
};


static int corkscrew_setup(struct net_device *dev, int ioaddr,
struct pnp_dev *idev, int card_number)
{
Expand Down Expand Up @@ -681,13 +695,8 @@ static int corkscrew_setup(struct net_device *dev, int ioaddr,
vp->full_bus_master_rx = (vp->capabilities & 0x20) ? 1 : 0;

/* The 3c51x-specific entries in the device structure. */
dev->open = &corkscrew_open;
dev->hard_start_xmit = &corkscrew_start_xmit;
dev->tx_timeout = &corkscrew_timeout;
dev->netdev_ops = &netdev_ops;
dev->watchdog_timeo = (400 * HZ) / 1000;
dev->stop = &corkscrew_close;
dev->get_stats = &corkscrew_get_stats;
dev->set_multicast_list = &set_rx_mode;
dev->ethtool_ops = &netdev_ethtool_ops;

return register_netdev(dev);
Expand Down

0 comments on commit 1c9b0b9

Please sign in to comment.