64 */
65 #define struct struct...
66 #define OFFSET OFFSET...
67
68 int
69 main(int argc, char *argv[])
70 {
71 printf("#define\tT_AST 0x%x\n", T_AST);
72
73 printf("#define\tLOCK_LEVEL 0x%x\n", LOCK_LEVEL);
74 printf("#define\tCLOCK_LEVEL 0x%x\n", CLOCK_LEVEL);
75 printf("#define\tDISP_LEVEL 0x%x\n", DISP_LEVEL);
76 printf("#define\tPIL_MAX 0x%x\n", PIL_MAX);
77 printf("#define\tHIGH_LEVELS 0x%x\n", HIGH_LEVELS);
78 printf("#define\tCPU_INTR_ACTV_HIGH_LEVEL_MASK 0x%x\n",
79 CPU_INTR_ACTV_HIGH_LEVEL_MASK);
80
81 printf("#define\tPIC_NSEOI 0x%x\n", PIC_NSEOI);
82 printf("#define\tPIC_SEOI_LVL7 0x%x\n", PIC_SEOI_LVL7);
83
84 printf("#define\tNANOSEC 0x%x\n", NANOSEC);
85 printf("#define\tADJ_SHIFT 0x%x\n", ADJ_SHIFT);
86
87 printf("#define\tSSLEEP 0x%x\n", SSLEEP);
88 printf("#define\tSRUN 0x%x\n", SRUN);
89 printf("#define\tSONPROC 0x%x\n", SONPROC);
90
91 printf("#define\tT_INTR_THREAD 0x%x\n", T_INTR_THREAD);
92 printf("#define\tFREE_THREAD 0x%x\n", TS_FREE);
93 printf("#define\tTS_FREE 0x%x\n", TS_FREE);
94 printf("#define\tTS_ZOMB 0x%x\n", TS_ZOMB);
95 printf("#define\tTP_MSACCT 0x%x\n", TP_MSACCT);
96 printf("#define\tTP_WATCHPT 0x%x\n", TP_WATCHPT);
97 printf("#define\tONPROC_THREAD 0x%x\n", TS_ONPROC);
98
99 printf("#define\tS_READ 0x%x\n", (int)S_READ);
100 printf("#define\tS_WRITE 0x%x\n", (int)S_WRITE);
101 printf("#define\tS_EXEC 0x%x\n", (int)S_EXEC);
102 printf("#define\tS_OTHER 0x%x\n", (int)S_OTHER);
103
104 printf("#define\tNORMALRETURN 0x%x\n", (int)NORMALRETURN);
133
134 printf("#define\tMCMD_PORT 0x%x\n", MCMD_PORT);
135 printf("#define\tSCMD_PORT 0x%x\n", SCMD_PORT);
136 printf("#define\tMIMR_PORT 0x%x\n", MIMR_PORT);
137 printf("#define\tSIMR_PORT 0x%x\n", SIMR_PORT);
138
139 printf("#define\tDMP_NOSYNC 0x%x\n", DMP_NOSYNC);
140
141 printf("#define\tRW_WRITER\t0x%x\n", RW_WRITER);
142 printf("#define\tRW_READER\t0x%x\n", RW_READER);
143
144 printf("#define\tNSYSCALL 0x%x\n", NSYSCALL);
145
146 printf("#define\tSE_32RVAL1 0x%x\n", SE_32RVAL1);
147 printf("#define\tSE_32RVAL2 0x%x\n", SE_32RVAL2);
148 printf("#define\tSE_64RVAL 0x%x\n", SE_64RVAL);
149
150 printf("#define\tMAXSYSARGS 0x%x\n", MAXSYSARGS);
151
152 /* Hack value just to allow clock to be kicked */
153 printf("#define\tNSEC_PER_CLOCK_TICK 0x%x\n", NANOSEC / 100);
154
155 printf("#define\tNSEC_PER_COUNTER_TICK 0x%x\n", NANOSEC / PIT_HZ);
156
157 printf("#define\tPITCTR0_PORT 0x%x\n", PITCTR0_PORT);
158 printf("#define\tPITCTL_PORT 0x%x\n", PITCTL_PORT);
159 printf("#define\tPIT_COUNTDOWN 0x%x\n",
160 PIT_C0 | PIT_LOADMODE | PIT_NDIVMODE);
161
162 printf("#define\tNBPW 0x%x\n", NBPW);
163
164 printf("#define\tDDI_ACCATTR_IO_SPACE 0x%x\n", DDI_ACCATTR_IO_SPACE);
165 printf("#define\tDDI_ACCATTR_DIRECT 0x%x\n", DDI_ACCATTR_DIRECT);
166 printf("#define\tDDI_ACCATTR_CPU_VADDR 0x%x\n", DDI_ACCATTR_CPU_VADDR);
167 printf("#define\tDDI_DEV_AUTOINCR 0x%x\n", DDI_DEV_AUTOINCR);
168
169 printf("#define\tMMU_STD_PAGESIZE 0x%x\n", (uint_t)MMU_STD_PAGESIZE);
170 printf("#define\tMMU_STD_PAGEMASK 0x%x\n", (uint_t)MMU_STD_PAGEMASK);
171 printf("#define\tFOUR_MEG 0x%x\n", (uint_t)FOUR_MEG);
172
173 printf("#define\tTRAPTR_NENT 0x%x\n", TRAPTR_NENT);
174
175 printf("#define\tCPU_DTRACE_NOFAULT 0x%x\n", CPU_DTRACE_NOFAULT);
|
64 */
65 #define struct struct...
66 #define OFFSET OFFSET...
67
68 int
69 main(int argc, char *argv[])
70 {
71 printf("#define\tT_AST 0x%x\n", T_AST);
72
73 printf("#define\tLOCK_LEVEL 0x%x\n", LOCK_LEVEL);
74 printf("#define\tCLOCK_LEVEL 0x%x\n", CLOCK_LEVEL);
75 printf("#define\tDISP_LEVEL 0x%x\n", DISP_LEVEL);
76 printf("#define\tPIL_MAX 0x%x\n", PIL_MAX);
77 printf("#define\tHIGH_LEVELS 0x%x\n", HIGH_LEVELS);
78 printf("#define\tCPU_INTR_ACTV_HIGH_LEVEL_MASK 0x%x\n",
79 CPU_INTR_ACTV_HIGH_LEVEL_MASK);
80
81 printf("#define\tPIC_NSEOI 0x%x\n", PIC_NSEOI);
82 printf("#define\tPIC_SEOI_LVL7 0x%x\n", PIC_SEOI_LVL7);
83
84 printf("#define\tNANOSEC 0x%llx\n", NANOSEC);
85 printf("#define\tADJ_SHIFT 0x%x\n", ADJ_SHIFT);
86
87 printf("#define\tSSLEEP 0x%x\n", SSLEEP);
88 printf("#define\tSRUN 0x%x\n", SRUN);
89 printf("#define\tSONPROC 0x%x\n", SONPROC);
90
91 printf("#define\tT_INTR_THREAD 0x%x\n", T_INTR_THREAD);
92 printf("#define\tFREE_THREAD 0x%x\n", TS_FREE);
93 printf("#define\tTS_FREE 0x%x\n", TS_FREE);
94 printf("#define\tTS_ZOMB 0x%x\n", TS_ZOMB);
95 printf("#define\tTP_MSACCT 0x%x\n", TP_MSACCT);
96 printf("#define\tTP_WATCHPT 0x%x\n", TP_WATCHPT);
97 printf("#define\tONPROC_THREAD 0x%x\n", TS_ONPROC);
98
99 printf("#define\tS_READ 0x%x\n", (int)S_READ);
100 printf("#define\tS_WRITE 0x%x\n", (int)S_WRITE);
101 printf("#define\tS_EXEC 0x%x\n", (int)S_EXEC);
102 printf("#define\tS_OTHER 0x%x\n", (int)S_OTHER);
103
104 printf("#define\tNORMALRETURN 0x%x\n", (int)NORMALRETURN);
133
134 printf("#define\tMCMD_PORT 0x%x\n", MCMD_PORT);
135 printf("#define\tSCMD_PORT 0x%x\n", SCMD_PORT);
136 printf("#define\tMIMR_PORT 0x%x\n", MIMR_PORT);
137 printf("#define\tSIMR_PORT 0x%x\n", SIMR_PORT);
138
139 printf("#define\tDMP_NOSYNC 0x%x\n", DMP_NOSYNC);
140
141 printf("#define\tRW_WRITER\t0x%x\n", RW_WRITER);
142 printf("#define\tRW_READER\t0x%x\n", RW_READER);
143
144 printf("#define\tNSYSCALL 0x%x\n", NSYSCALL);
145
146 printf("#define\tSE_32RVAL1 0x%x\n", SE_32RVAL1);
147 printf("#define\tSE_32RVAL2 0x%x\n", SE_32RVAL2);
148 printf("#define\tSE_64RVAL 0x%x\n", SE_64RVAL);
149
150 printf("#define\tMAXSYSARGS 0x%x\n", MAXSYSARGS);
151
152 /* Hack value just to allow clock to be kicked */
153 printf("#define\tNSEC_PER_CLOCK_TICK 0x%llx\n", NANOSEC / 100);
154
155 printf("#define\tNSEC_PER_COUNTER_TICK 0x%llx\n", NANOSEC / PIT_HZ);
156
157 printf("#define\tPITCTR0_PORT 0x%x\n", PITCTR0_PORT);
158 printf("#define\tPITCTL_PORT 0x%x\n", PITCTL_PORT);
159 printf("#define\tPIT_COUNTDOWN 0x%x\n",
160 PIT_C0 | PIT_LOADMODE | PIT_NDIVMODE);
161
162 printf("#define\tNBPW 0x%x\n", NBPW);
163
164 printf("#define\tDDI_ACCATTR_IO_SPACE 0x%x\n", DDI_ACCATTR_IO_SPACE);
165 printf("#define\tDDI_ACCATTR_DIRECT 0x%x\n", DDI_ACCATTR_DIRECT);
166 printf("#define\tDDI_ACCATTR_CPU_VADDR 0x%x\n", DDI_ACCATTR_CPU_VADDR);
167 printf("#define\tDDI_DEV_AUTOINCR 0x%x\n", DDI_DEV_AUTOINCR);
168
169 printf("#define\tMMU_STD_PAGESIZE 0x%x\n", (uint_t)MMU_STD_PAGESIZE);
170 printf("#define\tMMU_STD_PAGEMASK 0x%x\n", (uint_t)MMU_STD_PAGEMASK);
171 printf("#define\tFOUR_MEG 0x%x\n", (uint_t)FOUR_MEG);
172
173 printf("#define\tTRAPTR_NENT 0x%x\n", TRAPTR_NENT);
174
175 printf("#define\tCPU_DTRACE_NOFAULT 0x%x\n", CPU_DTRACE_NOFAULT);
|