/illumos-gate/usr/src/lib/fm/topo/libtopo/common/ |
H A D | topo_mod.h | 49 typedef struct topo_mod topo_mod_t; typedef 51 typedef int topo_method_f(topo_mod_t *, tnode_t *, topo_version_t, nvlist_t *, 53 typedef int topo_enum_f(topo_mod_t *, tnode_t *, const char *, topo_instance_t, 55 typedef void topo_release_f(topo_mod_t *, tnode_t *); 77 extern topo_mod_t *topo_mod_load(topo_mod_t *, const char *, topo_version_t); 78 extern void topo_mod_unload(topo_mod_t *); 79 extern int topo_mod_register(topo_mod_t *, const topo_modinfo_t *, 81 extern void topo_mod_unregister(topo_mod_t *); 82 extern int topo_mod_enumerate(topo_mod_t *, tnode_t *, const char *, 84 extern int topo_mod_enummap(topo_mod_t *mod, tnode_t *, const char *, [all …]
|
H A D | topo_parse.h | 91 topo_mod_t *rd_mod; /* pointer to loaded enumerator */ 206 extern tf_rdata_t *tf_rdata_new(topo_mod_t *, 208 extern tf_idata_t *tf_idata_new(topo_mod_t *, topo_instance_t, tnode_t *); 209 extern tf_info_t *topo_xml_read(topo_mod_t *, const char *, const char *); 210 extern tf_info_t *tf_info_new(topo_mod_t *, xmlDocPtr, xmlChar *); 211 extern tf_pad_t *tf_pad_new(topo_mod_t *, int, int); 212 extern void topo_xml_cleanup(topo_mod_t *, tf_info_t *); 213 extern void tf_rdata_free(topo_mod_t *, tf_rdata_t *); 214 extern void tf_edata_free(topo_mod_t *, tf_edata_t *); 215 extern void tf_idata_free(topo_mod_t *, tf_idata_t *); [all …]
|
H A D | topo_module.c | 52 topo_mod_release(topo_mod_t *mod, tnode_t *node) in topo_mod_release() 63 topo_mod_hold(topo_mod_t *mod) in topo_mod_hold() 72 topo_mod_rele(topo_mod_t *mod) in topo_mod_rele() 88 topo_mod_enter(topo_mod_t *mod) in topo_mod_enter() 101 topo_mod_exit(topo_mod_t *mod) in topo_mod_exit() 125 topo_mod_stop(topo_mod_t *mod) in topo_mod_stop() 140 topo_mod_start(topo_mod_t *mod, topo_version_t version) in topo_mod_start() 167 topo_mod_t * 170 topo_mod_t *mod; in topo_mod_lookup() 183 topo_mod_destroy(topo_mod_t *mod) in topo_mod_destroy() [all …]
|
H A D | topo_module.h | 86 extern void topo_mod_enter(topo_mod_t *); 87 extern void topo_mod_exit(topo_mod_t *); 88 extern void topo_mod_hold(topo_mod_t *); 89 extern void topo_mod_rele(topo_mod_t *); 93 extern topo_mod_t *topo_modhash_lookup(topo_modhash_t *, const char *); 94 extern topo_mod_t *topo_modhash_load(topo_hdl_t *, const char *, const char *, 96 extern void topo_modhash_unload(topo_mod_t *); 99 extern void topo_mod_release(topo_mod_t *, tnode_t *); 100 extern topo_mod_t *topo_mod_lookup(topo_hdl_t *, const char *, int);
|
H A D | topo_mod.c | 117 topo_mod_t * 118 topo_mod_load(topo_mod_t *pmod, const char *name, in topo_mod_load() 123 topo_mod_t *mod = NULL; in topo_mod_load() 158 topo_mod_unload(topo_mod_t *mod) in topo_mod_unload() 164 set_register_error(topo_mod_t *mod, int err) in set_register_error() 177 topo_mod_register(topo_mod_t *mod, const topo_modinfo_t *mip, in topo_mod_register() 216 topo_mod_unregister(topo_mod_t *mod) in topo_mod_unregister() 242 topo_mod_enumerate(topo_mod_t *mod, tnode_t *node, const char *enum_name, in topo_mod_enumerate() 246 topo_mod_t *enum_mod; in topo_mod_enumerate() 282 topo_mod_enummap(topo_mod_t *mod, tnode_t *node, const char *name, in topo_mod_enummap() [all …]
|
H A D | fmd.c | 45 static int fmd_enum(topo_mod_t *, tnode_t *, const char *, topo_instance_t, 47 static void fmd_release(topo_mod_t *, tnode_t *); 48 static int fmd_fmri_nvl2str(topo_mod_t *, tnode_t *, topo_version_t, 63 fmd_init(topo_mod_t *mod, topo_version_t version) in fmd_init() 86 fmd_fini(topo_mod_t *mod) in fmd_fini() 94 fmd_enum(topo_mod_t *mod, tnode_t *pnode, const char *name, topo_instance_t min, in fmd_enum() 108 fmd_release(topo_mod_t *mp, tnode_t *node) in fmd_release() 127 fmd_fmri_nvl2str(topo_mod_t *mod, tnode_t *node, topo_version_t version, in fmd_fmri_nvl2str()
|
H A D | mod.c | 45 static int mod_enum(topo_mod_t *, tnode_t *, const char *, topo_instance_t, 47 static void mod_release(topo_mod_t *, tnode_t *); 48 static int mod_fmri_create_meth(topo_mod_t *, tnode_t *, topo_version_t, 50 static int mod_fmri_nvl2str(topo_mod_t *, tnode_t *, topo_version_t, 67 mod_init(topo_mod_t *mod, topo_version_t version) in mod_init() 86 mod_fini(topo_mod_t *mod) in mod_fini() 93 mod_enum(topo_mod_t *mod, tnode_t *pnode, const char *name, in mod_enum() 106 mod_release(topo_mod_t *mod, tnode_t *node) in mod_release() 112 mod_binary_path_get(topo_mod_t *mp, const char *objpath) in mod_binary_path_get() 170 mod_nvl_data(topo_mod_t *mp, nvlist_t *out, const char *path) in mod_nvl_data() [all …]
|
H A D | pkg.c | 50 static int pkg_enum(topo_mod_t *, tnode_t *, const char *, topo_instance_t, 52 static void pkg_release(topo_mod_t *, tnode_t *); 53 static int pkg_fmri_create_meth(topo_mod_t *, tnode_t *, topo_version_t, 55 static int pkg_fmri_nvl2str(topo_mod_t *, tnode_t *, topo_version_t, 72 pkg_init(topo_mod_t *mod, topo_version_t version) in pkg_init() 91 pkg_fini(topo_mod_t *mod) in pkg_fini() 98 pkg_enum(topo_mod_t *mod, tnode_t *pnode, const char *name, in pkg_enum() 111 pkg_release(topo_mod_t *mod, tnode_t *node) in pkg_release() 117 read_thru(topo_mod_t *mp, FILE *fp, const char *substr) in read_thru() 134 construct_fru_fmri(topo_mod_t *mp, const char *pkgname, FILE *fp) in construct_fru_fmri() [all …]
|
H A D | dev.c | 43 static int dev_enum(topo_mod_t *, tnode_t *, const char *, topo_instance_t, 45 static void dev_release(topo_mod_t *, tnode_t *); 46 static int dev_fmri_nvl2str(topo_mod_t *, tnode_t *, topo_version_t, 48 static int dev_fmri_str2nvl(topo_mod_t *, tnode_t *, topo_version_t, 50 static int dev_fmri_create_meth(topo_mod_t *, tnode_t *, topo_version_t, 52 static int dev_fmri_present(topo_mod_t *, tnode_t *, topo_version_t, 54 static int dev_fmri_replaced(topo_mod_t *, tnode_t *, topo_version_t, 56 static int dev_fmri_unusable(topo_mod_t *, tnode_t *, topo_version_t, 58 static int dev_fmri_service_state(topo_mod_t *, tnode_t *, topo_version_t, 88 dev_init(topo_mod_t *mod, topo_version_t version) in dev_init() [all …]
|
H A D | legacy_hc.c | 45 static int legacy_hc_enum(topo_mod_t *, tnode_t *, const char *, 47 static void legacy_hc_release(topo_mod_t *, tnode_t *); 48 static int legacy_hc_fmri_nvl2str(topo_mod_t *, tnode_t *, topo_version_t, 63 legacy_hc_init(topo_mod_t *mod, topo_version_t version) in legacy_hc_init() 86 legacy_hc_fini(topo_mod_t *mod) in legacy_hc_fini() 94 legacy_hc_enum(topo_mod_t *mod, tnode_t *pnode, const char *name, in legacy_hc_enum() 103 legacy_hc_release(topo_mod_t *mp, tnode_t *node) in legacy_hc_release() 159 fmri_nvl2str(topo_mod_t *mod, nvlist_t *nvl, char *buf, size_t buflen) in fmri_nvl2str() 183 legacy_hc_fmri_nvl2str(topo_mod_t *mod, tnode_t *node, topo_version_t version, in legacy_hc_fmri_nvl2str()
|
H A D | mem.c | 46 static int mem_enum(topo_mod_t *, tnode_t *, const char *, topo_instance_t, 48 static void mem_release(topo_mod_t *, tnode_t *); 49 static int mem_nvl2str(topo_mod_t *, tnode_t *, topo_version_t, nvlist_t *, 51 static int mem_fmri_create(topo_mod_t *, tnode_t *, topo_version_t, 68 mem_init(topo_mod_t *mod, topo_version_t version) in mem_init() 87 mem_fini(topo_mod_t *mod) in mem_fini() 94 mem_enum(topo_mod_t *mod, tnode_t *pnode, const char *name, in mem_enum() 98 topo_mod_t *nmp; in mem_enum() 128 mem_release(topo_mod_t *mod, tnode_t *node) in mem_release() 185 mem_nvl2str(topo_mod_t *mod, tnode_t *node, topo_version_t version, in mem_nvl2str() [all …]
|
H A D | cpu.c | 45 static int cpu_enum(topo_mod_t *, tnode_t *, const char *, topo_instance_t, 47 static void cpu_release(topo_mod_t *, tnode_t *); 48 static int cpu_nvl2str(topo_mod_t *, tnode_t *, topo_version_t, nvlist_t *, 50 static int cpu_str2nvl(topo_mod_t *, tnode_t *, topo_version_t, nvlist_t *, 52 static int cpu_fmri_asru(topo_mod_t *, tnode_t *, topo_version_t, nvlist_t *, 54 static int cpu_fmri_create_meth(topo_mod_t *, tnode_t *, topo_version_t, 56 static nvlist_t *fmri_create(topo_mod_t *, uint32_t, uint8_t, char *); 78 cpu_init(topo_mod_t *mod, topo_version_t version) in cpu_init() 123 cpu_fini(topo_mod_t *mod) in cpu_fini() 159 cpu_create(topo_mod_t *mod, tnode_t *rnode, const char *name, in cpu_create() [all …]
|
H A D | hc.c | 54 static int hc_enum(topo_mod_t *, tnode_t *, const char *, topo_instance_t, 56 static void hc_release(topo_mod_t *, tnode_t *); 57 static int hc_fmri_nvl2str(topo_mod_t *, tnode_t *, topo_version_t, 59 static int hc_fmri_str2nvl(topo_mod_t *, tnode_t *, topo_version_t, 61 static int hc_compare(topo_mod_t *, tnode_t *, topo_version_t, nvlist_t *, 63 static int hc_fmri_present(topo_mod_t *, tnode_t *, topo_version_t, nvlist_t *, 65 static int hc_fmri_replaced(topo_mod_t *, tnode_t *, topo_version_t, nvlist_t *, 67 static int hc_fmri_unusable(topo_mod_t *, tnode_t *, topo_version_t, nvlist_t *, 69 static int hc_fmri_expand(topo_mod_t *, tnode_t *, topo_version_t, 71 static int hc_fmri_retire(topo_mod_t *, tnode_t *, topo_version_t, nvlist_t *, [all …]
|
H A D | zfs.c | 47 static int zfs_enum(topo_mod_t *, tnode_t *, const char *, topo_instance_t, 49 static void zfs_rele(topo_mod_t *, tnode_t *); 50 static int zfs_fmri_nvl2str(topo_mod_t *, tnode_t *, topo_version_t, 69 zfs_init(topo_mod_t *mod, topo_version_t version) in zfs_init() 104 zfs_fini(topo_mod_t *mod) in zfs_fini() 119 zfs_enum(topo_mod_t *mod, tnode_t *pnode, const char *name, topo_instance_t min, in zfs_enum() 133 zfs_rele(topo_mod_t *mp, tnode_t *node) in zfs_rele() 197 zfs_fmri_nvl2str(topo_mod_t *mod, tnode_t *node, topo_version_t version, in zfs_fmri_nvl2str()
|
H A D | svc.c | 58 static int svc_fmri_nvl2str(topo_mod_t *, tnode_t *, topo_version_t, 60 static int svc_fmri_str2nvl(topo_mod_t *, tnode_t *, topo_version_t, 62 static int svc_fmri_present(topo_mod_t *, tnode_t *, topo_version_t, 64 static int svc_fmri_replaced(topo_mod_t *, tnode_t *, topo_version_t, 66 static int svc_fmri_service_state(topo_mod_t *, tnode_t *, topo_version_t, 68 static int svc_fmri_unusable(topo_mod_t *, tnode_t *, topo_version_t, 70 static int svc_fmri_prop_get(topo_mod_t *, tnode_t *, topo_version_t, 95 static int svc_enum(topo_mod_t *, tnode_t *, const char *, topo_instance_t, 97 static void svc_release(topo_mod_t *, tnode_t *); 105 svc_error(topo_mod_t *mod) in svc_error() [all …]
|
/illumos-gate/usr/src/lib/fm/topo/modules/i86pc/chip/ |
H A D | chip.h | 123 extern int simple_dimm_label(topo_mod_t *, tnode_t *, topo_version_t, 125 extern int simple_dimm_label_mp(topo_mod_t *, tnode_t *, topo_version_t, 127 extern int seq_dimm_label(topo_mod_t *, tnode_t *, topo_version_t, 129 extern int g4_dimm_label(topo_mod_t *, tnode_t *, topo_version_t, nvlist_t *, 132 extern int g12f_dimm_label(topo_mod_t *, tnode_t *, topo_version_t, nvlist_t *, 135 extern int simple_chip_label(topo_mod_t *, tnode_t *, topo_version_t, 137 extern int g4_chip_label(topo_mod_t *, tnode_t *, topo_version_t, 139 extern int a4fplus_chip_label(topo_mod_t *, tnode_t *, topo_version_t, 141 extern int simple_cs_label_mp(topo_mod_t *, tnode_t *, topo_version_t, 143 extern int get_dimm_serial(topo_mod_t *, tnode_t *, topo_version_t, nvlist_t *, [all …]
|
H A D | chip_subr.c | 44 static void fmri_dprint(topo_mod_t *, const char *, uint32_t, nvlist_t *); 52 whinge(topo_mod_t *mod, int *nerr, const char *fmt, ...) in whinge() 74 nvprop_add(topo_mod_t *mod, nvpair_t *nvp, const char *pgname, tnode_t *node) in nvprop_add() 149 add_nvlist_strprop(topo_mod_t *mod, tnode_t *node, nvlist_t *nvl, in add_nvlist_strprop() 176 add_nvlist_longprop(topo_mod_t *mod, tnode_t *node, nvlist_t *nvl, in add_nvlist_longprop() 203 add_nvlist_longprops(topo_mod_t *mod, tnode_t *node, nvlist_t *nvl, in add_nvlist_longprops() 229 mkrsrc(topo_mod_t *mod, tnode_t *pnode, const char *name, int inst, in mkrsrc() 242 cpu_fmri_create(topo_mod_t *mod, uint32_t cpuid, char *s, uint8_t cpumask) in cpu_fmri_create() 267 mem_asru_compute(topo_mod_t *mod, tnode_t *node, topo_version_t version, in mem_asru_compute() 341 set_retnvl(topo_mod_t *mod, nvlist_t **out, const char *retname, uint32_t ret) in set_retnvl() [all …]
|
/illumos-gate/usr/src/lib/fm/topo/modules/i86pc/x86pi/ |
H A D | x86pi_impl.h | 121 topo_mod_t *mod; /* Topo module handle */ 161 smbios_hdl_t *x86pi_smb_open(topo_mod_t *); 162 void x86pi_smb_strcnt(topo_mod_t *, smbs_cnt_t *); 163 int x86pi_check_comp(topo_mod_t *); 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); [all …]
|
/illumos-gate/usr/src/lib/fm/topo/modules/common/pcibus/ |
H A D | pcibus.h | 66 extern tnode_t *pcibus_declare(topo_mod_t *, tnode_t *, di_node_t, 68 extern tnode_t *pcidev_declare(topo_mod_t *, tnode_t *, di_node_t, 70 extern tnode_t *pcifn_declare(topo_mod_t *, tnode_t *, di_node_t, 72 extern tnode_t *pciexbus_declare(topo_mod_t *, tnode_t *, di_node_t, 74 extern tnode_t *pciexdev_declare(topo_mod_t *, tnode_t *, di_node_t, 76 extern tnode_t *pciexfn_declare(topo_mod_t *, tnode_t *, di_node_t, 78 extern int pci_children_instantiate(topo_mod_t *, tnode_t *, di_node_t, 81 extern int platform_pci_label(topo_mod_t *, tnode_t *, nvlist_t *, nvlist_t **); 82 extern int pci_create_dev_sensors(topo_mod_t *, tnode_t *);
|
H A D | did.h | 40 extern did_t *did_create(topo_mod_t *, di_node_t, int, int, int, 42 extern did_t *did_find(topo_mod_t *, di_node_t); 43 extern did_t *did_hash_lookup(topo_mod_t *, di_node_t); 44 extern void did_hash_insert(topo_mod_t *, di_node_t, did_t *); 45 extern void did_hash_fini(topo_mod_t *); 46 extern int did_hash_init(topo_mod_t *); 47 extern void did_link_set(topo_mod_t *, tnode_t *, did_t *); 48 extern void did_setspecific(topo_mod_t *, void *); 50 extern topo_mod_t *did_mod(did_t *);
|
H A D | did_props.h | 87 extern char *pci_devtype_get(topo_mod_t *, di_node_t); 88 extern int pciex_cap_get(topo_mod_t *, di_node_t); 89 extern int pci_BDF_get(topo_mod_t *, di_node_t, int *, int *, int *); 90 extern int pci_classcode_get(topo_mod_t *, di_node_t, uint_t *, uint_t *); 92 extern int di_uintprop_get(topo_mod_t *, di_node_t, const char *, uint_t *); 93 extern int di_bytes_get(topo_mod_t *, di_node_t, const char *, int *, 95 extern int FRU_fmri_set(topo_mod_t *, tnode_t *);
|
H A D | pcibus.c | 62 extern int platform_pci_label(topo_mod_t *mod, tnode_t *, nvlist_t *, 64 extern int platform_pci_fru(topo_mod_t *mod, tnode_t *, nvlist_t *, 66 static void pci_release(topo_mod_t *, tnode_t *); 67 static int pci_enum(topo_mod_t *, tnode_t *, const char *, topo_instance_t, 69 static int pci_label(topo_mod_t *, tnode_t *, topo_version_t, nvlist_t *, 71 static int pci_fru(topo_mod_t *, tnode_t *, topo_version_t, nvlist_t *, 88 _topo_init(topo_mod_t *modhdl, topo_version_t version) in _topo_init() 110 _topo_fini(topo_mod_t *modhdl) in _topo_fini() 116 pci_label(topo_mod_t *mp, tnode_t *node, topo_version_t version, in pci_label() 124 pci_fru(topo_mod_t *mp, tnode_t *node, topo_version_t version, in pci_fru() [all …]
|
H A D | pcibus_labels.h | 65 int (*srw_test)(topo_mod_t *, did_t *); /* test function */ 91 int (*dl_test)(topo_mod_t *, did_t *); /* test function */ 105 extern int pci_label_cmn(topo_mod_t *mod, tnode_t *, nvlist_t *, nvlist_t **); 106 extern int pci_fru_cmn(topo_mod_t *mod, tnode_t *, nvlist_t *, nvlist_t **); 107 extern char *pci_slot_label_lookup(topo_mod_t *, tnode_t *, did_t *, did_t *);
|
/illumos-gate/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 *, 86 _topo_init(topo_mod_t *modhdl, topo_version_t version) in _topo_init() 110 _topo_fini(topo_mod_t *modhdl) in _topo_fini() 116 hb_label(topo_mod_t *mp, tnode_t *node, topo_version_t version, in hb_label() 124 static topo_mod_t * [all …]
|
/illumos-gate/usr/src/lib/fm/topo/modules/common/disk/ |
H A D | disk.h | 124 extern int dev_list_gather(topo_mod_t *, struct topo_list *); 125 extern void dev_list_free(topo_mod_t *, struct topo_list *); 126 extern int disk_declare_non_enumerated(topo_mod_t *, tnode_t *, tnode_t **); 127 extern int disk_declare_path(topo_mod_t *, tnode_t *, 129 extern int disk_declare_addr(topo_mod_t *, tnode_t *, 131 extern int disk_declare_bridge(topo_mod_t *, tnode_t *, 133 extern char *disk_auth_clean(topo_mod_t *, const char *);
|