/titanic_44/usr/src/lib/fm/topo/modules/i86pc/x86pi/ |
H A D | x86pi_impl.h | 105 tnode_t *node; 122 tnode_t *t_parent; /* "Chassis" parent */ 166 tnode_t *x86pi_gen_chassis(topo_mod_t *, tnode_t *, int, int); 167 tnode_t *x86pi_gen_bboard(topo_mod_t *, tnode_t *, int, int, 169 int x86pi_gen_cmp(topo_mod_t *, tnode_t *, smbios_hdl_t *, int, int, int); 170 int x86pi_gen_core(topo_mod_t *, tnode_t *, int, int, int); 171 int x86pi_gen_strand(topo_mod_t *, tnode_t *, int, int, int); 172 int x86pi_gen_memarray(topo_mod_t *, tnode_t *, smbios_hdl_t *, int, int); 173 void x86pi_gen_memdev(topo_mod_t *, tnode_t *, smbios_hdl_t *, int, int, int); 174 int x86pi_gen_hbr(topo_mod_t *, tnode_t *, int, topo_instance_t, [all …]
|
/titanic_44/usr/src/lib/fm/topo/modules/i86pc/chip/ |
H A D | chip.h | 119 extern int simple_dimm_label(topo_mod_t *, tnode_t *, topo_version_t, 121 extern int simple_dimm_label_mp(topo_mod_t *, tnode_t *, topo_version_t, 123 extern int seq_dimm_label(topo_mod_t *, tnode_t *, topo_version_t, 125 extern int g4_dimm_label(topo_mod_t *, tnode_t *, topo_version_t, nvlist_t *, 128 extern int g12f_dimm_label(topo_mod_t *, tnode_t *, topo_version_t, nvlist_t *, 131 extern int simple_chip_label(topo_mod_t *, tnode_t *, topo_version_t, 133 extern int g4_chip_label(topo_mod_t *, tnode_t *, topo_version_t, 135 extern int a4fplus_chip_label(topo_mod_t *, tnode_t *, topo_version_t, 137 extern int simple_cs_label_mp(topo_mod_t *, tnode_t *, topo_version_t, 139 extern int get_dimm_serial(topo_mod_t *, tnode_t *, topo_version_t, nvlist_t *, [all …]
|
/titanic_44/usr/src/lib/fm/topo/libtopo/common/ |
H A D | topo_mod.h | 45 typedef int topo_method_f(topo_mod_t *, tnode_t *, topo_version_t, nvlist_t *, 47 typedef int topo_enum_f(topo_mod_t *, tnode_t *, const char *, topo_instance_t, 49 typedef void topo_release_f(topo_mod_t *, tnode_t *); 76 extern int topo_mod_enumerate(topo_mod_t *, tnode_t *, const char *, 78 extern int topo_mod_enummap(topo_mod_t *mod, tnode_t *, const char *, 80 extern void topo_mod_release(topo_mod_t *, tnode_t *); 88 extern nvlist_t *topo_mod_hcfmri(topo_mod_t *, tnode_t *, int, const char *, 101 extern int topo_prop_setmutable(tnode_t *node, const char *pgname, 103 extern int topo_prop_setnonvolatile(tnode_t *node, const char *pgname, 108 typedef int (*topo_mod_walk_cb_t)(topo_mod_t *, tnode_t *, void *); [all …]
|
H A D | libtopo.h | 40 typedef struct topo_node tnode_t; typedef 52 tnode_t *tf_node; 67 typedef int (*topo_walk_cb_t)(topo_hdl_t *, tnode_t *, void *); 124 extern char *topo_node_name(tnode_t *); 125 extern topo_instance_t topo_node_instance(tnode_t *); 126 extern tnode_t *topo_node_parent(tnode_t *); 127 extern void *topo_node_private(tnode_t *); 128 extern int topo_node_flags(tnode_t *); 129 extern int topo_node_asru(tnode_t *, nvlist_t **, nvlist_t *, int *); 130 extern int topo_node_fru(tnode_t *, nvlist_t **, nvlist_t *, int *); [all …]
|
H A D | topo_node.c | 129 topo_node_destroy(tnode_t *node) in topo_node_destroy() 132 tnode_t *pnode = node->tn_parent; in topo_node_destroy() 188 nhp->th_arrlen * sizeof (tnode_t *)); in topo_node_destroy() 199 topo_mod_free(mod, node, sizeof (tnode_t)); in topo_node_destroy() 204 topo_node_lock(tnode_t *node) in topo_node_lock() 210 topo_node_unlock(tnode_t *node) in topo_node_unlock() 216 topo_node_hold(tnode_t *node) in topo_node_hold() 224 topo_node_rele(tnode_t *node) in topo_node_rele() 239 topo_node_name(tnode_t *node) in topo_node_name() 245 topo_node_instance(tnode_t *node) in topo_node_instance() [all …]
|
H A D | topo_list.h | 47 extern tnode_t *topo_child_first(tnode_t *); 48 extern tnode_t *topo_child_next(tnode_t *, tnode_t *); 49 extern topo_list_t *topo_sibling_list(tnode_t *);
|
H A D | topo_tree.h | 51 tnode_t **th_nodearr; /* node array */ 133 extern void topo_node_lock(tnode_t *); 134 extern void topo_node_unlock(tnode_t *); 135 extern void topo_node_hold(tnode_t *); 136 extern void topo_node_rele(tnode_t *); 137 extern tnode_t *topo_node_lookup(tnode_t *, const char *, topo_instance_t); 141 extern topo_walk_t *topo_node_walk_init(topo_hdl_t *, topo_mod_t *, tnode_t *,
|
H A D | topo_prop.c | 76 pgroup_get(tnode_t *node, const char *pgname) in pgroup_get() 120 prop_method_get(tnode_t *node, topo_propval_t *pv, topo_propmethod_t *pm, in prop_method_get() 174 prop_get(tnode_t *node, const char *pgname, const char *pname, nvlist_t *pargs, in prop_get() 196 get_properror(tnode_t *node, int *errp, int err) in get_properror() 204 prop_getval(tnode_t *node, const char *pgname, const char *pname, void *val, in prop_getval() 393 topo_prop_get_int32(tnode_t *node, const char *pgname, const char *pname, in topo_prop_get_int32() 401 topo_prop_get_uint32(tnode_t *node, const char *pgname, const char *pname, in topo_prop_get_uint32() 409 topo_prop_get_int64(tnode_t *node, const char *pgname, const char *pname, in topo_prop_get_int64() 417 topo_prop_get_uint64(tnode_t *node, const char *pgname, const char *pname, in topo_prop_get_uint64() 425 topo_prop_get_double(tnode_t *node, const char *pgname, const char *pname, in topo_prop_get_double() [all …]
|
/titanic_44/usr/src/lib/fm/topo/modules/common/pcibus/ |
H A D | pcibus.h | 68 extern tnode_t *pcibus_declare(topo_mod_t *, tnode_t *, di_node_t, 70 extern tnode_t *pcidev_declare(topo_mod_t *, tnode_t *, di_node_t, 72 extern tnode_t *pcifn_declare(topo_mod_t *, tnode_t *, di_node_t, 74 extern tnode_t *pciexbus_declare(topo_mod_t *, tnode_t *, di_node_t, 76 extern tnode_t *pciexdev_declare(topo_mod_t *, tnode_t *, di_node_t, 78 extern tnode_t *pciexfn_declare(topo_mod_t *, tnode_t *, di_node_t, 80 extern int pci_children_instantiate(topo_mod_t *, tnode_t *, di_node_t, 83 extern int platform_pci_label(topo_mod_t *, tnode_t *, nvlist_t *, nvlist_t **);
|
H A D | pcibus.c | 56 extern int platform_pci_label(topo_mod_t *mod, tnode_t *, nvlist_t *, 58 extern int platform_pci_fru(topo_mod_t *mod, tnode_t *, nvlist_t *, 60 static void pci_release(topo_mod_t *, tnode_t *); 61 static int pci_enum(topo_mod_t *, tnode_t *, const char *, topo_instance_t, 63 static int pci_label(topo_mod_t *, tnode_t *, topo_version_t, nvlist_t *, 65 static int pci_fru(topo_mod_t *, tnode_t *, topo_version_t, nvlist_t *, 110 pci_label(topo_mod_t *mp, tnode_t *node, topo_version_t version, in pci_label() 118 pci_fru(topo_mod_t *mp, tnode_t *node, topo_version_t version, in pci_fru() 125 static tnode_t * 126 pci_tnode_create(topo_mod_t *mod, tnode_t *parent, in pci_tnode_create() [all …]
|
H A D | did_props.c | 45 static int ASRU_set(tnode_t *, did_t *, 47 static int FRU_set(tnode_t *, did_t *, 49 static int DEVprop_set(tnode_t *, did_t *, 51 static int DRIVERprop_set(tnode_t *, did_t *, 53 static int MODULEprop_set(tnode_t *, did_t *, 55 static int EXCAP_set(tnode_t *, did_t *, 57 static int BDF_set(tnode_t *, did_t *, 59 static int label_set(tnode_t *, did_t *, 61 static int maybe_di_chars_copy(tnode_t *, did_t *, 63 static int maybe_di_uint_to_str(tnode_t *, did_t *, [all …]
|
/titanic_44/usr/src/lib/fm/topo/modules/sun4v/sun4vpi/ |
H A D | pi_impl.h | 102 tnode_t *, const char *, tnode_t **); 114 tnode_t *, tnode_t *, const char *, const char *, tnode_t **, int flag); 124 topo_instance_t, tnode_t *, const char *, tnode_t *, void *); 126 int pi_defer_add(topo_mod_t *, mde_cookie_t, tnode_t *, tnode_t *, 131 int pi_enum_update(topo_mod_t *, md_t *, mde_cookie_t, tnode_t *, tnode_t *, 140 int pi_walker(pi_enum_t *, tnode_t *, const char *, mde_cookie_t, 167 int pi_set_auth(topo_mod_t *, md_t *, mde_cookie_t, tnode_t *, tnode_t *); 169 topo_instance_t, tnode_t *, tnode_t *); 170 int pi_set_label(topo_mod_t *, md_t *, mde_cookie_t, tnode_t *); 171 int pi_set_system(topo_mod_t *, tnode_t *); [all …]
|
/titanic_44/usr/src/lib/fm/topo/modules/common/hostbridge/ |
H A D | hostbridge.c | 47 static void hb_release(topo_mod_t *, tnode_t *); 48 static int hb_label(topo_mod_t *, tnode_t *, topo_version_t, nvlist_t *, 50 static int hb_enum(topo_mod_t *, tnode_t *, const char *, topo_instance_t, 53 extern int platform_hb_label(topo_mod_t *, tnode_t *, nvlist_t *, nvlist_t **); 54 extern int platform_hb_enum(topo_mod_t *, tnode_t *, 64 static int specific_hb_enum(topo_mod_t *, tnode_t *, const char *, 116 hb_label(topo_mod_t *mp, tnode_t *node, topo_version_t version, in hb_label() 138 hb_enum(topo_mod_t *mp, tnode_t *pn, const char *name, topo_instance_t imin, in hb_enum() 182 hb_release(topo_mod_t *mp, tnode_t *node) in hb_release() 187 static tnode_t * [all …]
|
H A D | hostbridge.h | 66 extern tnode_t *pcihostbridge_declare(topo_mod_t *, tnode_t *, di_node_t, 68 extern tnode_t *pciexhostbridge_declare(topo_mod_t *, tnode_t *, di_node_t, 70 extern tnode_t *pciexrc_declare(topo_mod_t *, tnode_t *, di_node_t,
|
/titanic_44/usr/src/lib/fm/topo/modules/sun4/hostbridge/ |
H A D | hb_sun4.c | 149 tnode_t * 150 hb_process(topo_mod_t *mod, tnode_t *ptn, topo_instance_t hbi, in hb_process() 153 tnode_t *hb; in hb_process() 165 tnode_t * 166 rc_process(topo_mod_t *mod, tnode_t *ptn, topo_instance_t rci, di_node_t bn) in rc_process() 168 tnode_t *rc; in rc_process() 203 declare_exbuses(topo_mod_t *mod, busorrc_t *list, tnode_t *ptn, int nhb, in declare_exbuses() 207 tnode_t **rcs; in declare_exbuses() 208 tnode_t **hb; in declare_exbuses() 215 if ((hb = topo_mod_zalloc(mod, nhb * sizeof (tnode_t *))) == NULL) in declare_exbuses() [all …]
|
/titanic_44/usr/src/lib/fm/topo/modules/common/disk/ |
H A D | disk.h | 105 extern int disk_declare_non_enumerated(topo_mod_t *, tnode_t *, tnode_t **); 106 extern int disk_declare_path(topo_mod_t *, tnode_t *, 108 extern int disk_declare_addr(topo_mod_t *, tnode_t *, 109 struct topo_list *, const char *, tnode_t **); 110 extern int disk_declare_bridge(topo_mod_t *, tnode_t *, 111 struct topo_list *, const char *, tnode_t **);
|
/titanic_44/usr/src/lib/fm/topo/modules/sun4v/niu/ |
H A D | niu.c | 51 static int niu_enum(topo_mod_t *, tnode_t *, const char *, topo_instance_t, 88 devprop_set(tnode_t *tn, di_node_t dn, in devprop_set() 107 driverprop_set(tnode_t *tn, di_node_t dn, in driverprop_set() 122 moduleprop_set(tnode_t *tn, di_node_t dn, in moduleprop_set() 144 static tnode_t * 145 niu_tnode_create(topo_mod_t *mod, tnode_t *parent, in niu_tnode_create() 150 tnode_t *ntn; in niu_tnode_create() 187 niu_asru_set(tnode_t *tn, di_node_t dn, topo_mod_t *mod) in niu_asru_set() 217 static tnode_t * 218 niu_declare(tnode_t *parent, const char *name, topo_instance_t i, in niu_declare() [all …]
|
/titanic_44/usr/src/lib/fm/topo/modules/sun4/ioboard/ |
H A D | ioboard.c | 47 static void iob_release(topo_mod_t *, tnode_t *); 48 static int iob_enum(topo_mod_t *, tnode_t *, const char *, topo_instance_t, 50 static int iob_label(topo_mod_t *, tnode_t *, topo_version_t, nvlist_t *, 53 extern int platform_iob_enum(topo_mod_t *, tnode_t *, topo_instance_t, 55 extern int platform_iob_label(topo_mod_t *, tnode_t *, nvlist_t *, nvlist_t **); 93 iob_label(topo_mod_t *mp, tnode_t *node, topo_version_t version, in iob_label() 115 iob_enum(topo_mod_t *mp, tnode_t *pn, const char *name, topo_instance_t imin, in iob_enum() 150 iob_release(topo_mod_t *mp, tnode_t *node) in iob_release() 161 static tnode_t * 162 iob_tnode_create(topo_mod_t *mod, tnode_t *parent, in iob_tnode_create() [all …]
|
/titanic_44/usr/src/lib/fm/topo/modules/sun4v/hostbridge/ |
H A D | hb_sun4v.c | 97 static tnode_t * 98 hb_tnode_create(topo_mod_t *mod, tnode_t *parent, const char *name, in hb_tnode_create() 102 tnode_t *node; in hb_tnode_create() 144 tnode_t * 145 platform_pciexhostbridge_declare(topo_mod_t *mod, tnode_t *parent, in platform_pciexhostbridge_declare() 148 tnode_t *hbn; in platform_pciexhostbridge_declare() 172 static tnode_t * 173 platform_pciexrc_declare(topo_mod_t *mod, tnode_t *parent, int inst, in platform_pciexrc_declare() 177 tnode_t *rcn; in platform_pciexrc_declare() 280 platform_hb_enum(topo_mod_t *mod, tnode_t *parent, const char *name, in platform_hb_enum() [all …]
|
/titanic_44/usr/src/lib/fm/topo/modules/common/xfp/ |
H A D | xfp.c | 42 static int xfp_enum(topo_mod_t *, tnode_t *, const char *, topo_instance_t, 84 static tnode_t * 85 xfp_tnode_create(topo_mod_t *mod, tnode_t *parent, in xfp_tnode_create() 90 tnode_t *ntn; in xfp_tnode_create() 129 xfp_fru_set(topo_mod_t *mp, tnode_t *tn) in xfp_fru_set() 147 xfp_label_set(topo_mod_t *mod, tnode_t *parent, tnode_t *node, in xfp_label_set() 177 static tnode_t * 178 xfp_declare(tnode_t *parent, const char *name, topo_instance_t i, in xfp_declare() 181 tnode_t *ntn; in xfp_declare() 204 xfp_enum(topo_mod_t *mod, tnode_t *rnode, const char *name, in xfp_enum()
|
/titanic_44/usr/src/lib/fm/topo/modules/sun4v/cpuboard/ |
H A D | cpuboard_hostbridge.c | 40 static tnode_t * 41 cpuboard_node_create(topo_mod_t *mp, tnode_t *parent, const char *name, in cpuboard_node_create() 44 tnode_t *node; in cpuboard_node_create() 90 static tnode_t * 91 cpuboard_rc_node_create(topo_mod_t *mp, tnode_t *parent, di_node_t dnode, in cpuboard_rc_node_create() 95 tnode_t *rcn; in cpuboard_rc_node_create() 208 static tnode_t * 209 cpuboard_hb_node_create(topo_mod_t *mp, tnode_t *parent, int inst) in cpuboard_hb_node_create() 212 tnode_t *hbn; in cpuboard_hb_node_create() 242 tnode_t *cpubn, int brd) in cpuboard_hb_enum() [all …]
|
/titanic_44/usr/src/lib/fm/topo/modules/i86pc/hostbridge/ |
H A D | hb_i86pc.c | 37 hb_process(topo_mod_t *mod, tnode_t *ptn, topo_instance_t hbi, di_node_t bn) in hb_process() 39 tnode_t *hb; in hb_process() 56 rc_process(topo_mod_t *mod, tnode_t *ptn, topo_instance_t hbi, di_node_t bn) in rc_process() 58 tnode_t *hb; in rc_process() 59 tnode_t *rc; in rc_process() 80 pci_hostbridges_find(topo_mod_t *mod, tnode_t *ptn) in pci_hostbridges_find() 139 platform_hb_enum(topo_mod_t *mod, tnode_t *parent, const char *name, in platform_hb_enum() 147 platform_hb_label(topo_mod_t *mod, tnode_t *node, nvlist_t *in, nvlist_t **out) in platform_hb_label()
|
/titanic_44/usr/src/lib/fm/topo/modules/common/shared/ |
H A D | topo_port.c | 35 port_range_create(topo_mod_t *mod, tnode_t *pnode, topo_instance_t min, in port_range_create() 46 static tnode_t * 47 port_create_common(topo_mod_t *mod, tnode_t *pnode, topo_instance_t inst, in port_create_common() 51 tnode_t *tn = NULL; in port_create_common() 120 port_create_sff(topo_mod_t *mod, tnode_t *pnode, topo_instance_t inst, in port_create_sff() 121 tnode_t **nodep) in port_create_sff() 123 tnode_t *tn; in port_create_sff()
|
/titanic_44/usr/src/lib/fm/topo/modules/sun4v/pcibus/ |
H A D | pci_sun4v.c | 46 tnode_t *node; 52 static int platform_pci_fru_location(topo_mod_t *, tnode_t *, uchar_t *, int); 53 static int platform_pci_fru_cb(topo_mod_t *, tnode_t *, void *); 57 platform_pci_label(topo_mod_t *mod, tnode_t *node, nvlist_t *in, in platform_pci_label() 98 platform_pci_fru(topo_mod_t *mod, tnode_t *node, nvlist_t *in, in platform_pci_fru() 104 tnode_t *pnode; in platform_pci_fru() 187 platform_pci_fru_location(topo_mod_t *mod, tnode_t *node, uchar_t *loc, in platform_pci_fru_location() 191 tnode_t *parent; in platform_pci_fru_location() 192 tnode_t *top; in platform_pci_fru_location() 227 platform_pci_fru_cb(topo_mod_t *mod, tnode_t *node, void *private) in platform_pci_fru_cb()
|
/titanic_44/usr/src/lib/fm/topo/modules/sun4v/zambezi/ |
H A D | zambezi.c | 49 static int zambezi_enum(topo_mod_t *, tnode_t *, const char *, topo_instance_t, 90 static tnode_t * 91 zam_tnode_create(topo_mod_t *mod, tnode_t *parent, in zam_tnode_create() 96 tnode_t *ntn; in zam_tnode_create() 136 static tnode_t * 137 zam_declare(tnode_t *parent, const char *name, topo_instance_t i, in zam_declare() 140 tnode_t *ntn; in zam_declare() 167 zambezi_enum(topo_mod_t *mod, tnode_t *rnode, const char *name, in zambezi_enum()
|