|
|
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
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.