/illumos-gate/usr/src/lib/libpicltree/ |
H A D | picltree.h | 47 picl_nodehdl_t nodeh; 53 picl_nodehdl_t nodeh; 82 extern int ptree_get_root(picl_nodehdl_t *nodeh); 84 picl_nodehdl_t *nodeh); 85 extern int ptree_destroy_node(picl_nodehdl_t nodeh); 86 extern int ptree_add_node(picl_nodehdl_t parh, picl_nodehdl_t chdh); 87 extern int ptree_delete_node(picl_nodehdl_t nodeh); 93 extern int ptree_add_prop(picl_nodehdl_t nodeh, picl_prophdl_t proph); 97 extern int ptree_update_propval_by_name(picl_nodehdl_t nodeh, 103 extern int ptree_get_propval_by_name(picl_nodehdl_t nodeh, [all …]
|
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/cherrystone/frutree/ |
H A D | piclfrutree.c | 191 static picl_nodehdl_t frutreeh; 193 static int do_ioboard_init(picl_nodehdl_t); 194 static int do_rscboard_init(picl_nodehdl_t); 195 static int do_fcal_init(picl_nodehdl_t); 196 static int do_power_supplies_init(picl_nodehdl_t); 197 static int do_centerplane_init(picl_nodehdl_t); 198 static int do_cpu_module_init(picl_nodehdl_t, int); 199 static int do_dimms_init(picl_nodehdl_t, int, int); 201 static int add_ref_prop(picl_nodehdl_t, picl_nodehdl_t, char *); 202 static int add_slot_prop(picl_nodehdl_t, int); [all …]
|
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/littleneck/frutree/ |
H A D | piclfrutree.c | 156 static picl_nodehdl_t frutreeh; 158 static int do_sysboard_init(picl_nodehdl_t, picl_nodehdl_t *); 159 static int do_cpus_init(picl_nodehdl_t); 160 static int do_mem_init(picl_nodehdl_t); 161 static int do_power_supplies_init(picl_nodehdl_t); 162 static int do_fcal_init(picl_nodehdl_t); 163 static int do_rscboard_init(picl_nodehdl_t); 165 static int add_ref_prop(picl_nodehdl_t, picl_nodehdl_t, char *); 166 static int add_slot_prop(picl_nodehdl_t, int); 167 static int add_label_prop(picl_nodehdl_t, char *); [all …]
|
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/daktari/frutree/ |
H A D | piclfrutree.c | 250 static picl_nodehdl_t frutreeh; 252 static int do_ioboard_init(picl_nodehdl_t); 253 static int do_rscboard_init(picl_nodehdl_t); 254 static int do_fcal_init(picl_nodehdl_t); 255 static int do_power_supplies_init(picl_nodehdl_t); 256 static int do_motherboard_init(picl_nodehdl_t); 257 static int do_cpu_module_init(picl_nodehdl_t, int); 258 static int do_dimms_init(picl_nodehdl_t, int, int); 260 static int add_ref_prop(picl_nodehdl_t, picl_nodehdl_t, char *); 261 static int add_slot_prop(picl_nodehdl_t, int); [all …]
|
/illumos-gate/usr/src/lib/libpicl/ |
H A D | picl.h | 45 typedef uint64_t picl_nodehdl_t; typedef 134 extern int picl_get_root(picl_nodehdl_t *nodehandle); 137 extern int picl_get_propval_by_name(picl_nodehdl_t nodeh, 141 extern int picl_set_propval_by_name(picl_nodehdl_t nodeh, 144 extern int picl_get_first_prop(picl_nodehdl_t nodeh, picl_prophdl_t *proph); 146 extern int picl_get_prop_by_name(picl_nodehdl_t nodeh, const char *nm, 152 extern int picl_walk_tree_by_class(picl_nodehdl_t rooth, 154 int (*callback_fn)(picl_nodehdl_t hdl, void *args)); 155 extern int picl_get_propinfo_by_name(picl_nodehdl_t nodeh, const char *pname, 158 extern int picl_find_node(picl_nodehdl_t rooth, char *pname, [all …]
|
H A D | picl2door.h | 64 picl_nodehdl_t nodeh; 119 picl_nodehdl_t rnode; /* root handle */ 143 picl_nodehdl_t nodeh; /* node handle */ 151 picl_nodehdl_t nodeh; /* node handle */ 181 picl_nodehdl_t nodeh; /* node handle */ 186 picl_nodehdl_t nodeh; /* node handle */ 209 picl_nodehdl_t nodeh; /* node handle */ 216 picl_nodehdl_t nodeh; /* node handle */ 270 picl_nodehdl_t nodeh; /* node handle */ 279 picl_nodehdl_t nodeh; /* node handle */ [all …]
|
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/lw8/frutree/ |
H A D | piclfrutree.c | 297 static picl_nodehdl_t frutreeh; 298 static picl_nodehdl_t sch = 0; 306 static int remove_subtree(picl_nodehdl_t parh); 307 static int add_subtree(picl_nodehdl_t parh, fru_hdl_t fruparent); 308 static int add_picl_node(picl_nodehdl_t parh, sgfrunode_t *sgfrunode, 309 picl_nodehdl_t *childp); 310 static int add_chassis_node(picl_nodehdl_t parh, sgfrunode_t *sgfrunode, 311 picl_nodehdl_t *childp); 312 static int add_fru_node(picl_nodehdl_t parh, sgfrunode_t *sgfrunode, 313 picl_nodehdl_t *childp); [all …]
|
/illumos-gate/usr/src/lib/libprtdiag_psr/sparc/schumacher/common/ |
H A D | schumacher.c | 108 picl_nodehdl_t nodeh; 195 picldiag_get_node_by_name(picl_nodehdl_t rooth, char *name, in picldiag_get_node_by_name() 196 picl_nodehdl_t *nodeh) in picldiag_get_node_by_name() 198 picl_nodehdl_t childh; in picldiag_get_node_by_name() 207 sizeof (picl_nodehdl_t)); in picldiag_get_node_by_name() 214 &childh, sizeof (picl_nodehdl_t)); in picldiag_get_node_by_name() 224 &childh, sizeof (picl_nodehdl_t)); in picldiag_get_node_by_name() 236 picldiag_get_string_propval(picl_nodehdl_t modh, char *prop_name, char **outbuf) in picldiag_get_string_propval() 273 picldiag_get_int_propval(picl_nodehdl_t modh, char *prop_name, int *ret) in picldiag_get_int_propval() 326 picldiag_get_uint_propval(picl_nodehdl_t modh, char *prop_name, int *ret) in picldiag_get_uint_propval() [all …]
|
/illumos-gate/usr/src/lib/libprtdiag_psr/sparc/desktop/common/ |
H A D | picldiag.c | 120 picl_nodehdl_t nodeh; 235 picldiag_get_node_by_name(picl_nodehdl_t rooth, char *name, in picldiag_get_node_by_name() 236 picl_nodehdl_t *nodeh) in picldiag_get_node_by_name() 238 picl_nodehdl_t childh; in picldiag_get_node_by_name() 247 sizeof (picl_nodehdl_t)); in picldiag_get_node_by_name() 254 &childh, sizeof (picl_nodehdl_t)); in picldiag_get_node_by_name() 264 &childh, sizeof (picl_nodehdl_t)); in picldiag_get_node_by_name() 275 picldiag_get_string_propval(picl_nodehdl_t modh, char *prop_name, char **outbuf) in picldiag_get_string_propval() 312 picldiag_get_int_propval(picl_nodehdl_t modh, char *prop_name, int *ret) in picldiag_get_int_propval() 365 picldiag_get_uint_propval(picl_nodehdl_t modh, char *prop_name, int *ret) in picldiag_get_uint_propval() [all …]
|
/illumos-gate/usr/src/lib/libprtdiag_psr/sparc/lw8/common/ |
H A D | lw8.c | 117 picl_nodehdl_t nodeh; 230 picldiag_get_node_by_name(picl_nodehdl_t rooth, char *name, in picldiag_get_node_by_name() 231 picl_nodehdl_t *nodeh) in picldiag_get_node_by_name() 233 picl_nodehdl_t childh; in picldiag_get_node_by_name() 242 sizeof (picl_nodehdl_t)); in picldiag_get_node_by_name() 249 &childh, sizeof (picl_nodehdl_t)); in picldiag_get_node_by_name() 259 &childh, sizeof (picl_nodehdl_t)); in picldiag_get_node_by_name() 270 picldiag_get_string_propval(picl_nodehdl_t modh, char *prop_name, char **outbuf) in picldiag_get_string_propval() 307 picldiag_get_int_propval(picl_nodehdl_t modh, char *prop_name, int *ret) in picldiag_get_int_propval() 359 picldiag_get_uint_propval(picl_nodehdl_t modh, char *prop_name, int *ret) in picldiag_get_uint_propval() [all …]
|
/illumos-gate/usr/src/lib/libfru/libfrupicl/ |
H A D | frupicl.c | 40 #define TREEHDL_TO_PICLHDL(treehdl) ((picl_nodehdl_t)treehdl) 43 #define TREESEGHDL_TO_PICLHDL(treeseghdl) ((picl_nodehdl_t)treeseghdl) 47 static picl_nodehdl_t picl_root_node; 82 update_data_nodes(picl_nodehdl_t handle) in update_data_nodes() 102 get_strprop_by_name(picl_nodehdl_t handle, char *prop_name, char **string) in get_strprop_by_name() 136 picl_nodehdl_t handle = TREEHDL_TO_PICLHDL(node); in fpt_get_name_from_hdl() 181 cmp_node_name(picl_nodehdl_t node, const char *name) in cmp_node_name() 202 cmp_class_name(picl_nodehdl_t node, const char *name) in cmp_class_name() 226 picl_nodehdl_t picl_node; in fpt_get_root() 258 picl_nodehdl_t handle = TREEHDL_TO_PICLHDL(sibling); in fpt_get_peer() [all …]
|
/illumos-gate/usr/src/lib/libprtdiag_psr/sparc/ontario/common/ |
H A D | erie.h | 94 int erie_pci_callback(picl_nodehdl_t pcih, void *args); 95 int erie_hw_rev_callback(picl_nodehdl_t pcih, void *args); 96 int erie_get_first_compatible_value(picl_nodehdl_t nodeh, 98 int64_t erie_get_int_propval(picl_nodehdl_t modh, char *prop_name, 105 int erie_get_name(picl_nodehdl_t nodeh, char name[], int size); 106 int erie_get_model(picl_nodehdl_t nodeh, char model[], int size); 107 int erie_get_path(picl_nodehdl_t nodeh, char path[], int size); 108 int erie_get_class(picl_nodehdl_t nodeh, char piclclass[], int size);
|
H A D | huron.h | 101 int huron_pci_callback(picl_nodehdl_t pcih, void *args); 102 int huron_hw_rev_callback(picl_nodehdl_t pcih, void *args); 103 int huron_get_first_compatible_value(picl_nodehdl_t nodeh, 105 int64_t huron_get_int_propval(picl_nodehdl_t modh, char *prop_name, 109 int huron_get_name(picl_nodehdl_t nodeh, char name[], int size); 110 int huron_get_model(picl_nodehdl_t nodeh, char model[], int size); 111 int huron_get_path(picl_nodehdl_t nodeh, char path[], int size); 112 int huron_get_class(picl_nodehdl_t nodeh, char piclclass[], int size);
|
/illumos-gate/usr/src/lib/libfru/libfrupicltree/ |
H A D | frupicltree.c | 45 #define TREEHDL_TO_PICLHDL(treehdl) ((picl_nodehdl_t)treehdl) 48 #define TREESEGHDL_TO_PICLHDL(treeseghdl) ((picl_nodehdl_t)treeseghdl) 52 static picl_nodehdl_t picl_root_node; 86 update_data_nodes(picl_nodehdl_t handle) in update_data_nodes() 106 get_strprop_by_name(picl_nodehdl_t handle, char *prop_name, char **string) in get_strprop_by_name() 148 picl_nodehdl_t handle = TREEHDL_TO_PICLHDL(node); in fpt_get_name_from_hdl() 192 cmp_node_name(picl_nodehdl_t node, const char *name) in cmp_node_name() 213 cmp_class_name(picl_nodehdl_t node, const char *name) in cmp_class_name() 237 picl_nodehdl_t picl_node; in fpt_get_root() 269 picl_nodehdl_t handle = TREEHDL_TO_PICLHDL(sibling); in fpt_get_peer() [all …]
|
/illumos-gate/usr/src/cmd/picl/plugins/sun4v/pri/ |
H A D | io_dev_label.c | 30 find_node_by_string_prop(picl_nodehdl_t rooth, const char *pname, 31 const char *pval, picl_nodehdl_t *nodeh); 33 compare_string_propval(picl_nodehdl_t nodeh, const char *pname, 47 picl_nodehdl_t platnode, tpn; in io_dev_addlabel() 209 PICL_PROP_PEER, &tpn, sizeof (picl_nodehdl_t))) { in io_dev_addlabel() 243 compare_string_propval(picl_nodehdl_t nodeh, const char *pname, in compare_string_propval() 277 find_node_by_string_prop(picl_nodehdl_t rooth, const char *pname, in find_node_by_string_prop() 278 const char *pval, picl_nodehdl_t *nodeh) in find_node_by_string_prop() 280 picl_nodehdl_t childh; in find_node_by_string_prop() 284 sizeof (picl_nodehdl_t)); err != PICL_PROPNOTFOUND; in find_node_by_string_prop() [all …]
|
/illumos-gate/usr/src/lib/libprtdiag_psr/sparc/opl/common/ |
H A D | opl_picl.c | 60 static picl_errno_t do_walk(picl_nodehdl_t rooth, const char *classname, 61 void *c_args, picl_errno_t (*callback_fn)(picl_nodehdl_t hdl, void *args)); 62 static int opl_get_node_by_name(picl_nodehdl_t rooth, char *name, 63 picl_nodehdl_t *nodeh); 67 static int opl_display_pci(int syserrlog, picl_nodehdl_t plafh); 68 static picl_errno_t opl_pci_callback(picl_nodehdl_t pcih, void *args); 69 static int opl_get_first_compatible_value(picl_nodehdl_t nodeh, 71 static int picldiag_get_clock_freq(picl_nodehdl_t modh, 73 static uint64_t picldiag_get_uint_propval(picl_nodehdl_t modh, 87 opl_pci_callback(picl_nodehdl_t pcih, void *args) in opl_pci_callback() [all …]
|
/illumos-gate/usr/src/lib/libprtdiag/common/ |
H A D | pdevinfo_sun4v.c | 68 picl_errno_t sun4v_get_node_by_name(picl_nodehdl_t, char *, picl_nodehdl_t *); 83 picl_nodehdl_t rooth; /* root PICL node for IO display */ in do_prominfo() 84 picl_nodehdl_t plafh; /* Platform PICL node for IO display */ in do_prominfo() 239 sun4v_get_node_by_name(picl_nodehdl_t rooth, char *name, in sun4v_get_node_by_name() 240 picl_nodehdl_t *nodeh) in sun4v_get_node_by_name() 242 picl_nodehdl_t childh; in sun4v_get_node_by_name() 251 sizeof (picl_nodehdl_t)); in sun4v_get_node_by_name() 258 &childh, sizeof (picl_nodehdl_t)); in sun4v_get_node_by_name() 268 &childh, sizeof (picl_nodehdl_t)); in sun4v_get_node_by_name()
|
H A D | display_sun4v.c | 88 extern picl_errno_t sun4v_get_node_by_name(picl_nodehdl_t, char *, 89 picl_nodehdl_t *); 91 static picl_nodehdl_t rooth = 0, phyplatformh = 0; 92 static picl_nodehdl_t chassish = 0; 98 static int sun4v_get_first_compatible_value(picl_nodehdl_t, char **); 99 static void sun4v_display_memory_conf(picl_nodehdl_t); 111 static int is_fru_absent(picl_nodehdl_t); 114 static int openprom_callback(picl_nodehdl_t openpromh, void *arg); 119 picl_nodehdl_t plafh) in sun4v_display() 197 get_bus_type(picl_nodehdl_t nodeh, struct io_card *card) in get_bus_type() [all …]
|
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/mpxu/frudr/ |
H A D | piclfrudr.c | 351 static void add_op_status_to_node(picl_nodehdl_t nodeh, 358 static picl_nodehdl_t find_child_by_name(picl_nodehdl_t parh, char *name); 359 static void post_frudr_event(char *ename, picl_nodehdl_t parenth, 360 picl_nodehdl_t fruh); 361 static int add_prop_ref(picl_nodehdl_t nodeh, picl_nodehdl_t value, char *name); 362 static void remove_fru_parents(picl_nodehdl_t fruh); 363 static int get_node_by_class(picl_nodehdl_t nodeh, const char *classname, 364 picl_nodehdl_t *foundnodeh); 365 static int get_sys_controller_node(picl_nodehdl_t *nodeh); 366 static char *create_sys_controller_pathname(picl_nodehdl_t sysconh); [all …]
|
/illumos-gate/usr/src/lib/libprtdiag_psr/sparc/montoya/common/ |
H A D | montoya.c | 62 void sun4v_display_pci(picl_nodehdl_t plafh); 63 void sun4v_display_diaginfo(int flag, Prom_node *root, picl_nodehdl_t plafh); 67 static void sun4v_display_hw_revisions(Prom_node *root, picl_nodehdl_t plafh); 68 static int montoya_pci_callback(picl_nodehdl_t pcih, void *args); 69 static int montoya_get_first_compatible_value(picl_nodehdl_t nodeh, 71 static int64_t montoya_get_int_propval(picl_nodehdl_t modh, char *prop_name, 117 montoya_pci_callback(picl_nodehdl_t pcih, void *args) in montoya_pci_callback() 120 picl_nodehdl_t nodeh; in montoya_pci_callback() 140 sizeof (picl_nodehdl_t)); in montoya_pci_callback() 150 &nodeh, sizeof (picl_nodehdl_t)); in montoya_pci_callback() [all …]
|
/illumos-gate/usr/src/lib/libprtdiag/inc/ |
H A D | display_sun4v.h | 43 void sun4v_display_pci(picl_nodehdl_t plafh); 45 void sun4v_display_cpu_devices(picl_nodehdl_t plafh); 46 int sun4v_display_cpus(picl_nodehdl_t cpuh, void* args); 47 void sun4v_display_diaginfo(int flag, Prom_node *root, picl_nodehdl_t plafh); 48 int sun4v_display(Sys_tree *, Prom_node *, int, picl_nodehdl_t);
|
/illumos-gate/usr/src/cmd/picl/plugins/common/devtree/ |
H A D | picldevtree.c | 266 static int add_unitaddr_prop_to_subtree(picl_nodehdl_t nodeh); 267 static int get_unitaddr(picl_nodehdl_t parh, picl_nodehdl_t nodeh, 269 static void set_pci_pciex_deviceid(picl_nodehdl_t plafh); 283 picl_nodehdl_t mch; in mc_completion_handler() 309 post_mc_event(char *ename, picl_nodehdl_t mch) in post_mc_event() 642 add_string_list_prop(picl_nodehdl_t nodeh, char *name, char *strlist, in add_string_list_prop() 708 compare_string_propval(picl_nodehdl_t nodeh, const char *pname, in compare_string_propval() 747 find_node_by_string_prop(picl_nodehdl_t rooth, const char *pname, in find_node_by_string_prop() 748 const char *pval, picl_nodehdl_t *nodeh) in find_node_by_string_prop() 750 picl_nodehdl_t childh; in find_node_by_string_prop() [all …]
|
/illumos-gate/usr/src/cmd/picl/plugins/common/memcfg/ |
H A D | piclmemcfg_comm.c | 117 static picl_nodehdl_t *msegh_info; 133 picl_nodehdl_t mmgh; 134 picl_nodehdl_t mch; 162 del_plugout_mmodgrp(picl_nodehdl_t mch) in del_plugout_mmodgrp() 187 find_mem_mod_grp_hdl(int id, picl_nodehdl_t *mmodgrph) in find_mem_mod_grp_hdl() 239 add_mem_banks(picl_nodehdl_t msegh, int fd, struct mc_segment *mcseg) in add_mem_banks() 243 static picl_nodehdl_t mmodgrph; in add_mem_banks() 338 PICL_PTYPE_REFERENCE, PICL_READ, sizeof (picl_nodehdl_t), in add_mem_banks() 370 create_logical_tree(picl_nodehdl_t memh, int fd) in create_logical_tree() 374 picl_nodehdl_t msegh; in create_logical_tree() [all …]
|
/illumos-gate/usr/src/lib/libprtdiag_psr/sparc/monza/common/ |
H A D | monza.c | 62 void sun4v_display_pci(picl_nodehdl_t plafh); 63 void sun4v_display_diaginfo(int flag, Prom_node *root, picl_nodehdl_t plafh); 69 static void sun4v_display_hw_revisions(Prom_node *root, picl_nodehdl_t plafh); 70 static int monza_pci_callback(picl_nodehdl_t pcih, void *args); 71 static int monza_get_first_compatible_value(picl_nodehdl_t nodeh, 73 static int64_t monza_get_int_propval(picl_nodehdl_t modh, char *prop_name, 144 monza_pci_callback(picl_nodehdl_t pcih, void *args) in monza_pci_callback() 147 picl_nodehdl_t nodeh; in monza_pci_callback() 168 sizeof (picl_nodehdl_t)); in monza_pci_callback() 183 &nodeh, sizeof (picl_nodehdl_t)); in monza_pci_callback() [all …]
|
/illumos-gate/usr/src/lib/libprtdiag_psr/sparc/cherrystone/common/ |
H A D | cherrystone.c | 81 static int print_temps(picl_nodehdl_t); 82 static int print_keyswitch(picl_nodehdl_t); 83 static int print_FSP_LEDS(picl_nodehdl_t); 84 static int print_disk(picl_nodehdl_t); 85 static int print_fans(picl_nodehdl_t); 86 static int print_ps(picl_nodehdl_t); 434 picl_nodehdl_t system_node, root; in disp_envc_status() 476 print_ps(picl_nodehdl_t system_node) in print_ps() 480 picl_nodehdl_t *ps; in print_ps() 481 picl_nodehdl_t *ps_fail_sensor; in print_ps() [all …]
|