mirror of
https://github.com/ipxe/ipxe
synced 2025-12-31 06:49:20 +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:
@@ -627,11 +627,15 @@ static int t509_probe(struct dev *dev, unsigned short *probe_addrs __unused)
|
||||
|
||||
nic->irqno = 0;
|
||||
nic->ioaddr = eth_nic_base;
|
||||
|
||||
dev->disable = t509_disable;
|
||||
nic->poll = t509_poll;
|
||||
nic->transmit = t509_transmit;
|
||||
nic->irq = t509_irq;
|
||||
static struct nic_operations t509_operations;
|
||||
static struct nic_operations t509_operations = {
|
||||
.connect = dummy_connect,
|
||||
.poll = t509_poll,
|
||||
.transmit = t509_transmit,
|
||||
.irq = t509_irq,
|
||||
.disable = t509_disable,
|
||||
};
|
||||
nic->nic_op = &t509_operations;
|
||||
|
||||
/* Based on PnP ISA map */
|
||||
dev->devid.vendor_id = htons(GENERIC_ISAPNP_VENDOR);
|
||||
|
||||
Reference in New Issue
Block a user