xref: /csrg-svn/sys/vax/include/cpu.h (revision 2550)
1 /*	cpu.h	4.1	81/02/19	*/
2 
3 /*
4  * Cpu identification, from SID register.
5  */
6 union cpusid {
7 	int	cpusid;
8 	struct cpuany {
9 		u_int	:24,
10 			cp_type:8;
11 	} cpuany;
12 	struct cpu780 {
13 		u_int	cp_sno:12,		/* serial number */
14 			cp_plant:3,		/* plant number */
15 			cp_eco:9,		/* eco level */
16 			cp_type:8;		/* VAX_780 */
17 	} cpu780;
18 	struct cpu750 {
19 		u_int	cp_hrev:8,		/* hardware rev level */
20 			cp_urev:8,		/* ucode rev level */
21 			:8,
22 			cp_type:8;		/* VAX_750 */
23 	} cpu750;
24 };
25 #define	VAX_780		1
26 #define	VAX_750		2
27 
28 #define	VAX_MAX		2
29 
30 /*
31  * Per-cpu information for system.
32  */
33 struct	percpu {
34 	int	(*pc_config)();
35 	short	pc_cputype;
36 };
37 
38 #ifdef KERNEL
39 int	cpu;
40 #endif
41