|
|
1.1 root 1: /* ikreg.h 6.1 83/08/13 */
2:
3: struct ikdevice {
4: short ik_wc; /* Unibus word count reg */
5: u_short ik_ubaddr; /* Unibus address register */
6: u_short ik_ustat; /* Unibus status/command reg */
7: u_short ik_data; /* Data register */
8: u_short ik_xaddr; /* X address in frame buffer */
9: u_short ik_yaddr; /* Y address in frame buffer */
10: u_short ik_istat; /* Ikonas status/command reg */
11: u_short ik_chan; /* Channel control register */
12: };
13:
14: #define IK_GETADDR IKIOGETADDR
15: #define IK_WAITINT IKIOWAITINT
16: #define IKIOGETADDR _IOR(i, 0, caddr_t) /* get Unibus device address */
17: #define IKIOWAITINT _IO(i, 1) /* await device interrupt */
18:
19: /*
20: * Unibus status/command register bits
21: */
22:
23: #define IK_GO 01
24: #define IK_IENABLE 0100
25: #define IK_READY 0200
26: #define IK_IKONAS_INTR 0100000
27:
28: /*
29: * Ikonas status/command register bits
30: */
31:
32: #define WORD32 0
33: #define RES512 2
34: #define RES1024 3
35: #define READ_SELECT 0
36: #define WRITE_MASK 010
37: #define WRITE_SELECT 020
38: #define HALFWORD 040
39: #define DMAENABLE 0100
40: #define INVISIBLE_IO 0200
41: #define AUTOINCREMENT 0400
42: #define RUN_PROCESSOR 01000
43: #define CLEAR 02000
44: #define BYTE_MODE 04000
45: #define FRAME_ENABLE 010000
46: #define PROC_ENABLE 020000
47: #define RED_SELECT 0
48: #define GREEN_SELECT 040000
49: #define BLUE_SELECT 0100000
50: #define ALPHA_SELECT 0140000
51:
52: /*
53: * Frame buffer controller
54: */
55:
56: #define FBC0 060000000
57: #define FBC1 062000000
58:
59: #define VIEWPORT_LOC 0
60: #define VIEWPORT_SIZE 1
61: #define WINDOW_LOC 2
62: #define ZOOM 3
63: #define DISPLAY_RATE 4
64: #define VIDEO_CONTROL 5
65: #define FORMAT_CONTROL_MASK 03
66: #define CURSOR_ON 04
67: #define LOW_RESOL 0
68: #define HIGH_RESOL 010
69: #define AUTO_CLEAR 040
70: #define EXT_SYNC 0100
71: #define COLOR_MAP_PAGES 0600
72: #define HIGH_RESOL_SYNC 01000
73: #define REPEAT_FIELD 02000
74: #define PIXEL_CLOCK_RATE_MASK 077
75: #define CURSOR_LOC 6
76: #define CURSOR_SHADE 7
77:
78: #define CURSOR_MAP 0400
79:
80: /*
81: * Color map lookup table
82: */
83:
84: #define CMAP0 040600000
85: #define CMAP1 040610000
86:
87: #define CHAN_SELECT 02000
88:
89: /*
90: * Frame buffer memories
91: */
92:
93: #define MEM0 000000000
94: #define MEM1 004000000
95:
96: /*
97: * Bit-slice processor
98: */
99:
100: #define UMEM 040000000
101: #define SCRPAD 040400000
102: #define PROC 041200000
103:
104: /*
105: * Frame grabber
106: */
107:
108: #define FMG0 060200000
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.