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
This commit is contained in:
Michael Brown
2005-04-13 00:02:40 +00:00
parent d9c64c9422
commit 91e46ed588
31 changed files with 272 additions and 144 deletions

View File

@@ -223,11 +223,15 @@ static int rtl8139_probe ( struct dev *dev ) {
printf("Cable not connected or other link failure\n");
return(0);
}
dev->disable = rtl_disable;
nic->poll = rtl_poll;
nic->transmit = rtl_transmit;
nic->irq = rtl_irq;
static struct nic_operations rtl_operations;
static struct nic_operations rtl_operations = {
.connect = dummy_connect,
.poll = rtl_poll,
.transmit = rtl_transmit,
.irq = rtl_irq,
.disable = rtl_disable,
};
nic->nic_op = &rtl_operations;
return 1;
}