xref: /original-bsd/sys/vax/vax/cons.h (revision 79cf7955)
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  *	@(#)cons.h	7.1 (Berkeley) 06/05/86
7  */
8 
9 /*
10  * VAX console interface registers
11  */
12 
13 #define	RXCS_IE		0x00000040	/* receiver interrupt enable */
14 #define	RXCS_DONE	0x00000080	/* receiver done */
15 
16 #define	RXDB_DATA	0x000000ff	/* received character */
17 #define	RXDB_ID		0x00000f00	/* channel id */
18 #define	RXDB_ERR	0x80000000	/* receiver error */
19 
20 #define	TXCS_IE		0x00000040	/* transmitter interrupt enable */
21 #define	TXCS_RDY	0x00000080	/* transmitter ready for next char */
22 #if VAX8600
23 #define	TXCS_ID		0x00000300	/* interrupt ID field */
24 #define	TXCS_WMASK	0x00008000	/* enable mask write */
25 #define	TXCS_TXMASK	0x00ff0000	/* transmit enable channel mask: */
26 #define	TXCS_CTERM	0x00010000	/*	console terminal */
27 #define	TXCS_RTERM	0x00020000	/*	remote diagnostic port */
28 #define	TXCS_EMM	0x00040000	/*	Environmental Monitor Module */
29 #define	TXCS_LCONS	0x00080000	/*	Logical console */
30 #endif
31 
32 #define	TXDB_DATA	0x000000ff	/* transmitter byte */
33 #define	TXDB_ID		0x00000f00	/* channel id- not on 8600 */
34 #define	TXDB_CONS	0x00000f00	/* channel id for console subsystem */
35 
36 #define	TXDB_DONE	0x01		/* software done */
37 #define	TXDB_BOOT	0x02		/* reboot */
38 #define	TXDB_CWSI	0x03		/* clear warm start inhibit */
39 #define	TXDB_CCSI	0x04		/* clear cold-start inhibit */
40