diff options
author | Michael Brown <mcb30@etherboot.org> | 2005-04-17 17:52:33 +0000 |
---|---|---|
committer | Michael Brown <mcb30@etherboot.org> | 2005-04-17 17:52:33 +0000 |
commit | bd2c3b0f27decef220adb5f36bfc40f9099d329b (patch) | |
tree | e7f75fdbec939175c78acac4563504d6701b410f /src/drivers/net/3c509.c | |
parent | 6e4888400ce107d4d569dbbe69aa2483ef33c55c (diff) | |
download | ipxe-bd2c3b0f27decef220adb5f36bfc40f9099d329b.tar.gz |
Split out EISA driver into a separate file, since 3c509s can only take 16K
ROMs (AFAIK).
Diffstat (limited to 'src/drivers/net/3c509.c')
-rw-r--r-- | src/drivers/net/3c509.c | 39 |
1 files changed, 2 insertions, 37 deletions
diff --git a/src/drivers/net/3c509.c b/src/drivers/net/3c509.c index 2790a534..c29dea86 100644 --- a/src/drivers/net/3c509.c +++ b/src/drivers/net/3c509.c @@ -4,12 +4,11 @@ * */ -#include "eisa.h" #include "isa.h" #include "io.h" #include "timer.h" #include "string.h" -#include "etherboot.h" +#include "console.h" #include "3c509.h" /* @@ -235,38 +234,4 @@ static struct t509_driver el3_t509_driver = { "3c509 (ISA)" }; BOOT_DRIVER ( "3c509", find_t509_boot_device, el3_t509_driver, el3_t509_probe ); -/* - * The EISA probe function - * - */ -static int el3_eisa_probe ( struct dev *dev, struct eisa_device *eisa ) { - struct nic *nic = nic_device ( dev ); - - enable_eisa_device ( eisa ); - nic->ioaddr = eisa->ioaddr; - nic->irqno = 0; - printf ( "3C5x9 board on EISA at %#hx - ", nic->ioaddr ); - - /* Hand off to generic t5x9 probe routine */ - return t5x9_probe ( nic, ISA_PROD_ID ( PROD_ID ), ISA_PROD_ID_MASK ); -} - -static struct eisa_id el3_eisa_adapters[] = { - { "3Com 3c509 EtherLink III (EISA)", MFG_ID, PROD_ID }, -}; - -static struct eisa_driver el3_eisa_driver = - EISA_DRIVER ( "3c509 (EISA)", el3_eisa_adapters ); - -BOOT_DRIVER ( "3c509 (EISA)", find_eisa_boot_device, el3_eisa_driver, - el3_eisa_probe ); - -/* - * We currently build both ISA and EISA support into a single ROM - * image, though there's no reason why this couldn't be split to - * reduce code size; just split this .c file into two in the obvious - * place. - * - */ -ISA_ROM ( "3c509","3c509, ISA/EISA" ); - +ISA_ROM ( "3c509","3c509" ); |