changeset 13029:cce6a2186e4e

6972333 fans and psu are not part of the chassis topology
author Tom Pothier <Tom.Pothier@Sun.COM>
date Thu, 05 Aug 2010 08:19:42 -0400
parents df613cad6889
children 1ff0c65b2b90
files usr/src/lib/fm/topo/modules/i86pc/x86pi/x86pi.c
diffstat 1 files changed, 10 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/usr/src/lib/fm/topo/modules/i86pc/x86pi/x86pi.c	Thu Aug 05 12:02:20 2010 +0800
+++ b/usr/src/lib/fm/topo/modules/i86pc/x86pi/x86pi.c	Thu Aug 05 08:19:42 2010 -0400
@@ -51,6 +51,13 @@
 static topo_enum_f x86pi_enum;	/* libtopo enumeration entry point */
 
 /*
+ * Top level chassis node in a multiple chassis system; or the chassis
+ * node in a single chassis system.
+ */
+static tnode_t *motherchassis_node = NULL;
+
+
+/*
  * Declare the operations vector and information structure used during
  * module registration
  */
@@ -208,11 +215,11 @@
 	x86pi->mod = mod;
 
 	if (fac_done == 0) {
-		(void) topo_mod_enummap(mod, x86pi->t_parent, "chassis",
+		(void) topo_mod_enummap(mod, motherchassis_node, "chassis",
 		    FM_FMRI_SCHEME_HC);
-		(void) topo_mod_enummap(mod, x86pi->t_parent, "fan",
+		(void) topo_mod_enummap(mod, motherchassis_node, "fan",
 		    FM_FMRI_SCHEME_HC);
-		(void) topo_mod_enummap(mod, x86pi->t_parent, "psu",
+		(void) topo_mod_enummap(mod, motherchassis_node, "psu",
 		    FM_FMRI_SCHEME_HC);
 	}
 
@@ -246,7 +253,6 @@
 	tnode_t		*chassis_node = NULL;
 	tnode_t		*basebd_node = NULL;
 	smbs_cnt_t	*smbc;
-	tnode_t		*motherchassis_node = NULL;
 	tnode_t		*pnode = NULL;
 	id_t		psmbid;
 	int		notvisited;