usr/src/lib/fm/topo/modules/sun4v/pcibus/pci_sun4v.h
author sd77468
Thu, 22 Mar 2007 11:17:55 -0700
changeset 3881 6e67ad54ba09
parent 3325 72fd98750a13
child 4732 4edaffb4494b
permissions -rw-r--r--
6536452 Change the numbering of the PCIE slots in pci_sun4v.h to start with zero "0" instead of one "1"
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1414
b4126407ac5b PSARC 2006/020 FMA for Athlon 64 and Opteron Processors
cindi
parents:
diff changeset
     1
/*
b4126407ac5b PSARC 2006/020 FMA for Athlon 64 and Opteron Processors
cindi
parents:
diff changeset
     2
 * CDDL HEADER START
b4126407ac5b PSARC 2006/020 FMA for Athlon 64 and Opteron Processors
cindi
parents:
diff changeset
     3
 *
b4126407ac5b PSARC 2006/020 FMA for Athlon 64 and Opteron Processors
cindi
parents:
diff changeset
     4
 * The contents of this file are subject to the terms of the
b4126407ac5b PSARC 2006/020 FMA for Athlon 64 and Opteron Processors
cindi
parents:
diff changeset
     5
 * Common Development and Distribution License (the "License").
b4126407ac5b PSARC 2006/020 FMA for Athlon 64 and Opteron Processors
cindi
parents:
diff changeset
     6
 * You may not use this file except in compliance with the License.
b4126407ac5b PSARC 2006/020 FMA for Athlon 64 and Opteron Processors
cindi
parents:
diff changeset
     7
 *
b4126407ac5b PSARC 2006/020 FMA for Athlon 64 and Opteron Processors
cindi
parents:
diff changeset
     8
 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
b4126407ac5b PSARC 2006/020 FMA for Athlon 64 and Opteron Processors
cindi
parents:
diff changeset
     9
 * or http://www.opensolaris.org/os/licensing.
b4126407ac5b PSARC 2006/020 FMA for Athlon 64 and Opteron Processors
cindi
parents:
diff changeset
    10
 * See the License for the specific language governing permissions
b4126407ac5b PSARC 2006/020 FMA for Athlon 64 and Opteron Processors
cindi
parents:
diff changeset
    11
 * and limitations under the License.
b4126407ac5b PSARC 2006/020 FMA for Athlon 64 and Opteron Processors
cindi
parents:
diff changeset
    12
 *
b4126407ac5b PSARC 2006/020 FMA for Athlon 64 and Opteron Processors
cindi
parents:
diff changeset
    13
 * When distributing Covered Code, include this CDDL HEADER in each
b4126407ac5b PSARC 2006/020 FMA for Athlon 64 and Opteron Processors
cindi
parents:
diff changeset
    14
 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
b4126407ac5b PSARC 2006/020 FMA for Athlon 64 and Opteron Processors
cindi
parents:
diff changeset
    15
 * If applicable, add the following below this CDDL HEADER, with the
b4126407ac5b PSARC 2006/020 FMA for Athlon 64 and Opteron Processors
cindi
parents:
diff changeset
    16
 * fields enclosed by brackets "[]" replaced with your own identifying
b4126407ac5b PSARC 2006/020 FMA for Athlon 64 and Opteron Processors
cindi
parents:
diff changeset
    17
 * information: Portions Copyright [yyyy] [name of copyright owner]
b4126407ac5b PSARC 2006/020 FMA for Athlon 64 and Opteron Processors
cindi
parents:
diff changeset
    18
 *
b4126407ac5b PSARC 2006/020 FMA for Athlon 64 and Opteron Processors
cindi
parents:
diff changeset
    19
 * CDDL HEADER END
b4126407ac5b PSARC 2006/020 FMA for Athlon 64 and Opteron Processors
cindi
parents:
diff changeset
    20
 */
b4126407ac5b PSARC 2006/020 FMA for Athlon 64 and Opteron Processors
cindi
parents:
diff changeset
    21
b4126407ac5b PSARC 2006/020 FMA for Athlon 64 and Opteron Processors
cindi
parents:
diff changeset
    22
/*
3881
6e67ad54ba09 6536452 Change the numbering of the PCIE slots in pci_sun4v.h to start with zero "0" instead of one "1"
sd77468
parents: 3325
diff changeset
    23
 * Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
1414
b4126407ac5b PSARC 2006/020 FMA for Athlon 64 and Opteron Processors
cindi
parents:
diff changeset
    24
 * Use is subject to license terms.
b4126407ac5b PSARC 2006/020 FMA for Athlon 64 and Opteron Processors
cindi
parents:
diff changeset
    25
 */
b4126407ac5b PSARC 2006/020 FMA for Athlon 64 and Opteron Processors
cindi
parents:
diff changeset
    26
b4126407ac5b PSARC 2006/020 FMA for Athlon 64 and Opteron Processors
cindi
parents:
diff changeset
    27
#ifndef _PCI_SUN4V_H
b4126407ac5b PSARC 2006/020 FMA for Athlon 64 and Opteron Processors
cindi
parents:
diff changeset
    28
#define	_PCI_SUN4V_H
b4126407ac5b PSARC 2006/020 FMA for Athlon 64 and Opteron Processors
cindi
parents:
diff changeset
    29
b4126407ac5b PSARC 2006/020 FMA for Athlon 64 and Opteron Processors
cindi
parents:
diff changeset
    30
#pragma ident	"%Z%%M%	%I%	%E% SMI"
b4126407ac5b PSARC 2006/020 FMA for Athlon 64 and Opteron Processors
cindi
parents:
diff changeset
    31
b4126407ac5b PSARC 2006/020 FMA for Athlon 64 and Opteron Processors
cindi
parents:
diff changeset
    32
#include "pcibus_labels.h"
b4126407ac5b PSARC 2006/020 FMA for Athlon 64 and Opteron Processors
cindi
parents:
diff changeset
    33
b4126407ac5b PSARC 2006/020 FMA for Athlon 64 and Opteron Processors
cindi
parents:
diff changeset
    34
#ifdef __cplusplus
b4126407ac5b PSARC 2006/020 FMA for Athlon 64 and Opteron Processors
cindi
parents:
diff changeset
    35
extern "C" {
b4126407ac5b PSARC 2006/020 FMA for Athlon 64 and Opteron Processors
cindi
parents:
diff changeset
    36
#endif
b4126407ac5b PSARC 2006/020 FMA for Athlon 64 and Opteron Processors
cindi
parents:
diff changeset
    37
b4126407ac5b PSARC 2006/020 FMA for Athlon 64 and Opteron Processors
cindi
parents:
diff changeset
    38
physnm_t t200_pnms[] = {
b4126407ac5b PSARC 2006/020 FMA for Athlon 64 and Opteron Processors
cindi
parents:
diff changeset
    39
	/* Slot #, Label */
b4126407ac5b PSARC 2006/020 FMA for Athlon 64 and Opteron Processors
cindi
parents:
diff changeset
    40
	{ 224, "PCIE0" },
b4126407ac5b PSARC 2006/020 FMA for Athlon 64 and Opteron Processors
cindi
parents:
diff changeset
    41
	{ 225, "PCIE1" },
b4126407ac5b PSARC 2006/020 FMA for Athlon 64 and Opteron Processors
cindi
parents:
diff changeset
    42
	{ 226, "PCIE2" }
b4126407ac5b PSARC 2006/020 FMA for Athlon 64 and Opteron Processors
cindi
parents:
diff changeset
    43
};
b4126407ac5b PSARC 2006/020 FMA for Athlon 64 and Opteron Processors
cindi
parents:
diff changeset
    44
3325
72fd98750a13 PSARC 2006/692 N2 PIU FMA
sd77468
parents: 3062
diff changeset
    45
physnm_t t5120_pnms[] = {
72fd98750a13 PSARC 2006/692 N2 PIU FMA
sd77468
parents: 3062
diff changeset
    46
	/* Slot #, Label */
3881
6e67ad54ba09 6536452 Change the numbering of the PCIE slots in pci_sun4v.h to start with zero "0" instead of one "1"
sd77468
parents: 3325
diff changeset
    47
	{   0, "MB/RISER0/PCIE0" },
3325
72fd98750a13 PSARC 2006/692 N2 PIU FMA
sd77468
parents: 3062
diff changeset
    48
	{   1, "MB/RISER1/PCIE1" },
3881
6e67ad54ba09 6536452 Change the numbering of the PCIE slots in pci_sun4v.h to start with zero "0" instead of one "1"
sd77468
parents: 3325
diff changeset
    49
	{   2, "MB/RISER2/PCIE2" }
3325
72fd98750a13 PSARC 2006/692 N2 PIU FMA
sd77468
parents: 3062
diff changeset
    50
};
72fd98750a13 PSARC 2006/692 N2 PIU FMA
sd77468
parents: 3062
diff changeset
    51
72fd98750a13 PSARC 2006/692 N2 PIU FMA
sd77468
parents: 3062
diff changeset
    52
physnm_t t5220_pnms[] = {
72fd98750a13 PSARC 2006/692 N2 PIU FMA
sd77468
parents: 3062
diff changeset
    53
	/* Slot #, Label */
3881
6e67ad54ba09 6536452 Change the numbering of the PCIE slots in pci_sun4v.h to start with zero "0" instead of one "1"
sd77468
parents: 3325
diff changeset
    54
	{   0, "MB/RISER0/PCIE0" },
3325
72fd98750a13 PSARC 2006/692 N2 PIU FMA
sd77468
parents: 3062
diff changeset
    55
	{   1, "MB/RISER1/PCIE1" },
72fd98750a13 PSARC 2006/692 N2 PIU FMA
sd77468
parents: 3062
diff changeset
    56
	{   2, "MB/RISER2/PCIE2" },
3881
6e67ad54ba09 6536452 Change the numbering of the PCIE slots in pci_sun4v.h to start with zero "0" instead of one "1"
sd77468
parents: 3325
diff changeset
    57
	{   3, "MB/RISER0/PCIE3" },
3325
72fd98750a13 PSARC 2006/692 N2 PIU FMA
sd77468
parents: 3062
diff changeset
    58
	{   4, "MB/RISER1/PCIE4" },
3881
6e67ad54ba09 6536452 Change the numbering of the PCIE slots in pci_sun4v.h to start with zero "0" instead of one "1"
sd77468
parents: 3325
diff changeset
    59
	{   5, "MB/RISER2/PCIE5" }
3325
72fd98750a13 PSARC 2006/692 N2 PIU FMA
sd77468
parents: 3062
diff changeset
    60
};
72fd98750a13 PSARC 2006/692 N2 PIU FMA
sd77468
parents: 3062
diff changeset
    61
1414
b4126407ac5b PSARC 2006/020 FMA for Athlon 64 and Opteron Processors
cindi
parents:
diff changeset
    62
pphysnm_t plat_pnames[] = {
3062
46d280f5351d 6396916 verification of dtd file name is wrong
cindi
parents: 1414
diff changeset
    63
	{ "Sun-Fire-T200",
1414
b4126407ac5b PSARC 2006/020 FMA for Athlon 64 and Opteron Processors
cindi
parents:
diff changeset
    64
	    sizeof (t200_pnms) / sizeof (physnm_t),
3325
72fd98750a13 PSARC 2006/692 N2 PIU FMA
sd77468
parents: 3062
diff changeset
    65
	    t200_pnms },
72fd98750a13 PSARC 2006/692 N2 PIU FMA
sd77468
parents: 3062
diff changeset
    66
	{ "SPARC-Enterprise-T5120",
72fd98750a13 PSARC 2006/692 N2 PIU FMA
sd77468
parents: 3062
diff changeset
    67
	    sizeof (t5120_pnms) / sizeof (physnm_t),
72fd98750a13 PSARC 2006/692 N2 PIU FMA
sd77468
parents: 3062
diff changeset
    68
	    t5120_pnms },
72fd98750a13 PSARC 2006/692 N2 PIU FMA
sd77468
parents: 3062
diff changeset
    69
	{ "SPARC-Enterprise-T5220",
72fd98750a13 PSARC 2006/692 N2 PIU FMA
sd77468
parents: 3062
diff changeset
    70
	    sizeof (t5220_pnms) / sizeof (physnm_t),
72fd98750a13 PSARC 2006/692 N2 PIU FMA
sd77468
parents: 3062
diff changeset
    71
	    t5220_pnms }
1414
b4126407ac5b PSARC 2006/020 FMA for Athlon 64 and Opteron Processors
cindi
parents:
diff changeset
    72
};
b4126407ac5b PSARC 2006/020 FMA for Athlon 64 and Opteron Processors
cindi
parents:
diff changeset
    73
b4126407ac5b PSARC 2006/020 FMA for Athlon 64 and Opteron Processors
cindi
parents:
diff changeset
    74
physlot_names_t PhyslotNMs = {
3325
72fd98750a13 PSARC 2006/692 N2 PIU FMA
sd77468
parents: 3062
diff changeset
    75
	3,
1414
b4126407ac5b PSARC 2006/020 FMA for Athlon 64 and Opteron Processors
cindi
parents:
diff changeset
    76
	plat_pnames
b4126407ac5b PSARC 2006/020 FMA for Athlon 64 and Opteron Processors
cindi
parents:
diff changeset
    77
};
b4126407ac5b PSARC 2006/020 FMA for Athlon 64 and Opteron Processors
cindi
parents:
diff changeset
    78
b4126407ac5b PSARC 2006/020 FMA for Athlon 64 and Opteron Processors
cindi
parents:
diff changeset
    79
devlab_t t200_missing[] = {
b4126407ac5b PSARC 2006/020 FMA for Athlon 64 and Opteron Processors
cindi
parents:
diff changeset
    80
	/* board, bridge, root-complex, bus, dev, label */
b4126407ac5b PSARC 2006/020 FMA for Athlon 64 and Opteron Processors
cindi
parents:
diff changeset
    81
	{ 0, 0, 1 - TO_PCI, 6, 1, "PCIX1" },
b4126407ac5b PSARC 2006/020 FMA for Athlon 64 and Opteron Processors
cindi
parents:
diff changeset
    82
	{ 0, 0, 1 - TO_PCI, 6, 2, "PCIX0" }
b4126407ac5b PSARC 2006/020 FMA for Athlon 64 and Opteron Processors
cindi
parents:
diff changeset
    83
};
b4126407ac5b PSARC 2006/020 FMA for Athlon 64 and Opteron Processors
cindi
parents:
diff changeset
    84
b4126407ac5b PSARC 2006/020 FMA for Athlon 64 and Opteron Processors
cindi
parents:
diff changeset
    85
pdevlabs_t plats_missing[] = {
3062
46d280f5351d 6396916 verification of dtd file name is wrong
cindi
parents: 1414
diff changeset
    86
	{ "Sun-Fire-T200",
1414
b4126407ac5b PSARC 2006/020 FMA for Athlon 64 and Opteron Processors
cindi
parents:
diff changeset
    87
	    sizeof (t200_missing) / sizeof (devlab_t),
3325
72fd98750a13 PSARC 2006/692 N2 PIU FMA
sd77468
parents: 3062
diff changeset
    88
	    t200_missing },
72fd98750a13 PSARC 2006/692 N2 PIU FMA
sd77468
parents: 3062
diff changeset
    89
	{ "SPARC-Enterprise-T5120",
72fd98750a13 PSARC 2006/692 N2 PIU FMA
sd77468
parents: 3062
diff changeset
    90
	    0,
72fd98750a13 PSARC 2006/692 N2 PIU FMA
sd77468
parents: 3062
diff changeset
    91
	    NULL },
72fd98750a13 PSARC 2006/692 N2 PIU FMA
sd77468
parents: 3062
diff changeset
    92
	{ "SPARC-Enterprise-T5220",
72fd98750a13 PSARC 2006/692 N2 PIU FMA
sd77468
parents: 3062
diff changeset
    93
	    0,
72fd98750a13 PSARC 2006/692 N2 PIU FMA
sd77468
parents: 3062
diff changeset
    94
	    NULL }
1414
b4126407ac5b PSARC 2006/020 FMA for Athlon 64 and Opteron Processors
cindi
parents:
diff changeset
    95
};
b4126407ac5b PSARC 2006/020 FMA for Athlon 64 and Opteron Processors
cindi
parents:
diff changeset
    96
b4126407ac5b PSARC 2006/020 FMA for Athlon 64 and Opteron Processors
cindi
parents:
diff changeset
    97
missing_names_t Missing = {
3325
72fd98750a13 PSARC 2006/692 N2 PIU FMA
sd77468
parents: 3062
diff changeset
    98
	3,
1414
b4126407ac5b PSARC 2006/020 FMA for Athlon 64 and Opteron Processors
cindi
parents:
diff changeset
    99
	plats_missing
b4126407ac5b PSARC 2006/020 FMA for Athlon 64 and Opteron Processors
cindi
parents:
diff changeset
   100
};
b4126407ac5b PSARC 2006/020 FMA for Athlon 64 and Opteron Processors
cindi
parents:
diff changeset
   101
b4126407ac5b PSARC 2006/020 FMA for Athlon 64 and Opteron Processors
cindi
parents:
diff changeset
   102
slotnm_rewrite_t *Slot_Rewrites = NULL;
b4126407ac5b PSARC 2006/020 FMA for Athlon 64 and Opteron Processors
cindi
parents:
diff changeset
   103
physlot_names_t *Physlot_Names = &PhyslotNMs;
b4126407ac5b PSARC 2006/020 FMA for Athlon 64 and Opteron Processors
cindi
parents:
diff changeset
   104
missing_names_t *Missing_Names = &Missing;
b4126407ac5b PSARC 2006/020 FMA for Athlon 64 and Opteron Processors
cindi
parents:
diff changeset
   105
b4126407ac5b PSARC 2006/020 FMA for Athlon 64 and Opteron Processors
cindi
parents:
diff changeset
   106
#ifdef __cplusplus
b4126407ac5b PSARC 2006/020 FMA for Athlon 64 and Opteron Processors
cindi
parents:
diff changeset
   107
}
b4126407ac5b PSARC 2006/020 FMA for Athlon 64 and Opteron Processors
cindi
parents:
diff changeset
   108
#endif
b4126407ac5b PSARC 2006/020 FMA for Athlon 64 and Opteron Processors
cindi
parents:
diff changeset
   109
b4126407ac5b PSARC 2006/020 FMA for Athlon 64 and Opteron Processors
cindi
parents:
diff changeset
   110
#endif /* _PCI_SUN4V_H */