BSD 4_1_snap development
[unix-history] / sys / stand / saio.h
CommitLineData
e6d9ed6d
C
1/* saio.h 4.4 3/15/81 */
2
3/*
4 * header file for standalone package
5 */
6
7/*
8 * io block: includes an
9 * inode, cells for the use of seek, etc,
10 * and a buffer.
11 */
12struct iob {
13 char i_flgs;
14 struct inode i_ino;
15 int i_unit;
16 daddr_t i_boff;
17 daddr_t i_cyloff;
18 off_t i_offset;
19 daddr_t i_bn;
20 char *i_ma;
21 int i_cc;
22 char i_buf[BSIZE];
23};
24
25#define F_READ 01
26#define F_WRITE 02
27#define F_ALLOC 04
28#define F_FILE 010
29
30/*
31 * dev switch
32 */
33struct devsw {
34 char *dv_name;
35 int (*dv_strategy)();
36 int (*dv_open)();
37 int (*dv_close)();
38};
39
40struct devsw devsw[];
41
42/*
43 * request codes. Must be the same a F_XXX above
44 */
45#define READ 1
46#define WRITE 2
47
48#define NBUFS 4
49
50char b[NBUFS][BSIZE];
51daddr_t blknos[NBUFS];
52
53#define NFILES 4
54struct iob iob[NFILES];