change %cpu constant; new disk monitoring/cpu scheme
[unix-history] / usr / src / sys / stand.att / saio.h
CommitLineData
f7acbdcc 1/* saio.h 1.3 %G% */
96dca2cc
BJ
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];
55
56#define PHYSUBA0 0x20006000
96dca2cc 57#define PHYSUMEM 0x2013e000
56a904c5 58
56a904c5
BJ
59int mbaact;
60
61struct mba_info
62{
63 struct mba_regs *mi_phys; /* physical address of mba */
64};