/* savax.h 4.1 81/03/15 */
* Standalone definitions peculiar to vaxen
* The mba devices in the standalone system are addressed as
* The mbadrv macro gives the address of the device registers
* for the specified unit; the mbamba macro gives the address of the
* mba registers themselves.
* The uba devices are also addressed by giving, as unit,
* The ubamem macro converts a specified unibus address (ala pdp-11)
* into a unibus memory address space address.
int cpu
; /* see <sys/cpu.h> */
struct mba_regs
**mbaddr
;
struct uba_regs
**ubaddr
;
#define UNITTOMBA(unit) ((unit)>>3)
#define UNITTODRIVE(unit) ((unit)&07)
#define mbamba(unit) (mbaddr[UNITTOMBA(unit)])
#define mbadrv(unit) (&mbamba(unit)->mba_drv[UNITTODRIVE(unit)])
#define UNITTOUBA(unit) ((unit)>>3)
#define ubauba(unit) (ubaddr[UNITTOUBA(unit)])
#define ubamem(unit, off) \
((struct device *)(umaddr[UNITTOUBA(unit)]+(off&017777)))