|
@@ -604,14 +604,32 @@ static void w89c840_irq(struct nic *nic __unused, irq_action_t action __unused)
|
604
|
604
|
}
|
605
|
605
|
}
|
606
|
606
|
|
|
607
|
+static struct nic_operations w89c840_operations = {
|
|
608
|
+ .connect = dummy_connect,
|
|
609
|
+ .poll = w89c840_poll,
|
|
610
|
+ .transmit = w89c840_transmit,
|
|
611
|
+ .irq = w89c840_irq,
|
|
612
|
+ .disable = w89c840_disable,
|
|
613
|
+};
|
|
614
|
+
|
|
615
|
+static struct pci_id w89c840_nics[] = {
|
|
616
|
+PCI_ROM(0x1050, 0x0840, "winbond840", "Winbond W89C840F"),
|
|
617
|
+PCI_ROM(0x11f6, 0x2011, "compexrl100atx", "Compex RL100ATX"),
|
|
618
|
+};
|
|
619
|
+
|
|
620
|
+static struct pci_driver w89c840_driver =
|
|
621
|
+ PCI_DRIVER ( "W89C840F", w89c840_nics, PCI_NO_CLASS );
|
|
622
|
+
|
607
|
623
|
/**************************************************************************
|
608
|
624
|
w89c840_probe - Look for an adapter, this routine's visible to the outside
|
609
|
625
|
***************************************************************************/
|
610
|
626
|
static int w89c840_probe ( struct dev *dev ) {
|
611
|
|
-
|
612
|
627
|
struct nic *nic = nic_device ( dev );
|
613
|
|
-
|
614
|
628
|
struct pci_device *p = pci_device ( dev );
|
|
629
|
+
|
|
630
|
+ if ( ! find_pci_device ( p, &w89c840_driver ) )
|
|
631
|
+ return 0;
|
|
632
|
+
|
615
|
633
|
u16 sum = 0;
|
616
|
634
|
int i, j;
|
617
|
635
|
unsigned short value;
|
|
@@ -698,14 +716,7 @@ static int w89c840_probe ( struct dev *dev ) {
|
698
|
716
|
}
|
699
|
717
|
|
700
|
718
|
/* point to NIC specific routines */
|
701
|
|
-static struct nic_operations w89c840_operations;
|
702
|
|
-static struct nic_operations w89c840_operations = {
|
703
|
|
- .connect = dummy_connect,
|
704
|
|
- .poll = w89c840_poll,
|
705
|
|
- .transmit = w89c840_transmit,
|
706
|
|
- .irq = w89c840_irq,
|
707
|
|
- .disable = w89c840_disable,
|
708
|
|
-}; nic->nic_op = &w89c840_operations;
|
|
719
|
+ nic->nic_op = &w89c840_operations;
|
709
|
720
|
|
710
|
721
|
w89c840_reset(nic);
|
711
|
722
|
|
|
@@ -947,12 +958,4 @@ static void init_ring(void)
|
947
|
958
|
}
|
948
|
959
|
|
949
|
960
|
|
950
|
|
-static struct pci_id w89c840_nics[] = {
|
951
|
|
-PCI_ROM(0x1050, 0x0840, "winbond840", "Winbond W89C840F"),
|
952
|
|
-PCI_ROM(0x11f6, 0x2011, "compexrl100atx", "Compex RL100ATX"),
|
953
|
|
-};
|
954
|
|
-
|
955
|
|
-static struct pci_driver w89c840_driver =
|
956
|
|
- PCI_DRIVER ( "W89C840F", w89c840_nics, PCI_NO_CLASS );
|
957
|
|
-
|
958
|
961
|
BOOT_DRIVER ( "W89C840F", w89c840_probe );
|