![]() |
|
|||
0001 /* SPDX-License-Identifier: GPL-2.0 */ 0002 /* 0003 * machines.h: Defines for taking apart the machine type value in the 0004 * idprom and determining the kind of machine we are on. 0005 * 0006 * Copyright (C) 1995 David S. Miller (davem@caip.rutgers.edu) 0007 */ 0008 #ifndef _SPARC_MACHINES_H 0009 #define _SPARC_MACHINES_H 0010 0011 struct Sun_Machine_Models { 0012 char *name; 0013 unsigned char id_machtype; 0014 }; 0015 0016 /* The machine type in the idprom area looks like this: 0017 * 0018 * --------------- 0019 * | ARCH | MACH | 0020 * --------------- 0021 * 7 4 3 0 0022 * 0023 * The ARCH field determines the architecture line (sun4m, etc). 0024 * The MACH field determines the machine make within that architecture. 0025 */ 0026 0027 #define SM_ARCH_MASK 0xf0 0028 #define M_LEON 0x30 0029 #define SM_SUN4M 0x70 0030 #define SM_SUN4M_OBP 0x80 0031 0032 #define SM_TYP_MASK 0x0f 0033 0034 /* Leon machines */ 0035 #define M_LEON3_SOC 0x02 /* Leon3 SoC */ 0036 0037 /* Sun4m machines, these predate the OpenBoot. These values only mean 0038 * something if the value in the ARCH field is SM_SUN4M, if it is 0039 * SM_SUN4M_OBP then you have the following situation: 0040 * 1) You either have a sun4d, a sun4e, or a recently made sun4m. 0041 * 2) You have to consult OpenBoot to determine which machine this is. 0042 */ 0043 #define SM_4M_SS60 0x01 /* Sun4m SparcSystem 600 */ 0044 #define SM_4M_SS50 0x02 /* Sun4m SparcStation 10 */ 0045 #define SM_4M_SS40 0x03 /* Sun4m SparcStation 5 */ 0046 0047 /* Sun4d machines -- N/A */ 0048 /* Sun4e machines -- N/A */ 0049 /* Sun4u machines -- N/A */ 0050 0051 #endif /* !(_SPARC_MACHINES_H) */
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |
![]() ![]() |