1*23258Smckusick /* 2*23258Smckusick * Copyright (c) 1982 Regents of the University of California. 3*23258Smckusick * All rights reserved. The Berkeley software License Agreement 4*23258Smckusick * specifies the terms and conditions for redistribution. 5*23258Smckusick * 6*23258Smckusick * @(#)cpu.h 6.2 (Berkeley) 06/08/85 7*23258Smckusick */ 82550Swnj 92712Swnj #ifndef LOCORE 102550Swnj /* 112550Swnj * Cpu identification, from SID register. 122550Swnj */ 132550Swnj union cpusid { 142550Swnj int cpusid; 152550Swnj struct cpuany { 162550Swnj u_int :24, 172550Swnj cp_type:8; 182550Swnj } cpuany; 192550Swnj struct cpu780 { 202550Swnj u_int cp_sno:12, /* serial number */ 212550Swnj cp_plant:3, /* plant number */ 222550Swnj cp_eco:9, /* eco level */ 232550Swnj cp_type:8; /* VAX_780 */ 242550Swnj } cpu780; 252550Swnj struct cpu750 { 262550Swnj u_int cp_hrev:8, /* hardware rev level */ 272550Swnj cp_urev:8, /* ucode rev level */ 282550Swnj :8, 292550Swnj cp_type:8; /* VAX_750 */ 302550Swnj } cpu750; 316943Ssam /* need structure for 730 */ 322550Swnj }; 332712Swnj #endif 342550Swnj #define VAX_780 1 352550Swnj #define VAX_750 2 366943Ssam #define VAX_730 3 372550Swnj 383340Swnj #define VAX_MAX 3 392550Swnj 402712Swnj #ifndef LOCORE 412550Swnj /* 422550Swnj * Per-cpu information for system. 432550Swnj */ 442550Swnj struct percpu { 453245Swnj short pc_cputype; /* cpu type code */ 463245Swnj short pc_nnexus; /* number of nexus slots */ 473245Swnj struct nexus *pc_nexbase; /* base of nexus space */ 483245Swnj /* we should be able to have just one address for the unibus memories */ 493245Swnj /* and calculate successive addresses by adding to the base, but the 750 */ 503245Swnj /* doesn't obey the sensible rule: uba1 has a lower address than uba0! */ 513245Swnj caddr_t *pc_umaddr; /* unibus memory addresses */ 523245Swnj short pc_nubabdp; /* number of bdp's per uba */ 533245Swnj short pc_haveubasr; /* have uba status register */ 543245Swnj /* the 750 has some slots which don't promise to tell you their types */ 553245Swnj /* if this pointer is non-zero, then you get the type from this array */ 563245Swnj /* rather than from the (much more sensible) low byte of the config register */ 573245Swnj short *pc_nextype; /* botch */ 582550Swnj }; 592550Swnj 602550Swnj #ifdef KERNEL 612550Swnj int cpu; 623245Swnj struct percpu percpu[]; 632550Swnj #endif 642712Swnj #endif 65