Lines Matching refs:fp

90 oprintf(FILE *fp, const char *format, ...)
95 (void) vfprintf(fp, format, ap);
101 desc_printf(const char *d, FILE *fp, const char *format, ...)
106 (void) vfprintf(fp, format, ap);
110 (void) fprintf(fp, " (%s)\n", d);
112 (void) fprintf(fp, "\n");
116 flag_printf(FILE *fp, const char *s, uint_t flags, size_t bits,
121 oprintf(fp, " %s: 0x%x\n", s, flags);
131 desc_printf(flag_desc(f), fp, "\t%s", n);
133 desc_printf(flag_desc(f), fp, "\t0x%x", f);
138 flag64_printf(FILE *fp, const char *s, uint64_t flags, size_t bits,
143 oprintf(fp, " %s: 0x%llx\n", s, (u_longlong_t)flags);
153 desc_printf(flag_desc(f), fp, "\t%s", n);
155 desc_printf(flag_desc(f), fp, "\t0x%llx", f);
160 id_printf(FILE *fp, const char *s, id_t id)
164 oprintf(fp, "%sNone\n", s);
167 oprintf(fp, "%sNot Supported\n", s);
170 oprintf(fp, "%s%u\n", s, (uint_t)id);
175 jedec_print(FILE *fp, const char *desc, uint_t id)
184 oprintf(fp, " %s: 0x%x\n", desc, id);
186 oprintf(fp, " %s: 0x%x (%s)\n", desc, id, name);
224 print_smbios_21(smbios_21_entry_t *ep, FILE *fp)
228 oprintf(fp, "Entry Point Anchor Tag: %*.*s\n",
232 oprintf(fp, "Entry Point Checksum: 0x%x\n", ep->smbe_ecksum);
233 oprintf(fp, "Entry Point Length: %u\n", ep->smbe_elen);
234 oprintf(fp, "Entry Point Version: %u.%u\n",
236 oprintf(fp, "Max Structure Size: %u\n", ep->smbe_maxssize);
237 oprintf(fp, "Entry Point Revision: 0x%x\n", ep->smbe_revision);
239 oprintf(fp, "Entry Point Revision Data:");
241 oprintf(fp, " 0x%02x", ep->smbe_format[i]);
242 oprintf(fp, "\n");
244 oprintf(fp, "Intermediate Anchor Tag: %*.*s\n",
248 oprintf(fp, "Intermediate Checksum: 0x%x\n", ep->smbe_icksum);
249 oprintf(fp, "Structure Table Length: %u\n", ep->smbe_stlen);
250 oprintf(fp, "Structure Table Address: 0x%x\n", ep->smbe_staddr);
251 oprintf(fp, "Structure Table Entries: %u\n", ep->smbe_stnum);
252 oprintf(fp, "DMI BCD Revision: 0x%x\n", ep->smbe_bcdrev);
256 print_smbios_30(smbios_30_entry_t *ep, FILE *fp)
258 oprintf(fp, "Entry Point Anchor Tag: %*.*s\n",
262 oprintf(fp, "Entry Point Checksum: 0x%x\n", ep->smbe_ecksum);
263 oprintf(fp, "Entry Point Length: %u\n", ep->smbe_elen);
264 oprintf(fp, "SMBIOS Version: %u.%u\n",
266 oprintf(fp, "SMBIOS DocRev: 0x%x\n", ep->smbe_docrev);
267 oprintf(fp, "Entry Point Revision: 0x%x\n", ep->smbe_revision);
269 oprintf(fp, "Structure Table Length: %u\n", ep->smbe_stlen);
270 oprintf(fp, "Structure Table Address: 0x%" PRIx64 "\n",
275 print_smbios(smbios_hdl_t *shp, FILE *fp)
281 print_smbios_21(&ep.ep21, fp);
284 print_smbios_30(&ep.ep30, fp);
290 print_common(const smbios_info_t *ip, FILE *fp)
293 oprintf(fp, " Manufacturer: %s\n", ip->smbi_manufacturer);
295 oprintf(fp, " Product: %s\n", ip->smbi_product);
297 oprintf(fp, " Version: %s\n", ip->smbi_version);
299 oprintf(fp, " Serial Number: %s\n", ip->smbi_serial);
301 oprintf(fp, " Asset Tag: %s\n", ip->smbi_asset);
303 oprintf(fp, " Location Tag: %s\n", ip->smbi_location);
305 oprintf(fp, " Part Number: %s\n", ip->smbi_part);
309 print_bios(smbios_hdl_t *shp, FILE *fp)
315 oprintf(fp, " Vendor: %s\n", b.smbb_vendor);
316 oprintf(fp, " Version String: %s\n", b.smbb_version);
317 oprintf(fp, " Release Date: %s\n", b.smbb_reldate);
318 oprintf(fp, " Address Segment: 0x%x\n", b.smbb_segment);
319 oprintf(fp, " ROM Size: %" PRIu64 " bytes\n", b.smbb_extromsize);
320 oprintf(fp, " Image Size: %u bytes\n", b.smbb_runsize);
322 flag64_printf(fp, "Characteristics",
327 flag_printf(fp, "Characteristics Extension Byte 1",
334 flag_printf(fp, "Characteristics Extension Byte 2",
341 oprintf(fp, " Version Number: %u.%u\n",
352 oprintf(fp, " Embedded Ctlr Firmware Version Number: %u.%u\n",
358 print_system(smbios_hdl_t *shp, FILE *fp)
365 oprintf(fp, " UUID: ");
367 oprintf(fp, "%02x", s.smbs_uuid[i]);
369 oprintf(fp, "-");
371 oprintf(fp, "\n");
374 fp, " Wake-Up Event: 0x%x", s.smbs_wakeup);
376 oprintf(fp, " SKU Number: %s\n", s.smbs_sku);
377 oprintf(fp, " Family: %s\n", s.smbs_family);
381 print_bboard(smbios_hdl_t *shp, id_t id, FILE *fp)
388 oprintf(fp, " Chassis: %u\n", (uint_t)b.smbb_chassis);
390 flag_printf(fp, "Flags", b.smbb_flags, sizeof (b.smbb_flags) * NBBY,
394 fp, " Board Type: 0x%x", b.smbb_type);
408 oprintf(fp, "\n");
411 oprintf(fp, " Contained Handle: %u\n", hdl);
417 print_chassis(smbios_hdl_t *shp, id_t id, FILE *fp)
424 oprintf(fp, " OEM Data: 0x%x\n", c.smbc_oemdata);
425 oprintf(fp, " SKU number: %s\n",
427 oprintf(fp, " Lock Present: %s\n", c.smbc_lock ? "Y" : "N");
430 fp, " Chassis Type: 0x%x", c.smbc_type);
433 fp, " Boot-Up State: 0x%x", c.smbc_bustate);
436 fp, " Power Supply State: 0x%x", c.smbc_psstate);
439 fp, " Thermal State: 0x%x", c.smbc_thstate);
441 oprintf(fp, " Chassis Height: %uu\n", c.smbc_uheight);
442 oprintf(fp, " Power Cords: %u\n", c.smbc_cords);
445 oprintf(fp, " Element Records: %u\n", elem_cnt);
458 oprintf(fp, "\n");
463 desc_printf(smbios_type_name(type & 0x7f), fp,
468 desc_printf(smbios_bboard_type_desc(type), fp,
477 print_processor(smbios_hdl_t *shp, id_t id, FILE *fp)
486 fp, " Family: %u", p.smbp_family);
490 fp, " Family Ext: %u", p.smbp_family2);
492 oprintf(fp, " CPUID: 0x%llx\n", (u_longlong_t)p.smbp_cpuid);
495 fp, " Type: %u", p.smbp_type);
498 fp, " Socket Upgrade: %u", p.smbp_upgrade);
500 oprintf(fp, " Socket Status: %s\n",
505 fp, " Processor Status: %u", status);
508 oprintf(fp, " Supported Voltages:");
511 oprintf(fp, " 5.0V");
514 oprintf(fp, " 3.3V");
517 oprintf(fp, " 2.9V");
520 oprintf(fp, "\n");
522 oprintf(fp, " Supported Voltages: %.1fV\n",
528 oprintf(fp, " Core Count: %u\n", p.smbp_corecount);
530 oprintf(fp, " Core Count: %u\n", p.smbp_corecount2);
532 oprintf(fp, " Core Count: Unknown\n");
537 oprintf(fp, " Cores Enabled: %u\n",
540 oprintf(fp, " Cores Enabled: %u\n",
544 oprintf(fp, " Cores Enabled: Unknown\n");
549 oprintf(fp, " Thread Count: %u\n",
552 oprintf(fp, " Thread Count: %u\n",
556 oprintf(fp, " Thread Count: Unknown\n");
560 flag_printf(fp, "Processor Characteristics",
567 oprintf(fp, " External Clock Speed: %uMHz\n", p.smbp_clkspeed);
569 oprintf(fp, " External Clock Speed: Unknown\n");
572 oprintf(fp, " Maximum Speed: %uMHz\n", p.smbp_maxspeed);
574 oprintf(fp, " Maximum Speed: Unknown\n");
577 oprintf(fp, " Current Speed: %uMHz\n", p.smbp_curspeed);
579 oprintf(fp, " Current Speed: Unknown\n");
581 id_printf(fp, " L1 Cache Handle: ", p.smbp_l1cache);
582 id_printf(fp, " L2 Cache Handle: ", p.smbp_l2cache);
583 id_printf(fp, " L3 Cache Handle: ", p.smbp_l3cache);
587 print_cache(smbios_hdl_t *shp, id_t id, FILE *fp)
593 oprintf(fp, " Level: %u\n", c.smba_level);
594 oprintf(fp, " Maximum Installed Size: %" PRIu64 " bytes\n",
598 oprintf(fp, " Installed Size: %" PRIu64 " bytes\n",
601 oprintf(fp, " Installed Size: Not Installed\n");
605 oprintf(fp, " Speed: %uns\n", c.smba_speed);
607 oprintf(fp, " Speed: Unknown\n");
609 flag_printf(fp, "Supported SRAM Types",
614 fp, " Current SRAM Type: 0x%x", c.smba_ctype);
617 fp, " Error Correction Type: %u", c.smba_etype);
620 fp, " Logical Cache Type: %u", c.smba_ltype);
623 fp, " Associativity: %u", c.smba_assoc);
626 fp, " Mode: %u", c.smba_mode);
629 fp, " Location: %u", c.smba_location);
631 flag_printf(fp, "Flags", c.smba_flags, sizeof (c.smba_flags) * NBBY,
636 print_port(smbios_hdl_t *shp, id_t id, FILE *fp)
642 oprintf(fp, " Internal Reference Designator: %s\n", p.smbo_iref);
643 oprintf(fp, " External Reference Designator: %s\n", p.smbo_eref);
646 fp, " Internal Connector Type: %u", p.smbo_itype);
649 fp, " External Connector Type: %u", p.smbo_etype);
652 fp, " Port Type: %u", p.smbo_ptype);
656 print_slot(smbios_hdl_t *shp, id_t id, FILE *fp)
664 oprintf(fp, " Reference Designator: %s\n", s.smbl_name);
665 oprintf(fp, " Slot ID: 0x%x\n", s.smbl_id);
668 fp, " Type: 0x%x", s.smbl_type);
671 fp, " Width: 0x%x", s.smbl_width);
674 fp, " Usage: 0x%x", s.smbl_usage);
677 fp, " Length: 0x%x", s.smbl_length);
679 flag_printf(fp, "Slot Characteristics 1",
683 flag_printf(fp, "Slot Characteristics 2",
690 oprintf(fp, " Segment Group: %u\n", s.smbl_sg);
691 oprintf(fp, " Bus Number: %u\n", s.smbl_bus);
692 oprintf(fp, " Device/Function Number: %u/%u\n", s.smbl_df >> 3,
696 oprintf(fp, " Data Bus Width: %d\n", s.smbl_dbw);
710 oprintf(fp, " Slot Peer %u:\n", i);
711 oprintf(fp, " Segment group: %u\n",
713 oprintf(fp, " Bus/Device/Function: %u/%u/%u",
716 oprintf(fp, " Electrical width: %u\n",
725 print_obdevs_ext(smbios_hdl_t *shp, id_t id, FILE *fp)
740 oprintf(fp, " Reference Designator: %s\n", oe.smboe_name);
741 oprintf(fp, " Device Enabled: %s\n", enabled == B_TRUE ? "true" :
743 oprintf(fp, " Device Type: %s\n", type);
744 oprintf(fp, " Device Type Instance: %u\n", oe.smboe_dti);
745 oprintf(fp, " Segment Group Number: %u\n", oe.smboe_sg);
746 oprintf(fp, " Bus Number: %u\n", oe.smboe_bus);
747 oprintf(fp, " Device/Function Number: %u\n", oe.smboe_df);
751 print_obdevs(smbios_hdl_t *shp, id_t id, FILE *fp)
760 oprintf(fp, " %s\n", argv[i].smbd_name);
765 print_strtab(smbios_hdl_t *shp, id_t id, FILE *fp)
774 oprintf(fp, " %s\n", argv[i]);
779 print_lang(smbios_hdl_t *shp, id_t id, FILE *fp)
785 oprintf(fp, " Current Language: %s\n", l.smbla_cur);
786 oprintf(fp, " Language String Format: %u\n", l.smbla_fmt);
787 oprintf(fp, " Number of Installed Languages: %u\n", l.smbla_num);
788 oprintf(fp, " Installed Languages:\n");
790 print_strtab(shp, id, fp);
795 print_evlog(smbios_hdl_t *shp, id_t id, FILE *fp)
802 oprintf(fp, " Log Area Size: %lu bytes\n", (ulong_t)ev.smbev_size);
803 oprintf(fp, " Header Offset: %lu\n", (ulong_t)ev.smbev_hdr);
804 oprintf(fp, " Data Offset: %lu\n", (ulong_t)ev.smbev_data);
807 fp, " Data Access Method: %u", ev.smbev_method);
809 flag_printf(fp, "Log Flags",
814 fp, " Log Header Format: %u", ev.smbev_format);
816 oprintf(fp, " Update Token: 0x%x\n", ev.smbev_token);
817 oprintf(fp, " Data Access Address: ");
823 oprintf(fp, "Index Address 0x%x, Data Address 0x%x\n",
828 oprintf(fp, "0x%x\n", ev.smbev_addr.eva_gpnv);
831 oprintf(fp, "0x%x\n", ev.smbev_addr.eva_addr);
834 oprintf(fp, " Type Descriptors:\n");
837 oprintf(fp, " %u: Log Type 0x%x, Data Type 0x%x\n", i,
844 print_bytes(const uint8_t *data, size_t size, FILE *fp)
852 oprintf(fp, "\n offset: 0 1 2 3 4 5 6 7 8 9 a b c d e f "
856 oprintf(fp, " %#6lx: ", (ulong_t)row * 16);
861 oprintf(fp, " ");
863 oprintf(fp, "%02x", x);
869 oprintf(fp, " ");
870 oprintf(fp, " ");
875 oprintf(fp, " %s\n", buf);
878 oprintf(fp, "\n");
882 print_memarray(smbios_hdl_t *shp, id_t id, FILE *fp)
889 fp, " Location: %u", ma.smbma_location);
892 fp, " Use: %u", ma.smbma_use);
895 fp, " ECC: %u", ma.smbma_ecc);
897 oprintf(fp, " Number of Slots/Sockets: %u\n", ma.smbma_ndevs);
898 id_printf(fp, " Memory Error Data: ", ma.smbma_err);
899 oprintf(fp, " Max Capacity: %llu bytes\n",
904 print_memdevice(smbios_hdl_t *shp, id_t id, FILE *fp)
910 id_printf(fp, " Physical Memory Array: ", md.smbmd_array);
911 id_printf(fp, " Memory Error Data: ", md.smbmd_error);
914 oprintf(fp, " Total Width: %u bits\n", md.smbmd_twidth);
916 oprintf(fp, " Total Width: Unknown\n");
919 oprintf(fp, " Data Width: %u bits\n", md.smbmd_dwidth);
921 oprintf(fp, " Data Width: Unknown\n");
925 oprintf(fp, " Size: Unknown\n");
928 oprintf(fp, " Size: Not Populated\n");
931 oprintf(fp, " Size: %llu bytes\n",
936 fp, " Form Factor: %u", md.smbmd_form);
939 oprintf(fp, " Set: None\n");
941 oprintf(fp, " Set: Unknown\n");
943 oprintf(fp, " Set: %u\n", md.smbmd_set);
947 fp, " Rank: %u", md.smbmd_rank);
949 oprintf(fp, " Rank: Unknown\n");
953 fp, " Memory Type: %u", md.smbmd_type);
955 flag_printf(fp, "Flags", md.smbmd_flags, sizeof (md.smbmd_flags) * NBBY,
959 oprintf(fp, " Speed: %u MT/s\n", md.smbmd_speed);
961 oprintf(fp, " Speed: Unknown\n");
964 oprintf(fp, " Configured Speed: %u MT/s\n", md.smbmd_clkspeed);
966 oprintf(fp, " Configured Speed: Unknown\n");
968 oprintf(fp, " Device Locator: %s\n", md.smbmd_dloc);
969 oprintf(fp, " Bank Locator: %s\n", md.smbmd_bloc);
972 oprintf(fp, " Minimum Voltage: %.2fV\n",
975 oprintf(fp, " Minimum Voltage: Unknown\n");
979 oprintf(fp, " Maximum Voltage: %.2fV\n",
982 oprintf(fp, " Maximum Voltage: Unknown\n");
986 oprintf(fp, " Configured Voltage: %.2fV\n",
989 oprintf(fp, " Configured Voltage: Unknown\n");
994 fp, " Memory Technology: %u", md.smbmd_memtech);
998 flag_printf(fp, " Operating Mode Capabilities",
1005 oprintf(fp, " Firmware Revision: %s\n", md.smbmd_firmware_rev);
1009 jedec_print(fp, "Module Manufacturer ID", md.smbmd_modmfg_id);
1013 jedec_print(fp, "Module Product ID", md.smbmd_modprod_id);
1017 jedec_print(fp, "Memory Subsystem Controller Manufacturer ID",
1022 jedec_print(fp, "Memory Subsystem Controller Product ID",
1027 oprintf(fp, " Non-volatile Size: Unknown\n");
1029 oprintf(fp, " Non-volatile Size: %llu bytes\n",
1034 oprintf(fp, " Volatile Size: Unknown\n");
1036 oprintf(fp, " Volatile Size: %llu bytes\n",
1041 oprintf(fp, " Cache Size: Unknown\n");
1043 oprintf(fp, " Cache Size: %llu bytes\n",
1048 oprintf(fp, " Logical Size: Unknown\n");
1050 oprintf(fp, " Logical Size: %llu bytes\n",
1056 print_memarrmap(smbios_hdl_t *shp, id_t id, FILE *fp)
1062 id_printf(fp, " Physical Memory Array: ", ma.smbmam_array);
1063 oprintf(fp, " Devices per Row: %u\n", ma.smbmam_width);
1065 oprintf(fp, " Physical Address: 0x%llx\n Size: %llu bytes\n",
1070 print_memdevmap(smbios_hdl_t *shp, id_t id, FILE *fp)
1076 id_printf(fp, " Memory Device: ", md.smbmdm_device);
1077 id_printf(fp, " Memory Array Mapped Address: ", md.smbmdm_arrmap);
1079 oprintf(fp, " Physical Address: 0x%llx\n Size: %llu bytes\n",
1082 oprintf(fp, " Partition Row Position: %u\n", md.smbmdm_rpos);
1083 oprintf(fp, " Interleave Position: %u\n", md.smbmdm_ipos);
1084 oprintf(fp, " Interleave Data Depth: %u\n", md.smbmdm_idepth);
1088 print_hwsec(smbios_hdl_t *shp, FILE *fp)
1095 fp, " Power-On Password Status: %u", h.smbh_pwr_ps);
1097 fp, " Keyboard Password Status: %u", h.smbh_kbd_ps);
1099 fp, " Administrator Password Status: %u", h.smbh_adm_ps);
1101 fp, " Front Panel Reset Status: %u", h.smbh_pan_ps);
1105 print_vprobe(smbios_hdl_t *shp, id_t id, FILE *fp)
1114 oprintf(fp, " Description: %s\n", vp.smbvp_description != NULL ?
1117 fp, " Location: %u", vp.smbvp_location);
1119 fp, " Status: %u", vp.smbvp_status);
1122 oprintf(fp, " Maximum Possible Voltage: %u mV\n",
1125 oprintf(fp, " Maximum Possible Voltage: unknown\n");
1129 oprintf(fp, " Minimum Possible Voltage: %u mV\n",
1132 oprintf(fp, " Minimum Possible Voltage: unknown\n");
1136 oprintf(fp, " Probe Resolution: %u.%u mV\n",
1140 oprintf(fp, " Probe Resolution: unknown\n");
1144 oprintf(fp, " Probe Tolerance: +/-%u mV\n",
1147 oprintf(fp, " Probe Tolerance: unknown\n");
1151 oprintf(fp, " Probe Accuracy: +/-%u.%02u%%\n",
1155 oprintf(fp, " Probe Accuracy: unknown\n");
1158 oprintf(fp, " OEM- or BIOS- defined value: 0x%x\n", vp.smbvp_oem);
1161 oprintf(fp, " Probe Nominal Value: %u mV\n", vp.smbvp_nominal);
1163 oprintf(fp, " Probe Nominal Value: unknown\n");
1168 print_cooldev(smbios_hdl_t *shp, id_t id, FILE *fp)
1178 id_printf(fp, " Temperature Probe Handle: ", cd.smbcd_tprobe);
1180 fp, " Device Type: %u", cd.smbcd_type);
1182 fp, " Status: %u", cd.smbcd_status);
1183 oprintf(fp, " Cooling Unit Group: %u\n", cd.smbcd_group);
1184 oprintf(fp, " OEM- or BIOS- defined data: 0x%x\n", cd.smbcd_oem);
1186 oprintf(fp, " Nominal Speed: %u RPM\n", cd.smbcd_nominal);
1188 oprintf(fp, " Nominal Speed: unknown\n");
1192 oprintf(fp, " Description: %s\n", cd.smbcd_descr);
1197 print_tprobe(smbios_hdl_t *shp, id_t id, FILE *fp)
1207 oprintf(fp, " Description: %s\n", tp.smbtp_description != NULL ?
1210 fp, " Location: %u", tp.smbtp_location);
1212 fp, " Status: %u", tp.smbtp_status);
1215 oprintf(fp, " Maximum Possible Temperature: %u.%u C\n",
1218 oprintf(fp, " Maximum Possible Temperature: unknown\n");
1222 oprintf(fp, " Minimum Possible Temperature: %u.%u C\n",
1225 oprintf(fp, " Minimum Possible Temperature: unknown\n");
1229 oprintf(fp, " Probe Resolution: %u.%03u C\n",
1233 oprintf(fp, " Probe Resolution: unknown\n");
1237 oprintf(fp, " Probe Tolerance: +/-%u.%u C\n",
1240 oprintf(fp, " Probe Tolerance: unknown\n");
1244 oprintf(fp, " Probe Accuracy: +/-%u.%02u%%\n",
1248 oprintf(fp, " Probe Accuracy: unknown\n");
1251 oprintf(fp, " OEM- or BIOS- defined value: 0x%x\n", tp.smbtp_oem);
1254 oprintf(fp, " Probe Nominal Value: %u.%u C\n",
1257 oprintf(fp, " Probe Nominal Value: unknown\n");
1262 print_iprobe(smbios_hdl_t *shp, id_t id, FILE *fp)
1271 oprintf(fp, " Description: %s\n", ip.smbip_description != NULL ?
1274 fp, " Location: %u", ip.smbip_location);
1276 fp, " Status: %u", ip.smbip_status);
1279 oprintf(fp, " Maximum Possible Current: %u mA\n",
1282 oprintf(fp, " Maximum Possible Current: unknown\n");
1286 oprintf(fp, " Minimum Possible Current: %u mA\n",
1289 oprintf(fp, " Minimum Possible Current: unknown\n");
1293 oprintf(fp, " Probe Resolution: %u.%u mA\n",
1297 oprintf(fp, " Probe Resolution: unknown\n");
1301 oprintf(fp, " Probe Tolerance: +/-%u mA\n",
1304 oprintf(fp, " Probe Tolerance: unknown\n");
1308 oprintf(fp, " Probe Accuracy: +/-%u.%02u%%\n",
1312 oprintf(fp, " Probe Accuracy: unknown\n");
1315 oprintf(fp, " OEM- or BIOS- defined value: 0x%x\n", ip.smbip_oem);
1318 oprintf(fp, " Probe Nominal Value: %u mA\n", ip.smbip_nominal);
1320 oprintf(fp, " Probe Nominal Value: unknown\n");
1326 print_boot(smbios_hdl_t *shp, FILE *fp)
1333 fp, " Boot Status Code: 0x%x", b.smbt_status);
1336 oprintf(fp, " Boot Data (%lu bytes):\n", (ulong_t)b.smbt_size);
1337 print_bytes(b.smbt_data, b.smbt_size, fp);
1342 print_ipmi(smbios_hdl_t *shp, FILE *fp)
1349 fp, " Type: %u", i.smbip_type);
1351 oprintf(fp, " BMC IPMI Version: %u.%u\n",
1354 oprintf(fp, " i2c Bus Slave Address: 0x%x\n", i.smbip_i2c);
1355 oprintf(fp, " NV Storage Device Bus ID: 0x%x\n", i.smbip_bus);
1356 oprintf(fp, " BMC Base Address: 0x%llx\n", (u_longlong_t)i.smbip_addr);
1357 oprintf(fp, " Interrupt Number: %u\n", i.smbip_intr);
1358 oprintf(fp, " Register Spacing: %u\n", i.smbip_regspacing);
1360 flag_printf(fp, "Flags", i.smbip_flags, sizeof (i.smbip_flags) * NBBY,
1365 print_powersup(smbios_hdl_t *shp, id_t id, FILE *fp)
1374 oprintf(fp, " Power Supply Group: %u\n", p.smbps_group);
1376 oprintf(fp, " Maximum Output: %llu mW\n", p.smbps_maxout);
1378 oprintf(fp, " Maximum Output: unknown\n");
1381 flag_printf(fp, "Characteristics", p.smbps_flags,
1386 fp, " Input Voltage Range Switching: %u", p.smbps_ivrs);
1388 fp, " Status: %u", p.smbps_status);
1390 fp, " Type: %u", p.smbps_pstype);
1393 oprintf(fp, " Voltage Probe Handle: %lu\n", p.smbps_vprobe);
1397 oprintf(fp, " Cooling Device Handle: %lu\n", p.smbps_cooldev);
1401 oprintf(fp, " Current Probe Handle: %lu\n", p.smbps_iprobe);
1406 print_extprocessor(smbios_hdl_t *shp, id_t id, FILE *fp)
1416 oprintf(fp, " Processor: %u\n", ep.smbpe_processor);
1417 oprintf(fp, " FRU: %u\n", ep.smbpe_fru);
1418 oprintf(fp, " Initial APIC ID count: %u\n\n", ep.smbpe_n);
1421 oprintf(fp, " Logical Strand %u: Initial APIC ID: %u\n", i,
1427 print_extport(smbios_hdl_t *shp, id_t id, FILE *fp)
1436 oprintf(fp, " Chassis Handle: %u\n", epo.smbporte_chassis);
1437 oprintf(fp, " Port Connector Handle: %u\n", epo.smbporte_port);
1438 oprintf(fp, " Device Type: %u\n", epo.smbporte_dtype);
1439 oprintf(fp, " Device Handle: %u\n", epo.smbporte_devhdl);
1440 oprintf(fp, " PHY: %u\n", epo.smbporte_phy);
1444 print_pciexrc(smbios_hdl_t *shp, id_t id, FILE *fp)
1453 oprintf(fp, " Component ID: %u\n", pcie.smbpcie_bb);
1454 oprintf(fp, " BDF: 0x%x\n", pcie.smbpcie_bdf);
1458 print_extmemarray(smbios_hdl_t *shp, id_t id, FILE *fp)
1467 oprintf(fp, " Physical Memory Array Handle: %u\n", em.smbmae_ma);
1468 oprintf(fp, " Component Parent Handle: %u\n", em.smbmae_comp);
1469 oprintf(fp, " BDF: 0x%x\n", em.smbmae_bdf);
1473 print_extmemdevice(smbios_hdl_t *shp, id_t id, FILE *fp)
1483 oprintf(fp, " Memory Device Handle: %u\n", emd.smbmdeve_md);
1484 oprintf(fp, " DRAM Channel: %u\n", emd.smbmdeve_drch);
1485 oprintf(fp, " Number of Chip Selects: %u\n", emd.smbmdeve_ncs);
1488 oprintf(fp, " Chip Select: %u\n", emd.smbmdeve_cs[i]);
1493 print_struct(smbios_hdl_t *shp, const smbios_struct_t *sp, void *fp)
1507 oprintf(fp, "%-5s %-4s %s\n", "ID", "SIZE", "TYPE");
1509 oprintf(fp, "%-5u %-4lu",
1513 oprintf(fp, " %s (type %u)", s, sp->smbstr_type);
1516 oprintf(fp, " %s+%u (type %u)", "SMB_TYPE_OEM_LO",
1519 oprintf(fp, " %u", sp->smbstr_type);
1522 oprintf(fp, " (%s)\n", s);
1524 oprintf(fp, "\n");
1530 oprintf(fp, "\n");
1531 print_common(&info, fp);
1536 oprintf(fp, "\n");
1537 print_bios(shp, fp);
1540 oprintf(fp, "\n");
1541 print_system(shp, fp);
1544 oprintf(fp, "\n");
1545 print_bboard(shp, sp->smbstr_id, fp);
1548 oprintf(fp, "\n");
1549 print_chassis(shp, sp->smbstr_id, fp);
1552 oprintf(fp, "\n");
1553 print_processor(shp, sp->smbstr_id, fp);
1556 oprintf(fp, "\n");
1557 print_cache(shp, sp->smbstr_id, fp);
1560 oprintf(fp, "\n");
1561 print_port(shp, sp->smbstr_id, fp);
1564 oprintf(fp, "\n");
1565 print_slot(shp, sp->smbstr_id, fp);
1568 oprintf(fp, "\n");
1569 print_obdevs(shp, sp->smbstr_id, fp);
1573 oprintf(fp, "\n");
1574 print_strtab(shp, sp->smbstr_id, fp);
1577 oprintf(fp, "\n");
1578 print_lang(shp, sp->smbstr_id, fp);
1581 oprintf(fp, "\n");
1582 print_evlog(shp, sp->smbstr_id, fp);
1585 oprintf(fp, "\n");
1586 print_memarray(shp, sp->smbstr_id, fp);
1589 oprintf(fp, "\n");
1590 print_memdevice(shp, sp->smbstr_id, fp);
1593 oprintf(fp, "\n");
1594 print_memarrmap(shp, sp->smbstr_id, fp);
1597 oprintf(fp, "\n");
1598 print_memdevmap(shp, sp->smbstr_id, fp);
1601 oprintf(fp, "\n");
1602 print_hwsec(shp, fp);
1605 oprintf(fp, "\n");
1606 print_vprobe(shp, sp->smbstr_id, fp);
1609 oprintf(fp, "\n");
1610 print_cooldev(shp, sp->smbstr_id, fp);
1613 oprintf(fp, "\n");
1614 print_tprobe(shp, sp->smbstr_id, fp);
1617 oprintf(fp, "\n");
1618 print_iprobe(shp, sp->smbstr_id, fp);
1621 oprintf(fp, "\n");
1622 print_boot(shp, fp);
1625 oprintf(fp, "\n");
1626 print_ipmi(shp, fp);
1629 oprintf(fp, "\n");
1630 print_powersup(shp, sp->smbstr_id, fp);
1633 oprintf(fp, "\n");
1634 print_obdevs_ext(shp, sp->smbstr_id, fp);
1637 oprintf(fp, "\n");
1638 print_extprocessor(shp, sp->smbstr_id, fp);
1641 oprintf(fp, "\n");
1642 print_extport(shp, sp->smbstr_id, fp);
1645 oprintf(fp, "\n");
1646 print_pciexrc(shp, sp->smbstr_id, fp);
1649 oprintf(fp, "\n");
1650 print_extmemarray(shp, sp->smbstr_id, fp);
1653 oprintf(fp, "\n");
1654 print_extmemdevice(shp, sp->smbstr_id, fp);
1661 print_bytes(sp->smbstr_data, sp->smbstr_size, fp);
1663 oprintf(fp, "\n");
1705 usage(FILE *fp)
1707 (void) fprintf(fp, "Usage: %s "
1710 (void) fprintf(fp,