Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 149758
b: refs/heads/master
c: 96cd55e
h: refs/heads/master
v: v3
  • Loading branch information
Alexander Beregalov authored and David S. Miller committed Apr 16, 2009
1 parent 82d4198 commit 846e561
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 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: d6771e0b895f04e8bbd12f12fb3a97e130a4a5f4
refs/heads/master: 96cd55ea0edac7f6d51d2391d5cc1b5c2e360e67
17 changes: 12 additions & 5 deletions trunk/drivers/net/mvme147.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,17 @@ typedef void (*writerap_t)(void *, unsigned short);
typedef void (*writerdp_t)(void *, unsigned short);
typedef unsigned short (*readrdp_t)(void *);

static const struct net_device_ops lance_netdev_ops = {
.ndo_open = m147lance_open,
.ndo_stop = m147lance_close,
.ndo_start_xmit = lance_start_xmit,
.ndo_set_multicast_list = lance_set_multicast,
.ndo_tx_timeout = lance_tx_timeout,
.ndo_change_mtu = eth_change_mtu,
.ndo_validate_addr = eth_validate_addr,
.ndo_set_mac_address = eth_mac_addr,
};

/* Initialise the one and only on-board 7990 */
struct net_device * __init mvme147lance_probe(int unit)
{
Expand All @@ -81,11 +92,7 @@ struct net_device * __init mvme147lance_probe(int unit)

/* Fill the dev fields */
dev->base_addr = (unsigned long)MVME147_LANCE_BASE;
dev->open = &m147lance_open;
dev->stop = &m147lance_close;
dev->hard_start_xmit = &lance_start_xmit;
dev->set_multicast_list = &lance_set_multicast;
dev->tx_timeout = &lance_tx_timeout;
dev->netdev_ops = &lance_netdev_ops;
dev->dma = 0;

addr=(u_long *)ETHERNET_ADDRESS;
Expand Down

0 comments on commit 846e561

Please sign in to comment.