File:  [XINU] / xinu / h / qbus.h
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:39:02 2018 UTC (8 years, 3 months ago) by root
Branches: xinu, MAIN
CVS tags: xinu-19870308, HEAD
Xinu for VAX

/* qbus.h */

/* Microvax II Q-bus mappiong constants */
						/* UVAX II Reg Addrs.	*/
#define QMAP	((unsigned int *)0x20088000)	/*  qbus map regs.	*/
#define QMMECSR	((unsigned int *)0x20080004)	/*  mem error CSR	*/
#define	QMIPCR	((unsigned short *)0x20001f40)	/*  cpu communic. reg	*/
#define	QMCPMBX	0x200b801c			/*  console pgm mailbox	*/

						/* UVAXII bus map regs:	*/
#define	QMNMREG	8192				/* # mapping registers	*/
#define	QMENAB	0x20				/* enable bus mapping	*/
#define	QMREGV	0x80000000			/* map register valid	*/
#define	QMHALT	0x23				/* QMCPMBX value to	*/
						/*	halt the CPU	*/

#ifndef	ASM

	/* extract high 6 bits of 22-bit Q-bus address into low 6 bits*/
#define	hiQ2low(x) (short)(((unsigned int)x>>(sizeof(short)*8)) & LOW6)

	/* move low 6 bits from short to high 6 bits of 22-bit Qbus address */
#define	lowQ2hi(x) (((int)x & LOW6) << (sizeof(short)*8))

#endif	ASM

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.