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

2001/1211/alphapc/etherif.h (diff list | history)

2001/1211/sys/src/9/alphapc/etherif.h:15,242002/1130/sys/src/9/alphapc/etherif.h:15,29 (short | long | prev | next)
1999/0415    
	uchar	ea[Eaddrlen]; 
 
	void	(*attach)(Ether*);	/* filled in by reset routine */ 
2002/1130    
	void	(*detach)(Ether*);	/* NEW, from ../pc */ 
1999/0415    
	void	(*transmit)(Ether*); 
	void	(*interrupt)(Ureg*, void*); 
	long	(*ifstat)(Ether*, void*, long, ulong); 
2001/0727    
	long 	(*ctl)(Ether*, void*, long); /* custom ctl messages */ 
2002/1130    
/* START NEW, from ../pc */ 
	void	(*power)(Ether*, int);	/* power on/off */ 
	void	(*shutdown)(Ether*);	/* shutdown hardware before reboot */ 
/* END NEW */ 
1999/0415    
	void	*ctlr; 
 
	Queue*	oq; 
2001/1211/sys/src/9/alphapc/etherif.h:29,342002/1130/sys/src/9/alphapc/etherif.h:34,40
1999/0415    
extern Block* etheriq(Ether*, Block*, int); 
extern void addethercard(char*, int(*)(Ether*)); 
extern ulong ethercrc(uchar*, int); 
2002/1130    
extern int parseether(uchar*, char*); 
1999/0415    
 
#define NEXT(x, l)	(((x)+1)%(l)) 
#define PREV(x, l)	(((x) == 0) ? (l)-1: (x)-1) 


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