1 /* Bitsy pcmcia code for wavelan.c */
4 #include "../port/lib.h"
9 #include "../port/error.h"
10 #include "../port/netif.h"
12 #include "../pc/wavelan.h"
15 wavelanpcmciareset(Ether *ether)
19 if((ctlr = malloc(sizeof(Ctlr))) == nil)
23 ctlr->ctlrno = ether->ctlrno;
25 if (ether->ports == nil){
26 ether->ports = malloc(sizeof(Devport));
27 ether->ports[0].port = 0;
28 ether->ports[0].size = 0;
31 if (ether->ports[0].port==0)
32 ether->ports[0].port=WDfltIOB;
33 ctlr->iob = ether->ports[0].port;
35 if(wavelanreset(ether, ctlr) < 0){
46 etherwavelanlink(void)
48 addethercard("wavelan", wavelanpcmciareset);