162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 262306a36Sopenharmony_ci/* 362306a36Sopenharmony_ci * machines.h: Defines for taking apart the machine type value in the 462306a36Sopenharmony_ci * idprom and determining the kind of machine we are on. 562306a36Sopenharmony_ci * 662306a36Sopenharmony_ci * Copyright (C) 1995 David S. Miller (davem@caip.rutgers.edu) 762306a36Sopenharmony_ci * Sun3/3x models added by David Monro (davidm@psrg.cs.usyd.edu.au) 862306a36Sopenharmony_ci */ 962306a36Sopenharmony_ci#ifndef _SPARC_MACHINES_H 1062306a36Sopenharmony_ci#define _SPARC_MACHINES_H 1162306a36Sopenharmony_ci 1262306a36Sopenharmony_cistruct Sun_Machine_Models { 1362306a36Sopenharmony_ci char *name; 1462306a36Sopenharmony_ci unsigned char id_machtype; 1562306a36Sopenharmony_ci}; 1662306a36Sopenharmony_ci 1762306a36Sopenharmony_ci/* Current number of machines we know about that has an IDPROM 1862306a36Sopenharmony_ci * machtype entry including one entry for the 0x80 OBP machines. 1962306a36Sopenharmony_ci */ 2062306a36Sopenharmony_ci// reduced along with table in arch/m68k/sun3/idprom.c 2162306a36Sopenharmony_ci// sun3 port doesn't need to know about sparc machines. 2262306a36Sopenharmony_ci//#define NUM_SUN_MACHINES 23 2362306a36Sopenharmony_ci#define NUM_SUN_MACHINES 8 2462306a36Sopenharmony_ci 2562306a36Sopenharmony_ci/* The machine type in the idprom area looks like this: 2662306a36Sopenharmony_ci * 2762306a36Sopenharmony_ci * --------------- 2862306a36Sopenharmony_ci * | ARCH | MACH | 2962306a36Sopenharmony_ci * --------------- 3062306a36Sopenharmony_ci * 7 4 3 0 3162306a36Sopenharmony_ci * 3262306a36Sopenharmony_ci * The ARCH field determines the architecture line (sun4, sun4c, etc). 3362306a36Sopenharmony_ci * The MACH field determines the machine make within that architecture. 3462306a36Sopenharmony_ci */ 3562306a36Sopenharmony_ci 3662306a36Sopenharmony_ci#define SM_ARCH_MASK 0xf0 3762306a36Sopenharmony_ci#define SM_SUN3 0x10 3862306a36Sopenharmony_ci#define SM_SUN4 0x20 3962306a36Sopenharmony_ci#define SM_SUN3X 0x40 4062306a36Sopenharmony_ci#define SM_SUN4C 0x50 4162306a36Sopenharmony_ci#define SM_SUN4M 0x70 4262306a36Sopenharmony_ci#define SM_SUN4M_OBP 0x80 4362306a36Sopenharmony_ci 4462306a36Sopenharmony_ci#define SM_TYP_MASK 0x0f 4562306a36Sopenharmony_ci/* Sun3 machines */ 4662306a36Sopenharmony_ci#define SM_3_160 0x01 /* Sun 3/160 series */ 4762306a36Sopenharmony_ci#define SM_3_50 0x02 /* Sun 3/50 series */ 4862306a36Sopenharmony_ci#define SM_3_260 0x03 /* Sun 3/260 series */ 4962306a36Sopenharmony_ci#define SM_3_110 0x04 /* Sun 3/110 series */ 5062306a36Sopenharmony_ci#define SM_3_60 0x07 /* Sun 3/60 series */ 5162306a36Sopenharmony_ci#define SM_3_E 0x08 /* Sun 3/E series */ 5262306a36Sopenharmony_ci 5362306a36Sopenharmony_ci/* Sun3x machines */ 5462306a36Sopenharmony_ci#define SM_3_460 0x01 /* Sun 3/460 (460,470,480) series */ 5562306a36Sopenharmony_ci#define SM_3_80 0x02 /* Sun 3/80 series */ 5662306a36Sopenharmony_ci 5762306a36Sopenharmony_ci/* Sun4 machines */ 5862306a36Sopenharmony_ci#define SM_4_260 0x01 /* Sun 4/200 series */ 5962306a36Sopenharmony_ci#define SM_4_110 0x02 /* Sun 4/100 series */ 6062306a36Sopenharmony_ci#define SM_4_330 0x03 /* Sun 4/300 series */ 6162306a36Sopenharmony_ci#define SM_4_470 0x04 /* Sun 4/400 series */ 6262306a36Sopenharmony_ci 6362306a36Sopenharmony_ci/* Sun4c machines Full Name - PROM NAME */ 6462306a36Sopenharmony_ci#define SM_4C_SS1 0x01 /* Sun4c SparcStation 1 - Sun 4/60 */ 6562306a36Sopenharmony_ci#define SM_4C_IPC 0x02 /* Sun4c SparcStation IPC - Sun 4/40 */ 6662306a36Sopenharmony_ci#define SM_4C_SS1PLUS 0x03 /* Sun4c SparcStation 1+ - Sun 4/65 */ 6762306a36Sopenharmony_ci#define SM_4C_SLC 0x04 /* Sun4c SparcStation SLC - Sun 4/20 */ 6862306a36Sopenharmony_ci#define SM_4C_SS2 0x05 /* Sun4c SparcStation 2 - Sun 4/75 */ 6962306a36Sopenharmony_ci#define SM_4C_ELC 0x06 /* Sun4c SparcStation ELC - Sun 4/25 */ 7062306a36Sopenharmony_ci#define SM_4C_IPX 0x07 /* Sun4c SparcStation IPX - Sun 4/50 */ 7162306a36Sopenharmony_ci 7262306a36Sopenharmony_ci/* Sun4m machines, these predate the OpenBoot. These values only mean 7362306a36Sopenharmony_ci * something if the value in the ARCH field is SM_SUN4M, if it is 7462306a36Sopenharmony_ci * SM_SUN4M_OBP then you have the following situation: 7562306a36Sopenharmony_ci * 1) You either have a sun4d, a sun4e, or a recently made sun4m. 7662306a36Sopenharmony_ci * 2) You have to consult OpenBoot to determine which machine this is. 7762306a36Sopenharmony_ci */ 7862306a36Sopenharmony_ci#define SM_4M_SS60 0x01 /* Sun4m SparcSystem 600 */ 7962306a36Sopenharmony_ci#define SM_4M_SS50 0x02 /* Sun4m SparcStation 10 */ 8062306a36Sopenharmony_ci#define SM_4M_SS40 0x03 /* Sun4m SparcStation 5 */ 8162306a36Sopenharmony_ci 8262306a36Sopenharmony_ci/* Sun4d machines -- N/A */ 8362306a36Sopenharmony_ci/* Sun4e machines -- N/A */ 8462306a36Sopenharmony_ci/* Sun4u machines -- N/A */ 8562306a36Sopenharmony_ci 8662306a36Sopenharmony_ci#endif /* !(_SPARC_MACHINES_H) */ 87