Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 122238
b: refs/heads/master
c: 8284abe
h: refs/heads/master
v: v3
  • Loading branch information
Stephen Hemminger authored and David S. Miller committed Nov 26, 2008
1 parent ed4f97b commit 95a192e
Show file tree
Hide file tree
Showing 2 changed files with 19 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: 9a9aa14a74d49f88e2c2a126b035c22bd1ab0d53
refs/heads/master: 8284abea9b49f9d8eae5b3ed36a9ea76a26388ca
24 changes: 18 additions & 6 deletions trunk/drivers/net/e2100.c
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ static void e21_block_output(struct net_device *dev, int count,
const unsigned char *buf, int start_page);
static void e21_get_8390_hdr(struct net_device *dev, struct e8390_pkt_hdr *hdr,
int ring_page);

static int e21_open(struct net_device *dev);
static int e21_close(struct net_device *dev);


Expand Down Expand Up @@ -160,6 +160,21 @@ struct net_device * __init e2100_probe(int unit)
}
#endif

static const struct net_device_ops e21_netdev_ops = {
.ndo_open = e21_open,
.ndo_stop = e21_close,

.ndo_start_xmit = ei_start_xmit,
.ndo_tx_timeout = ei_tx_timeout,
.ndo_get_stats = ei_get_stats,
.ndo_set_multicast_list = ei_set_multicast_list,
.ndo_validate_addr = eth_validate_addr,
.ndo_change_mtu = eth_change_mtu,
#ifdef CONFIG_NET_POLL_CONTROLLER
.ndo_poll_controller = ei_poll,
#endif
};

static int __init e21_probe1(struct net_device *dev, int ioaddr)
{
int i, status, retval;
Expand Down Expand Up @@ -265,11 +280,8 @@ static int __init e21_probe1(struct net_device *dev, int ioaddr)
ei_status.block_input = &e21_block_input;
ei_status.block_output = &e21_block_output;
ei_status.get_8390_hdr = &e21_get_8390_hdr;
dev->open = &e21_open;
dev->stop = &e21_close;
#ifdef CONFIG_NET_POLL_CONTROLLER
dev->poll_controller = ei_poll;
#endif

dev->netdev_ops = &e21_netdev_ops;
NS8390_init(dev, 0);

retval = register_netdev(dev);
Expand Down

0 comments on commit 95a192e

Please sign in to comment.