Mercurial > illumos > illumos-gate
changeset 3911:94df594513c7
6536641 Hotplug Controller should create physical-slot# property for PCI-X IO Box
author | pjha |
---|---|
date | Wed, 28 Mar 2007 12:00:22 -0700 |
parents | 00586900e34c |
children | f6891a60bd72 |
files | usr/src/uts/common/io/hotplug/pcishpc/pcishpc.c |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/usr/src/uts/common/io/hotplug/pcishpc/pcishpc.c Wed Mar 28 08:50:43 2007 -0700 +++ b/usr/src/uts/common/io/hotplug/pcishpc/pcishpc.c Wed Mar 28 12:00:22 2007 -0700 @@ -2563,6 +2563,12 @@ 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 */