^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) /* SPDX-License-Identifier: GPL-2.0 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) * machines.h: Defines for taking apart the machine type value in the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) * idprom and determining the kind of machine we are on.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) * Copyright (C) 1995 David S. Miller (davem@caip.rutgers.edu)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) * Sun3/3x models added by David Monro (davidm@psrg.cs.usyd.edu.au)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) #ifndef _SPARC_MACHINES_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) #define _SPARC_MACHINES_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) struct Sun_Machine_Models {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) char *name;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) unsigned char id_machtype;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) /* Current number of machines we know about that has an IDPROM
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) * machtype entry including one entry for the 0x80 OBP machines.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) // reduced along with table in arch/m68k/sun3/idprom.c
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) // sun3 port doesn't need to know about sparc machines.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) //#define NUM_SUN_MACHINES 23
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) #define NUM_SUN_MACHINES 8
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) /* The machine type in the idprom area looks like this:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) * ---------------
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) * | ARCH | MACH |
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) * ---------------
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) * 7 4 3 0
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) * The ARCH field determines the architecture line (sun4, sun4c, etc).
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) * The MACH field determines the machine make within that architecture.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) #define SM_ARCH_MASK 0xf0
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) #define SM_SUN3 0x10
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) #define SM_SUN4 0x20
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) #define SM_SUN3X 0x40
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) #define SM_SUN4C 0x50
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) #define SM_SUN4M 0x70
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) #define SM_SUN4M_OBP 0x80
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) #define SM_TYP_MASK 0x0f
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45) /* Sun3 machines */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46) #define SM_3_160 0x01 /* Sun 3/160 series */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47) #define SM_3_50 0x02 /* Sun 3/50 series */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 48) #define SM_3_260 0x03 /* Sun 3/260 series */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 49) #define SM_3_110 0x04 /* Sun 3/110 series */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 50) #define SM_3_60 0x07 /* Sun 3/60 series */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 51) #define SM_3_E 0x08 /* Sun 3/E series */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 52)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 53) /* Sun3x machines */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 54) #define SM_3_460 0x01 /* Sun 3/460 (460,470,480) series */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 55) #define SM_3_80 0x02 /* Sun 3/80 series */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 56)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 57) /* Sun4 machines */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 58) #define SM_4_260 0x01 /* Sun 4/200 series */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 59) #define SM_4_110 0x02 /* Sun 4/100 series */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 60) #define SM_4_330 0x03 /* Sun 4/300 series */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 61) #define SM_4_470 0x04 /* Sun 4/400 series */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 62)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 63) /* Sun4c machines Full Name - PROM NAME */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 64) #define SM_4C_SS1 0x01 /* Sun4c SparcStation 1 - Sun 4/60 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 65) #define SM_4C_IPC 0x02 /* Sun4c SparcStation IPC - Sun 4/40 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 66) #define SM_4C_SS1PLUS 0x03 /* Sun4c SparcStation 1+ - Sun 4/65 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 67) #define SM_4C_SLC 0x04 /* Sun4c SparcStation SLC - Sun 4/20 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 68) #define SM_4C_SS2 0x05 /* Sun4c SparcStation 2 - Sun 4/75 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 69) #define SM_4C_ELC 0x06 /* Sun4c SparcStation ELC - Sun 4/25 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 70) #define SM_4C_IPX 0x07 /* Sun4c SparcStation IPX - Sun 4/50 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 71)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 72) /* Sun4m machines, these predate the OpenBoot. These values only mean
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 73) * something if the value in the ARCH field is SM_SUN4M, if it is
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 74) * SM_SUN4M_OBP then you have the following situation:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 75) * 1) You either have a sun4d, a sun4e, or a recently made sun4m.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 76) * 2) You have to consult OpenBoot to determine which machine this is.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 77) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 78) #define SM_4M_SS60 0x01 /* Sun4m SparcSystem 600 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 79) #define SM_4M_SS50 0x02 /* Sun4m SparcStation 10 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 80) #define SM_4M_SS40 0x03 /* Sun4m SparcStation 5 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 81)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 82) /* Sun4d machines -- N/A */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 83) /* Sun4e machines -- N/A */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 84) /* Sun4u machines -- N/A */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 85)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 86) #endif /* !(_SPARC_MACHINES_H) */