@@ -43,6 +43,7 @@ struct slot_table_entry {
st_phb,
st_pluggable_slot,
st_builtin_dev,
+ st_sw_upstream,
st_npu_slot
} etype;
uint32_t location;
@@ -58,7 +58,7 @@ static const struct slot_table_entry barreleye_plx_slots[] = {
static const struct slot_table_entry barreleye_plx_up[] = {
{
- .etype = st_builtin_dev,
+ .etype = st_sw_upstream,
.location = ST_LOC_DEVFN(0,0),
.children = barreleye_plx_slots,
},
@@ -76,7 +76,7 @@ static const struct slot_table_entry firestone_plx_slots[] = {
static const struct slot_table_entry firestone_plx_up[] = {
{
- .etype = st_builtin_dev,
+ .etype = st_sw_upstream,
.location = ST_LOC_DEVFN(0,0),
.children = firestone_plx_slots,
},
@@ -107,7 +107,7 @@ static const struct slot_table_entry garrison_plx_slots[] = {
static const struct slot_table_entry garrison_plx_up[] = {
{
- .etype = st_builtin_dev,
+ .etype = st_sw_upstream,
.location = ST_LOC_DEVFN(0,0),
.children = garrison_plx_slots,
},
@@ -68,7 +68,7 @@ static const struct slot_table_entry habanero_plx_slots[] = {
static const struct slot_table_entry habanero_plx_up[] = {
{
- .etype = st_builtin_dev,
+ .etype = st_sw_upstream,
.location = ST_LOC_DEVFN(0,0),
.children = habanero_plx_slots,
},
@@ -66,7 +66,7 @@ static const struct slot_table_entry p8dnu_plx_slots_00[] = {
static const struct slot_table_entry p8dnu_plx_up_00[] = {
{
- .etype = st_builtin_dev,
+ .etype = st_sw_upstream,
.location = ST_LOC_DEVFN(0,0),
.children = p8dnu_plx_slots_00,
},
@@ -149,7 +149,7 @@ static const struct slot_table_entry p8dnu_plx_slots[] = {
static const struct slot_table_entry p8dnu_plx_up[] = {
{
- .etype = st_builtin_dev,
+ .etype = st_sw_upstream,
.location = ST_LOC_DEVFN(0,0),
.children = p8dnu_plx_slots,
},
@@ -73,7 +73,7 @@ static const struct slot_table_entry p8dtu_plx_slots[] = {
static const struct slot_table_entry p8dtu_plx_up[] = {
{
- .etype = st_builtin_dev,
+ .etype = st_sw_upstream,
.location = ST_LOC_DEVFN(0,0),
.children = p8dtu_plx_slots,
},
@@ -58,7 +58,7 @@ static const struct slot_table_entry palmetto_plx_slots[] = {
static const struct slot_table_entry palmetto_plx_up[] = {
{
- .etype = st_builtin_dev,
+ .etype = st_sw_upstream,
.location = ST_LOC_DEVFN(0,0),
.children = palmetto_plx_slots,
},
@@ -76,7 +76,7 @@ static const struct slot_table_entry witherspoon_plx1_down[] = {
static const struct slot_table_entry witherspoon_plx0_up[] = {
{
- .etype = st_builtin_dev,
+ .etype = st_sw_upstream,
.location = ST_LOC_DEVFN(0x20,0),
.children = witherspoon_plx0_down,
},
@@ -85,7 +85,7 @@ static const struct slot_table_entry witherspoon_plx0_up[] = {
static const struct slot_table_entry witherspoon_plx1_up[] = {
{
- .etype = st_builtin_dev,
+ .etype = st_sw_upstream,
.location = ST_LOC_DEVFN(0x20,0),
.children = witherspoon_plx1_down,
},
Add a new slot type to represent switch upstream ports. Currently we use st_builtin_dev for all devices that we need to traverse when mapping PCI devices to slots. This makes parsing the slot tables somewhat tricky in practice due to the lack of context. Signed-off-by: Oliver O'Halloran <oohall@gmail.com> --- platforms/astbmc/astbmc.h | 1 + platforms/astbmc/barreleye.c | 2 +- platforms/astbmc/firestone.c | 2 +- platforms/astbmc/garrison.c | 2 +- platforms/astbmc/habanero.c | 2 +- platforms/astbmc/p8dnu.c | 4 ++-- platforms/astbmc/p8dtu.c | 2 +- platforms/astbmc/palmetto.c | 2 +- platforms/astbmc/witherspoon.c | 4 ++-- 9 files changed, 11 insertions(+), 10 deletions(-)