Lines Matching refs:fp

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