Google
 

Trailing-Edge - PDP-10 Archives - k20v7d - unsupported/rp07.mac
There are no other files named rp07.mac in the archive.
	UNIVERSAL DEFS -- RP07 specific macro definitions for RDREG
	SUBTTL	N. B. Mahoney/NBM


;This file contains the RP07 specific macro definitions for RDREG
;to interpret the RP07 massbus registers.  The format of the macros
;is decribed when each macro is defined.


	.DIRECTIVE .XTABM,FLBLST,.NOBIN
	SALL


;Copyright (C) 1980,1981,1982,1983 by
;Digital Equipment Corporation, Maynard, Mass.
;
;
;This software is furnished under a license and may be used and copied
;only  in  accordance  with  the  terms  of  such license and with the
;inclusion of the above copyright notice.  This software or any  other
;copies thereof may not be provided or otherwise made available to any
;other person.  No title to and ownership of the  software  is  hereby
;transferred.
;
;The information in this software is subject to change without  notice
;and  should  not  be  construed  as a commitment by Digital Equipment
;Corporation.
;
;Digital assumes no responsibility for the use or reliability  of  its
;software on equipment which is not supplied by Digital.


	RP7VER==1		;Major version
	RP7MIN==0		;Minor version
	RP7EDT==0		;Edit number
	RP7WHO==0		;Who edited
	SUBTTL	Assembly parameters and drive type register definitions


;The following definition controls whether RDREG will ask for the
;DATAO/DATAI drive select field in addition to the RH20 device
;code.  For those devices that are always in massbus slot 0 (the
;DX20 for example), set FTDSEL to a 0 and RDREG will always use
;a drive select field of zero.  For those devices that do require
;a drive select code, set FTDSEL to -1 and RDREG will ask for and
;use the drive select value specified by the user.

FTDSEL==-1			;Need drive select for RP07's




;The following macro defines the drive type register values for those
;devices that we can interpret.  The arguments to the DTRTYP macro
;are as follows:
;
;	1 - Octal value of drive type (right 9 bits)
;	2 - Corresponding mnemonic for this drive type (this mnemonic
;	    is used in the second level macro definitions below)

DEFINE DRVTYP,<
	DTRTYP	42,RP07		;;RP07s have a DT of 42
>
	SUBTTL	First level massbus register definitions


;The following macro defines the registers that we want to read and
;interpret in the device.  The arguments to the XX macro are as
;follows:
;
;	1 - Massbus register number (register select field)
;	2 - Mnemonic for the register
;
;Note that the CONI definition MUST be first.  RDREG depends on this
;and will work incorrectly if it is not.

DEFINE REGS,<
	XLIST
	XX	0,CONI		;;CONI - Must be first
	XX	0,CR		;;Control register
	XX	1,SR		;;Status register
	XX	2,ER		;;Error register
	XX	3,MR		;;Maintenance register
	XX	4,AS		;;Attention summary register
	XX	5,DTSA		;;Desired track/Sector address
	XX	6,DT		;;Drive type register
	XX	7,LAR		;;Look ahead register
	XX	11,OFR		;;Offset register
	XX	12,DCR		;;Desired cylinder register
	XX	13,CCR		;;Current cylinder register
	XX	14,ER2		;;Error register 2
	XX	15,ER3		;;Error register 3
	XX	16,EPO		;;ECC position register
	XX	17,EPA		;;ECC pattern register
	XX	70,SBAR		;;Secondary block address register
	XX	71,STCR		;;Secondary transfer control register
	XX	72,PBAR		;;Primary block address register
	XX	73,PTCR		;;Primary transfer control register
	XX	74,IVIR		;;Interrupt vector index register
	LIST
>
	SUBTTL	Second level massbus register definitions


;The following macros define the bits and fields in each of the
;massbus registers that we want to interpret.  For each massbus
;register mnemonic that we defined in the first level macro definition
;above, we define a macro with the same name here that gives the
;bit and field definitions for that register.  The arguments to
;the FIELDS macro are as follows:
;
;	1 - The bit mask of the bit or field in the 36 bit word
;	2 - The text associated with the bit or field
;	3 - One of BIT, VAL, or NVAL to indicate that this entity is a
;	    bit, a field containing a positive number, or a field containing
;	    a negative number, repectively.  RDREG only interprets BIT values
;	    if the bit is on.  VAL values are always printed as a field. NVAL
;	    values are first negated and then always printed as a field.
;	4 - Either ALL or one of the drive type mnemonics defined by
;	    the DRVTYP macro above.  ALL values are interpreted for
;	    all of the legal drive types. Values that are given with
;	    a specific drive type mnemonic are only interpreted if the
;	    device is of that drive type.


DEFINE CR,<
	FIELDS	1B35,<Go>,BIT,ALL
	FIELDS	37B34,<Fnc>,VAL,ALL
	FIELDS	1B24,<DVA>,BIT,ALL
>

DEFINE SR,<
	FIELDS	1B20,<Attention>,BIT,ALL
	FIELDS	1B21,<Composite error>,BIT,ALL
	FIELDS	1B22,<Pos in Progress>,BIT,ALL
	FIELDS	1B23,<On-line>,BIT,ALL
	FIELDS	1B24,<Write lock>,BIT,ALL
	FIELDS	1B25,<Last Sector>,BIT,ALL
	FIELDS	1B26,<Programmable>,BIT,ALL
	FIELDS	1B27,<Drive present>,BIT,ALL
	FIELDS	1B28,<Drive ready>,BIT,ALL
	FIELDS	1B29,<Valid Vol>,BIT,ALL
	FIELDS	1B33,<Interleaved>,BIT,ALL
	FIELDS	1B34,<Early warning>,BIT,ALL
	FIELDS	1B35,<Offset mode>,BIT,ALL
>

DEFINE ER,<
	FIELDS	1B35,<ILF>,BIT,ALL
	FIELDS	1B34,<ILR>,BIT,ALL
	FIELDS	1B33,<RMR>,BIT,ALL
	FIELDS	1B32,<Par err>,BIT,ALL
	FIELDS	1B31,<FMT err>,BIT,ALL
	FIELDS	1B30,<Wr clock fail>,BIT,ALL
	FIELDS	1B29,<ECC hard err>,BIT,ALL
	FIELDS	1B28,<Hdr compare err>,BIT,ALL
	FIELDS	1B27,<Hdr CRC err>,BIT,ALL
	FIELDS	1B26,<Addr overflow err>,BIT,ALL
	FIELDS	1B25,<Invalid addr err>,BIT,ALL
	FIELDS	1B24,<Wr lock err>,BIT,ALL
	FIELDS	1B23,<Drive Tim err>,BIT,ALL
	FIELDS	1B22,<Op Incomp>,BIT,ALL
	FIELDS	1B21,<Unsafe>,BIT,ALL
	FIELDS	1B20,<Data check>,BIT,ALL
>
DEFINE MR,<
	FIELDS	377B35,<Parameter>,VAL,ALL
	FIELDS	177B27,<Routine num>,VAL,ALL
	FIELDS	1B20,<Diag mode>,BIT,ALL
>

DEFINE AS,<
	FIELDS	377B35,<Attentions>,VAL,ALL
>

DEFINE DTSA,<
	FIELDS	177B35,<Sector addr>,VAL,ALL
	FIELDS	77B27,<Track addr>,VAL,ALL
>

DEFINE DT,<
	FIELDS	77B35,<Drive type>,VAL,ALL
	FIELDS	1B24,<Drive Request>,BIT,ALL
>

DEFINE LAR,<
	FIELDS	177B29,<Sector count>,VAL,ALL
>

DEFINE OFR,<
	FIELDS	1B25,<Hdr compare inh>,BIT,ALL
	FIELDS	1B24,<ECC inh>,BIT,ALL
	FIELDS	1B23,<Format>,BIT,ALL
	FIELDS	1B21,<Move trk desc>,BIT,ALL
	FIELDS	1B20,<Cmd mod>,BIT,ALL
>

DEFINE DCR,<
	FIELDS	1777B35,<Des cyl addr>,VAL,ALL
>

DEFINE CCR,<
	FIELDS	1777B35,<Curr cyl addr>,VAL,ALL
>

DEFINE ER2,<
	FIELDS	377B35,<Err code>,VAL,ALL
	FIELDS	1B27,<Write unsafe>,BIT,ALL
	FIELDS	1B26,<Write overrun>,BIT,ALL
	FIELDS	1B25,<RW unsafe>,BIT,ALL
	FIELDS	1B24,<RW unsafe>,BIT,ALL
	FIELDS	1B23,<RW unsafe>,BIT,ALL
	FIELDS	1B22,<CROM par>,BIT,ALL
	FIELDS	1B20,<Prgrm err>,BIT,ALL
>

DEFINE	ER3,<
	FIELDS	1B35,<RUN timeout>,BIT,ALL
	FIELDS	1B34,<Sync cl fail>,BIT,ALL
	FIELDS	1B33,<Sync byte err>,BIT,ALL
	FIELDS	1B32,<Data par err>,BIT,ALL
	FIELDS	1B31,<SERDES data fail>,BIT,ALL
	FIELDS	1B30,<DC unsafe>,BIT,ALL
	FIELDS	1B29,<Index unsafe>,BIT,ALL
	FIELDS	1B28,<Device check>,BIT,ALL
	FIELDS	1B27,<Proc handshk fail>,BIT,ALL
	FIELDS	1B26,<Loss cyl err>,BIT,ALL
	FIELDS	1B25,<Loss bit err>,BIT,ALL
	FIELDS	1B24,<Ctl logic fail>,BIT,ALL
	FIELDS	1B23,<Wr curr sense fail>,BIT,ALL
	FIELDS	1B22,<Defect skip err>,BIT,ALL
	FIELDS	1B21,<Seek incomp>,BIT,ALL
	FIELDS	1B20,<Bad sec err>,BIT,ALL
>

DEFINE EPO,<
	FIELDS	17777B35,<ECC err addr>,VAL,ALL
>

DEFINE EPA,<
	FIELDS	3777B35,<Err burst fld>,VAL,ALL
>

DEFINE SBAR,<
	FIELDS	177777B35,<Bl addr or Fr cnt>,VAL,ALL
>

DEFINE STCR,<
	FIELDS	1777B29,<Block cnt>,NVAL,ALL
	FIELDS	77B35,<Command>,VAL,ALL
>

DEFINE PBAR,<
	FIELDS	177777B35,<Bl addr or Fr cnt>,VAL,ALL
>

DEFINE PTCR,<
	FIELDS	1777B29,<Block cnt>,NVAL,ALL
	FIELDS	77B35,<Command>,VAL,ALL
>

DEFINE IVIR,<
	FIELDS	777B35,<Interrupt vector>,VAL,ALL
>
DEFINE	CONI,<
	FIELDS	1B18,<DB par err>,BIT,ALL
	FIELDS	1B19,<Drv exc>,BIT,ALL
	FIELDS	1B20,<Long WC>,BIT,ALL
	FIELDS	1B21,<Short WC>,BIT,ALL
	FIELDS	1B22,<Chan err>,BIT,ALL
	FIELDS	1B23,<Drive resp err>,BIT,ALL
	FIELDS	1B24,<Reg acc err>,BIT,ALL
	FIELDS	1B25,<Chan rdy>,BIT,ALL
	FIELDS	1B26,<Overrun>,BIT,ALL
	FIELDS	1B27,<MBE>,BIT,ALL
	FIELDS	1B28,<Attn>,BIT,ALL
	FIELDS	1B29,<STCR full>,BIT,ALL
	FIELDS	1B30,<AIE>,BIT,ALL
	FIELDS	1B31,<PTCR full>,BIT,ALL
	FIELDS	1B32,<Done>,BIT,ALL
	FIELDS	7B35,<PI>,VAL,ALL
>


	END