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

1994/0713/pc/devether.c (diff list | history)

1994/0702/sys/src/9/pc/devether.c:175,1831994/0713/sys/src/9/pc/devether.c:175,181 (short | long | prev | next)
1992/0424    
{ 
1993/1113    
	Ether *ctlr; 
	int i, n, ctlrno; 
	ulong irqmask; 
1992/0410    
 
1993/1113    
	irqmask = 0; 
	for(ctlr = 0, ctlrno = 0; ctlrno < MaxEther; ctlrno++){ 
		if(ctlr == 0) 
			ctlr = malloc(sizeof(Ether)); 
1994/0702/sys/src/9/pc/devether.c:197,2061994/0713/sys/src/9/pc/devether.c:195,201
1992/1222    
			 */ 
1993/1113    
			if(ctlr->irq == 2) 
				ctlr->irq = 9; 
			if((irqmask & (1<<ctlr->irq)) == 0){ 
1993/1124    
				setvec(Int0vec+ctlr->irq, ctlr->interrupt, ctlr); 
1993/1113    
				irqmask |= 1<<ctlr->irq; 
			} 
1994/0713    
			setvec(Int0vec+ctlr->irq, ctlr->interrupt, ctlr); 
1993/0212    
 
1993/1113    
			print("ether%d: %s: port %lux irq %d addr %lux size %d:", 
				ctlrno, ctlr->type, ctlr->port, ctlr->irq, ctlr->mem, ctlr->size); 


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