1 #include "u.h" 2 #include "../port/lib.h" 3 #include "mem.h" 4 #include "dat.h" 5 #include "fns.h" 6 #include "io.h" 7 #include "../port/error.h" 8 #include "ureg.h" 9 10 // archxxx.c 11 #include "../port/netif.h" 12 #include "etherif.h" 13 14 int archether(unsigned ctlrno,Ether * ether)15archether(unsigned ctlrno, Ether *ether) 16 { 17 switch(ctlrno) { 18 case 0: 19 ether->type = "rtl8139"; 20 ether->ctlrno = ctlrno; 21 ether->irq = ILpci; 22 ether->nopt = 0; 23 ether->mbps = 100; 24 return 1; 25 } 26 return -1; 27 } 28 29 // fptrap.c 30 void fptrap(Ureg *)31fptrap(Ureg*) 32 { 33 return; 34 } 35