Lines Matching refs:ch_hcfmri
45 x86pi_hcfmri_t ch_hcfmri;
57 bzero(&ch_hcfmri, sizeof (x86pi_hcfmri_t));
72 ch_hcfmri.serial_number = x86pi_cleanup_smbios_str(mod,
74 ch_hcfmri.version = x86pi_cleanup_smbios_str(mod, ip.smbi_version, 0);
75 ch_hcfmri.manufacturer = x86pi_cleanup_smbios_str(mod,
79 ch_hcfmri.hc_name = topo_mod_strdup(mod, "chassis");
80 ch_hcfmri.instance = instance;
82 topo_mod_dprintf(mod, "%s: instance (%d)\n", f, ch_hcfmri.instance);
83 topo_mod_dprintf(mod, "%s: hc name (%s)\n", f, ch_hcfmri.hc_name);
85 f, ch_hcfmri.serial_number);
86 topo_mod_dprintf(mod, "%s: Version (%s)\n", f, ch_hcfmri.version);
88 f, ch_hcfmri.manufacturer);
93 rv = x86pi_enum_generic(mod, &ch_hcfmri, t_parent, NULL,
96 rv = x86pi_enum_generic(mod, &ch_hcfmri, t_parent, t_parent,
106 if (ch_hcfmri.serial_number != NULL) {
107 topo_mod_strfree(mod, (char *)ch_hcfmri.serial_number);
109 if (ch_hcfmri.version != NULL) {
110 topo_mod_strfree(mod, (char *)ch_hcfmri.version);
112 if (ch_hcfmri.manufacturer != NULL) {
113 topo_mod_strfree(mod, (char *)ch_hcfmri.manufacturer);
115 if (ch_hcfmri.hc_name != NULL) {
116 topo_mod_strfree(mod, (char *)ch_hcfmri.hc_name);