ubastd -> upstd
[unix-history] / usr / src / sys / vax / stand / savax.h
CommitLineData
da7c5cc6 1/*
99152021 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 *
99152021 6 * @(#)savax.h 7.5 (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;
99152021 40int nmba;
588445ee 41
39c71180 42caddr_t *uioaddr;
7eae043e 43struct uba_regs **ubaddr;
99152021 44int nuba;
7eae043e 45
39c71180
MK
46#ifdef VAX8200
47caddr_t kdbaddr[MAXNKDB];
48int nkdb;
49#endif
50
588445ee 51int cpu; /* see ../vax/cpu.h */