1 /* 2 * Copyright (c) 1982 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 6.3 (Berkeley) 08/05/85 7 */ 8 9 #ifndef LOCORE 10 /* 11 * Cpu identification, from SID register. 12 */ 13 union cpusid { 14 int cpusid; 15 struct cpuany { 16 u_int :24, 17 cp_type:8; 18 } cpuany; 19 struct cpu780 { 20 u_int cp_sno:12, /* serial number */ 21 cp_plant:3, /* plant number */ 22 cp_eco:9, /* eco level */ 23 cp_type:8; /* VAX_780 */ 24 } cpu780; 25 struct cpu750 { 26 u_int cp_hrev:8, /* hardware rev level */ 27 cp_urev:8, /* ucode rev level */ 28 :8, 29 cp_type:8; /* VAX_750 */ 30 } cpu750; 31 struct cpu730 { 32 u_int :8, /* reserved */ 33 cp_urev:8, /* ucode rev level */ 34 :8, /* reserved */ 35 cp_type:8; /* VAX_730 */ 36 } cpu730; 37 }; 38 #endif 39 #define VAX_780 1 40 #define VAX_750 2 41 #define VAX_730 3 42 43 #define VAX_MAX 3 44 45 #ifndef LOCORE 46 /* 47 * Per-cpu information for system. 48 */ 49 struct percpu { 50 short pc_cputype; /* cpu type code */ 51 short pc_nnexus; /* number of nexus slots */ 52 struct nexus *pc_nexbase; /* base of nexus space */ 53 /* we should be able to have just one address for the unibus memories */ 54 /* and calculate successive addresses by adding to the base, but the 750 */ 55 /* doesn't obey the sensible rule: uba1 has a lower address than uba0! */ 56 caddr_t *pc_umaddr; /* unibus memory addresses */ 57 short pc_nubabdp; /* number of bdp's per uba */ 58 short pc_haveubasr; /* have uba status register */ 59 /* the 750 has some slots which don't promise to tell you their types */ 60 /* if this pointer is non-zero, then you get the type from this array */ 61 /* rather than from the (much more sensible) low byte of the config register */ 62 short *pc_nextype; /* botch */ 63 }; 64 65 #ifdef KERNEL 66 int cpu; 67 struct percpu percpu[]; 68 #endif 69 #endif 70