3c509-eisa.c

Go to the documentation of this file.
00001 /*
00002  * Split out from 3c509.c, since EISA cards are relatively rare, and
00003  * ROM space in 3c509s is very limited.
00004  *
00005  */
00006 
00007 #include <gpxe/eisa.h>
00008 #include <gpxe/isa.h>
00009 #include "console.h"
00010 #include "3c509.h"
00011 
00012 /*
00013  * The EISA probe function
00014  *
00015  */
00016 static int el3_eisa_probe ( struct nic *nic, struct eisa_device *eisa ) {
00017         
00018 
00019         nic->ioaddr = eisa->ioaddr;
00020         nic->irqno = 0;
00021         enable_eisa_device ( eisa );
00022         
00023         /* Hand off to generic t5x9 probe routine */
00024         return t5x9_probe ( nic, ISA_PROD_ID ( PROD_ID ), ISA_PROD_ID_MASK );
00025 }
00026 
00027 static void el3_eisa_disable ( struct nic *nic, struct eisa_device *eisa ) {
00028         t5x9_disable ( nic );
00029         disable_eisa_device ( eisa );
00030 }
00031 
00032 static struct eisa_device_id el3_eisa_adapters[] = {
00033         { "3Com 3c509 EtherLink III (EISA)", MFG_ID, PROD_ID },
00034 };
00035 
00036 EISA_DRIVER ( el3_eisa_driver, el3_eisa_adapters );
00037 
00038 DRIVER ( "3c509 (EISA)", nic_driver, eisa_driver, el3_eisa_driver,
00039          el3_eisa_probe, el3_eisa_disable );
00040 
00041 ISA_ROM ( "3c509-eisa","3c509 (EISA)" );
00042 
00043 /*
00044  * Local variables:
00045  *  c-basic-offset: 8
00046  *  c-indent-level: 8
00047  *  tab-width: 8
00048  * End:
00049  */

Generated on Tue Apr 6 20:00:54 2010 for gPXE by  doxygen 1.5.7.1