1: /*
   2:  * Copyright (c) 1982, 1986 Regents of the University of California.
   3:  * All rights reserved.  The Berkeley software License Agreement
   4:  * specifies the terms and conditions for redistribution.
   5:  *
   6:  *	@(#)savax.h	7.1 (Berkeley) 6/5/86
   7:  */
   8: 
   9: /*
  10:  * Standalone definitions peculiar to vaxen
  11:  * The mba devices in the standalone system are addressed as
  12:  *	xx(unit,section)
  13:  * where unit is
  14:  *	8*mbanum+drive
  15:  * The mbadrv macro gives the address of the device registers
  16:  * for the specified unit; the mbamba macro gives the address of the
  17:  * mba registers themselves.
  18:  *
  19:  * The uba devices are also addressed by giving, as unit,
  20:  *	8*ubanum+drive
  21:  * The ubamem macro converts a specified unibus address (ala pdp-11)
  22:  * into a unibus memory address space address.
  23:  */
  24: 
  25: int cpu;        /* see <sys/cpu.h> */
  26: 
  27: #define MAXNMBA 4
  28: #define MAXNUBA 4
  29: struct  mba_regs **mbaddr;
  30: int mbaact;
  31: caddr_t *umaddr;
  32: struct  uba_regs **ubaddr;
  33: 
  34: #define UNITTOMBA(unit)     ((unit)>>3)
  35: #define UNITTODRIVE(unit)   ((unit)&07)
  36: 
  37: #define mbamba(unit)        (mbaddr[UNITTOMBA(unit)])
  38: #define mbadrv(unit)        (&mbamba(unit)->mba_drv[UNITTODRIVE(unit)])
  39: 
  40: #define UNITTOUBA(unit)     ((unit)>>3)
  41: #define ubauba(unit)        (ubaddr[UNITTOUBA(unit)])
  42: #define ubamem(unit, off)   ((umaddr[UNITTOUBA(unit)]+ubdevreg(off)))
  43: 
  44: #define PHYSUBA0    0x20006000
  45: #define PHYSMBA0    0x20010000
  46: #define PHYSMBA1    0x20012000
  47: #define PHYSUMEM    0x2013e000
  48: 
  49: /*
  50:  * RM03/5 (4-byte header plus CRC) format information:
  51:  * codes for sector header word 1
  52:  */
  53: #define HDR1_FMT22  0x1000  /* standard 16 bit format */
  54: #define HDR1_OKSCT  0xc000  /* sector ok */
  55: #define HDR1_SSF    0x2000  /* skip sector flag */

Defined variables

cpu defined in line 25; used 5 times
mbaact defined in line 30; used 2 times
mbaddr defined in line 29; used 4 times
ubaddr defined in line 32; used 11 times

Defined macros

HDR1_FMT22 defined in line 53; used 3 times
HDR1_OKSCT defined in line 54; used 2 times
HDR1_SSF defined in line 55; used 2 times
MAXNMBA defined in line 27; used 3 times
MAXNUBA defined in line 28; used 4 times
PHYSMBA0 defined in line 45; never used
PHYSMBA1 defined in line 46; never used
PHYSUBA0 defined in line 44; never used
PHYSUMEM defined in line 47; never used
UNITTODRIVE defined in line 35; used 2 times
UNITTOMBA defined in line 34; used 5 times
UNITTOUBA defined in line 40; used 2 times
mbamba defined in line 37; used 6 times
ubauba defined in line 41; used 5 times

Usage of this include

Last modified: 1986-06-05
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 1037
Valid CSS Valid XHTML 1.0 Strict