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/epic100.c | |
parent | d9c64c94222f9aaf80005e12608c6049632f06d9 (diff) | |
download | ipxe-91e46ed588d619a690753d95577ec833a1b857e9.tar.gz |
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/epic100.c')
-rw-r--r-- | src/drivers/net/epic100.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/drivers/net/epic100.c b/src/drivers/net/epic100.c index e9d064126..2360aed24 100644 --- a/src/drivers/net/epic100.c +++ b/src/drivers/net/epic100.c @@ -202,11 +202,15 @@ epic100_probe ( struct dev *dev ) { } epic100_open(); - - dev->disable = epic100_disable; - nic->poll = epic100_poll; - nic->transmit = epic100_transmit; - nic->irq = epic100_irq; +static struct nic_operations epic100_operations; +static struct nic_operations epic100_operations = { + .connect = dummy_connect, + .poll = epic100_poll, + .transmit = epic100_transmit, + .irq = epic100_irq, + .disable = epic100_disable, +}; + nic->nic_op = &epic100_operations; return 1; } |