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

1990/1231/power/dat.h (diff list | history)

1990/1228/sys/src/9/power/dat.h:11,161990/1231/sys/src/9/power/dat.h:11,18 (short | long | prev | next)
1990/0227    
typedef struct Envval	Envval; 
1990/1228    
typedef struct Etherpkt	Etherpkt; 
1990/0227    
typedef struct FPsave	FPsave; 
1990/1231    
typedef struct Lance	Lance; 
typedef struct Lancemem	Lancemem; 
1990/0227    
typedef struct Label	Label; 
typedef struct List	List; 
typedef struct Lock	Lock; 
1990/1228/sys/src/9/power/dat.h:560,5651990/1231/sys/src/9/power/dat.h:562,568
1990/0629    
	QLock	xlock;		/* one trasmitter at a time */ 
	Rendez	r;		/* process waiting for an output mid */ 
	Nomsg	ctl;		/* for control messages */ 
1990/1231    
	Nomsg	ackmsg;		/* for acknowledge messages */ 
1990/0801    
	QLock	mlock;		/* lock for out */ 
1990/0629    
	Nomsg	out[Nnomsg];	/* messages being sent */ 
	int	first;		/* first unacknowledged message */ 
1990/1228/sys/src/9/power/dat.h:616,6211990/1231/sys/src/9/power/dat.h:619,647
1990/0629    
	Nocall	call[Nnocalls]; 
	int	rptr; 
	int	wptr; 
1990/1231    
}; 
 
/* 
 *  system dependent lance stuff 
 *  filled by lancesetup()  
 */ 
struct Lance 
{ 
	ushort	lognrrb;	/* log2 number of receive ring buffers */ 
	ushort	logntrb;	/* log2 number of xmit ring buffers */ 
	ushort	nrrb;		/* number of receive ring buffers */ 
	ushort	ntrb;		/* number of xmit ring buffers */ 
	ushort	*rap;		/* lance address register */ 
	ushort	*rdp;		/* lance data register */ 
	uchar	ea[6];		/* our ether addr */ 
	int	sep;		/* separation between shorts in lance ram 
				    as seen by host */ 
	ushort	*lanceram;	/* start of lance ram as seen by host */ 
	Lancemem *lm;		/* start of lance ram as seen by lance */ 
	Etherpkt *rp;		/* receive buffers (host address) */ 
	Etherpkt *tp;		/* transmit buffers (host address) */ 
	Etherpkt *lrp;		/* receive buffers (lance address) */ 
	Etherpkt *ltp;		/* transmit buffers (lance address) */ 
1990/0227    
}; 
 
#define	PRINTSIZE	256 


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