1a439fe51SSam Ravnborg /* 2a439fe51SSam Ravnborg * machines.h: Defines for taking apart the machine type value in the 3a439fe51SSam Ravnborg * idprom and determining the kind of machine we are on. 4a439fe51SSam Ravnborg * 5a439fe51SSam Ravnborg * Copyright (C) 1995 David S. Miller (davem@caip.rutgers.edu) 6a439fe51SSam Ravnborg */ 7a439fe51SSam Ravnborg #ifndef _SPARC_MACHINES_H 8a439fe51SSam Ravnborg #define _SPARC_MACHINES_H 9a439fe51SSam Ravnborg 10a439fe51SSam Ravnborg struct Sun_Machine_Models { 11a439fe51SSam Ravnborg char *name; 12a439fe51SSam Ravnborg unsigned char id_machtype; 13a439fe51SSam Ravnborg }; 14a439fe51SSam Ravnborg 15a439fe51SSam Ravnborg /* The machine type in the idprom area looks like this: 16a439fe51SSam Ravnborg * 17a439fe51SSam Ravnborg * --------------- 18a439fe51SSam Ravnborg * | ARCH | MACH | 19a439fe51SSam Ravnborg * --------------- 20a439fe51SSam Ravnborg * 7 4 3 0 21a439fe51SSam Ravnborg * 22*ee906c9eSDavid S. Miller * The ARCH field determines the architecture line (sun4m, etc). 23a439fe51SSam Ravnborg * The MACH field determines the machine make within that architecture. 24a439fe51SSam Ravnborg */ 25a439fe51SSam Ravnborg 26a439fe51SSam Ravnborg #define SM_ARCH_MASK 0xf0 270fd7ef1fSKonrad Eisele #define M_LEON 0x30 28a439fe51SSam Ravnborg #define SM_SUN4M 0x70 29a439fe51SSam Ravnborg #define SM_SUN4M_OBP 0x80 30a439fe51SSam Ravnborg 31a439fe51SSam Ravnborg #define SM_TYP_MASK 0x0f 32a439fe51SSam Ravnborg 330fd7ef1fSKonrad Eisele /* Leon machines */ 340fd7ef1fSKonrad Eisele #define M_LEON3_SOC 0x02 /* Leon3 SoC */ 350fd7ef1fSKonrad Eisele 36a439fe51SSam Ravnborg /* Sun4m machines, these predate the OpenBoot. These values only mean 37a439fe51SSam Ravnborg * something if the value in the ARCH field is SM_SUN4M, if it is 38a439fe51SSam Ravnborg * SM_SUN4M_OBP then you have the following situation: 39a439fe51SSam Ravnborg * 1) You either have a sun4d, a sun4e, or a recently made sun4m. 40a439fe51SSam Ravnborg * 2) You have to consult OpenBoot to determine which machine this is. 41a439fe51SSam Ravnborg */ 42a439fe51SSam Ravnborg #define SM_4M_SS60 0x01 /* Sun4m SparcSystem 600 */ 43a439fe51SSam Ravnborg #define SM_4M_SS50 0x02 /* Sun4m SparcStation 10 */ 44a439fe51SSam Ravnborg #define SM_4M_SS40 0x03 /* Sun4m SparcStation 5 */ 45a439fe51SSam Ravnborg 46a439fe51SSam Ravnborg /* Sun4d machines -- N/A */ 47a439fe51SSam Ravnborg /* Sun4e machines -- N/A */ 48a439fe51SSam Ravnborg /* Sun4u machines -- N/A */ 49a439fe51SSam Ravnborg 50a439fe51SSam Ravnborg #endif /* !(_SPARC_MACHINES_H) */ 51