mirror of
https://github.com/ipxe/ipxe
synced 2025-12-19 02:50:25 +03:00
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:
@@ -963,11 +963,15 @@ rhine_probe ( struct dev *dev ) {
|
||||
|
||||
adjust_pci_device(pci);
|
||||
rhine_reset (nic);
|
||||
|
||||
dev->disable = rhine_disable;
|
||||
nic->poll = rhine_poll;
|
||||
nic->transmit = rhine_transmit;
|
||||
nic->irq = rhine_irq;
|
||||
static struct nic_operations rhine_operations;
|
||||
static struct nic_operations rhine_operations = {
|
||||
.connect = dummy_connect,
|
||||
.poll = rhine_poll,
|
||||
.transmit = rhine_transmit,
|
||||
.irq = rhine_irq,
|
||||
.disable = rhine_disable,
|
||||
};
|
||||
nic->nic_op = &rhine_operations;
|
||||
nic->irqno = pci->irq;
|
||||
nic->ioaddr = tp->ioaddr;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user