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

1993/1119/pc/devether.c (diff list | history)

1993/1113/sys/src/9/pc/devether.c:138,1481993/1119/sys/src/9/pc/devether.c:138,147 (short | long | prev | next)
1992/0403    
	} 
} 
 
1993/1113    
#define NCARD 32 
static struct { 
	char	*type; 
	int	(*reset)(Ether*); 
} cards[NCARD+1]; 
1993/1119    
} cards[MaxEther+1]; 
1992/0403    
 
1993/1113    
void 
addethercard(char *t, int (*r)(Ether*)) 
1993/1113/sys/src/9/pc/devether.c:149,1551993/1119/sys/src/9/pc/devether.c:148,154
1992/0403    
{ 
1993/1113    
	static int ncard; 
1992/0403    
 
1993/1113    
	if(ncard == NCARD) 
1993/1119    
	if(ncard == MaxEther) 
1993/1113    
		panic("too many ether cards"); 
	cards[ncard].type = t; 
	cards[ncard].reset = r; 


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