diff options
author | Michael Brown <mcb30@etherboot.org> | 2005-04-13 00:02:40 +0000 |
---|---|---|
committer | Michael Brown <mcb30@etherboot.org> | 2005-04-13 00:02:40 +0000 |
commit | 91e46ed588d619a690753d95577ec833a1b857e9 (patch) | |
tree | 1fb4d478e9292d425f8dee97988f41e9f27b320a /src/drivers/net/tlan.c | |
parent | d9c64c94222f9aaf80005e12608c6049632f06d9 (diff) | |
download | ipxe-91e46ed588d619a690753d95577ec833a1b857e9.zip ipxe-91e46ed588d619a690753d95577ec833a1b857e9.tar.gz ipxe-91e46ed588d619a690753d95577ec833a1b857e9.tar.bz2 |
Automatically updated using
perl -pi -0777 -e 's/^(\s*)dev->disable(\s*)=\s*(\w+)_disable;\s*nic->poll\s*=\s*(\w+);\s*nic->transmit\s*=\s*(\w+);\s*nic->irq\s*=\s*(\w+);/static struct nic_operations ${3}_operations;\nstatic struct nic_operations ${3}_operations = {\n\t.connect\t= dummy_connect,\n\t.poll\t\t= $4,\n\t.transmit\t= $5,\n\t.irq\t\t= $6,\n\t.disable\t= ${3}_disable,\n};${1}nic->nic_op\t= &${3}_operations;/msg' *.c
Diffstat (limited to 'src/drivers/net/tlan.c')
-rw-r--r-- | src/drivers/net/tlan.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/drivers/net/tlan.c b/src/drivers/net/tlan.c index 67f64dc..2b12ca3 100644 --- a/src/drivers/net/tlan.c +++ b/src/drivers/net/tlan.c @@ -844,11 +844,15 @@ static int tlan_probe ( struct dev *dev ) { /* if (board_found && valid_link) {*/ /* point to NIC specific routines */ - - dev->disable = tlan_disable; - nic->poll = tlan_poll; - nic->transmit = tlan_transmit; - nic->irq = tlan_irq; +static struct nic_operations tlan_operations; +static struct nic_operations tlan_operations = { + .connect = dummy_connect, + .poll = tlan_poll, + .transmit = tlan_transmit, + .irq = tlan_irq, + .disable = tlan_disable, +}; + nic->nic_op = &tlan_operations; return 1; } |