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