changeset 2046:ef717412c771

6429440 pcicfg.c: create MSI and MSI-X capid pointer properties
author anish
date Tue, 23 May 2006 15:29:12 -0700
parents 473cc947ba84
children e21b6f0a829b
files usr/src/uts/common/io/hotplug/pcicfg/pcicfg.c
diffstat 1 files changed, 11 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/usr/src/uts/common/io/hotplug/pcicfg/pcicfg.c	Tue May 23 15:07:17 2006 -0700
+++ b/usr/src/uts/common/io/hotplug/pcicfg/pcicfg.c	Tue May 23 15:29:12 2006 -0700
@@ -3019,6 +3019,17 @@
 			return (ret);
 		}
 	}
+	if ((cap_id_loc = pcicfg_get_cap(config_handle, PCI_CAP_ID_MSI)) > 0) {
+		if ((ret = ndi_prop_update_int(DDI_DEV_T_NONE, dip,
+		    "pci-msi-capid-pointer", cap_id_loc)) != DDI_SUCCESS)
+			return (ret);
+	}
+	if ((cap_id_loc = pcicfg_get_cap(config_handle, PCI_CAP_ID_MSI_X)) >
+	    0) {
+		if ((ret = ndi_prop_update_int(DDI_DEV_T_NONE, dip,
+		    "pci-msix-capid-pointer", cap_id_loc)) != DDI_SUCCESS)
+			return (ret);
+	}
 	if ((cap_id_loc = pcicfg_get_cap(config_handle, PCI_CAP_ID_PCIX)) > 0) {
 		/* create the pcix-capid-pointer property */
 		if ((ret = ndi_prop_update_int(DDI_DEV_T_NONE, dip,