xref: /plan9-contrib/sys/src/9/loongson64/tmp.c (revision 0c0b2b49cfb685ea1f1b8483a5cf30f72b8eb1f2)
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)15 archether(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 *)31 fptrap(Ureg*)
32 {
33 	return;
34 }
35