Commit | Line | Data |
---|---|---|
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 |
38 | struct mba_regs **mbaddr; |
39 | int mbaact; | |
99152021 | 40 | int nmba; |
588445ee | 41 | |
39c71180 | 42 | caddr_t *uioaddr; |
7eae043e | 43 | struct uba_regs **ubaddr; |
99152021 | 44 | int nuba; |
7eae043e | 45 | |
39c71180 MK |
46 | #ifdef VAX8200 |
47 | caddr_t kdbaddr[MAXNKDB]; | |
48 | int nkdb; | |
49 | #endif | |
50 | ||
588445ee | 51 | int cpu; /* see ../vax/cpu.h */ |