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

1999/0507/alphapc/io.h (diff list | history)

1999/0424/sys/src/9/alphapc/io.h:152,1631999/0507/sys/src/9/alphapc/io.h:152,164 (short | long | prev | next)
1999/0415    
	struct { 
		ulong	bar;		/* base address */ 
		int	size; 
	} mem[3]; 
1999/0507    
	} mem[6]; 
1999/0415    
 
	uchar	intl;			/* interrupt line */ 
	ushort	ccru; 
1999/0507    
	uchar	ccrp; 
	uchar	ccru; 
	uchar	ccrb; 
1999/0415    
 
                 
	Pcidev*	list; 
	Pcidev*	bridge;			/* down a bus */ 
	Pcidev*	link;			/* next device on this bno */ 
1999/0424/sys/src/9/alphapc/io.h:182,1931999/0507/sys/src/9/alphapc/io.h:183,200
1999/0415    
 *  SCSI bus 
 */ 
enum { 
	MaxScsi		= 8, 
	NTarget		= 8,		/* should be 16... */ 
1999/0507    
	MaxTarget	= 16, 
1999/0415    
}; 
struct Target { 
1999/0507    
 
typedef struct Scsi Scsi; 
typedef struct Target Target; 
typedef struct SCSIdev SCSIdev; 
 
typedef struct Target { 
1999/0415    
	int	ctlrno; 
	int	target; 
1999/0507    
	Scsi*	ctlr; 
	int	targetno; 
 
1999/0415    
	uchar*	inq; 
	uchar*	scratch; 
 
1999/0424/sys/src/9/alphapc/io.h:196,2061999/0507/sys/src/9/alphapc/io.h:203,223
1999/0415    
	int	ok; 
}; 
 
typedef int (*Scsiio)(Target*, int, uchar*, int, void*, int*); 
1999/0507    
typedef struct Scsi { 
	ISAConf; 
	int	ctlrno; 
	Pcidev*	pcidev; 
	int	(*io)(Target*, int, uchar*, int, void*, int*); 
	void	*ctlr; 
	int	ntarget; 
1999/0415    
 
1999/0507    
	Scsi*	next; 
} Scsi; 
 
1999/0415    
typedef struct SCSIdev { 
	char*	type; 
	Scsiio	(*reset)(int, ISAConf*); 
1999/0507    
	Scsi*	(*pnp)(void); 
	int	(*reset)(Scsi*); 
1999/0415    
} SCSIdev; 
1999/0423    
 
#define PCIWINDOW	0x40000000 


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