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 */ 862306a36Sopenharmony_ci#ifndef _SPARC_MACHINES_H 962306a36Sopenharmony_ci#define _SPARC_MACHINES_H 1062306a36Sopenharmony_ci 1162306a36Sopenharmony_cistruct Sun_Machine_Models { 1262306a36Sopenharmony_ci char *name; 1362306a36Sopenharmony_ci unsigned char id_machtype; 1462306a36Sopenharmony_ci}; 1562306a36Sopenharmony_ci 1662306a36Sopenharmony_ci/* The machine type in the idprom area looks like this: 1762306a36Sopenharmony_ci * 1862306a36Sopenharmony_ci * --------------- 1962306a36Sopenharmony_ci * | ARCH | MACH | 2062306a36Sopenharmony_ci * --------------- 2162306a36Sopenharmony_ci * 7 4 3 0 2262306a36Sopenharmony_ci * 2362306a36Sopenharmony_ci * The ARCH field determines the architecture line (sun4m, etc). 2462306a36Sopenharmony_ci * The MACH field determines the machine make within that architecture. 2562306a36Sopenharmony_ci */ 2662306a36Sopenharmony_ci 2762306a36Sopenharmony_ci#define SM_ARCH_MASK 0xf0 2862306a36Sopenharmony_ci#define M_LEON 0x30 2962306a36Sopenharmony_ci#define SM_SUN4M 0x70 3062306a36Sopenharmony_ci#define SM_SUN4M_OBP 0x80 3162306a36Sopenharmony_ci 3262306a36Sopenharmony_ci#define SM_TYP_MASK 0x0f 3362306a36Sopenharmony_ci 3462306a36Sopenharmony_ci/* Leon machines */ 3562306a36Sopenharmony_ci#define M_LEON3_SOC 0x02 /* Leon3 SoC */ 3662306a36Sopenharmony_ci 3762306a36Sopenharmony_ci/* Sun4m machines, these predate the OpenBoot. These values only mean 3862306a36Sopenharmony_ci * something if the value in the ARCH field is SM_SUN4M, if it is 3962306a36Sopenharmony_ci * SM_SUN4M_OBP then you have the following situation: 4062306a36Sopenharmony_ci * 1) You either have a sun4d, a sun4e, or a recently made sun4m. 4162306a36Sopenharmony_ci * 2) You have to consult OpenBoot to determine which machine this is. 4262306a36Sopenharmony_ci */ 4362306a36Sopenharmony_ci#define SM_4M_SS60 0x01 /* Sun4m SparcSystem 600 */ 4462306a36Sopenharmony_ci#define SM_4M_SS50 0x02 /* Sun4m SparcStation 10 */ 4562306a36Sopenharmony_ci#define SM_4M_SS40 0x03 /* Sun4m SparcStation 5 */ 4662306a36Sopenharmony_ci 4762306a36Sopenharmony_ci/* Sun4d machines -- N/A */ 4862306a36Sopenharmony_ci/* Sun4e machines -- N/A */ 4962306a36Sopenharmony_ci/* Sun4u machines -- N/A */ 5062306a36Sopenharmony_ci 5162306a36Sopenharmony_ci#endif /* !(_SPARC_MACHINES_H) */ 52