xref: /csrg-svn/sys/vax/if/if_accreg.h (revision 5921)
1*5921Ssam /*	if_accreg.h	4.2	82/02/21	*/
25699Sroot 
35699Sroot /*
45699Sroot  * ACC LH/DH-11 interface
55699Sroot  */
65699Sroot 
75699Sroot struct accdma {
85699Sroot 	short	csr;	/* control and status */
95699Sroot 	short	db;	/* data buffer */
105699Sroot 	u_short	ba;	/* buss address */
115699Sroot 	short	wc;	/* word count */
125699Sroot };
135699Sroot 
145699Sroot struct accdevice {
155699Sroot 	struct	accdma input;
165699Sroot 	struct	accdma output;
175699Sroot };
185699Sroot 
195699Sroot #define	icsr	input.csr
205699Sroot #define	iba	input.ba
215699Sroot #define	iwc	input.wc
225699Sroot #define	ocsr	output.csr
235699Sroot #define	oba	output.ba
245699Sroot #define	owc	output.wc
255699Sroot 
265699Sroot /*
275699Sroot  * Bits Common to both input and out CSR's
285699Sroot  */
295699Sroot #define	ACC_ERR		0x8000		/* error present */
305699Sroot #define	ACC_NXM		0x4000		/* non-existant memory */
315699Sroot #define	ACC_RDY		0x0080		/* ready */
32*5921Ssam #define	ACC_IE		0x0040		/* interrupt enable */
335699Sroot #define	ACC_RESET	0x0002		/* reset interface */
345699Sroot #define	ACC_GO		0x0001		/* start operation */
355699Sroot 
365699Sroot /*
375699Sroot  * Input Control Status Register
385699Sroot  */
395699Sroot #define IN_EOM		0x2000		/* end-of-message recieved */
405699Sroot #define IN_HRDY		0x0800		/* host ready */
415699Sroot #define IN_IMPBSY	0x0400		/* IMP not ready */
425699Sroot #define IN_RMR		0x0200		/* receive master ready error */
435699Sroot #define IN_IBF		0x0100		/* input data buffer full */
445699Sroot #define IN_WEN		0x0008		/* write enable */
455699Sroot #define IN_MRDY		0x0004		/* master ready */
465699Sroot 
475699Sroot #define ACC_INBITS \
485699Sroot "\20\20ERR\17NXM\16EOM\14HRDY\13IMPBSY\12RMR\11IBF\10RDY\7IE\
495699Sroot \4WEN\3MRDY\2RESET\1GO"
505699Sroot 
515699Sroot /*
525699Sroot  * Output Control Status Register
535699Sroot  */
545699Sroot #define OUT_TMR		0x0200		/* transmit master ready error */
555699Sroot #define OUT_BBACK	0x0008		/* bus back */
565699Sroot #define OUT_ENLB 	0x0004		/* enable last bit */
575699Sroot 
585699Sroot #define ACC_OUTBITS \
595699Sroot "\20\20ERR\17NXM\12TMR\10RDY\7IE\4BBACK\3ENLB\2RESET\1GO"
60