summaryrefslogtreecommitdiffstats
path: root/src/drivers/net/3c90x.c
diff options
context:
space:
mode:
authorMichael Brown2005-04-13 02:02:40 +0200
committerMichael Brown2005-04-13 02:02:40 +0200
commit91e46ed588d619a690753d95577ec833a1b857e9 (patch)
tree1fb4d478e9292d425f8dee97988f41e9f27b320a /src/drivers/net/3c90x.c
parentManual tweaks to get all drivers to follow the "disable, poll, transmit, (diff)
downloadipxe-91e46ed588d619a690753d95577ec833a1b857e9.tar.gz
ipxe-91e46ed588d619a690753d95577ec833a1b857e9.tar.xz
ipxe-91e46ed588d619a690753d95577ec833a1b857e9.zip
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/3c90x.c')
-rw-r--r--src/drivers/net/3c90x.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/drivers/net/3c90x.c b/src/drivers/net/3c90x.c
index f72a6993..95350766 100644
--- a/src/drivers/net/3c90x.c
+++ b/src/drivers/net/3c90x.c
@@ -951,10 +951,14 @@ static int a3c90x_probe ( struct dev *dev ) {
cmdAcknowledgeInterrupt, 0x661);
/** Set our exported functions **/
- dev->disable = a3c90x_disable;
- nic->poll = a3c90x_poll;
- nic->transmit = a3c90x_transmit;
- nic->irq = a3c90x_irq;
+static struct nic_operations a3c90x_operations;
+static struct nic_operations a3c90x_operations = {
+ .connect = dummy_connect,
+ .poll = a3c90x_poll,
+ .transmit = a3c90x_transmit,
+ .irq = a3c90x_irq,
+ .disable = a3c90x_disable,
+}; nic->nic_op = &a3c90x_operations;
return 1;
}