18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * machines.h: Defines for taking apart the machine type value in the 48c2ecf20Sopenharmony_ci * idprom and determining the kind of machine we are on. 58c2ecf20Sopenharmony_ci * 68c2ecf20Sopenharmony_ci * Copyright (C) 1995 David S. Miller (davem@caip.rutgers.edu) 78c2ecf20Sopenharmony_ci * Sun3/3x models added by David Monro (davidm@psrg.cs.usyd.edu.au) 88c2ecf20Sopenharmony_ci */ 98c2ecf20Sopenharmony_ci#ifndef _SPARC_MACHINES_H 108c2ecf20Sopenharmony_ci#define _SPARC_MACHINES_H 118c2ecf20Sopenharmony_ci 128c2ecf20Sopenharmony_cistruct Sun_Machine_Models { 138c2ecf20Sopenharmony_ci char *name; 148c2ecf20Sopenharmony_ci unsigned char id_machtype; 158c2ecf20Sopenharmony_ci}; 168c2ecf20Sopenharmony_ci 178c2ecf20Sopenharmony_ci/* Current number of machines we know about that has an IDPROM 188c2ecf20Sopenharmony_ci * machtype entry including one entry for the 0x80 OBP machines. 198c2ecf20Sopenharmony_ci */ 208c2ecf20Sopenharmony_ci// reduced along with table in arch/m68k/sun3/idprom.c 218c2ecf20Sopenharmony_ci// sun3 port doesn't need to know about sparc machines. 228c2ecf20Sopenharmony_ci//#define NUM_SUN_MACHINES 23 238c2ecf20Sopenharmony_ci#define NUM_SUN_MACHINES 8 248c2ecf20Sopenharmony_ci 258c2ecf20Sopenharmony_ci/* The machine type in the idprom area looks like this: 268c2ecf20Sopenharmony_ci * 278c2ecf20Sopenharmony_ci * --------------- 288c2ecf20Sopenharmony_ci * | ARCH | MACH | 298c2ecf20Sopenharmony_ci * --------------- 308c2ecf20Sopenharmony_ci * 7 4 3 0 318c2ecf20Sopenharmony_ci * 328c2ecf20Sopenharmony_ci * The ARCH field determines the architecture line (sun4, sun4c, etc). 338c2ecf20Sopenharmony_ci * The MACH field determines the machine make within that architecture. 348c2ecf20Sopenharmony_ci */ 358c2ecf20Sopenharmony_ci 368c2ecf20Sopenharmony_ci#define SM_ARCH_MASK 0xf0 378c2ecf20Sopenharmony_ci#define SM_SUN3 0x10 388c2ecf20Sopenharmony_ci#define SM_SUN4 0x20 398c2ecf20Sopenharmony_ci#define SM_SUN3X 0x40 408c2ecf20Sopenharmony_ci#define SM_SUN4C 0x50 418c2ecf20Sopenharmony_ci#define SM_SUN4M 0x70 428c2ecf20Sopenharmony_ci#define SM_SUN4M_OBP 0x80 438c2ecf20Sopenharmony_ci 448c2ecf20Sopenharmony_ci#define SM_TYP_MASK 0x0f 458c2ecf20Sopenharmony_ci/* Sun3 machines */ 468c2ecf20Sopenharmony_ci#define SM_3_160 0x01 /* Sun 3/160 series */ 478c2ecf20Sopenharmony_ci#define SM_3_50 0x02 /* Sun 3/50 series */ 488c2ecf20Sopenharmony_ci#define SM_3_260 0x03 /* Sun 3/260 series */ 498c2ecf20Sopenharmony_ci#define SM_3_110 0x04 /* Sun 3/110 series */ 508c2ecf20Sopenharmony_ci#define SM_3_60 0x07 /* Sun 3/60 series */ 518c2ecf20Sopenharmony_ci#define SM_3_E 0x08 /* Sun 3/E series */ 528c2ecf20Sopenharmony_ci 538c2ecf20Sopenharmony_ci/* Sun3x machines */ 548c2ecf20Sopenharmony_ci#define SM_3_460 0x01 /* Sun 3/460 (460,470,480) series */ 558c2ecf20Sopenharmony_ci#define SM_3_80 0x02 /* Sun 3/80 series */ 568c2ecf20Sopenharmony_ci 578c2ecf20Sopenharmony_ci/* Sun4 machines */ 588c2ecf20Sopenharmony_ci#define SM_4_260 0x01 /* Sun 4/200 series */ 598c2ecf20Sopenharmony_ci#define SM_4_110 0x02 /* Sun 4/100 series */ 608c2ecf20Sopenharmony_ci#define SM_4_330 0x03 /* Sun 4/300 series */ 618c2ecf20Sopenharmony_ci#define SM_4_470 0x04 /* Sun 4/400 series */ 628c2ecf20Sopenharmony_ci 638c2ecf20Sopenharmony_ci/* Sun4c machines Full Name - PROM NAME */ 648c2ecf20Sopenharmony_ci#define SM_4C_SS1 0x01 /* Sun4c SparcStation 1 - Sun 4/60 */ 658c2ecf20Sopenharmony_ci#define SM_4C_IPC 0x02 /* Sun4c SparcStation IPC - Sun 4/40 */ 668c2ecf20Sopenharmony_ci#define SM_4C_SS1PLUS 0x03 /* Sun4c SparcStation 1+ - Sun 4/65 */ 678c2ecf20Sopenharmony_ci#define SM_4C_SLC 0x04 /* Sun4c SparcStation SLC - Sun 4/20 */ 688c2ecf20Sopenharmony_ci#define SM_4C_SS2 0x05 /* Sun4c SparcStation 2 - Sun 4/75 */ 698c2ecf20Sopenharmony_ci#define SM_4C_ELC 0x06 /* Sun4c SparcStation ELC - Sun 4/25 */ 708c2ecf20Sopenharmony_ci#define SM_4C_IPX 0x07 /* Sun4c SparcStation IPX - Sun 4/50 */ 718c2ecf20Sopenharmony_ci 728c2ecf20Sopenharmony_ci/* Sun4m machines, these predate the OpenBoot. These values only mean 738c2ecf20Sopenharmony_ci * something if the value in the ARCH field is SM_SUN4M, if it is 748c2ecf20Sopenharmony_ci * SM_SUN4M_OBP then you have the following situation: 758c2ecf20Sopenharmony_ci * 1) You either have a sun4d, a sun4e, or a recently made sun4m. 768c2ecf20Sopenharmony_ci * 2) You have to consult OpenBoot to determine which machine this is. 778c2ecf20Sopenharmony_ci */ 788c2ecf20Sopenharmony_ci#define SM_4M_SS60 0x01 /* Sun4m SparcSystem 600 */ 798c2ecf20Sopenharmony_ci#define SM_4M_SS50 0x02 /* Sun4m SparcStation 10 */ 808c2ecf20Sopenharmony_ci#define SM_4M_SS40 0x03 /* Sun4m SparcStation 5 */ 818c2ecf20Sopenharmony_ci 828c2ecf20Sopenharmony_ci/* Sun4d machines -- N/A */ 838c2ecf20Sopenharmony_ci/* Sun4e machines -- N/A */ 848c2ecf20Sopenharmony_ci/* Sun4u machines -- N/A */ 858c2ecf20Sopenharmony_ci 868c2ecf20Sopenharmony_ci#endif /* !(_SPARC_MACHINES_H) */ 87