Updated to current API.

This commit is contained in:
Michael Brown
2005-04-22 11:57:35 +00:00
parent 329ccfdc21
commit e596c42ade
5 changed files with 29 additions and 26 deletions
+11 -6
View File
@@ -20,19 +20,23 @@
*
*/
static int t529_probe ( struct dev *dev, struct mca_device *mca ) {
struct nic *nic = nic_device ( dev );
static int t529_probe ( struct nic *nic, struct mca_device *mca ) {
/* Retrieve NIC parameters from MCA device parameters */
mca_fill_nic ( nic, mca );
nic->ioaddr = ( ( mca->pos[4] & 0xfc ) | 0x02 ) << 8;
nic->irqno = mca->pos[5] & 0x0f;
printf ( "%s board found on MCA at %#hx IRQ %d -",
dev->name, nic->ioaddr, nic->irqno );
printf ( "3c529 board found on MCA at %#hx IRQ %d -",
nic->ioaddr, nic->irqno );
/* Hand off to generic t5x9 probe routine */
return t5x9_probe ( nic, MCA_ID ( mca ), 0xffff );
}
static int t529_disable ( struct nic *nic, struct mca_device *mca __unused ) {
t5x9_disable ( nic );
}
static struct mca_id el3_mca_adapters[] = {
{ "3Com 3c529 EtherLink III (10base2)", 0x627c },
{ "3Com 3c529 EtherLink III (10baseT)", 0x627d },
@@ -42,8 +46,9 @@ static struct mca_id el3_mca_adapters[] = {
};
static struct mca_driver t529_driver
= MCA_DRIVER ( "3c529", el3_mca_adapters );
= MCA_DRIVER ( el3_mca_adapters );
BOOT_DRIVER ( "3c529", find_mca_boot_device, t529_driver, t529_probe );
DRIVER ( "3c529", nic_driver, mca_driver, t529_driver,
t529_probe, t529_disable );
ISA_ROM( "3c529", "3c529 == MCA 3c509" );