plan 9 kernel history: overview | file list | diff list

1995/0829/pc/ether8390.c (diff list | history)

1995/0801/sys/src/9/pc/ether8390.c:562,5681995/0829/sys/src/9/pc/ether8390.c:562,568 (short | long | prev | next)
1993/0212    
} 
 
1993/1116    
static void 
1993/1124    
interrupt(Ureg *ur, void *arg) 
1995/0829    
interrupt(Ureg*, void *arg) 
1993/0212    
{ 
1993/1124    
	Ether *ether; 
1993/1118    
	Dp8390 *dp8390; 
1995/0801/sys/src/9/pc/ether8390.c:569,5761995/0829/sys/src/9/pc/ether8390.c:569,574
1993/1118    
	ulong port; 
1993/0212    
	uchar isr, r; 
1992/1222    
 
1993/1124    
	USED(ur); 
                 
	ether = arg; 
1995/0721    
	dp8390 = ether->ctlr; 
1993/1118    
	port = dp8390->dp8390; 
1995/0801/sys/src/9/pc/ether8390.c:580,5861995/0829/sys/src/9/pc/ether8390.c:578,584
1992/1222    
	 * clear all the interrupts and process. 
	 */ 
1995/0409    
	slowoutb(port+Imr, 0x00); 
	while(isr = slowinb(port+Isr)){ 
1995/0829    
	while(isr = (slowinb(port+Isr) & (Cnte|Ovwe|Txee|Rxee|Ptxe|Prxe))){ 
1992/1222    
 
		if(isr & Ovw){ 
1993/1116    
			overflow(ether); 
1995/0801/sys/src/9/pc/ether8390.c:657,6631995/0829/sys/src/9/pc/ether8390.c:655,661
1995/0801    
	x = Ab; 
	if(ether->prom) 
		x |= Pro; 
1995/0409    
	slowoutb(dp8390->dp8390+Rcr, Ab); 
1995/0829    
	slowoutb(dp8390->dp8390+Rcr, x); 
1995/0409    
	slowinb(dp8390->dp8390+Cntr2); 
1993/1116    
} 
 


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