123258Smckusick /* 223258Smckusick * Copyright (c) 1982 Regents of the University of California. 323258Smckusick * All rights reserved. The Berkeley software License Agreement 423258Smckusick * specifies the terms and conditions for redistribution. 523258Smckusick * 6*24887Skarels * @(#)cpu.h 6.5 (Berkeley) 09/17/85 723258Smckusick */ 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; 1924174Sbloom struct cpu8600 { 2024174Sbloom u_int cp_sno:12, /* serial number */ 2124174Sbloom cp_plant:4, /* plant number */ 2224174Sbloom cp_eco:8, /* eco level */ 2324174Sbloom cp_type:8; /* VAX_8600 */ 2424174Sbloom } cpu8600; 252550Swnj struct cpu780 { 262550Swnj u_int cp_sno:12, /* serial number */ 272550Swnj cp_plant:3, /* plant number */ 282550Swnj cp_eco:9, /* eco level */ 292550Swnj cp_type:8; /* VAX_780 */ 302550Swnj } cpu780; 312550Swnj struct cpu750 { 322550Swnj u_int cp_hrev:8, /* hardware rev level */ 332550Swnj cp_urev:8, /* ucode rev level */ 342550Swnj :8, 352550Swnj cp_type:8; /* VAX_750 */ 362550Swnj } cpu750; 3724173Sbloom struct cpu730 { 3824173Sbloom u_int :8, /* reserved */ 3924173Sbloom cp_urev:8, /* ucode rev level */ 4024173Sbloom :8, /* reserved */ 4124173Sbloom cp_type:8; /* VAX_730 */ 4224173Sbloom } cpu730; 432550Swnj }; 442712Swnj #endif 452550Swnj #define VAX_780 1 462550Swnj #define VAX_750 2 476943Ssam #define VAX_730 3 4824174Sbloom #define VAX_8600 4 492550Swnj 5024174Sbloom #define VAX_MAX 4 512550Swnj 522712Swnj #ifndef LOCORE 532550Swnj /* 542550Swnj * Per-cpu information for system. 552550Swnj */ 562550Swnj struct percpu { 573245Swnj short pc_cputype; /* cpu type code */ 58*24887Skarels short pc_cpuspeed; /* relative speed of cpu */ 5924174Sbloom short pc_nioa; /* number of IO adaptors/SBI's */ 6024174Sbloom caddr_t *pc_ioaaddr; /* phys addresses of IO adaptors */ 61*24887Skarels int pc_ioasize; /* size of an IO adaptor */ 6224174Sbloom short *pc_ioatype; /* io adaptor types if no cfg reg */ 6324174Sbloom }; 6424174Sbloom 6524174Sbloom struct persbi { 6624174Sbloom short psb_nnexus; /* number of nexus slots */ 6724174Sbloom struct nexus *psb_nexbase; /* base of nexus space */ 683245Swnj /* we should be able to have just one address for the unibus memories */ 693245Swnj /* and calculate successive addresses by adding to the base, but the 750 */ 703245Swnj /* doesn't obey the sensible rule: uba1 has a lower address than uba0! */ 7124174Sbloom caddr_t *psb_umaddr; /* unibus memory addresses */ 7224174Sbloom short psb_nubabdp; /* number of bdp's per uba */ 7324174Sbloom short psb_haveubasr; /* have uba status register */ 743245Swnj /* the 750 has some slots which don't promise to tell you their types */ 753245Swnj /* if this pointer is non-zero, then you get the type from this array */ 763245Swnj /* rather than from the (much more sensible) low byte of the config register */ 7724174Sbloom short *psb_nextype; /* botch */ 782550Swnj }; 792550Swnj 802550Swnj #ifdef KERNEL 812550Swnj int cpu; 823245Swnj struct percpu percpu[]; 8324174Sbloom #if VAX730 8424174Sbloom struct persbi xxx730; 852550Swnj #endif 8624174Sbloom #if VAX750 8724174Sbloom struct persbi cmi750; 882712Swnj #endif 8924174Sbloom #if VAX780 9024174Sbloom struct persbi sbi780; 9124174Sbloom #endif 9224174Sbloom #if VAX8600 9324174Sbloom struct persbi sbi8600[]; 9424174Sbloom #endif 9524174Sbloom #endif 9624174Sbloom #endif 97