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