diff options
| author | Michael Brown | 2005-04-14 16:59:04 +0200 |
|---|---|---|
| committer | Michael Brown | 2005-04-14 16:59:04 +0200 |
| commit | 393969a3f8610e4aa0764942c51e7f96b9ddc3b0 (patch) | |
| tree | 6e31c73c99224b11315fdfa7ac86ff6703797758 /src/drivers | |
| parent | Made amenable to automatic update. (diff) | |
| download | ipxe-393969a3f8610e4aa0764942c51e7f96b9ddc3b0.tar.gz ipxe-393969a3f8610e4aa0764942c51e7f96b9ddc3b0.tar.xz ipxe-393969a3f8610e4aa0764942c51e7f96b9ddc3b0.zip | |
Fix up the automatic modifications.
Diffstat (limited to 'src/drivers')
| -rw-r--r-- | src/drivers/net/skel.c | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/src/drivers/net/skel.c b/src/drivers/net/skel.c index 41d68f68a..093966206 100644 --- a/src/drivers/net/skel.c +++ b/src/drivers/net/skel.c @@ -127,6 +127,14 @@ static void skel_irq(struct nic *nic, irq_action_t action) } } +static struct nic_operations skel_operations = { + .connect = dummy_connect, + .poll = skel_poll, + .transmit = skel_transmit, + .irq = skel_irq, + .disable = skel_disable, +}; + /************************************************************************** PROBE - Look for an adapter, this routine's visible to the outside ***************************************************************************/ @@ -140,17 +148,10 @@ static int skel_probe ( struct dev *dev, struct pci_device *pci ) { if (board_found && valid_link) { /* store NIC parameters */ - nic->ioaddr = pci->ioaddr & ~3; + nic->ioaddr = pci->ioaddr; nic->irqno = pci->irq; /* point to NIC specific routines */ -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; + nic->nic_op = &skel_operations; return 1; } /* else */ @@ -164,7 +165,7 @@ PCI_ROM(0x0000, 0x0000, "skel-pci", "Skeleton PCI Adaptor"), static struct pci_driver skel_driver = PCI_DRIVER ( "SKELETON/PCI", skel_nics, PCI_NO_CLASS ); -BOOT_DRIVER ( "SKELETON/PCI", skel_probe ); +BOOT_DRIVER ( "SKELETON/PCI", find_pci_boot_device, skel_driver, skel_probe ); /************************************************************************** PROBE - Look for an adapter, this routine's visible to the outside |
