mirror of
https://github.com/xcat2/xNBA.git
synced 2024-12-14 07:11:32 +00:00
Manual tweaks to get all drivers to follow the "disable, poll, transmit,
irq" pattern.
This commit is contained in:
parent
881023e9ca
commit
d9c64c9422
@ -766,6 +766,7 @@ static int mtd_probe ( struct dev *dev ) {
|
||||
dev->disable = mtd_disable;
|
||||
nic->poll = mtd_poll;
|
||||
nic->transmit = mtd_transmit;
|
||||
nic->irq = dummy_irq;
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
@ -946,9 +946,9 @@ static int pcnet32_probe ( struct dev *dev ) {
|
||||
printf("\n");
|
||||
}
|
||||
|
||||
dev->disable = pcnet32_disable;
|
||||
nic->poll = pcnet32_poll;
|
||||
nic->transmit = pcnet32_transmit;
|
||||
dev->disable = pcnet32_disable;
|
||||
nic->irq = pcnet32_irq;
|
||||
|
||||
return 1;
|
||||
|
@ -834,8 +834,8 @@ static int r8169_probe ( struct dev *dev ) {
|
||||
dev->disable = r8169_disable;
|
||||
nic->poll = r8169_poll;
|
||||
nic->transmit = r8169_transmit;
|
||||
nic->irqno = pci->irq;
|
||||
nic->irq = r8169_irq;
|
||||
nic->irqno = pci->irq;
|
||||
nic->ioaddr = ioaddr;
|
||||
return 1;
|
||||
|
||||
|
@ -177,6 +177,7 @@ static int skel_isa_probe(struct dev *dev, unsigned short *probe_addrs)
|
||||
dev->disable = skel_disable;
|
||||
nic->poll = skel_poll;
|
||||
nic->transmit = skel_transmit;
|
||||
nic->irq = skel_irq;
|
||||
|
||||
/* Report the ISA pnp id of the board */
|
||||
dev->devid.vendor_id = htons(GENERIC_ISAPNP_VENDOR);
|
||||
|
@ -738,8 +738,8 @@ static int sundance_probe ( struct dev *dev ) {
|
||||
dev->disable = sundance_disable;
|
||||
nic->poll = sundance_poll;
|
||||
nic->transmit = sundance_transmit;
|
||||
nic->irqno = pci->irq;
|
||||
nic->irq = sundance_irq;
|
||||
nic->irqno = pci->irq;
|
||||
nic->ioaddr = BASE;
|
||||
|
||||
return 1;
|
||||
|
@ -967,8 +967,8 @@ rhine_probe ( struct dev *dev ) {
|
||||
dev->disable = rhine_disable;
|
||||
nic->poll = rhine_poll;
|
||||
nic->transmit = rhine_transmit;
|
||||
nic->irqno = pci->irq;
|
||||
nic->irq = rhine_irq;
|
||||
nic->irqno = pci->irq;
|
||||
nic->ioaddr = tp->ioaddr;
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user