1: /*
2: * Copyright (c) 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: * @(#)cpu.h 1.5 (2.11BSD GTE) 1998/4/3
7: */
8:
9: /*
10: * Define others as needed. The old practice of defining _everything_
11: * for _all_ models and then attempting to 'ifdef' the mess on a particular
12: * cputype was simply too cumbersome (and didn't work when moving kernels
13: * between cpu types).
14: */
15: #define PDP1170_LEAR ((physadr) 0177740)
16:
17: /*
18: * CTL_MACHDEP definitions.
19: */
20: #define CPU_CONSDEV 1 /* dev_t: console terminal device */
21: #define CPU_TMSCP 2 /* tmscp debugging */
22: #define CPU_MSCP 3 /* mscp debugging/logging */
23: #define CPU_MAXID 4 /* number of valid machdep ids */
24:
25: #ifndef KERNEL
26: #define CTL_MACHDEP_NAMES { \
27: { 0, 0 }, \
28: { "console_device", CTLTYPE_STRUCT }, \
29: { "tmscp", CTLTYPE_NODE }, \
30: { "mscp", CTLTYPE_NODE }, \
31: }
32: #endif
33:
34: #define TMSCP_CACHE 1 /* enable/disable drive cache */
35: #define TMSCP_PRINTF 2 /* get/set print flag */
36: #define TMSCP_MAXID 3 /* number of valid TMSCP ids */
37:
38: #define MSCP_PRINTF 1 /* get/set print/logging flag */
39: #define MSCP_MAXID 2 /* number of valid MSCP ids */
40:
41: #ifndef KERNEL
42: #define TMSCP_NAMES { \
43: { 0, 0 }, \
44: { "cache", CTLTYPE_INT }, \
45: { "printf", CTLTYPE_INT }, \
46: }
47:
48: #define MSCP_NAMES { \
49: { 0, 0 }, \
50: { "printf", CTLTYPE_INT }, \
51: }
52: #endif
Defined macros
Usage of this include