OpenCores
URL https://opencores.org/ocsvn/or1k_old/or1k_old/trunk

Subversion Repositories or1k_old

[/] [or1k_old/] [trunk/] [rc203soc/] [sw/] [uClinux/] [include/] [asm-sparc/] [machines.h] - Blame information for rev 1782

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1633 jcastillo
/* $Id: machines.h,v 1.1 2005-12-20 11:32:11 jcastillo 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
 */
7
#ifndef _SPARC_MACHINES_H
8
#define _SPARC_MACHINES_H
9
 
10
struct Sun_Machine_Models {
11
        char *name;
12
        unsigned char id_machtype;
13
};
14
 
15
/* Current number of machines we know about that has an IDPROM
16
 * machtype entry including one entry for the 0x80 OBP machines.
17
 */
18
#define NUM_SUN_MACHINES   15
19
 
20
extern struct Sun_Machine_Models Sun_Machines[NUM_SUN_MACHINES];
21
 
22
/* The machine type in the idprom area looks like this:
23
 *
24
 * ---------------
25
 * | ARCH | MACH |
26
 * ---------------
27
 *  7    4 3    0
28
 *
29
 * The ARCH field determines the architecture line (sun4, sun4c, etc).
30
 * The MACH field determines the machine make within that architecture.
31
 */
32
 
33
#define SM_ARCH_MASK  0xf0
34
#define SM_SUN4       0x20
35
#define SM_SUN4C      0x50
36
#define SM_SUN4M      0x70
37
#define SM_SUN4M_OBP  0x80
38
 
39
#define SM_TYP_MASK   0x0f
40
/* Sun4 machines */
41
#define SM_4_260      0x01    /* Sun 4/200 series */
42
#define SM_4_110      0x02    /* Sun 4/100 series */
43
#define SM_4_330      0x03    /* Sun 4/300 series */
44
#define SM_4_470      0x04    /* Sun 4/400 series */
45
 
46
/* Sun4c machines                Full Name              - PROM NAME */
47
#define SM_4C_SS1     0x01    /* Sun4c SparcStation 1   - Sun 4/60  */
48
#define SM_4C_IPC     0x02    /* Sun4c SparcStation IPC - Sun 4/40  */
49
#define SM_4C_SS1PLUS 0x03    /* Sun4c SparcStation 1+  - Sun 4/65  */
50
#define SM_4C_SLC     0x04    /* Sun4c SparcStation SLC - Sun 4/20  */
51
#define SM_4C_SS2     0x05    /* Sun4c SparcStation 2   - Sun 4/75  */
52
#define SM_4C_ELC     0x06    /* Sun4c SparcStation ELC - Sun 4/25  */
53
#define SM_4C_IPX     0x07    /* Sun4c SparcStation IPX - Sun 4/50  */
54
 
55
/* Sun4m machines, these predate the OpenBoot.  These values only mean
56
 * something if the value in the ARCH field is SM_SUN4M, if it is
57
 * SM_SUN4M_OBP then you have the following situation:
58
 * 1) You either have a sun4d, a sun4e, or a recently made sun4m.
59
 * 2) You have to consult OpenBoot to determine which machine this is.
60
 */
61
#define SM_4M_SS60    0x01    /* Sun4m SparcSystem 600                  */
62
#define SM_4M_SS50    0x02    /* Sun4m SparcStation 10                  */
63
#define SM_4M_SS40    0x03    /* Sun4m SparcStation 5                   */
64
 
65
/* Sun4d machines -- N/A */
66
/* Sun4e machines -- N/A */
67
/* Sun4u machines -- N/A */
68
 
69
#endif /* !(_SPARC_MACHINES_H) */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.