6969#define TX_TIMEOUT (400*HZ/1000)
7070
7171#include <linux/module.h>
72- #include <linux/mca.h>
7372#include <linux/isa.h>
7473#include <linux/pnp.h>
7574#include <linux/string.h>
@@ -102,7 +101,7 @@ static int el3_debug = 2;
102101#endif
103102
104103/* Used to do a global count of all the cards in the system. Must be
105- * a global variable so that the mca/ eisa probe routines can increment
104+ * a global variable so that the eisa probe routines can increment
106105 * it */
107106static int el3_cards = 0 ;
108107#define EL3_MAX_CARDS 8
@@ -163,7 +162,7 @@ enum RxFilter {
163162 */
164163#define SKB_QUEUE_SIZE 64
165164
166- enum el3_cardtype { EL3_ISA , EL3_PNP , EL3_MCA , EL3_EISA };
165+ enum el3_cardtype { EL3_ISA , EL3_PNP , EL3_EISA };
167166
168167struct el3_private {
169168 spinlock_t lock ;
@@ -505,41 +504,6 @@ static struct eisa_driver el3_eisa_driver = {
505504static int eisa_registered ;
506505#endif
507506
508- #ifdef CONFIG_MCA
509- static int el3_mca_probe (struct device * dev );
510-
511- static short el3_mca_adapter_ids [] __initdata = {
512- 0x627c ,
513- 0x627d ,
514- 0x62db ,
515- 0x62f6 ,
516- 0x62f7 ,
517- 0x0000
518- };
519-
520- static char * el3_mca_adapter_names [] __initdata = {
521- "3Com 3c529 EtherLink III (10base2)" ,
522- "3Com 3c529 EtherLink III (10baseT)" ,
523- "3Com 3c529 EtherLink III (test mode)" ,
524- "3Com 3c529 EtherLink III (TP or coax)" ,
525- "3Com 3c529 EtherLink III (TP)" ,
526- NULL
527- };
528-
529- static struct mca_driver el3_mca_driver = {
530- .id_table = el3_mca_adapter_ids ,
531- .driver = {
532- .name = "3c529" ,
533- .bus = & mca_bus_type ,
534- .probe = el3_mca_probe ,
535- .remove = __devexit_p (el3_device_remove ),
536- .suspend = el3_suspend ,
537- .resume = el3_resume ,
538- },
539- };
540- static int mca_registered ;
541- #endif /* CONFIG_MCA */
542-
543507static const struct net_device_ops netdev_ops = {
544508 .ndo_open = el3_open ,
545509 .ndo_stop = el3_close ,
@@ -600,76 +564,6 @@ static void el3_common_remove (struct net_device *dev)
600564 free_netdev (dev );
601565}
602566
603- #ifdef CONFIG_MCA
604- static int __init el3_mca_probe (struct device * device )
605- {
606- /* Based on Erik Nygren's (nygren@mit.edu) 3c529 patch,
607- * heavily modified by Chris Beauregard
608- * (cpbeaure@csclub.uwaterloo.ca) to support standard MCA
609- * probing.
610- *
611- * redone for multi-card detection by ZP Gu (zpg@castle.net)
612- * now works as a module */
613-
614- short i ;
615- int ioaddr , irq , if_port ;
616- __be16 phys_addr [3 ];
617- struct net_device * dev = NULL ;
618- u_char pos4 , pos5 ;
619- struct mca_device * mdev = to_mca_device (device );
620- int slot = mdev -> slot ;
621- int err ;
622-
623- pos4 = mca_device_read_stored_pos (mdev , 4 );
624- pos5 = mca_device_read_stored_pos (mdev , 5 );
625-
626- ioaddr = ((short )((pos4 & 0xfc )|0x02 )) << 8 ;
627- irq = pos5 & 0x0f ;
628-
629-
630- pr_info ("3c529: found %s at slot %d\n" ,
631- el3_mca_adapter_names [mdev -> index ], slot + 1 );
632-
633- /* claim the slot */
634- strncpy (mdev -> name , el3_mca_adapter_names [mdev -> index ],
635- sizeof (mdev -> name ));
636- mca_device_set_claim (mdev , 1 );
637-
638- if_port = pos4 & 0x03 ;
639-
640- irq = mca_device_transform_irq (mdev , irq );
641- ioaddr = mca_device_transform_ioport (mdev , ioaddr );
642- if (el3_debug > 2 ) {
643- pr_debug ("3c529: irq %d ioaddr 0x%x ifport %d\n" , irq , ioaddr , if_port );
644- }
645- EL3WINDOW (0 );
646- for (i = 0 ; i < 3 ; i ++ )
647- phys_addr [i ] = htons (read_eeprom (ioaddr , i ));
648-
649- dev = alloc_etherdev (sizeof (struct el3_private ));
650- if (dev == NULL ) {
651- release_region (ioaddr , EL3_IO_EXTENT );
652- return - ENOMEM ;
653- }
654-
655- netdev_boot_setup_check (dev );
656-
657- el3_dev_fill (dev , phys_addr , ioaddr , irq , if_port , EL3_MCA );
658- dev_set_drvdata (device , dev );
659- err = el3_common_init (dev );
660-
661- if (err ) {
662- dev_set_drvdata (device , NULL );
663- free_netdev (dev );
664- return - ENOMEM ;
665- }
666-
667- el3_devs [el3_cards ++ ] = dev ;
668- return 0 ;
669- }
670-
671- #endif /* CONFIG_MCA */
672-
673567#ifdef CONFIG_EISA
674568static int __init el3_eisa_probe (struct device * device )
675569{
@@ -1547,11 +1441,6 @@ static int __init el3_init_module(void)
15471441 if (!ret )
15481442 eisa_registered = 1 ;
15491443#endif
1550- #ifdef CONFIG_MCA
1551- ret = mca_register_driver (& el3_mca_driver );
1552- if (!ret )
1553- mca_registered = 1 ;
1554- #endif
15551444
15561445#ifdef CONFIG_PNP
15571446 if (pnp_registered )
@@ -1562,10 +1451,6 @@ static int __init el3_init_module(void)
15621451#ifdef CONFIG_EISA
15631452 if (eisa_registered )
15641453 ret = 0 ;
1565- #endif
1566- #ifdef CONFIG_MCA
1567- if (mca_registered )
1568- ret = 0 ;
15691454#endif
15701455 return ret ;
15711456}
@@ -1584,10 +1469,6 @@ static void __exit el3_cleanup_module(void)
15841469 if (eisa_registered )
15851470 eisa_driver_unregister (& el3_eisa_driver );
15861471#endif
1587- #ifdef CONFIG_MCA
1588- if (mca_registered )
1589- mca_unregister_driver (& el3_mca_driver );
1590- #endif
15911472}
15921473
15931474module_init (el3_init_module );
0 commit comments