summaryrefslogtreecommitdiff
path: root/usr
diff options
context:
space:
mode:
authorpjha <none@none>2007-03-28 12:00:22 -0700
committerpjha <none@none>2007-03-28 12:00:22 -0700
commitc400425dc1f88bd15e7c4ac7c89631eaf9e35535 (patch)
tree6ce7425d4666eaf7995a617834913ed6013de978 /usr
parent549ec3fff108310966327d1dc9004551b63210b7 (diff)
downloadillumos-joyent-c400425dc1f88bd15e7c4ac7c89631eaf9e35535.tar.gz
6536641 Hotplug Controller should create physical-slot# property for PCI-X IO Box
Diffstat (limited to 'usr')
-rw-r--r--usr/src/uts/common/io/hotplug/pcishpc/pcishpc.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/usr/src/uts/common/io/hotplug/pcishpc/pcishpc.c b/usr/src/uts/common/io/hotplug/pcishpc/pcishpc.c
index 7a3defa0ec..dcc869c5c8 100644
--- a/usr/src/uts/common/io/hotplug/pcishpc/pcishpc.c
+++ b/usr/src/uts/common/io/hotplug/pcishpc/pcishpc.c
@@ -2563,6 +2563,12 @@ pcishpc_set_slot_name(pcishpc_ctrl_t *ctrl_p, int slot)
p->phy_slot_num = ctrl_p->physStart + slot;
else
p->phy_slot_num = ctrl_p->physStart - slot;
+
+ if ((ndi_prop_update_int(DDI_DEV_T_NONE, ctrl_p->shpc_dip,
+ "physical-slot#", p->phy_slot_num)) != DDI_SUCCESS) {
+ pcishpc_debug("pcishpc_set_slot_name(): failed to "
+ "create phyical-slot#%d", p->phy_slot_num);
+ }
}
if (!p->phy_slot_num) { /* platform may not have initialized it */