mirror of
https://github.com/ipxe/ipxe
synced 2025-12-14 16:01:38 +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:
@@ -145,10 +145,14 @@ static int skel_probe ( struct dev *dev ) {
|
||||
nic->ioaddr = pci->ioaddr & ~3;
|
||||
nic->irqno = pci->irq;
|
||||
/* point to NIC specific routines */
|
||||
dev->disable = skel_disable;
|
||||
nic->poll = skel_poll;
|
||||
nic->transmit = skel_transmit;
|
||||
nic->irq = skel_irq;
|
||||
static struct nic_operations skel_operations;
|
||||
static struct nic_operations skel_operations = {
|
||||
.connect = dummy_connect,
|
||||
.poll = skel_poll,
|
||||
.transmit = skel_transmit,
|
||||
.irq = skel_irq,
|
||||
.disable = skel_disable,
|
||||
}; nic->nic_op = &skel_operations;
|
||||
return 1;
|
||||
}
|
||||
/* else */
|
||||
@@ -174,10 +178,14 @@ static int skel_isa_probe(struct dev *dev, unsigned short *probe_addrs)
|
||||
if (board_found && valid_link)
|
||||
{
|
||||
/* point to NIC specific routines */
|
||||
dev->disable = skel_disable;
|
||||
nic->poll = skel_poll;
|
||||
nic->transmit = skel_transmit;
|
||||
nic->irq = skel_irq;
|
||||
static struct nic_operations skel_operations;
|
||||
static struct nic_operations skel_operations = {
|
||||
.connect = dummy_connect,
|
||||
.poll = skel_poll,
|
||||
.transmit = skel_transmit,
|
||||
.irq = skel_irq,
|
||||
.disable = skel_disable,
|
||||
}; nic->nic_op = &skel_operations;
|
||||
|
||||
/* Report the ISA pnp id of the board */
|
||||
dev->devid.vendor_id = htons(GENERIC_ISAPNP_VENDOR);
|
||||
|
||||
Reference in New Issue
Block a user