| plan 9 kernel history: overview | file list | diff list |
1992/0711/pc/devether.c (diff list | history)
| 1992/0625/sys/src/9/pc/devether.c:143,148 – 1992/0711/sys/src/9/pc/devether.c:143,149 (short | long | prev | next) | ||
| 1992/0424 | void ethercreate(Chan *c, char *name, int omode, ulong perm) { | |
| 1992/0711 | USED(c, name, omode, perm); | |
| 1992/0424 | error(Eperm); } | |
| 1992/0625/sys/src/9/pc/devether.c:162,167 – 1992/0711/sys/src/9/pc/devether.c:163,169 | ||
| 1992/0424 | long etherwrite(Chan *c, char *a, long n, ulong offset) { | |
| 1992/0711 | USED(offset); | |
| 1992/0424 | return streamwrite(c, a, n, 0); } | |
| 1992/0625/sys/src/9/pc/devether.c:168,173 – 1992/0711/sys/src/9/pc/devether.c:170,176 | ||
| 1992/0424 | void etherremove(Chan *c) { | |
| 1992/0711 | USED(c); | |
| 1992/0424 | error(Eperm); } | |
| 1992/0625/sys/src/9/pc/devether.c:350,355 – 1992/0711/sys/src/9/pc/devether.c:353,359 | ||
| 1992/0404 | Ctlr *cp = &ctlr[0]; | |
| 1992/0410 | Type *tp; | |
| 1992/0403 | ||
| 1992/0711 | USED(c); | |
| 1992/0410 | for(tp = cp->type; tp < &cp->type[NType]; tp++){ qlock(tp); if(tp->inuse || tp->q){ | |
| 1992/0625/sys/src/9/pc/devether.c:362,367 – 1992/0711/sys/src/9/pc/devether.c:366,372 | ||
| 1992/0410 | return tp - cp->type; | |
| 1992/0403 | } exhausted("ether channels"); | |
| 1992/0711 | return 0; | |
| 1992/0403 | } static void | |
| 1992/0625/sys/src/9/pc/devether.c:370,375 – 1992/0711/sys/src/9/pc/devether.c:375,381 | ||
| 1992/0404 | Ctlr *cp = &ctlr[0]; | |
| 1992/0403 | char buf[256]; | |
| 1992/0711 | USED(c); | |
| 1992/0403 | sprint(buf, "in: %d\nout: %d\ncrc errs %d\noverflows: %d\nframe errs %d\nbuff errs: %d\noerrs %d\naddr: %.02x:%.02x:%.02x:%.02x:%.02x:%.02x\n", | |
| 1992/0404 | cp->inpackets, cp->outpackets, cp->crcs, cp->overflows, cp->frames, cp->buffs, cp->oerrs, | |
| 1992/0625/sys/src/9/pc/devether.c:693,698 – 1992/0711/sys/src/9/pc/devether.c:699,705 | ||
| 1992/0424 | static void wd8013online(Ctlr *cp, int on) | |
| 1992/0403 | { | |
| 1992/0711 | USED(on); | |
| 1992/0424 | OUT(cp->hw, w.tcr, 0); | |
| 1992/0403 | } | |
| 1992/0625/sys/src/9/pc/devether.c:777,782 – 1992/0711/sys/src/9/pc/devether.c:784,790 | ||
| 1992/0424 | Buffer *tb; uchar isr; | |
| 1992/0711 | USED(ur); | |
| 1992/0424 | while(isr = IN(hw, r.isr)){ OUT(hw, w.isr, isr); if(isr & 0x08) /* Txe - transmit error */ | |