aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-m68k/machines.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 18:20:36 -0400
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 18:20:36 -0400
commit1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (patch)
tree0bba044c4ce775e45a88a51686b5d9f90697ea9d /include/asm-m68k/machines.h
Linux-2.6.12-rc2v2.6.12-rc2
Initial git repository build. I'm not bothering with the full history, even though we have it. We can create a separate "historical" git archive of that later if we want to, and in the meantime it's about 3.2GB when imported into git - space that would just make the early git days unnecessarily complicated, when we don't have a lot of good infrastructure for it. Let it rip!
Diffstat (limited to 'include/asm-m68k/machines.h')
-rw-r--r--include/asm-m68k/machines.h87
1 files changed, 87 insertions, 0 deletions
diff --git a/include/asm-m68k/machines.h b/include/asm-m68k/machines.h
new file mode 100644
index 000000000000..da6015a90f24
--- /dev/null
+++ b/include/asm-m68k/machines.h
@@ -0,0 +1,87 @@
1/* $Id: machines.h,v 1.4 1995/11/25 02:31:58 davem Exp $
2 * machines.h: Defines for taking apart the machine type value in the
3 * idprom and determining the kind of machine we are on.
4 *
5 * Copyright (C) 1995 David S. Miller (davem@caip.rutgers.edu)
6 * Sun3/3x models added by David Monro (davidm@psrg.cs.usyd.edu.au)
7 */
8#ifndef _SPARC_MACHINES_H
9#define _SPARC_MACHINES_H
10
11struct Sun_Machine_Models {
12 char *name;
13 unsigned char id_machtype;
14};
15
16/* Current number of machines we know about that has an IDPROM
17 * machtype entry including one entry for the 0x80 OBP machines.
18 */
19// reduced along with table in arch/m68k/sun3/idprom.c
20// sun3 port doesn't need to know about sparc machines.
21//#define NUM_SUN_MACHINES 23
22#define NUM_SUN_MACHINES 8
23
24extern struct Sun_Machine_Models Sun_Machines[NUM_SUN_MACHINES];
25
26/* The machine type in the idprom area looks like this:
27 *
28 * ---------------
29 * | ARCH | MACH |
30 * ---------------
31 * 7 4 3 0
32 *
33 * The ARCH field determines the architecture line (sun4, sun4c, etc).
34 * The MACH field determines the machine make within that architecture.
35 */
36
37#define SM_ARCH_MASK 0xf0
38#define SM_SUN3 0x10
39#define SM_SUN4 0x20
40#define SM_SUN3X 0x40
41#define SM_SUN4C 0x50
42#define SM_SUN4M 0x70
43#define SM_SUN4M_OBP 0x80
44
45#define SM_TYP_MASK 0x0f
46/* Sun3 machines */
47#define SM_3_160 0x01 /* Sun 3/160 series */
48#define SM_3_50 0x02 /* Sun 3/50 series */
49#define SM_3_260 0x03 /* Sun 3/260 series */
50#define SM_3_110 0x04 /* Sun 3/110 series */
51#define SM_3_60 0x07 /* Sun 3/60 series */
52#define SM_3_E 0x08 /* Sun 3/E series */
53
54/* Sun3x machines */
55#define SM_3_460 0x01 /* Sun 3/460 (460,470,480) series */
56#define SM_3_80 0x02 /* Sun 3/80 series */
57
58/* Sun4 machines */
59#define SM_4_260 0x01 /* Sun 4/200 series */
60#define SM_4_110 0x02 /* Sun 4/100 series */
61#define SM_4_330 0x03 /* Sun 4/300 series */
62#define SM_4_470 0x04 /* Sun 4/400 series */
63
64/* Sun4c machines Full Name - PROM NAME */
65#define SM_4C_SS1 0x01 /* Sun4c SparcStation 1 - Sun 4/60 */
66#define SM_4C_IPC 0x02 /* Sun4c SparcStation IPC - Sun 4/40 */
67#define SM_4C_SS1PLUS 0x03 /* Sun4c SparcStation 1+ - Sun 4/65 */
68#define SM_4C_SLC 0x04 /* Sun4c SparcStation SLC - Sun 4/20 */
69#define SM_4C_SS2 0x05 /* Sun4c SparcStation 2 - Sun 4/75 */
70#define SM_4C_ELC 0x06 /* Sun4c SparcStation ELC - Sun 4/25 */
71#define SM_4C_IPX 0x07 /* Sun4c SparcStation IPX - Sun 4/50 */
72
73/* Sun4m machines, these predate the OpenBoot. These values only mean
74 * something if the value in the ARCH field is SM_SUN4M, if it is
75 * SM_SUN4M_OBP then you have the following situation:
76 * 1) You either have a sun4d, a sun4e, or a recently made sun4m.
77 * 2) You have to consult OpenBoot to determine which machine this is.
78 */
79#define SM_4M_SS60 0x01 /* Sun4m SparcSystem 600 */
80#define SM_4M_SS50 0x02 /* Sun4m SparcStation 10 */
81#define SM_4M_SS40 0x03 /* Sun4m SparcStation 5 */
82
83/* Sun4d machines -- N/A */
84/* Sun4e machines -- N/A */
85/* Sun4u machines -- N/A */
86
87#endif /* !(_SPARC_MACHINES_H) */