need to omit qv/qd from bootxx's
[unix-history] / usr / src / sys / vax / stand / savax.h
CommitLineData
da7c5cc6 1/*
588445ee 2 * Copyright (c) 1982, 1986, 1988, Regents of the University of California.
da7c5cc6
KM
3 * All rights reserved. The Berkeley software License Agreement
4 * specifies the terms and conditions for redistribution.
5 *
588445ee 6 * @(#)savax.h 7.4 (Berkeley) %G%
da7c5cc6 7 */
7eae043e
BJ
8
9/*
588445ee
KB
10 * Standalone definitions peculiar to vaxen:
11 *
12 * The mba devices in the standalone system are addressed as
13 * type(mba, 0, drive, partition) (disks)
14 * type(mba, formatter, transport, file) (tapes)
15 *
7eae043e 16 * The mbadrv macro gives the address of the device registers
588445ee
KB
17 * for the specified unit.
18 *
19 * The uba devices in the standalone system are addressed as
20 * type(uba, ctlr, drive, partition) (disks)
21 * type(uba, formatter, transport, file) (tapes)
7eae043e 22 *
7eae043e
BJ
23 * The ubamem macro converts a specified unibus address (ala pdp-11)
24 * into a unibus memory address space address.
25 */
26
588445ee
KB
27#define mbadrv(mba, unit) (&mbamba(mba)->mba_drv[unit])
28/* compute an I/O page physical address from a 16/18/22-bit bus address */
29#define ubamem(uba, off) (uioaddr[uba] + ubdevreg(off))
30
31#define mbamba(mba) (mbaddr[mba])
32#define ubauba(uba) (ubaddr[uba])
7eae043e 33
80c81fbf
MK
34#define MAXNMBA 8
35#define MAXNUBA 8
588445ee
KB
36#define MAXNKDB 2
37
7eae043e
BJ
38struct mba_regs **mbaddr;
39int mbaact;
588445ee 40
39c71180 41caddr_t *uioaddr;
7eae043e
BJ
42struct uba_regs **ubaddr;
43
39c71180
MK
44#ifdef VAX8200
45caddr_t kdbaddr[MAXNKDB];
46int nkdb;
47#endif
48
588445ee 49int cpu; /* see ../vax/cpu.h */