diff options
author | pjha <none@none> | 2007-03-28 12:00:22 -0700 |
---|---|---|
committer | pjha <none@none> | 2007-03-28 12:00:22 -0700 |
commit | c400425dc1f88bd15e7c4ac7c89631eaf9e35535 (patch) | |
tree | 6ce7425d4666eaf7995a617834913ed6013de978 /usr | |
parent | 549ec3fff108310966327d1dc9004551b63210b7 (diff) | |
download | illumos-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.c | 6 |
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 */ |