BSD 4_4 release
[unix-history] / usr / src / sys / vax / vax / genassym.c
CommitLineData
480c863a
KB
1/*-
2 * Copyright (c) 1982, 1986 The Regents of the University of California.
3 * All rights reserved.
da7c5cc6 4 *
ad787160
C
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright
11 * notice, this list of conditions and the following disclaimer in the
12 * documentation and/or other materials provided with the distribution.
13 * 3. All advertising materials mentioning features or use of this software
14 * must display the following acknowledgement:
15 * This product includes software developed by the University of
16 * California, Berkeley and its contributors.
17 * 4. Neither the name of the University nor the names of its contributors
18 * may be used to endorse or promote products derived from this software
19 * without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
22 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
24 * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
25 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
da7c5cc6 32 */
888ba2f8 33
480c863a
KB
34#ifndef lint
35char copyright[] =
36"@(#) Copyright (c) 1982, 1986 The Regents of the University of California.\n\
37 All rights reserved.\n";
38#endif /* not lint */
39
40#ifndef lint
ad787160 41static char sccsid[] = "@(#)genassym.c 7.11 (Berkeley) 5/9/91";
480c863a
KB
42#endif /* not lint */
43
888ba2f8 44#define KERNEL
142c84fe
SL
45#define VAX780 1
46#define VAX750 1
71f579fa 47#define VAX730 1
90dc7048 48#define VAX630 1
802ae52e 49#define VAX650 1
142c84fe 50
b28b3a13 51#include "../include/pte.h"
961945a8 52
b28b3a13
KB
53#include "sys/param.h"
54#include "sys/buf.h"
55#include "sys/vmmeter.h"
56#include "sys/vmparam.h"
57#include "sys/user.h"
58#include "sys/cmap.h"
59#include "sys/map.h"
60#include "../uba/ubareg.h"
61#include "../uba/ubavar.h"
62#include "sys/proc.h"
63#include "sys/text.h"
1884f3f6 64#include "rpb.h"
b28b3a13
KB
65#include "sys/mbuf.h"
66#include "sys/msgbuf.h"
142c84fe 67
888ba2f8
MK
68struct uba_hd uba_hd[1];
69
142c84fe
SL
70main()
71{
72 register struct proc *p = (struct proc *)0;
73 register struct uba_regs *uba = (struct uba_regs *)0;
74 register struct uba_hd *uh = (struct uba_hd *)0;
75 register struct vmmeter *vm = (struct vmmeter *)0;
76 register struct user *up = (struct user *)0;
71f579fa 77 register struct rusage *rup = (struct rusage *)0;
142c84fe 78 struct rpb *rp = (struct rpb *)0;
133700c7 79 struct text *tp = (struct text *)0;
142c84fe 80
142c84fe
SL
81 printf("#define\tP_LINK %d\n", &p->p_link);
82 printf("#define\tP_RLINK %d\n", &p->p_rlink);
133700c7 83 printf("#define\tP_XLINK %d\n", &p->p_xlink);
142c84fe
SL
84 printf("#define\tP_ADDR %d\n", &p->p_addr);
85 printf("#define\tP_PRI %d\n", &p->p_pri);
86 printf("#define\tP_STAT %d\n", &p->p_stat);
87 printf("#define\tP_WCHAN %d\n", &p->p_wchan);
71f579fa 88 printf("#define\tP_TSIZE %d\n", &p->p_tsize);
78bff367 89 printf("#define\tP_DSIZE %d\n", &p->p_dsize);
71f579fa
SL
90 printf("#define\tP_SSIZE %d\n", &p->p_ssize);
91 printf("#define\tP_P0BR %d\n", &p->p_p0br);
92 printf("#define\tP_SZPT %d\n", &p->p_szpt);
93 printf("#define\tP_TEXTP %d\n", &p->p_textp);
133700c7 94 printf("#define\tP_FLAG %d\n", &p->p_flag);
142c84fe
SL
95 printf("#define\tSSLEEP %d\n", SSLEEP);
96 printf("#define\tSRUN %d\n", SRUN);
97 printf("#define\tUBA_BRRVR %d\n", uba->uba_brrvr);
98 printf("#define\tUH_UBA %d\n", &uh->uh_uba);
99 printf("#define\tUH_VEC %d\n", &uh->uh_vec);
100 printf("#define\tUH_SIZE %d\n", sizeof (struct uba_hd));
101 printf("#define\tRP_FLAG %d\n", &rp->rp_flag);
133700c7 102 printf("#define\tX_CADDR %d\n", &tp->x_caddr);
142c84fe
SL
103 printf("#define\tV_SWTCH %d\n", &vm->v_swtch);
104 printf("#define\tV_TRAP %d\n", &vm->v_trap);
105 printf("#define\tV_SYSCALL %d\n", &vm->v_syscall);
106 printf("#define\tV_INTR %d\n", &vm->v_intr);
91b2ca67 107 printf("#define\tV_SOFT %d\n", &vm->v_soft);
142c84fe 108 printf("#define\tV_PDMA %d\n", &vm->v_pdma);
71f579fa
SL
109 printf("#define\tV_FAULTS %d\n", &vm->v_faults);
110 printf("#define\tV_PGREC %d\n", &vm->v_pgrec);
0c1e6838 111 printf("#define\tV_FASTPGREC %d\n", &vm->v_fastpgrec);
142c84fe
SL
112 printf("#define\tUPAGES %d\n", UPAGES);
113 printf("#define\tCLSIZE %d\n", CLSIZE);
ca9b44ff 114 printf("#define\tMAXPHYS %d\n", MAXPHYS);
142c84fe
SL
115 printf("#define\tSYSPTSIZE %d\n", SYSPTSIZE);
116 printf("#define\tUSRPTSIZE %d\n", USRPTSIZE);
117 printf("#define\tMSGBUFPTECNT %d\n", btoc(sizeof (struct msgbuf)));
17be3cc2 118 printf("#define\tMCLBYTES %d\n", MCLBYTES);
142c84fe 119 printf("#define\tNMBCLUSTERS %d\n", NMBCLUSTERS);
520d086d
KM
120 printf("#define\tNKMEMCLUSTERS %d\n", NKMEMCLUSTERS);
121#ifdef SYSVSHM
122 printf("#define\tSHMMAXPGS %d\n", SHMMAXPGS);
123#endif
71f579fa
SL
124 printf("#define\tU_PROCP %d\n", &up->u_procp);
125 printf("#define\tU_RU %d\n", &up->u_ru);
126 printf("#define\tRU_MINFLT %d\n", &rup->ru_minflt);
5eb039c3 127 printf("#define\tSZ_CMAP %d\n", sizeof(struct cmap));
b34277c1 128 exit(0);
142c84fe 129}