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,5852001/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    
		des->bp = allocb(Rbsz); 
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,6162001/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]; 
	} 
	bp = allocb(Eaddrlen*2*16); 
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)); 


source code copyright © 1990-2005 Lucent Technologies; see license
Plan 9 distribution
comments to russ cox (rsc@swtch.com)