V8/usr/sys/boot/stand/saio.h

Compare this file to the similar file:
Show the results in this format:


/*	saio.h	4.4	3/15/81	*/

/*
 * header file for standalone package
 */

/*
 * io block: includes an
 * inode, cells for the use of seek, etc,
 * and a buffer.
 */
#undef i_buf	/* curse you clever folk from inode.h */
struct	iob {
	char	i_flgs;
	char	i_blksz;	/* BIG or SMALL */
	struct	inode i_ino;
	int	i_unit;
	daddr_t	i_boff;
	daddr_t	i_cyloff;
	off_t	i_offset;
	daddr_t	i_bn;
	char	*i_ma;
	int	i_cc;
	char	i_buf[BUFSIZE];
};

#define F_READ	01
#define F_WRITE	02
#define F_ALLOC	04
#define F_FILE	010

/*
 * dev switch
 */
#define SMALL 0
#define BIG 64
struct devsw {
	char	*dv_name;
	int	(*dv_strategy)();
	int	(*dv_open)();
	int	(*dv_close)();
	int	dv_size;		/* BIG or SMALL */
};

struct devsw devsw[];

/*
 * request codes. Must be the same a F_XXX above
 */
#define	READ	1
#define	WRITE	2

#define	NBUFS	4

char	b[NBUFS][BUFSIZE];
daddr_t	blknos[NBUFS];

#define NFILES	4
struct	iob iob[NFILES];