Home
last modified time | relevance | path

Searched refs:topo_mod_t (Results 1 – 25 of 146) sorted by relevance

123456

/titanic_50/usr/src/lib/fm/topo/libtopo/common/
H A Dtopo_mod.h43 typedef struct topo_mod topo_mod_t; typedef
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 *);
71 extern topo_mod_t *topo_mod_load(topo_mod_t *, const char *, topo_version_t);
72 extern void topo_mod_unload(topo_mod_t *);
73 extern int topo_mod_register(topo_mod_t *, const topo_modinfo_t *,
75 extern void topo_mod_unregister(topo_mod_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 *,
[all …]
H A Dtopo_parse.h88 topo_mod_t *rd_mod; /* pointer to loaded enumerator */
202 extern tf_rdata_t *tf_rdata_new(topo_mod_t *,
204 extern tf_idata_t *tf_idata_new(topo_mod_t *, topo_instance_t, tnode_t *);
205 extern tf_info_t *topo_xml_read(topo_mod_t *, const char *, const char *);
206 extern tf_info_t *tf_info_new(topo_mod_t *, xmlDocPtr, xmlChar *);
207 extern tf_pad_t *tf_pad_new(topo_mod_t *, int, int);
208 extern void topo_xml_cleanup(topo_mod_t *, tf_info_t *);
209 extern void tf_rdata_free(topo_mod_t *, tf_rdata_t *);
210 extern void tf_edata_free(topo_mod_t *, tf_edata_t *);
211 extern void tf_idata_free(topo_mod_t *, tf_idata_t *);
[all …]
H A Dtopo_module.h88 extern void topo_mod_enter(topo_mod_t *);
89 extern void topo_mod_exit(topo_mod_t *);
90 extern void topo_mod_hold(topo_mod_t *);
91 extern void topo_mod_rele(topo_mod_t *);
95 extern topo_mod_t *topo_modhash_lookup(topo_modhash_t *, const char *);
96 extern topo_mod_t *topo_modhash_load(topo_hdl_t *, const char *, const char *,
98 extern void topo_modhash_unload(topo_mod_t *);
101 extern void topo_mod_release(topo_mod_t *, tnode_t *);
102 extern topo_mod_t *topo_mod_lookup(topo_hdl_t *, const char *, int);
H A Dtopo_module.c49 topo_mod_release(topo_mod_t *mod, tnode_t *node) in topo_mod_release()
60 topo_mod_hold(topo_mod_t *mod) in topo_mod_hold()
69 topo_mod_rele(topo_mod_t *mod) in topo_mod_rele()
85 topo_mod_enter(topo_mod_t *mod) in topo_mod_enter()
98 topo_mod_exit(topo_mod_t *mod) in topo_mod_exit()
122 topo_mod_stop(topo_mod_t *mod) in topo_mod_stop()
137 topo_mod_start(topo_mod_t *mod, topo_version_t version) in topo_mod_start()
164 topo_mod_t *
167 topo_mod_t *mod; in topo_mod_lookup()
180 topo_mod_destroy(topo_mod_t *mod) in topo_mod_destroy()
[all …]
H A Dtopo_mod.c111 topo_mod_t *
112 topo_mod_load(topo_mod_t *pmod, const char *name, in topo_mod_load()
117 topo_mod_t *mod = NULL; in topo_mod_load()
152 topo_mod_unload(topo_mod_t *mod) in topo_mod_unload()
158 set_register_error(topo_mod_t *mod, int err) in set_register_error()
171 topo_mod_register(topo_mod_t *mod, const topo_modinfo_t *mip, in topo_mod_register()
210 topo_mod_unregister(topo_mod_t *mod) in topo_mod_unregister()
236 topo_mod_enumerate(topo_mod_t *mod, tnode_t *node, const char *enum_name, in topo_mod_enumerate()
240 topo_mod_t *enum_mod; in topo_mod_enumerate()
276 topo_mod_enummap(topo_mod_t *mod, tnode_t *node, const char *name, in topo_mod_enummap()
[all …]
H A Dfmd.c45 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 Dlegacy_hc.c47 static int legacy_hc_enum(topo_mod_t *, tnode_t *, const char *,
49 static void legacy_hc_release(topo_mod_t *, tnode_t *);
50 static int legacy_hc_fmri_nvl2str(topo_mod_t *, tnode_t *, topo_version_t,
65 legacy_hc_init(topo_mod_t *mod, topo_version_t version) in legacy_hc_init()
88 legacy_hc_fini(topo_mod_t *mod) in legacy_hc_fini()
96 legacy_hc_enum(topo_mod_t *mod, tnode_t *pnode, const char *name, in legacy_hc_enum()
105 legacy_hc_release(topo_mod_t *mp, tnode_t *node) in legacy_hc_release()
161 fmri_nvl2str(topo_mod_t *mod, nvlist_t *nvl, char *buf, size_t buflen) in fmri_nvl2str()
185 legacy_hc_fmri_nvl2str(topo_mod_t *mod, tnode_t *node, topo_version_t version, in legacy_hc_fmri_nvl2str()
H A Dmod.c45 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 Dpkg.c50 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 Ddev.c43 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 Dmem.c46 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 …]
/titanic_50/usr/src/lib/fm/topo/modules/i86pc/chip/
H A Dchip.h119 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 …]
H A Dchip_subr.c42 static void fmri_dprint(topo_mod_t *, const char *, uint32_t, nvlist_t *);
50 whinge(topo_mod_t *mod, int *nerr, const char *fmt, ...) in whinge()
72 nvprop_add(topo_mod_t *mod, nvpair_t *nvp, const char *pgname, tnode_t *node) in nvprop_add()
147 add_nvlist_strprop(topo_mod_t *mod, tnode_t *node, nvlist_t *nvl, in add_nvlist_strprop()
174 add_nvlist_longprop(topo_mod_t *mod, tnode_t *node, nvlist_t *nvl, in add_nvlist_longprop()
201 add_nvlist_longprops(topo_mod_t *mod, tnode_t *node, nvlist_t *nvl, in add_nvlist_longprops()
227 mkrsrc(topo_mod_t *mod, tnode_t *pnode, const char *name, int inst, in mkrsrc()
240 cpu_fmri_create(topo_mod_t *mod, uint32_t cpuid, char *s, uint8_t cpumask) in cpu_fmri_create()
265 mem_asru_compute(topo_mod_t *mod, tnode_t *node, topo_version_t version, in mem_asru_compute()
339 set_retnvl(topo_mod_t *mod, nvlist_t **out, const char *retname, uint32_t ret) in set_retnvl()
[all …]
/titanic_50/usr/src/lib/fm/topo/modules/sun4v/sun4vpi/
H A Dpi_impl.h83 topo_mod_t *mod; /* Topo module handle */
101 typedef int pi_enum_fn_t(topo_mod_t *, md_t *, mde_cookie_t, topo_instance_t,
113 int pi_enum_generic_impl(topo_mod_t *, md_t *, mde_cookie_t, topo_instance_t,
123 typedef int pi_deferenum_fn_t(topo_mod_t *, md_t *, mde_cookie_t,
126 int pi_defer_add(topo_mod_t *, mde_cookie_t, tnode_t *, tnode_t *,
128 int pi_defer_exec(topo_mod_t *, md_t *);
131 int pi_enum_update(topo_mod_t *, md_t *, mde_cookie_t, tnode_t *, tnode_t *,
135 int pi_ldompri_open(topo_mod_t *, pi_enum_t *);
136 void pi_ldompri_close(topo_mod_t *, pi_enum_t *);
142 int pi_walker_init(topo_mod_t *);
[all …]
/titanic_50/usr/src/lib/fm/topo/modules/i86pc/x86pi/
H A Dx86pi_impl.h121 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 …]
/titanic_50/usr/src/lib/fm/topo/modules/common/pcibus/
H A Ddid.h40 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 Dpcibus.h68 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 Ddid_props.h76 extern char *pci_devtype_get(topo_mod_t *, di_node_t);
77 extern int pciex_cap_get(topo_mod_t *, di_node_t);
78 extern int pci_BDF_get(topo_mod_t *, di_node_t, int *, int *, int *);
79 extern int pci_classcode_get(topo_mod_t *, di_node_t, uint_t *, uint_t *);
81 extern int di_uintprop_get(topo_mod_t *, di_node_t, const char *, uint_t *);
82 extern int di_bytes_get(topo_mod_t *, di_node_t, const char *, int *,
84 extern int FRU_fmri_set(topo_mod_t *, tnode_t *);
H A Dpcibus.c56 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 *,
82 _topo_init(topo_mod_t *modhdl, topo_version_t version) in _topo_init()
104 _topo_fini(topo_mod_t *modhdl) in _topo_fini()
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()
[all …]
/titanic_50/usr/src/lib/fm/topo/modules/common/hostbridge/
H A Dhostbridge.c47 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 …]
/titanic_50/usr/src/lib/fm/topo/modules/sun4/ioboard/
H A Dioboard.c47 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 **);
72 _topo_init(topo_mod_t *modhdl) in _topo_init()
87 _topo_fini(topo_mod_t *modhdl) in _topo_fini()
93 iob_label(topo_mod_t *mp, tnode_t *node, topo_version_t version, in iob_label()
101 static topo_mod_t *
102 hb_enumr_load(topo_mod_t *mp) in hb_enumr_load()
[all …]
/titanic_50/usr/src/lib/fm/topo/modules/sun4/hostbridge/
H A Dhb_sun4.h50 extern busorrc_t *busorrc_new(topo_mod_t *, const char *, di_node_t);
51 extern void busorrc_insert(topo_mod_t *, busorrc_t **, busorrc_t *);
52 extern int busorrc_add(topo_mod_t *, busorrc_t **, di_node_t);
53 extern void busorrc_free(topo_mod_t *, busorrc_t *);
55 extern tnode_t *rc_process(topo_mod_t *, tnode_t *, topo_instance_t, di_node_t);
56 extern int declare_buses(topo_mod_t *, busorrc_t *, tnode_t *, int);
57 extern int declare_exbuses(topo_mod_t *, busorrc_t *, tnode_t *, int, int);
/titanic_50/usr/src/lib/fm/topo/modules/common/disk/
H A Ddisk.h103 extern int dev_list_gather(topo_mod_t *, struct topo_list *);
104 extern void dev_list_free(topo_mod_t *, struct topo_list *);
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 *,
110 extern int disk_declare_bridge(topo_mod_t *, tnode_t *,
112 extern char *disk_auth_clean(topo_mod_t *, const char *);
/titanic_50/usr/src/lib/fm/topo/modules/sun4v/niu/
H A Dniu.c51 static int niu_enum(topo_mod_t *, tnode_t *, const char *, topo_instance_t,
65 _topo_init(topo_mod_t *mod, topo_version_t version) in _topo_init()
83 _topo_fini(topo_mod_t *mod) in _topo_fini()
89 const char *tpgrp, const char *tpnm, topo_mod_t *mod) in devprop_set()
108 const char *tpgrp, const char *tpnm, topo_mod_t *mod) in driverprop_set()
123 const char *tpgrp, const char *tpnm, topo_mod_t *mod) in moduleprop_set()
145 niu_tnode_create(topo_mod_t *mod, tnode_t *parent, in niu_tnode_create()
187 niu_asru_set(tnode_t *tn, di_node_t dn, topo_mod_t *mod) in niu_asru_set()
219 void *priv, topo_mod_t *mod) in niu_declare()
245 void *priv, topo_mod_t *mod) in niufn_declare()
[all …]
/titanic_50/usr/src/lib/fm/topo/modules/sun4v/platform-mem/
H A Dmem.c51 static int mem_enum(topo_mod_t *, tnode_t *, const char *, topo_instance_t,
53 static void mem_release(topo_mod_t *, tnode_t *);
54 static int mem_present(topo_mod_t *, tnode_t *, topo_version_t, nvlist_t *,
56 static int mem_replaced(topo_mod_t *, tnode_t *, topo_version_t, nvlist_t *,
58 static int mem_expand(topo_mod_t *, tnode_t *, topo_version_t, nvlist_t *,
60 static int mem_unusable(topo_mod_t *, tnode_t *, topo_version_t, nvlist_t *,
62 static int mem_contains(topo_mod_t *, tnode_t *, topo_version_t, nvlist_t *,
86 _topo_init(topo_mod_t *mod) in _topo_init()
120 _topo_fini(topo_mod_t *mod) in _topo_fini()
136 mem_present(topo_mod_t *mod, tnode_t *node, topo_version_t vers, in mem_present()
[all …]

123456