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

1994/0202/pc/etherif.h (diff list | history)

1994/0130/sys/src/9/pc/etherif.h:22,271994/0202/sys/src/9/pc/etherif.h:22,35 (short | long | prev | next)
Format edit. Comment edit. Add etherrloop.
rsc Fri Mar 4 12:44:25 2005
1993/1113    
	Netif; 
}; 
 
1994/0202    
extern void etherrloop(Ether*, Etherpkt*, long); 
extern void addethercard(char*, int(*)(Ether*)); 
 
/* 
 * Stuff for the boards using the National Semiconductor DP8390 
 * and SMC 83C90 Network Interface Controller. 
 * Common code is in ether8390.c. 
 */ 
1993/1116    
typedef struct { 
	uchar	bit16;			/* true if a 16 bit interface */ 
	uchar	ram;			/* true if card has shared memory */ 
1994/0130/sys/src/9/pc/etherif.h:46,501994/0202/sys/src/9/pc/etherif.h:54,56
1993/1113    
#define NEXT(x, l)	(((x)+1)%(l)) 
#define	HOWMANY(x, y)	(((x)+((y)-1))/(y)) 
#define ROUNDUP(x, y)	(HOWMANY((x), (y))*(y)) 
                 
extern void addethercard(char*, int(*)(Ether*)); 


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