| plan 9 kernel history: overview | file list | diff list |
2001/0504/alphapc/ether2114x.c (diff list | history)
| 2001/0403/sys/src/9/alphapc/ether2114x.c:579,585 – 2001/0504/sys/src/9/alphapc/ether2114x.c:579,587 (short | long | prev | next) | ||
| 1999/0422 | */ | |
| 2001/0403 | ctlr->rdr = malloc(ctlr->nrdr*sizeof(Des)); | |
| 1999/0422 | for(des = ctlr->rdr; des < &ctlr->rdr[ctlr->nrdr]; des++){ | |
| 2001/0403 |
| |
| 2001/0504 | des->bp = iallocb(Rbsz); if(des->bp == nil) panic("can't allocate ethernet receive ring"); | |
| 1999/0422 | des->status = Own; | |
| 2001/0403 | des->control = Rbsz; | |
| 1999/0423 | des->addr = PCIWADDR(des->bp->rp); | |
| 2001/0403/sys/src/9/alphapc/ether2114x.c:610,616 – 2001/0504/sys/src/9/alphapc/ether2114x.c:612,620 | ||
| 1999/0422 | bi[i*4+2] = ether->ea[i*2+1]; bi[i*4+3] = ether->ea[i*2]; } | |
| 2001/0504 | bp = iallocb(Eaddrlen*2*16); if(bp == nil) panic("can't allocate ethernet setup buffer"); | |
| 1999/0422 | memset(bp->rp, 0xFF, sizeof(bi)); for(i = sizeof(bi); i < sizeof(bi)*16; i += sizeof(bi)) memmove(bp->rp+i, bi, sizeof(bi)); | |