Google
 

Trailing-Edge - PDP-10 Archives - TOPS-20_V6.1_DECnetSrc_7-23-85 - mcb/sc/nstab.m11
There are 16 other files named nstab.m11 in the archive. Click here to see a list.
	.title	NSTAB
	.ident	/X00030/
	.enabl	lc
;
;
;                    COPYRIGHT (c) 1980, 1981, 1982
;                    DIGITAL EQUIPMENT CORPORATION
;                        Maynard, Massachusetts
;
;     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.
;
;++
; FACILITY:	MCB network device driver data structures.
;
; ABSTRACT:	This module defines the NS: device tables -
;		specifically, the DCB and UCB.
;
; ENVIRONMENT:	BLISS to MCB Interfacing
;
; AUTHOR:	Buren W. Hoffman	DATE: 6-Oct-80
;
; MODIFIED BY:
; 2	- Removed conditional assemblies.
;--

	.mcall	HWDDF$,UCBDF$

	HWDDF$				; Define DCB offsets
	UCBDF$				; Define UCB offsets
; **	Device Tables
$NSDAT::				; Ref label - Start of device tables


; Device Control Block (DCB)

DCB:	.word	0			; D.LNK  Link to next DCB
	.word	UCB			; D.UCB  UCB address
	.ascii	/NS/			; D.NAM  Device name
	.byte	0, 0			; D.UNIT Highest & lowest logical units
	.word	UCBL			; D.UCBL Length of UCB
	.word	$NSTBL			; D.DSP  Address of dispatch table
	.word	1			; D.MSK  Legal function mask
	.word	1			;        Control function mask
	.word	0			;        NOOP function mask
	.word	0			;        ACP function mask
	.word	37000			; D.MSK  Legal function mask
	.word	30000			;        Control function mask
	.word	0			;        NOOP function mask
	.word	0			;        ACP function mask
	.word	0			; D.PCB  PCB address
; Unit Control Block (UCB)

UCB:	.word	DCB			; U.DCB  DCB address
	.word	.-2			; U.RED  Redirect pointer
	.byte	UC.KIL!UC.QUE		; U.CTL  Control flags
	.byte	0			; U.STS  Unit status
	.byte	0			; U.UNIT Unit number
	.byte	US.RED			; U.ST2  Unit status
	.word	0, 0, 0, 0		; U.CW1 thru U.CW4
	.word	SCB			; U.SCB  SCB address
	.word	0			; U.ATT  Attached TCB address
	.blkw	6			; U.BUFF Device dependent stuff
	UCBL=.-UCB			; Length of UCB


; Status Control Block (SCB)

SCB:	.word	0			; S.LHD  I/O queue listhead
	.word	.-2			;        ...
	.byte	PR5			; S.PRI  Device priority
	.byte	0			; S.VCT  Interrupt vector offset
	.byte	0			; S.CTM  Current timeout value
	.byte	0			; S.ITM  Initial timeout value
	.byte	0			; S.CON  Controller index
	.byte	0			; S.STS  Controller status
	.word	0			; S.CSR  CSR address
	.word	0			; S.PKT  Current IOP address
	.word	0,0,0,0			; S.FRK  Fork block
	.word	0			;        More of fork block


$NSEND::				; Ref label - End of device tables
	.end