File:  [Research Unix] / researchv10dc / lsys / sys / up.h
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:21:34 2018 UTC (8 years, 3 months ago) by root
Branches: belllabs, MAIN
CVS tags: researchv10, HEAD
researchv10 Dan Cross

/*
 * UNIBUS SMD disk data structures
 * one updisk per drive
 * one scctl per controller
 */

struct updisk {
	struct scctl *ctl;
	char flags;
	char type;		/* type of drive; magic code */
	char unit;		/* physical unit number on this controller */
	struct buf *actf;	/* list of buffers waiting to be xfered */
	struct buf *actl;
	struct updisk *next;
};

#define	NSCUP	8	/* max units per controller */

struct scctl {
	struct updevice *addr;
	struct updisk *actf;	/* list of active drives */
	struct updisk *actl;
	char flags;
	char ubno;		/* unibus number -- only for mapping */
	char errcnt;
	char recal;		/* current place in retry machine */
	char softas;		/* non-transfer attention required */
	struct updisk *drives[NSCUP];	/* back-pointers to drives */
};

/*
 * device size
 * here so updump can get it
 */
struct	upst {
	char	nsect;	/* sectors per track */
	char	ntrak;	/* tracks per cylinder */
	char	sdist;	/* sectors twixt search and io */
	char	rdist;	/* sectors close enough not to search */
	short	nspc;	/* sectors per cylinder */
	short	ncyl;	/* cylinders per pack */
	struct	size *sizes;
};

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.