ZealOS/docs/System/Utils/SysRep.CC.html
TomAwezome 2ea6956433 Implement IntEntryAlloc, IntEntryFree for dynamic user IRQ acquisition.
Restructure network stack to use new Interrupt methods instead of hard-coded IRQ numbers.
Add line count update into build process.
Add progress bars to HTML generation and DoDistro.
Clear Network Log border_doc.
Fix font chars.
Clean up some lingering unconverted variable and directory names.
Remove word-wrap DolDoc tag from Clementine bible because of CPU spikes.
2021-07-11 17:47:19 -04:00

1245 lines
146 KiB
HTML
Executable file

<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=US-ASCII">
<meta name="generator" content="ZealOS V0.07">
<style type="text/css">
body {background-color:#000000;}
.cF0{color:#ffffff;background-color:#000000;}
.cF1{color:#3465a4;background-color:#000000;}
.cF2{color:#4e9a06;background-color:#000000;}
.cF3{color:#06989a;background-color:#000000;}
.cF4{color:#a24444;background-color:#000000;}
.cF5{color:#75507b;background-color:#000000;}
.cF6{color:#ce982f;background-color:#000000;}
.cF7{color:#bcc0b9;background-color:#000000;}
.cF8{color:#555753;background-color:#000000;}
.cF9{color:#729fcf;background-color:#000000;}
.cFA{color:#82bc49;background-color:#000000;}
.cFB{color:#34e2e2;background-color:#000000;}
.cFC{color:#ac3535;background-color:#000000;}
.cFD{color:#ad7fa8;background-color:#000000;}
.cFE{color:#fce94f;background-color:#000000;}
.cFF{color:#000000;background-color:#000000;}
</style>
</head>
<body>
<pre style="font-family:monospace;font-size:12pt">
<a name="l1"></a><span class=cF2>//SMBIOS parsing.</span><span class=cF0>
<a name="l2"></a></span><span class=cF2>//Based on SMBIOS specification 3.3.0 (document &quot;DSP0134&quot;)</span><span class=cF0>
<a name="l3"></a></span><span class=cF1>U0</span><span class=cF0> </span><span class=cF5>SMBIOSInit</span><span class=cF0>()
<a name="l4"></a>{
<a name="l5"></a> </span><span class=cF2>//Section 7.1.1 line 925 (BIOS characteristics)</span><span class=cF0>
<a name="l6"></a> </span><span class=cF5>DefineListLoad</span><span class=cF0>(</span><span class=cF6>&quot;ST_SMBIOS_BIOS_FLAGS&quot;</span><span class=cF0>,
<a name="l7"></a>
<a name="l8"></a> </span><span class=cF6>&quot; \0&quot;</span><span class=cF0>
<a name="l9"></a> </span><span class=cF6>&quot; \0&quot;</span><span class=cF0>
<a name="l10"></a> </span><span class=cF6>&quot; \0&quot;</span><span class=cF0>
<a name="l11"></a> </span><span class=cF6>&quot; \0&quot;</span><span class=cF0>
<a name="l12"></a> </span><span class=cF6>&quot;ISA\0&quot;</span><span class=cF0>
<a name="l13"></a> </span><span class=cF6>&quot;MCA\0&quot;</span><span class=cF0>
<a name="l14"></a> </span><span class=cF6>&quot;EISA\0&quot;</span><span class=cF0>
<a name="l15"></a> </span><span class=cF6>&quot;PCI\0&quot;</span><span class=cF0>
<a name="l16"></a> </span><span class=cF6>&quot;PC Card\0&quot;</span><span class=cF0>
<a name="l17"></a> </span><span class=cF6>&quot;Plug and Play\0&quot;</span><span class=cF0>
<a name="l18"></a> </span><span class=cF6>&quot;APM\0&quot;</span><span class=cF0>
<a name="l19"></a> </span><span class=cF6>&quot;Flashable BIOS\0&quot;</span><span class=cF0>
<a name="l20"></a> </span><span class=cF6>&quot;BIOS shadowing\0&quot;</span><span class=cF0>
<a name="l21"></a> </span><span class=cF6>&quot;VESA Local Bus\0&quot;</span><span class=cF0>
<a name="l22"></a> </span><span class=cF6>&quot;ESCD\0&quot;</span><span class=cF0>
<a name="l23"></a> </span><span class=cF6>&quot;CD Boot\0&quot;</span><span class=cF0>
<a name="l24"></a> </span><span class=cF6>&quot;Selectable boot\0&quot;</span><span class=cF0>
<a name="l25"></a> </span><span class=cF6>&quot;BIOS ROM socketed\0&quot;</span><span class=cF0>
<a name="l26"></a> </span><span class=cF6>&quot;PC Card Boot\0&quot;</span><span class=cF0>
<a name="l27"></a> </span><span class=cF6>&quot;Enhanced Disk Drive Services\0&quot;</span><span class=cF0>
<a name="l28"></a> </span><span class=cF6>&quot; \0&quot;</span><span class=cF0>
<a name="l29"></a> </span><span class=cF6>&quot; \0&quot;</span><span class=cF0>
<a name="l30"></a> </span><span class=cF6>&quot;INT 0x13 5.25\&quot;/360 KB Floppy Support\0&quot;</span><span class=cF0>
<a name="l31"></a> </span><span class=cF6>&quot;INT 0x13 5.25\&quot;/1.2 MB Floppy Support\0&quot;</span><span class=cF0>
<a name="l32"></a> </span><span class=cF6>&quot;INT 0x13 3.5\&quot;/720 KB Floppy Support\0&quot;</span><span class=cF0>
<a name="l33"></a> </span><span class=cF6>&quot;INT 0x13 3.5\&quot;/2.88 MB Floppy Support\0&quot;</span><span class=cF0>
<a name="l34"></a> </span><span class=cF6>&quot;INT 0x05 Screen Printing\0&quot;</span><span class=cF0>
<a name="l35"></a> </span><span class=cF6>&quot;INT 0x09 8042 Keyboard\0&quot;</span><span class=cF0>
<a name="l36"></a> </span><span class=cF6>&quot;INT 0x14 Serial\0&quot;</span><span class=cF0>
<a name="l37"></a> </span><span class=cF6>&quot;INT 0x17 Printer\0&quot;</span><span class=cF0>
<a name="l38"></a> </span><span class=cF6>&quot;INT 0x10 CGA/Mono Video&quot;</span><span class=cF0>);
<a name="l39"></a>
<a name="l40"></a> </span><span class=cF2>//Section 7.1.2.1 line 931 (BIOS characteristics extension byte 1)</span><span class=cF0>
<a name="l41"></a> </span><span class=cF5>DefineListLoad</span><span class=cF0>(</span><span class=cF6>&quot;ST_SMBIOS_BIOS_FLAGSEXT1&quot;</span><span class=cF0>,
<a name="l42"></a>
<a name="l43"></a> </span><span class=cF6>&quot;ACPI\0&quot;</span><span class=cF0>
<a name="l44"></a> </span><span class=cF6>&quot;USB Legacy\0&quot;</span><span class=cF0>
<a name="l45"></a> </span><span class=cF6>&quot; \0&quot;</span><span class=cF0>
<a name="l46"></a> </span><span class=cF6>&quot; \0&quot;</span><span class=cF0>
<a name="l47"></a> </span><span class=cF6>&quot; \0&quot;</span><span class=cF0>
<a name="l48"></a> </span><span class=cF6>&quot; \0&quot;</span><span class=cF0>
<a name="l49"></a> </span><span class=cF6>&quot;Serial Boot\0&quot;</span><span class=cF0>
<a name="l50"></a> </span><span class=cF6>&quot;Smart Battery&quot;</span><span class=cF0>);
<a name="l51"></a>
<a name="l52"></a> </span><span class=cF2>//Section 7.1.2.2 line 935 (BIOS characteristics extension byte 2)</span><span class=cF0>
<a name="l53"></a> </span><span class=cF5>DefineListLoad</span><span class=cF0>(</span><span class=cF6>&quot;ST_SMBIOS_BIOS_FLAGSEXT2&quot;</span><span class=cF0>,
<a name="l54"></a>
<a name="l55"></a> </span><span class=cF6>&quot;BIOS Boot\0&quot;</span><span class=cF0>
<a name="l56"></a> </span><span class=cF6>&quot;Network Boot\0&quot;</span><span class=cF0>
<a name="l57"></a> </span><span class=cF6>&quot;Targeted Content Distribution\0&quot;</span><span class=cF0>
<a name="l58"></a> </span><span class=cF6>&quot;UEFI\0&quot;</span><span class=cF0>
<a name="l59"></a> </span><span class=cF6>&quot;Virtual Machine&quot;</span><span class=cF0>);
<a name="l60"></a>
<a name="l61"></a> </span><span class=cF2>//Section 7.2.2 line 959 (system wakeup types)</span><span class=cF0>
<a name="l62"></a> </span><span class=cF5>DefineListLoad</span><span class=cF0>(</span><span class=cF6>&quot;ST_SMBIOS_WAKEUP_TYPES&quot;</span><span class=cF0>,
<a name="l63"></a>
<a name="l64"></a> </span><span class=cF6>&quot; \0&quot;</span><span class=cF0>
<a name="l65"></a> </span><span class=cF6>&quot;Other\0&quot;</span><span class=cF0>
<a name="l66"></a> </span><span class=cF6>&quot;Unknown\0&quot;</span><span class=cF0>
<a name="l67"></a> </span><span class=cF6>&quot;APM Timer\0&quot;</span><span class=cF0>
<a name="l68"></a> </span><span class=cF6>&quot;Modem Ring\0&quot;</span><span class=cF0>
<a name="l69"></a> </span><span class=cF6>&quot;LAN Remote\0&quot;</span><span class=cF0>
<a name="l70"></a> </span><span class=cF6>&quot;Power Switch\0&quot;</span><span class=cF0>
<a name="l71"></a> </span><span class=cF6>&quot;PCI PME#\0&quot;</span><span class=cF0>
<a name="l72"></a> </span><span class=cF6>&quot;AC Power Restored&quot;</span><span class=cF0>);
<a name="l73"></a>
<a name="l74"></a> </span><span class=cF2>//Section 7.3.1 line 972 (baseboard feature flags)</span><span class=cF0>
<a name="l75"></a> </span><span class=cF5>DefineListLoad</span><span class=cF0>(</span><span class=cF6>&quot;ST_SMBIOS_BASEBOARD_FLAGS&quot;</span><span class=cF0>,
<a name="l76"></a>
<a name="l77"></a> </span><span class=cF6>&quot;Hosting Board (Motherboard)\0&quot;</span><span class=cF0>
<a name="l78"></a> </span><span class=cF6>&quot;Requires Auxilary Board\0&quot;</span><span class=cF0>
<a name="l79"></a> </span><span class=cF6>&quot;Removable\0&quot;</span><span class=cF0>
<a name="l80"></a> </span><span class=cF6>&quot;Replaceable\0&quot;</span><span class=cF0>
<a name="l81"></a> </span><span class=cF6>&quot;Hot Swappable&quot;</span><span class=cF0>);
<a name="l82"></a>
<a name="l83"></a> </span><span class=cF2>//Section 7.3.2 line 977 (baseboard board types)</span><span class=cF0>
<a name="l84"></a> </span><span class=cF5>DefineListLoad</span><span class=cF0>(</span><span class=cF6>&quot;ST_SMBIOS_BASEBOARD_TYPES&quot;</span><span class=cF0>,
<a name="l85"></a>
<a name="l86"></a> </span><span class=cF6>&quot; \0&quot;</span><span class=cF0>
<a name="l87"></a> </span><span class=cF6>&quot;Unknown\0&quot;</span><span class=cF0>
<a name="l88"></a> </span><span class=cF6>&quot;Other\0&quot;</span><span class=cF0>
<a name="l89"></a> </span><span class=cF6>&quot;Server Blade\0&quot;</span><span class=cF0>
<a name="l90"></a> </span><span class=cF6>&quot;Connectivity Switch\0&quot;</span><span class=cF0>
<a name="l91"></a> </span><span class=cF6>&quot;System Management Module\0&quot;</span><span class=cF0>
<a name="l92"></a> </span><span class=cF6>&quot;Processor Module\0&quot;</span><span class=cF0>
<a name="l93"></a> </span><span class=cF6>&quot;I/O Module\0&quot;</span><span class=cF0>
<a name="l94"></a> </span><span class=cF6>&quot;Daughterboard\0&quot;</span><span class=cF0>
<a name="l95"></a> </span><span class=cF6>&quot;Motherboard\0&quot;</span><span class=cF0>
<a name="l96"></a> </span><span class=cF6>&quot;Processor/Memory Module\0&quot;</span><span class=cF0>
<a name="l97"></a> </span><span class=cF6>&quot;Processor/IO Module\0&quot;</span><span class=cF0>
<a name="l98"></a> </span><span class=cF6>&quot;Interconnect Board\0&quot;</span><span class=cF0>);
<a name="l99"></a>
<a name="l100"></a> </span><span class=cF2>//Section 7.4.1 line 988 (system enclosure types)</span><span class=cF0>
<a name="l101"></a> </span><span class=cF5>DefineListLoad</span><span class=cF0>(</span><span class=cF6>&quot;ST_SMBIOS_ENCLOSURE_TYPES&quot;</span><span class=cF0>,
<a name="l102"></a>
<a name="l103"></a> </span><span class=cF6>&quot; \0&quot;</span><span class=cF0>
<a name="l104"></a> </span><span class=cF6>&quot;Other\0&quot;</span><span class=cF0>
<a name="l105"></a> </span><span class=cF6>&quot;Unknown\0&quot;</span><span class=cF0>
<a name="l106"></a> </span><span class=cF6>&quot;Desktop\0&quot;</span><span class=cF0>
<a name="l107"></a> </span><span class=cF6>&quot;Low Profile Desktop\0&quot;</span><span class=cF0>
<a name="l108"></a> </span><span class=cF6>&quot;Pizza Box\0&quot;</span><span class=cF0>
<a name="l109"></a> </span><span class=cF6>&quot;Mini Tower\0&quot;</span><span class=cF0>
<a name="l110"></a> </span><span class=cF6>&quot;Tower\0&quot;</span><span class=cF0>
<a name="l111"></a> </span><span class=cF6>&quot;Portable\0&quot;</span><span class=cF0>
<a name="l112"></a> </span><span class=cF6>&quot;Laptop\0&quot;</span><span class=cF0>
<a name="l113"></a> </span><span class=cF6>&quot;Notebook\0&quot;</span><span class=cF0>
<a name="l114"></a> </span><span class=cF6>&quot;Hand Held\0&quot;</span><span class=cF0>
<a name="l115"></a> </span><span class=cF6>&quot;Docking Station\0&quot;</span><span class=cF0>
<a name="l116"></a> </span><span class=cF6>&quot;All-in-One\0&quot;</span><span class=cF0>
<a name="l117"></a> </span><span class=cF6>&quot;Sub Notebook\0&quot;</span><span class=cF0>
<a name="l118"></a> </span><span class=cF6>&quot;Space-saving\0&quot;</span><span class=cF0>
<a name="l119"></a> </span><span class=cF6>&quot;Lunch box\0&quot;</span><span class=cF0>
<a name="l120"></a> </span><span class=cF6>&quot;Main Server Chassis\0&quot;</span><span class=cF0>
<a name="l121"></a> </span><span class=cF6>&quot;Expansion Chassis\0&quot;</span><span class=cF0>
<a name="l122"></a> </span><span class=cF6>&quot;SubChassis\0&quot;</span><span class=cF0>
<a name="l123"></a> </span><span class=cF6>&quot;Bus Expansion Chassis\0&quot;</span><span class=cF0>
<a name="l124"></a> </span><span class=cF6>&quot;Peripheral Chassis\0&quot;</span><span class=cF0>
<a name="l125"></a> </span><span class=cF6>&quot;RAID Chassis\0&quot;</span><span class=cF0>
<a name="l126"></a> </span><span class=cF6>&quot;Rack Mount Chassis\0&quot;</span><span class=cF0>
<a name="l127"></a> </span><span class=cF6>&quot;Sealed-case PC\0&quot;</span><span class=cF0>
<a name="l128"></a> </span><span class=cF6>&quot;Multi-system Chassis\0&quot;</span><span class=cF0>
<a name="l129"></a> </span><span class=cF6>&quot;Compact PCI\0&quot;</span><span class=cF0>
<a name="l130"></a> </span><span class=cF6>&quot;Advanced TCA\0&quot;</span><span class=cF0>
<a name="l131"></a> </span><span class=cF6>&quot;Blade\0&quot;</span><span class=cF0>
<a name="l132"></a> </span><span class=cF6>&quot;Blade Enclosure\0&quot;</span><span class=cF0>
<a name="l133"></a> </span><span class=cF6>&quot;Tablet\0&quot;</span><span class=cF0>
<a name="l134"></a> </span><span class=cF6>&quot;Convertible\0&quot;</span><span class=cF0>
<a name="l135"></a> </span><span class=cF6>&quot;Detachable\0&quot;</span><span class=cF0>
<a name="l136"></a> </span><span class=cF6>&quot;IoT Gateway\0&quot;</span><span class=cF0>
<a name="l137"></a> </span><span class=cF6>&quot;Embedded PC\0&quot;</span><span class=cF0>
<a name="l138"></a> </span><span class=cF6>&quot;Mini PC\0&quot;</span><span class=cF0>
<a name="l139"></a> </span><span class=cF6>&quot;Stick PC&quot;</span><span class=cF0>);
<a name="l140"></a>
<a name="l141"></a> </span><span class=cF2>//Section 7.4.2 line 991 (enclosure states)</span><span class=cF0>
<a name="l142"></a> </span><span class=cF5>DefineListLoad</span><span class=cF0>(</span><span class=cF6>&quot;ST_SMBIOS_ENCLOSURE_STATES&quot;</span><span class=cF0>,
<a name="l143"></a>
<a name="l144"></a> </span><span class=cF6>&quot; \0&quot;</span><span class=cF0>
<a name="l145"></a> </span><span class=cF6>&quot;Other\0&quot;</span><span class=cF0>
<a name="l146"></a> </span><span class=cF6>&quot;Unknown\0&quot;</span><span class=cF0>
<a name="l147"></a> </span><span class=cF6>&quot;Safe\0&quot;</span><span class=cF0>
<a name="l148"></a> </span><span class=cF6>&quot;Warning\0&quot;</span><span class=cF0>
<a name="l149"></a> </span><span class=cF6>&quot;Critical\0&quot;</span><span class=cF0>
<a name="l150"></a> </span><span class=cF6>&quot;Non-Recoverable&quot;</span><span class=cF0>);
<a name="l151"></a>
<a name="l152"></a> </span><span class=cF2>//Section 7.4.3 line 994 (enclosure security status field)</span><span class=cF0>
<a name="l153"></a> </span><span class=cF5>DefineListLoad</span><span class=cF0>(</span><span class=cF6>&quot;ST_SMBIOS_ENCLOSURE_SECURITY_STATUSES&quot;</span><span class=cF0>,
<a name="l154"></a>
<a name="l155"></a> </span><span class=cF6>&quot; \0&quot;</span><span class=cF0>
<a name="l156"></a> </span><span class=cF6>&quot;Other\0&quot;</span><span class=cF0>
<a name="l157"></a> </span><span class=cF6>&quot;Unknown\0&quot;</span><span class=cF0>
<a name="l158"></a> </span><span class=cF6>&quot;None\0&quot;</span><span class=cF0>
<a name="l159"></a> </span><span class=cF6>&quot;External Interface Locked Out\0&quot;</span><span class=cF0>
<a name="l160"></a> </span><span class=cF6>&quot;External Interface Enabled&quot;</span><span class=cF0>);
<a name="l161"></a>
<a name="l162"></a> </span><span class=cF2>//Section 7.5.1 line 1014 (processor type field)</span><span class=cF0>
<a name="l163"></a> </span><span class=cF5>DefineListLoad</span><span class=cF0>(</span><span class=cF6>&quot;ST_SMBIOS_PROCESSOR_TYPES&quot;</span><span class=cF0>,
<a name="l164"></a>
<a name="l165"></a> </span><span class=cF6>&quot; \0&quot;</span><span class=cF0>
<a name="l166"></a> </span><span class=cF6>&quot;Other\0&quot;</span><span class=cF0>
<a name="l167"></a> </span><span class=cF6>&quot;Unknown\0&quot;</span><span class=cF0>
<a name="l168"></a> </span><span class=cF6>&quot;Central Processor\0&quot;</span><span class=cF0>
<a name="l169"></a> </span><span class=cF6>&quot;Math Processor\0&quot;</span><span class=cF0>
<a name="l170"></a> </span><span class=cF6>&quot;DSP Processor\0&quot;</span><span class=cF0>
<a name="l171"></a> </span><span class=cF6>&quot;Video Processor&quot;</span><span class=cF0>);
<a name="l172"></a> </span><span class=cF2>//Section 7.5.4 line 1050 (processor voltage field)</span><span class=cF0>
<a name="l173"></a>
<a name="l174"></a> </span><span class=cF5>DefineListLoad</span><span class=cF0>(</span><span class=cF6>&quot;ST_SMBIOS_PROCESSOR_VOLTAGE_LEVELS&quot;</span><span class=cF0>,
<a name="l175"></a>
<a name="l176"></a> </span><span class=cF6>&quot;5V\0&quot;</span><span class=cF0>
<a name="l177"></a> </span><span class=cF6>&quot;3.3V\0&quot;</span><span class=cF0>
<a name="l178"></a> </span><span class=cF6>&quot;2.9V&quot;</span><span class=cF0>);
<a name="l179"></a>
<a name="l180"></a> </span><span class=cF5>DefineListLoad</span><span class=cF0>(</span><span class=cF6>&quot;ST_CPUID_1_EDX_FLAGS&quot;</span><span class=cF0>,
<a name="l181"></a>
<a name="l182"></a> </span><span class=cF6>&quot;x87 FPU\0&quot;</span><span class=cF0>
<a name="l183"></a> </span><span class=cF6>&quot;Virtual 8086 Mode Enhancements\0&quot;</span><span class=cF0>
<a name="l184"></a> </span><span class=cF6>&quot;Debugging Extensions\0&quot;</span><span class=cF0>
<a name="l185"></a> </span><span class=cF6>&quot;Page Size Extensions\0&quot;</span><span class=cF0>
<a name="l186"></a> </span><span class=cF6>&quot;Time Stamp Counter\0&quot;</span><span class=cF0>
<a name="l187"></a> </span><span class=cF6>&quot;MSRs\0&quot;</span><span class=cF0>
<a name="l188"></a> </span><span class=cF6>&quot;Page Address Extension\0&quot;</span><span class=cF0>
<a name="l189"></a> </span><span class=cF6>&quot;Machine Check Exceptions\0&quot;</span><span class=cF0>
<a name="l190"></a> </span><span class=cF6>&quot;CMPXCHG8B\0&quot;</span><span class=cF0>
<a name="l191"></a> </span><span class=cF6>&quot;APIC\0&quot;</span><span class=cF0>
<a name="l192"></a> </span><span class=cF6>&quot; \0&quot;</span><span class=cF0>
<a name="l193"></a> </span><span class=cF6>&quot;SYSENTER/SYSEXIT\0&quot;</span><span class=cF0>
<a name="l194"></a> </span><span class=cF6>&quot;Memory Type Range Registers\0&quot;</span><span class=cF0>
<a name="l195"></a> </span><span class=cF6>&quot;Page Global Bit\0&quot;</span><span class=cF0>
<a name="l196"></a> </span><span class=cF6>&quot;Machine Check Architecture\0&quot;</span><span class=cF0>
<a name="l197"></a> </span><span class=cF6>&quot;CMOV Instructions\0&quot;</span><span class=cF0>
<a name="l198"></a> </span><span class=cF6>&quot;Page Attribute Table\0&quot;</span><span class=cF0>
<a name="l199"></a> </span><span class=cF6>&quot;36 Bit Page Size Extension\0&quot;</span><span class=cF0>
<a name="l200"></a> </span><span class=cF6>&quot;Processor Serial Number\0&quot;</span><span class=cF0>
<a name="l201"></a> </span><span class=cF6>&quot;CLFLUSH\0&quot;</span><span class=cF0>
<a name="l202"></a> </span><span class=cF6>&quot; \0&quot;</span><span class=cF0>
<a name="l203"></a> </span><span class=cF6>&quot;Debug Store\0&quot;</span><span class=cF0>
<a name="l204"></a> </span><span class=cF6>&quot;ACPI\0&quot;</span><span class=cF0>
<a name="l205"></a> </span><span class=cF6>&quot;MMX\0&quot;</span><span class=cF0>
<a name="l206"></a> </span><span class=cF6>&quot;FXSAVE/FXRSTOR\0&quot;</span><span class=cF0>
<a name="l207"></a> </span><span class=cF6>&quot;SSE\0&quot;</span><span class=cF0>
<a name="l208"></a> </span><span class=cF6>&quot;SSE2\0&quot;</span><span class=cF0>
<a name="l209"></a> </span><span class=cF6>&quot;Self Snoop\0&quot;</span><span class=cF0>
<a name="l210"></a> </span><span class=cF6>&quot;HTT\0&quot;</span><span class=cF0>
<a name="l211"></a> </span><span class=cF6>&quot;Thermal Monitor\0&quot;</span><span class=cF0>
<a name="l212"></a> </span><span class=cF6>&quot; \0&quot;</span><span class=cF0>
<a name="l213"></a> </span><span class=cF6>&quot;Pending Break Enable\0&quot;</span><span class=cF0>);
<a name="l214"></a>
<a name="l215"></a> </span><span class=cF5>DefineListLoad</span><span class=cF0>(</span><span class=cF6>&quot;ST_CPUID_1_ECX_FLAGS&quot;</span><span class=cF0>,
<a name="l216"></a>
<a name="l217"></a> </span><span class=cF6>&quot;SSE3\0&quot;</span><span class=cF0>
<a name="l218"></a> </span><span class=cF6>&quot;PCLMULQDQ\0&quot;</span><span class=cF0>
<a name="l219"></a> </span><span class=cF6>&quot;64 bit DS AREA\0&quot;</span><span class=cF0>
<a name="l220"></a> </span><span class=cF6>&quot;MONITOR/MWAIT\0&quot;</span><span class=cF0>
<a name="l221"></a> </span><span class=cF6>&quot;CPL Qualified Debug Store\0&quot;</span><span class=cF0>
<a name="l222"></a> </span><span class=cF6>&quot;Virtual Machine Extensions\0&quot;</span><span class=cF0>
<a name="l223"></a> </span><span class=cF6>&quot;Safer Mode Extensions\0&quot;</span><span class=cF0>
<a name="l224"></a> </span><span class=cF6>&quot; \0&quot;</span><span class=cF0>
<a name="l225"></a> </span><span class=cF6>&quot;Thermal Monitor 2\0&quot;</span><span class=cF0>
<a name="l226"></a> </span><span class=cF6>&quot;SSSE3\0&quot;</span><span class=cF0>
<a name="l227"></a> </span><span class=cF6>&quot;L1 Context ID\0&quot;</span><span class=cF0>
<a name="l228"></a> </span><span class=cF6>&quot;IA32_DEBUG_INTERFACE\0&quot;</span><span class=cF0>
<a name="l229"></a> </span><span class=cF6>&quot;FMA Extensions\0&quot;</span><span class=cF0>
<a name="l230"></a> </span><span class=cF6>&quot;CMPXCHG16B\0&quot;</span><span class=cF0>
<a name="l231"></a> </span><span class=cF6>&quot;xTPR Update Control\0&quot;</span><span class=cF0>
<a name="l232"></a> </span><span class=cF6>&quot;Perfmon and Debug Capability\0&quot;</span><span class=cF0>
<a name="l233"></a> </span><span class=cF6>&quot; \0&quot;</span><span class=cF0>
<a name="l234"></a> </span><span class=cF6>&quot;Process Context Identifiers\0&quot;</span><span class=cF0>
<a name="l235"></a> </span><span class=cF6>&quot;MMIO Prefetch\0&quot;</span><span class=cF0>
<a name="l236"></a> </span><span class=cF6>&quot;SSE4.1\0&quot;</span><span class=cF0>
<a name="l237"></a> </span><span class=cF6>&quot;SSE4.2\0&quot;</span><span class=cF0>
<a name="l238"></a> </span><span class=cF6>&quot;x2APIC\0&quot;</span><span class=cF0>
<a name="l239"></a> </span><span class=cF6>&quot;MOVBE\0&quot;</span><span class=cF0>
<a name="l240"></a> </span><span class=cF6>&quot;POPCNT\0&quot;</span><span class=cF0>
<a name="l241"></a> </span><span class=cF6>&quot;TSC Deadline\0&quot;</span><span class=cF0>
<a name="l242"></a> </span><span class=cF6>&quot;AESNI\0&quot;</span><span class=cF0>
<a name="l243"></a> </span><span class=cF6>&quot;XSAVE\0&quot;</span><span class=cF0>
<a name="l244"></a> </span><span class=cF6>&quot;OSXSAVE\0&quot;</span><span class=cF0>
<a name="l245"></a> </span><span class=cF6>&quot;AVX\0&quot;</span><span class=cF0>
<a name="l246"></a> </span><span class=cF6>&quot;F16C\0&quot;</span><span class=cF0>
<a name="l247"></a> </span><span class=cF6>&quot;RDRAND&quot;</span><span class=cF0>);
<a name="l248"></a>
<a name="l249"></a> </span><span class=cF2>//Section 7.5.5 line 1058 (upgrade field)</span><span class=cF0>
<a name="l250"></a> </span><span class=cF5>DefineListLoad</span><span class=cF0>(</span><span class=cF6>&quot;ST_SMBIOS_PROCESSOR_UPGRADES&quot;</span><span class=cF0>,
<a name="l251"></a>
<a name="l252"></a> </span><span class=cF6>&quot; \0&quot;</span><span class=cF0>
<a name="l253"></a> </span><span class=cF6>&quot;Other\0&quot;</span><span class=cF0>
<a name="l254"></a> </span><span class=cF6>&quot;Unknown\0&quot;</span><span class=cF0>
<a name="l255"></a> </span><span class=cF6>&quot;Daughterboard\0&quot;</span><span class=cF0>
<a name="l256"></a> </span><span class=cF6>&quot;ZIF Socket\0&quot;</span><span class=cF0>
<a name="l257"></a> </span><span class=cF6>&quot;Replacable Piggy Back\0&quot;</span><span class=cF0>
<a name="l258"></a> </span><span class=cF6>&quot;None\0&quot;</span><span class=cF0>
<a name="l259"></a> </span><span class=cF6>&quot;LIF Socket\0&quot;</span><span class=cF0>
<a name="l260"></a> </span><span class=cF6>&quot;Slot 1\0&quot;</span><span class=cF0>
<a name="l261"></a> </span><span class=cF6>&quot;Slot2\0&quot;</span><span class=cF0>
<a name="l262"></a> </span><span class=cF6>&quot;370-pin Socket\0&quot;</span><span class=cF0>
<a name="l263"></a> </span><span class=cF6>&quot;Slot A\0&quot;</span><span class=cF0>
<a name="l264"></a> </span><span class=cF6>&quot;Slot M\0&quot;</span><span class=cF0>
<a name="l265"></a> </span><span class=cF6>&quot;Socket 423\0&quot;</span><span class=cF0>
<a name="l266"></a> </span><span class=cF6>&quot;Socket A (Socket 462)\0&quot;</span><span class=cF0>
<a name="l267"></a> </span><span class=cF6>&quot;Socket 478\0&quot;</span><span class=cF0>
<a name="l268"></a> </span><span class=cF6>&quot;754\0&quot;</span><span class=cF0>
<a name="l269"></a> </span><span class=cF6>&quot;940\0&quot;</span><span class=cF0>
<a name="l270"></a> </span><span class=cF6>&quot;939\0&quot;</span><span class=cF0>
<a name="l271"></a> </span><span class=cF6>&quot;mPGA604\0&quot;</span><span class=cF0>
<a name="l272"></a> </span><span class=cF6>&quot;LGA771\0&quot;</span><span class=cF0>
<a name="l273"></a> </span><span class=cF6>&quot;LGA775\0&quot;</span><span class=cF0>
<a name="l274"></a> </span><span class=cF6>&quot;S1\0&quot;</span><span class=cF0>
<a name="l275"></a> </span><span class=cF6>&quot;AM2\0&quot;</span><span class=cF0>
<a name="l276"></a> </span><span class=cF6>&quot;F (1207)\0&quot;</span><span class=cF0>
<a name="l277"></a> </span><span class=cF6>&quot;LGA1366\0&quot;</span><span class=cF0>
<a name="l278"></a> </span><span class=cF6>&quot;G34\0&quot;</span><span class=cF0>
<a name="l279"></a> </span><span class=cF6>&quot;AM3\0&quot;</span><span class=cF0>
<a name="l280"></a> </span><span class=cF6>&quot;C32\0&quot;</span><span class=cF0>
<a name="l281"></a> </span><span class=cF6>&quot;LGA1156\0&quot;</span><span class=cF0>
<a name="l282"></a> </span><span class=cF6>&quot;LGA1567\0&quot;</span><span class=cF0>
<a name="l283"></a> </span><span class=cF6>&quot;PGA988A\0&quot;</span><span class=cF0>
<a name="l284"></a> </span><span class=cF6>&quot;BGA1288\0&quot;</span><span class=cF0>
<a name="l285"></a> </span><span class=cF6>&quot;rPGA988B\0&quot;</span><span class=cF0>
<a name="l286"></a> </span><span class=cF6>&quot;BGA1023\0&quot;</span><span class=cF0>
<a name="l287"></a> </span><span class=cF6>&quot;BGA1224\0&quot;</span><span class=cF0>
<a name="l288"></a> </span><span class=cF6>&quot;LGA1155\0&quot;</span><span class=cF0>
<a name="l289"></a> </span><span class=cF6>&quot;LGA1356\0&quot;</span><span class=cF0>
<a name="l290"></a> </span><span class=cF6>&quot;LGA2011\0&quot;</span><span class=cF0>
<a name="l291"></a> </span><span class=cF6>&quot;FS1\0&quot;</span><span class=cF0>
<a name="l292"></a> </span><span class=cF6>&quot;FS2\0&quot;</span><span class=cF0>
<a name="l293"></a> </span><span class=cF6>&quot;FM1\FM2\0&quot;</span><span class=cF0>
<a name="l294"></a> </span><span class=cF6>&quot;LGA2011-3\0&quot;</span><span class=cF0>
<a name="l295"></a> </span><span class=cF6>&quot;LGA1356-3\0&quot;</span><span class=cF0>
<a name="l296"></a> </span><span class=cF6>&quot;LGA1150\0&quot;</span><span class=cF0>
<a name="l297"></a> </span><span class=cF6>&quot;BGA1168\0&quot;</span><span class=cF0>
<a name="l298"></a> </span><span class=cF6>&quot;BGA1234\BGA1364\0&quot;</span><span class=cF0>
<a name="l299"></a> </span><span class=cF6>&quot;AM4\0&quot;</span><span class=cF0>
<a name="l300"></a> </span><span class=cF6>&quot;LGA1151\0&quot;</span><span class=cF0>
<a name="l301"></a> </span><span class=cF6>&quot;BGA1440\0&quot;</span><span class=cF0>
<a name="l302"></a> </span><span class=cF6>&quot;BGA1515\0&quot;</span><span class=cF0>
<a name="l303"></a> </span><span class=cF6>&quot;LGA3647-1\0&quot;</span><span class=cF0>
<a name="l304"></a> </span><span class=cF6>&quot;SP3\0&quot;</span><span class=cF0>
<a name="l305"></a> </span><span class=cF6>&quot;SP3r2\0&quot;</span><span class=cF0>
<a name="l306"></a> </span><span class=cF6>&quot;LGA2066\0&quot;</span><span class=cF0>
<a name="l307"></a> </span><span class=cF6>&quot;BGA1932\0&quot;</span><span class=cF0>
<a name="l308"></a> </span><span class=cF6>&quot;BGA1510\0&quot;</span><span class=cF0>
<a name="l309"></a> </span><span class=cF6>&quot;BGA1528&quot;</span><span class=cF0>);
<a name="l310"></a>
<a name="l311"></a> </span><span class=cF2>//Section 7.5.9 line 1110 (processor characteristics)</span><span class=cF0>
<a name="l312"></a> </span><span class=cF5>DefineListLoad</span><span class=cF0>(</span><span class=cF6>&quot;ST_SMBIOS_PROCESSOR_FLAGS&quot;</span><span class=cF0>,
<a name="l313"></a>
<a name="l314"></a> </span><span class=cF6>&quot; \0&quot;</span><span class=cF0>
<a name="l315"></a> </span><span class=cF6>&quot; \0&quot;</span><span class=cF0>
<a name="l316"></a> </span><span class=cF6>&quot;64 Bit\0&quot;</span><span class=cF0>
<a name="l317"></a> </span><span class=cF6>&quot;Multicore\0&quot;</span><span class=cF0>
<a name="l318"></a> </span><span class=cF6>&quot;HyperThreading\0&quot;</span><span class=cF0>
<a name="l319"></a> </span><span class=cF6>&quot;NX/XD Protection\0&quot;</span><span class=cF0>
<a name="l320"></a> </span><span class=cF6>&quot;Enhanced Virtualization\0&quot;</span><span class=cF0>
<a name="l321"></a> </span><span class=cF6>&quot;Power/Performance Control\0&quot;</span><span class=cF0>
<a name="l322"></a> </span><span class=cF6>&quot;128 Bit Capable&quot;</span><span class=cF0>);
<a name="l323"></a>
<a name="l324"></a> </span><span class=cF2>//Section 7.8.2 line 1178 (cache information SRAM type field)</span><span class=cF0>
<a name="l325"></a> </span><span class=cF5>DefineListLoad</span><span class=cF0>(</span><span class=cF6>&quot;ST_SMBIOS_CACHE_SRAM_TYPES&quot;</span><span class=cF0>,
<a name="l326"></a>
<a name="l327"></a> </span><span class=cF6>&quot;Other\0&quot;</span><span class=cF0>
<a name="l328"></a> </span><span class=cF6>&quot;Unknown\0&quot;</span><span class=cF0>
<a name="l329"></a> </span><span class=cF6>&quot;Non-Burst\0&quot;</span><span class=cF0>
<a name="l330"></a> </span><span class=cF6>&quot;Burst\0&quot;</span><span class=cF0>
<a name="l331"></a> </span><span class=cF6>&quot;Pipeline Burst\0&quot;</span><span class=cF0>
<a name="l332"></a> </span><span class=cF6>&quot;Synchronous\0&quot;</span><span class=cF0>
<a name="l333"></a> </span><span class=cF6>&quot;Asynchronous&quot;</span><span class=cF0>);
<a name="l334"></a>
<a name="l335"></a> </span><span class=cF2>//Section 7.8.6 line 1193 (cache information associativity field)</span><span class=cF0>
<a name="l336"></a> </span><span class=cF5>DefineListLoad</span><span class=cF0>(</span><span class=cF6>&quot;ST_SMBIOS_CACHE_ASSOCIATIVITY&quot;</span><span class=cF0>,
<a name="l337"></a>
<a name="l338"></a> </span><span class=cF6>&quot; \0&quot;</span><span class=cF0>
<a name="l339"></a> </span><span class=cF6>&quot;Other\0&quot;</span><span class=cF0>
<a name="l340"></a> </span><span class=cF6>&quot;Unknown\0&quot;</span><span class=cF0>
<a name="l341"></a> </span><span class=cF6>&quot;Direct Mapped\0&quot;</span><span class=cF0>
<a name="l342"></a> </span><span class=cF6>&quot;2-way Set-Associative\0&quot;</span><span class=cF0>
<a name="l343"></a> </span><span class=cF6>&quot;4-way Set-Associative\0&quot;</span><span class=cF0>
<a name="l344"></a> </span><span class=cF6>&quot;Fully Associative\0&quot;</span><span class=cF0>
<a name="l345"></a> </span><span class=cF6>&quot;8-way Set-Associative\0&quot;</span><span class=cF0>
<a name="l346"></a> </span><span class=cF6>&quot;16-way Set-Associative\0&quot;</span><span class=cF0>
<a name="l347"></a> </span><span class=cF6>&quot;12-way Set-Associative\0&quot;</span><span class=cF0>
<a name="l348"></a> </span><span class=cF6>&quot;24-way Set-Associative\0&quot;</span><span class=cF0>
<a name="l349"></a> </span><span class=cF6>&quot;32-way Set-Associative\0&quot;</span><span class=cF0>
<a name="l350"></a> </span><span class=cF6>&quot;48-way Set-Associative\0&quot;</span><span class=cF0>
<a name="l351"></a> </span><span class=cF6>&quot;64-way Set-Associative\0&quot;</span><span class=cF0>
<a name="l352"></a> </span><span class=cF6>&quot;20-way Set-Associative&quot;</span><span class=cF0>);
<a name="l353"></a>
<a name="l354"></a> </span><span class=cF2>//Section 7.9.2 line 1219 (connector type field)</span><span class=cF0>
<a name="l355"></a> </span><span class=cF5>DefineListLoad</span><span class=cF0>(</span><span class=cF6>&quot;ST_SMBIOS_CONNECTOR_TYPES&quot;</span><span class=cF0>,
<a name="l356"></a>
<a name="l357"></a> </span><span class=cF6>&quot;None\0&quot;</span><span class=cF0>
<a name="l358"></a> </span><span class=cF6>&quot;Centronics\0&quot;</span><span class=cF0>
<a name="l359"></a> </span><span class=cF6>&quot;Mini Centronics\0&quot;</span><span class=cF0>
<a name="l360"></a> </span><span class=cF6>&quot;Proprietary\0&quot;</span><span class=cF0>
<a name="l361"></a> </span><span class=cF6>&quot;DB-25 Pin Male\0&quot;</span><span class=cF0>
<a name="l362"></a> </span><span class=cF6>&quot;DB-25 Pin Female\0&quot;</span><span class=cF0>
<a name="l363"></a> </span><span class=cF6>&quot;DB-15 Pin Male\0&quot;</span><span class=cF0>
<a name="l364"></a> </span><span class=cF6>&quot;DB-15 Pin Female\0&quot;</span><span class=cF0>
<a name="l365"></a> </span><span class=cF6>&quot;DB-9 Pin Male\0&quot;</span><span class=cF0>
<a name="l366"></a> </span><span class=cF6>&quot;DB-9 Pin Female\0&quot;</span><span class=cF0>
<a name="l367"></a> </span><span class=cF6>&quot;RJ-11\0&quot;</span><span class=cF0>
<a name="l368"></a> </span><span class=cF6>&quot;RJ-45\0&quot;</span><span class=cF0>
<a name="l369"></a> </span><span class=cF6>&quot;50-Pin MiniSCSI\0&quot;</span><span class=cF0>
<a name="l370"></a> </span><span class=cF6>&quot;Mini-DIN\0&quot;</span><span class=cF0>
<a name="l371"></a> </span><span class=cF6>&quot;Micro-DIN\0&quot;</span><span class=cF0>
<a name="l372"></a> </span><span class=cF6>&quot;PS/2\0&quot;</span><span class=cF0>
<a name="l373"></a> </span><span class=cF6>&quot;Infrared\0&quot;</span><span class=cF0>
<a name="l374"></a> </span><span class=cF6>&quot;HP-HIL\0&quot;</span><span class=cF0>
<a name="l375"></a> </span><span class=cF6>&quot;Access Bus (USB)\0&quot;</span><span class=cF0>
<a name="l376"></a> </span><span class=cF6>&quot;SSA SCSI\0&quot;</span><span class=cF0>
<a name="l377"></a> </span><span class=cF6>&quot;Circular DIN-8 Male\0&quot;</span><span class=cF0>
<a name="l378"></a> </span><span class=cF6>&quot;Circular DIN-8 Female\0&quot;</span><span class=cF0>
<a name="l379"></a> </span><span class=cF6>&quot;Onboard IDE\0&quot;</span><span class=cF0>
<a name="l380"></a> </span><span class=cF6>&quot;Onboard Floppy\0&quot;</span><span class=cF0>
<a name="l381"></a> </span><span class=cF6>&quot;9-Pin Dual Inline (Pin 10 Cut)\0&quot;</span><span class=cF0>
<a name="l382"></a> </span><span class=cF6>&quot;25-Pin Dual Inline (Pin 26 Cut)\0&quot;</span><span class=cF0>
<a name="l383"></a> </span><span class=cF6>&quot;50-Pin Dual Inline\0&quot;</span><span class=cF0>
<a name="l384"></a> </span><span class=cF6>&quot;68-Pin Dual Inline\0&quot;</span><span class=cF0>
<a name="l385"></a> </span><span class=cF6>&quot;Onboard CD-ROM Sound Input\0&quot;</span><span class=cF0>
<a name="l386"></a> </span><span class=cF6>&quot;Mini-Centronics Type-14\0&quot;</span><span class=cF0>
<a name="l387"></a> </span><span class=cF6>&quot;Mini-Centronics Type-26\0&quot;</span><span class=cF0>
<a name="l388"></a> </span><span class=cF6>&quot;Mini-Jack (Headphones)\0&quot;</span><span class=cF0>
<a name="l389"></a> </span><span class=cF6>&quot;BNC\0&quot;</span><span class=cF0>
<a name="l390"></a> </span><span class=cF6>&quot;1394\0&quot;</span><span class=cF0>
<a name="l391"></a> </span><span class=cF6>&quot;SAS\SATA Plug\0&quot;</span><span class=cF0>
<a name="l392"></a> </span><span class=cF6>&quot;USB Type-C&quot;</span><span class=cF0>);
<a name="l393"></a>
<a name="l394"></a> </span><span class=cF2>//Section 7.9.3 line 1222 (port type field)</span><span class=cF0>
<a name="l395"></a> </span><span class=cF5>DefineListLoad</span><span class=cF0>(</span><span class=cF6>&quot;ST_SMBIOS_PORT_TYPES&quot;</span><span class=cF0>,
<a name="l396"></a>
<a name="l397"></a> </span><span class=cF6>&quot;None\0&quot;</span><span class=cF0>
<a name="l398"></a> </span><span class=cF6>&quot;Parallel Port XT/AT Compatible\0&quot;</span><span class=cF0>
<a name="l399"></a> </span><span class=cF6>&quot;Parallel Port PS/2\0&quot;</span><span class=cF0>
<a name="l400"></a> </span><span class=cF6>&quot;Parallel Port ECP\0&quot;</span><span class=cF0>
<a name="l401"></a> </span><span class=cF6>&quot;Parallel Port EPP\0&quot;</span><span class=cF0>
<a name="l402"></a> </span><span class=cF6>&quot;Parallel Port ECP/EPP\0&quot;</span><span class=cF0>
<a name="l403"></a> </span><span class=cF6>&quot;Serial Port XT/AT Compatible\0&quot;</span><span class=cF0>
<a name="l404"></a> </span><span class=cF6>&quot;Serial Port 16450 Compatible\0&quot;</span><span class=cF0>
<a name="l405"></a> </span><span class=cF6>&quot;Serial Port 16550 Compatible\0&quot;</span><span class=cF0>
<a name="l406"></a> </span><span class=cF6>&quot;Serial Port 16550A Compatible\0&quot;</span><span class=cF0>
<a name="l407"></a> </span><span class=cF6>&quot;SCSI Port\0&quot;</span><span class=cF0>
<a name="l408"></a> </span><span class=cF6>&quot;MIDI Port\0&quot;</span><span class=cF0>
<a name="l409"></a> </span><span class=cF6>&quot;Joystick Port\0&quot;</span><span class=cF0>
<a name="l410"></a> </span><span class=cF6>&quot;Keyboard Port\0&quot;</span><span class=cF0>
<a name="l411"></a> </span><span class=cF6>&quot;Mouse Port\0&quot;</span><span class=cF0>
<a name="l412"></a> </span><span class=cF6>&quot;SSA SCSI\0&quot;</span><span class=cF0>
<a name="l413"></a> </span><span class=cF6>&quot;USB\0&quot;</span><span class=cF0>
<a name="l414"></a> </span><span class=cF6>&quot;FireWire (IEEE 1394)\0&quot;</span><span class=cF0>
<a name="l415"></a> </span><span class=cF6>&quot;PCMCIA Type I\0&quot;</span><span class=cF0>
<a name="l416"></a> </span><span class=cF6>&quot;PCMCIA Type II\0&quot;</span><span class=cF0>
<a name="l417"></a> </span><span class=cF6>&quot;PCMCIA Type III\0&quot;</span><span class=cF0>
<a name="l418"></a> </span><span class=cF6>&quot;Cardbus\0&quot;</span><span class=cF0>
<a name="l419"></a> </span><span class=cF6>&quot;Access Bus Port\0&quot;</span><span class=cF0>
<a name="l420"></a> </span><span class=cF6>&quot;SCSI II\0&quot;</span><span class=cF0>
<a name="l421"></a> </span><span class=cF6>&quot;SCSI Wide\0&quot;</span><span class=cF0>
<a name="l422"></a> </span><span class=cF6>&quot; \0&quot;</span><span class=cF0>
<a name="l423"></a> </span><span class=cF6>&quot; \0&quot;</span><span class=cF0>
<a name="l424"></a> </span><span class=cF6>&quot; \0&quot;</span><span class=cF0>
<a name="l425"></a> </span><span class=cF6>&quot;Video Port\0&quot;</span><span class=cF0>
<a name="l426"></a> </span><span class=cF6>&quot;Audio Port\0&quot;</span><span class=cF0>
<a name="l427"></a> </span><span class=cF6>&quot;Modem Port\0&quot;</span><span class=cF0>
<a name="l428"></a> </span><span class=cF6>&quot;Network Port\0&quot;</span><span class=cF0>
<a name="l429"></a> </span><span class=cF6>&quot;SATA\0&quot;</span><span class=cF0>
<a name="l430"></a> </span><span class=cF6>&quot;SAS\0&quot;</span><span class=cF0>
<a name="l431"></a> </span><span class=cF6>&quot;MFDP (Multi-Function Display Port\0&quot;</span><span class=cF0>
<a name="l432"></a> </span><span class=cF6>&quot;Thunderbolt\0&quot;</span><span class=cF0>
<a name="l433"></a> </span><span class=cF6>&quot;8251 Compatible\0&quot;</span><span class=cF0>
<a name="l434"></a> </span><span class=cF6>&quot;8251 FIFO Compatible&quot;</span><span class=cF0>);
<a name="l435"></a>
<a name="l436"></a> </span><span class=cF2>//Section 7.10.1 line 1229 (slot type)</span><span class=cF0>
<a name="l437"></a> </span><span class=cF5>DefineListLoad</span><span class=cF0>(</span><span class=cF6>&quot;ST_SMBIOS_SLOT_TYPES1&quot;</span><span class=cF0>,
<a name="l438"></a>
<a name="l439"></a> </span><span class=cF6>&quot; \0&quot;</span><span class=cF0>
<a name="l440"></a> </span><span class=cF6>&quot;Other\0&quot;</span><span class=cF0>
<a name="l441"></a> </span><span class=cF6>&quot;Unknown\0&quot;</span><span class=cF0>
<a name="l442"></a> </span><span class=cF6>&quot;ISA\0&quot;</span><span class=cF0>
<a name="l443"></a> </span><span class=cF6>&quot;MCA\0&quot;</span><span class=cF0>
<a name="l444"></a> </span><span class=cF6>&quot;EISA\0&quot;</span><span class=cF0>
<a name="l445"></a> </span><span class=cF6>&quot;PCI\0&quot;</span><span class=cF0>
<a name="l446"></a> </span><span class=cF6>&quot;PC Card (PCMCIA)\0&quot;</span><span class=cF0>
<a name="l447"></a> </span><span class=cF6>&quot;VESA Local Bus\0&quot;</span><span class=cF0>
<a name="l448"></a> </span><span class=cF6>&quot;Proprietary\0&quot;</span><span class=cF0>
<a name="l449"></a> </span><span class=cF6>&quot;Proprietary Card Slot\0&quot;</span><span class=cF0>
<a name="l450"></a> </span><span class=cF6>&quot;Proprietary Memory Card Slot\0&quot;</span><span class=cF0>
<a name="l451"></a> </span><span class=cF6>&quot;I/O Riser Card Slot\0&quot;</span><span class=cF0>
<a name="l452"></a> </span><span class=cF6>&quot;NuBus\0&quot;</span><span class=cF0>
<a name="l453"></a> </span><span class=cF6>&quot;PCI - 66 MHz Capable\0&quot;</span><span class=cF0>
<a name="l454"></a> </span><span class=cF6>&quot;AGP\0&quot;</span><span class=cF0>
<a name="l455"></a> </span><span class=cF6>&quot;AGP 2X\0&quot;</span><span class=cF0>
<a name="l456"></a> </span><span class=cF6>&quot;AGP 4X\0&quot;</span><span class=cF0>
<a name="l457"></a> </span><span class=cF6>&quot;PCI-X\0&quot;</span><span class=cF0>
<a name="l458"></a> </span><span class=cF6>&quot;AGP 8X\0&quot;</span><span class=cF0>
<a name="l459"></a> </span><span class=cF6>&quot;M.2 Socket 1-DP (Mechanical Key A)\0&quot;</span><span class=cF0>
<a name="l460"></a> </span><span class=cF6>&quot;M.2 Socket 1-SD (Mechanical Key E)\0&quot;</span><span class=cF0>
<a name="l461"></a> </span><span class=cF6>&quot;M.2 Socket 2 (Mechanical Key B)\0&quot;</span><span class=cF0>
<a name="l462"></a> </span><span class=cF6>&quot;M.2 Socket 3 (Mechanical Key M)\0&quot;</span><span class=cF0>
<a name="l463"></a> </span><span class=cF6>&quot;MXM Type I\0&quot;</span><span class=cF0>
<a name="l464"></a> </span><span class=cF6>&quot;MXM Type II\0&quot;</span><span class=cF0>
<a name="l465"></a> </span><span class=cF6>&quot;MXM Type III (Standard Connector)\0&quot;</span><span class=cF0>
<a name="l466"></a> </span><span class=cF6>&quot;MXM Type III (HE Connector)\0&quot;</span><span class=cF0>
<a name="l467"></a> </span><span class=cF6>&quot;MXM Type IV\0&quot;</span><span class=cF0>
<a name="l468"></a> </span><span class=cF6>&quot;MXM 3.0 Type A\0&quot;</span><span class=cF0>
<a name="l469"></a> </span><span class=cF6>&quot;MXM 3.0 Type B\0&quot;</span><span class=cF0>
<a name="l470"></a> </span><span class=cF6>&quot;PCI Express Gen 2 SFF-8639\0&quot;</span><span class=cF0>
<a name="l471"></a> </span><span class=cF6>&quot;PCI Express Gen 3 SFF-8639\0&quot;</span><span class=cF0>
<a name="l472"></a> </span><span class=cF6>&quot;PCI Express Mini 52-Pin with bottom-side keep-outs\0&quot;</span><span class=cF0>
<a name="l473"></a> </span><span class=cF6>&quot;PCI Express Mini 52-Pin without bottom-side keep-outs\0&quot;</span><span class=cF0>
<a name="l474"></a> </span><span class=cF6>&quot;PCI Express Mini 76-Pin\0&quot;</span><span class=cF0>
<a name="l475"></a> </span><span class=cF6>&quot;CXL Flexbus 1.0&quot;</span><span class=cF0>);
<a name="l476"></a>
<a name="l477"></a> </span><span class=cF5>DefineListLoad</span><span class=cF0>(</span><span class=cF6>&quot;ST_SMBIOS_SLOT_TYPES2&quot;</span><span class=cF0>,
<a name="l478"></a>
<a name="l479"></a> </span><span class=cF6>&quot; \0&quot;</span><span class=cF0>
<a name="l480"></a> </span><span class=cF6>&quot; \0&quot;</span><span class=cF0>
<a name="l481"></a> </span><span class=cF6>&quot; \0&quot;</span><span class=cF0>
<a name="l482"></a> </span><span class=cF6>&quot; \0&quot;</span><span class=cF0>
<a name="l483"></a> </span><span class=cF6>&quot; \0&quot;</span><span class=cF0>
<a name="l484"></a> </span><span class=cF6>&quot;PCI Express\0&quot;</span><span class=cF0>
<a name="l485"></a> </span><span class=cF6>&quot;PCI Express 1x\0&quot;</span><span class=cF0>
<a name="l486"></a> </span><span class=cF6>&quot;PCI Express 2x\0&quot;</span><span class=cF0>
<a name="l487"></a> </span><span class=cF6>&quot;PCI Express 4x\0&quot;</span><span class=cF0>
<a name="l488"></a> </span><span class=cF6>&quot;PCI Express 8x\0&quot;</span><span class=cF0>
<a name="l489"></a> </span><span class=cF6>&quot;PCI Express 16x\0&quot;</span><span class=cF0>
<a name="l490"></a> </span><span class=cF6>&quot;PCI Express Gen 2\0&quot;</span><span class=cF0>
<a name="l491"></a> </span><span class=cF6>&quot;PCI Express Gen 2 1x\0&quot;</span><span class=cF0>
<a name="l492"></a> </span><span class=cF6>&quot;PCI Express Gen 2 2x\0&quot;</span><span class=cF0>
<a name="l493"></a> </span><span class=cF6>&quot;PCI Express Gen 2 4x\0&quot;</span><span class=cF0>
<a name="l494"></a> </span><span class=cF6>&quot;PCI Express Gen 2 8x\0&quot;</span><span class=cF0>
<a name="l495"></a> </span><span class=cF6>&quot;PCI Express Gen 2 16x\0&quot;</span><span class=cF0>
<a name="l496"></a> </span><span class=cF6>&quot;PCI Express Gen 3\0&quot;</span><span class=cF0>
<a name="l497"></a> </span><span class=cF6>&quot;PCI Express Gen 3 1x\0&quot;</span><span class=cF0>
<a name="l498"></a> </span><span class=cF6>&quot;PCI Express Gen 3 2x\0&quot;</span><span class=cF0>
<a name="l499"></a> </span><span class=cF6>&quot;PCI Express Gen 3 4x\0&quot;</span><span class=cF0>
<a name="l500"></a> </span><span class=cF6>&quot;PCI Express Gen 3 8x\0&quot;</span><span class=cF0>
<a name="l501"></a> </span><span class=cF6>&quot;PCI Express Gen 3 16x\0&quot;</span><span class=cF0>
<a name="l502"></a> </span><span class=cF6>&quot;PCI Express Gen 4\0&quot;</span><span class=cF0>
<a name="l503"></a> </span><span class=cF6>&quot;PCI Express Gen 4 1x\0&quot;</span><span class=cF0>
<a name="l504"></a> </span><span class=cF6>&quot;PCI Express Gen 4 2x\0&quot;</span><span class=cF0>
<a name="l505"></a> </span><span class=cF6>&quot;PCI Express Gen 4 4x\0&quot;</span><span class=cF0>
<a name="l506"></a> </span><span class=cF6>&quot;PCI Express Gen 4 8x\0&quot;</span><span class=cF0>
<a name="l507"></a> </span><span class=cF6>&quot;PCI Express Gen 4 16x&quot;</span><span class=cF0>);
<a name="l508"></a>
<a name="l509"></a> </span><span class=cF2>//Section 7.10.2 line 1244 (slot data bus width field)</span><span class=cF0>
<a name="l510"></a> </span><span class=cF5>DefineListLoad</span><span class=cF0>(</span><span class=cF6>&quot;ST_SMBIOS_SLOT_DATA_BUS_WIDTHS&quot;</span><span class=cF0>,
<a name="l511"></a>
<a name="l512"></a> </span><span class=cF6>&quot; \0&quot;</span><span class=cF0>
<a name="l513"></a> </span><span class=cF6>&quot;Other\0&quot;</span><span class=cF0>
<a name="l514"></a> </span><span class=cF6>&quot;Unknown\0&quot;</span><span class=cF0>
<a name="l515"></a> </span><span class=cF6>&quot;8 Bit\0&quot;</span><span class=cF0>
<a name="l516"></a> </span><span class=cF6>&quot;16 Bit\0&quot;</span><span class=cF0>
<a name="l517"></a> </span><span class=cF6>&quot;32 Bit\0&quot;</span><span class=cF0>
<a name="l518"></a> </span><span class=cF6>&quot;64 Bit\0&quot;</span><span class=cF0>
<a name="l519"></a> </span><span class=cF6>&quot;128 Bit\0&quot;</span><span class=cF0>
<a name="l520"></a> </span><span class=cF6>&quot;1x\0&quot;</span><span class=cF0>
<a name="l521"></a> </span><span class=cF6>&quot;2x\0&quot;</span><span class=cF0>
<a name="l522"></a> </span><span class=cF6>&quot;4x\0&quot;</span><span class=cF0>
<a name="l523"></a> </span><span class=cF6>&quot;8x\0&quot;</span><span class=cF0>
<a name="l524"></a> </span><span class=cF6>&quot;12x\0&quot;</span><span class=cF0>
<a name="l525"></a> </span><span class=cF6>&quot;16x\0&quot;</span><span class=cF0>
<a name="l526"></a> </span><span class=cF6>&quot;32x&quot;</span><span class=cF0>);
<a name="l527"></a>
<a name="l528"></a> </span><span class=cF2>//Section 7.10.6 line 1259 (slot characteristics 1 field)</span><span class=cF0>
<a name="l529"></a> </span><span class=cF5>DefineListLoad</span><span class=cF0>(</span><span class=cF6>&quot;ST_SMBIOS_SLOT_FLAGS1&quot;</span><span class=cF0>,
<a name="l530"></a>
<a name="l531"></a> </span><span class=cF6>&quot; \0&quot;</span><span class=cF0>
<a name="l532"></a> </span><span class=cF6>&quot;5.0 V\0&quot;</span><span class=cF0>
<a name="l533"></a> </span><span class=cF6>&quot;3.3 V\0&quot;</span><span class=cF0>
<a name="l534"></a> </span><span class=cF6>&quot;Shared Slot Opening\0&quot;</span><span class=cF0>
<a name="l535"></a> </span><span class=cF6>&quot;PC Card 16\0&quot;</span><span class=cF0>
<a name="l536"></a> </span><span class=cF6>&quot;CardBus\0&quot;</span><span class=cF0>
<a name="l537"></a> </span><span class=cF6>&quot;Zoom Video\0&quot;</span><span class=cF0>
<a name="l538"></a> </span><span class=cF6>&quot;Modem Ring Resume&quot;</span><span class=cF0>);
<a name="l539"></a>
<a name="l540"></a> </span><span class=cF2>//Section 7.10.7 line 1262 (slot characteristics 2 field)</span><span class=cF0>
<a name="l541"></a> </span><span class=cF5>DefineListLoad</span><span class=cF0>(</span><span class=cF6>&quot;ST_SMBIOS_SLOT_FLAGS2&quot;</span><span class=cF0>,
<a name="l542"></a>
<a name="l543"></a> </span><span class=cF6>&quot;PCI Power Management Event (PME#) Signal\0&quot;</span><span class=cF0>
<a name="l544"></a> </span><span class=cF6>&quot;HotPlug\0&quot;</span><span class=cF0>
<a name="l545"></a> </span><span class=cF6>&quot;SMBus\0&quot;</span><span class=cF0>
<a name="l546"></a> </span><span class=cF6>&quot;Bifurcation&quot;</span><span class=cF0>);
<a name="l547"></a>
<a name="l548"></a> </span><span class=cF2>//Section 7.17.1 line 1523 (memory array location field)</span><span class=cF0>
<a name="l549"></a> </span><span class=cF5>DefineListLoad</span><span class=cF0>(</span><span class=cF6>&quot;ST_SMBIOS_PHYMEM_LOCATIONS&quot;</span><span class=cF0>,
<a name="l550"></a>
<a name="l551"></a> </span><span class=cF6>&quot; \0&quot;</span><span class=cF0>
<a name="l552"></a> </span><span class=cF6>&quot;Other\0&quot;</span><span class=cF0>
<a name="l553"></a> </span><span class=cF6>&quot;Unknown\0&quot;</span><span class=cF0>
<a name="l554"></a> </span><span class=cF6>&quot;Motherboard\0&quot;</span><span class=cF0>
<a name="l555"></a> </span><span class=cF6>&quot;ISA Add-On Card\0&quot;</span><span class=cF0>
<a name="l556"></a> </span><span class=cF6>&quot;EISA Add-On Card\0&quot;</span><span class=cF0>
<a name="l557"></a> </span><span class=cF6>&quot;PCI Add-On Card\0&quot;</span><span class=cF0>
<a name="l558"></a> </span><span class=cF6>&quot;MCA Add-On Card\0&quot;</span><span class=cF0>
<a name="l559"></a> </span><span class=cF6>&quot;PCMCIA Add-On Card\0&quot;</span><span class=cF0>
<a name="l560"></a> </span><span class=cF6>&quot;Proprietary Add-On Card\0&quot;</span><span class=cF0>
<a name="l561"></a> </span><span class=cF6>&quot;NuBus\0&quot;</span><span class=cF0>
<a name="l562"></a> </span><span class=cF6>&quot; \0&quot;</span><span class=cF0>
<a name="l563"></a> </span><span class=cF6>&quot; \0&quot;</span><span class=cF0>
<a name="l564"></a> </span><span class=cF6>&quot; \0&quot;</span><span class=cF0>
<a name="l565"></a> </span><span class=cF6>&quot; \0&quot;</span><span class=cF0>
<a name="l566"></a> </span><span class=cF6>&quot; \0&quot;</span><span class=cF0>);
<a name="l567"></a>
<a name="l568"></a> </span><span class=cF2>//Section 7.17.2 line 1527 (memory array use field)</span><span class=cF0>
<a name="l569"></a> </span><span class=cF5>DefineListLoad</span><span class=cF0>(</span><span class=cF6>&quot;ST_SMBIOS_PHYMEM_USES&quot;</span><span class=cF0>,
<a name="l570"></a>
<a name="l571"></a> </span><span class=cF6>&quot; \0&quot;</span><span class=cF0>
<a name="l572"></a> </span><span class=cF6>&quot;Other\0&quot;</span><span class=cF0>
<a name="l573"></a> </span><span class=cF6>&quot;Unknown\0&quot;</span><span class=cF0>
<a name="l574"></a> </span><span class=cF6>&quot;System Memory\0&quot;</span><span class=cF0>
<a name="l575"></a> </span><span class=cF6>&quot;Video Memory\0&quot;</span><span class=cF0>
<a name="l576"></a> </span><span class=cF6>&quot;Flash Memory\0&quot;</span><span class=cF0>
<a name="l577"></a> </span><span class=cF6>&quot;Non-Volatile RAM\0&quot;</span><span class=cF0>
<a name="l578"></a> </span><span class=cF6>&quot;Cache Memory&quot;</span><span class=cF0>);
<a name="l579"></a>
<a name="l580"></a> </span><span class=cF2>//Section 7.18.1 line 1542 (form factor field)</span><span class=cF0>
<a name="l581"></a> </span><span class=cF5>DefineListLoad</span><span class=cF0>(</span><span class=cF6>&quot;ST_SMBIOS_MEMDEV_FORM_FACTORS&quot;</span><span class=cF0>,
<a name="l582"></a>
<a name="l583"></a> </span><span class=cF6>&quot; \0&quot;</span><span class=cF0>
<a name="l584"></a> </span><span class=cF6>&quot;Other\0&quot;</span><span class=cF0>
<a name="l585"></a> </span><span class=cF6>&quot;Unknown\0&quot;</span><span class=cF0>
<a name="l586"></a> </span><span class=cF6>&quot;SIMM\0&quot;</span><span class=cF0>
<a name="l587"></a> </span><span class=cF6>&quot;SIP\0&quot;</span><span class=cF0>
<a name="l588"></a> </span><span class=cF6>&quot;DIP\0&quot;</span><span class=cF0>
<a name="l589"></a> </span><span class=cF6>&quot;ZIP\0&quot;</span><span class=cF0>
<a name="l590"></a> </span><span class=cF6>&quot;Proprietary Card\0&quot;</span><span class=cF0>
<a name="l591"></a> </span><span class=cF6>&quot;DIMM\0&quot;</span><span class=cF0>
<a name="l592"></a> </span><span class=cF6>&quot;TSOP\0&quot;</span><span class=cF0>
<a name="l593"></a> </span><span class=cF6>&quot;Row of Chips\0&quot;</span><span class=cF0>
<a name="l594"></a> </span><span class=cF6>&quot;RIMM\0&quot;</span><span class=cF0>
<a name="l595"></a> </span><span class=cF6>&quot;SODIMM\0&quot;</span><span class=cF0>
<a name="l596"></a> </span><span class=cF6>&quot;SRIMM\0&quot;</span><span class=cF0>
<a name="l597"></a> </span><span class=cF6>&quot;FB-DIMM\0&quot;</span><span class=cF0>
<a name="l598"></a> </span><span class=cF6>&quot;Die&quot;</span><span class=cF0>);
<a name="l599"></a>
<a name="l600"></a> </span><span class=cF2>//Section 7.18.2 line 1546 (type field)</span><span class=cF0>
<a name="l601"></a> </span><span class=cF5>DefineListLoad</span><span class=cF0>(</span><span class=cF6>&quot;ST_SMBIOS_MEMDEV_TYPES&quot;</span><span class=cF0>,
<a name="l602"></a>
<a name="l603"></a> </span><span class=cF6>&quot; \0&quot;</span><span class=cF0>
<a name="l604"></a> </span><span class=cF6>&quot;Unknown\0&quot;</span><span class=cF0>
<a name="l605"></a> </span><span class=cF6>&quot;DRAM\0&quot;</span><span class=cF0>
<a name="l606"></a> </span><span class=cF6>&quot;EDRAM\0&quot;</span><span class=cF0>
<a name="l607"></a> </span><span class=cF6>&quot;VRAM\0&quot;</span><span class=cF0>
<a name="l608"></a> </span><span class=cF6>&quot;SRAM\0&quot;</span><span class=cF0>
<a name="l609"></a> </span><span class=cF6>&quot;RAM\0&quot;</span><span class=cF0>
<a name="l610"></a> </span><span class=cF6>&quot;ROM\0&quot;</span><span class=cF0>
<a name="l611"></a> </span><span class=cF6>&quot;FLASH\0&quot;</span><span class=cF0>
<a name="l612"></a> </span><span class=cF6>&quot;EEPROM\0&quot;</span><span class=cF0>
<a name="l613"></a> </span><span class=cF6>&quot;FEPROM\0&quot;</span><span class=cF0>
<a name="l614"></a> </span><span class=cF6>&quot;EPROM\0&quot;</span><span class=cF0>
<a name="l615"></a> </span><span class=cF6>&quot;CDRAM\0&quot;</span><span class=cF0>
<a name="l616"></a> </span><span class=cF6>&quot;3DRAM\0&quot;</span><span class=cF0>
<a name="l617"></a> </span><span class=cF6>&quot;SDRAM\0&quot;</span><span class=cF0>
<a name="l618"></a> </span><span class=cF6>&quot;SGRAM\0&quot;</span><span class=cF0>
<a name="l619"></a> </span><span class=cF6>&quot;RDRAM\0&quot;</span><span class=cF0>
<a name="l620"></a> </span><span class=cF6>&quot;DDR\0&quot;</span><span class=cF0>
<a name="l621"></a> </span><span class=cF6>&quot;DDR2\0&quot;</span><span class=cF0>
<a name="l622"></a> </span><span class=cF6>&quot;DDR2 FB-DIMM\0&quot;</span><span class=cF0>
<a name="l623"></a> </span><span class=cF6>&quot; \0&quot;</span><span class=cF0>
<a name="l624"></a> </span><span class=cF6>&quot; \0&quot;</span><span class=cF0>
<a name="l625"></a> </span><span class=cF6>&quot; \0&quot;</span><span class=cF0>
<a name="l626"></a> </span><span class=cF6>&quot;DDR3\0&quot;</span><span class=cF0>
<a name="l627"></a> </span><span class=cF6>&quot;FBD2\0&quot;</span><span class=cF0>
<a name="l628"></a> </span><span class=cF6>&quot;DDR4\0&quot;</span><span class=cF0>
<a name="l629"></a> </span><span class=cF6>&quot;LPDDR\0&quot;</span><span class=cF0>
<a name="l630"></a> </span><span class=cF6>&quot;LPDDR2\0&quot;</span><span class=cF0>
<a name="l631"></a> </span><span class=cF6>&quot;LPDDR3\0&quot;</span><span class=cF0>
<a name="l632"></a> </span><span class=cF6>&quot;LPDDR4\0&quot;</span><span class=cF0>
<a name="l633"></a> </span><span class=cF6>&quot;Logical Non-Volatile Device\0&quot;</span><span class=cF0>
<a name="l634"></a> </span><span class=cF6>&quot;HBM (High Bandwidth Memory)\0&quot;</span><span class=cF0>
<a name="l635"></a> </span><span class=cF6>&quot;HBM2 (High Bandwidth Memory Gen 2)&quot;</span><span class=cF0>);
<a name="l636"></a>
<a name="l637"></a> </span><span class=cF2>//Section 7.18.3 line 1550 (type detail field)</span><span class=cF0>
<a name="l638"></a> </span><span class=cF5>DefineListLoad</span><span class=cF0>(</span><span class=cF6>&quot;ST_SMBIOS_MEMDEV_TYPE_DETAILS&quot;</span><span class=cF0>,
<a name="l639"></a>
<a name="l640"></a> </span><span class=cF6>&quot; \0&quot;</span><span class=cF0>
<a name="l641"></a> </span><span class=cF6>&quot; \0&quot;</span><span class=cF0>
<a name="l642"></a> </span><span class=cF6>&quot; \0&quot;</span><span class=cF0>
<a name="l643"></a> </span><span class=cF6>&quot;Fast Paged\0&quot;</span><span class=cF0>
<a name="l644"></a> </span><span class=cF6>&quot;Static Column\0&quot;</span><span class=cF0>
<a name="l645"></a> </span><span class=cF6>&quot;Psuedo Static\0&quot;</span><span class=cF0>
<a name="l646"></a> </span><span class=cF6>&quot;RAMBUS\0&quot;</span><span class=cF0>
<a name="l647"></a> </span><span class=cF6>&quot;Synchronous\0&quot;</span><span class=cF0>
<a name="l648"></a> </span><span class=cF6>&quot;CMOS\0&quot;</span><span class=cF0>
<a name="l649"></a> </span><span class=cF6>&quot;EDO\0&quot;</span><span class=cF0>
<a name="l650"></a> </span><span class=cF6>&quot;Window DRAM\0&quot;</span><span class=cF0>
<a name="l651"></a> </span><span class=cF6>&quot;Cache DRAM\0&quot;</span><span class=cF0>
<a name="l652"></a> </span><span class=cF6>&quot;Non Volatile\0&quot;</span><span class=cF0>
<a name="l653"></a> </span><span class=cF6>&quot;Registered (Buffered)\0&quot;</span><span class=cF0>
<a name="l654"></a> </span><span class=cF6>&quot;Unregistered (Unbuffered)\0&quot;</span><span class=cF0>
<a name="l655"></a> </span><span class=cF6>&quot;LRDIMM&quot;</span><span class=cF0>);
<a name="l656"></a>} </span><span class=cF5>SMBIOSInit</span><span class=cF0>;
<a name="l657"></a>
<a name="l658"></a></span><span class=cF1>Bool</span><span class=cF0> </span><span class=cF5>SMBIOSEntryScan</span><span class=cF0>(</span><span class=cF9>CSMBIOSEntryPoint</span><span class=cF0> **entry)
<a name="l659"></a>{</span><span class=cF2>//Search 0xF0000 - 0x100000 for SMBIOS Entry Point structure.</span><span class=cF0>
<a name="l660"></a> </span><span class=cF9>I64</span><span class=cF0> i;
<a name="l661"></a> </span><span class=cF1>U8</span><span class=cF0> </span><span class=cF1>noreg</span><span class=cF0> checksum = </span><span class=cFE>0</span><span class=cF0>, *mem = </span><span class=cFE>0xF0000</span><span class=cF0>;
<a name="l662"></a>
<a name="l663"></a> </span><span class=cF1>do</span><span class=cF0>
<a name="l664"></a> </span><span class=cF7>{</span><span class=cF0>
<a name="l665"></a> </span><span class=cF1>if</span><span class=cF0> (!</span><span class=cF5>MemCompare</span><span class=cF7>(</span><span class=cF0>mem, </span><span class=cF6>&quot;_SM_&quot;</span><span class=cF0>, </span><span class=cFE>4</span><span class=cF7>)</span><span class=cF0>)
<a name="l666"></a> {
<a name="l667"></a> *entry = mem;
<a name="l668"></a> </span><span class=cF1>for</span><span class=cF0> (i = </span><span class=cFE>0</span><span class=cF0>; i &lt; </span><span class=cF7>(</span><span class=cF0>*entry</span><span class=cF7>)</span><span class=cF0>-&gt;length; i++)
<a name="l669"></a> checksum += mem[i];
<a name="l670"></a>
<a name="l671"></a> </span><span class=cF1>if</span><span class=cF0> (checksum == </span><span class=cFE>0</span><span class=cF0>) </span><span class=cF2>//valid checksums sum to zero</span><span class=cF0>
<a name="l672"></a> </span><span class=cF1>break</span><span class=cF0>;
<a name="l673"></a> }
<a name="l674"></a> </span><span class=cF7>}</span><span class=cF0>
<a name="l675"></a> </span><span class=cF1>while</span><span class=cF0> (</span><span class=cF7>(</span><span class=cF0>mem += </span><span class=cFE>16</span><span class=cF7>)</span><span class=cF0> &lt; </span><span class=cFE>0x100000</span><span class=cF0>); </span><span class=cF2>//anchor sits on 16-byte boundary</span><span class=cF0>
<a name="l676"></a>
<a name="l677"></a> </span><span class=cF1>return</span><span class=cF0> mem != </span><span class=cFE>0x100000</span><span class=cF0>;
<a name="l678"></a>}
<a name="l679"></a>
<a name="l680"></a></span><span class=cF1>U8</span><span class=cF0> *</span><span class=cF5>SMBIOSStr</span><span class=cF0>(</span><span class=cF9>CSMBIOSHeader</span><span class=cF0> *header, </span><span class=cF9>I64</span><span class=cF0> str_num, </span><span class=cF1>U8</span><span class=cF0> *</span><span class=cF1>default</span><span class=cF0>=</span><span class=cF6>&quot;None&quot;</span><span class=cF0>)
<a name="l681"></a>{</span><span class=cF2>//Get string str_num from end of structure (string section).</span><span class=cF0>
<a name="l682"></a> </span><span class=cF9>I64</span><span class=cF0> i;
<a name="l683"></a> </span><span class=cF1>U8</span><span class=cF0>* ptr = header(</span><span class=cF1>U8</span><span class=cF0> *) + header-&gt;length;
<a name="l684"></a>
<a name="l685"></a> </span><span class=cF1>if</span><span class=cF0> (!str_num)
<a name="l686"></a> </span><span class=cF1>return</span><span class=cF0> </span><span class=cF1>default</span><span class=cF0>;
<a name="l687"></a>
<a name="l688"></a> </span><span class=cF1>for</span><span class=cF0> (i = </span><span class=cFE>1</span><span class=cF0>; i &lt; str_num; i++)
<a name="l689"></a> </span><span class=cF7>{</span><span class=cF0>
<a name="l690"></a> </span><span class=cF1>while</span><span class=cF0> (*ptr++);
<a name="l691"></a> </span><span class=cF1>if</span><span class=cF0> (!ptr[</span><span class=cFE>0</span><span class=cF0>] &amp;&amp; !ptr[</span><span class=cFE>1</span><span class=cF0>]) </span><span class=cF2>//structure ends in double NULL</span><span class=cF0>
<a name="l692"></a> </span><span class=cF1>return</span><span class=cF0> </span><span class=cF1>default</span><span class=cF0>;
<a name="l693"></a> </span><span class=cF7>}</span><span class=cF0>
<a name="l694"></a>
<a name="l695"></a> </span><span class=cF1>return</span><span class=cF0> ptr;
<a name="l696"></a>}
<a name="l697"></a>
<a name="l698"></a></span><span class=cF9>CSMBIOSHeader</span><span class=cF0> *</span><span class=cF5>SMBIOSStructGet</span><span class=cF0>(</span><span class=cF9>I64</span><span class=cF0> type=</span><span class=cFE>0xFFFFF</span><span class=cF0>, </span><span class=cF9>I64</span><span class=cF0> handle=</span><span class=cFE>0xFFFFF</span><span class=cF0>, </span><span class=cF9>CSMBIOSHeader</span><span class=cF0> *head=</span><span class=cF3>NULL</span><span class=cF0>)
<a name="l699"></a>{</span><span class=cF2>//Search for struct with type or handle. Return NULL if not found.</span><span class=cF0>
<a name="l700"></a> </span><span class=cF9>I64</span><span class=cF0> i;
<a name="l701"></a> </span><span class=cF9>CSMBIOSEntryPoint</span><span class=cF0> *entry;
<a name="l702"></a>
<a name="l703"></a> </span><span class=cF1>if</span><span class=cF0> (!head)
<a name="l704"></a> </span><span class=cF7>{</span><span class=cF0>
<a name="l705"></a> </span><span class=cF1>if</span><span class=cF0> (!</span><span class=cF5>SMBIOSEntryScan</span><span class=cF7>(</span><span class=cF0>&amp;entry</span><span class=cF7>)</span><span class=cF0>)
<a name="l706"></a> </span><span class=cF1>return</span><span class=cF0> </span><span class=cF3>NULL</span><span class=cF0>;
<a name="l707"></a> head = entry-&gt;table_address;
<a name="l708"></a> </span><span class=cF7>}</span><span class=cF0>
<a name="l709"></a> </span><span class=cF1>while</span><span class=cF0> (head-&gt;type != </span><span class=cFE>127</span><span class=cF0>)
<a name="l710"></a> </span><span class=cF7>{</span><span class=cF0>
<a name="l711"></a> </span><span class=cF1>if</span><span class=cF0> (head-&gt;handle == handle)
<a name="l712"></a> </span><span class=cF1>return</span><span class=cF0> head;
<a name="l713"></a> </span><span class=cF1>if</span><span class=cF0> (head-&gt;type == type)
<a name="l714"></a> </span><span class=cF1>return</span><span class=cF0> head;
<a name="l715"></a>
<a name="l716"></a> head = head(</span><span class=cF1>U8</span><span class=cF0> *) + head-&gt;length;
<a name="l717"></a> </span><span class=cF1>for</span><span class=cF0> (i = </span><span class=cFE>1</span><span class=cF0>; head</span><span class=cF7>(</span><span class=cF1>U8</span><span class=cF0> *</span><span class=cF7>)</span><span class=cF0>[i - </span><span class=cFE>1</span><span class=cF0>] || head</span><span class=cF7>(</span><span class=cF1>U8</span><span class=cF0> *</span><span class=cF7>)</span><span class=cF0>[i]; i++);
<a name="l718"></a> head = head(</span><span class=cF1>U8</span><span class=cF0> *) + i + </span><span class=cFE>1</span><span class=cF0>;
<a name="l719"></a> </span><span class=cF7>}</span><span class=cF0>
<a name="l720"></a>
<a name="l721"></a> </span><span class=cF1>return</span><span class=cF0> </span><span class=cF3>NULL</span><span class=cF0>;
<a name="l722"></a>}
<a name="l723"></a>
<a name="l724"></a></span><span class=cF1>U8</span><span class=cF0> *</span><span class=cF5>SysRepFlagsMake</span><span class=cF0>(</span><span class=cF1>U8</span><span class=cF0> *buf)
<a name="l725"></a>{
<a name="l726"></a> </span><span class=cF1>U8</span><span class=cF0> *str;
<a name="l727"></a> </span><span class=cF1>U8</span><span class=cF0> *tmp = </span><span class=cF5>StrReplace</span><span class=cF0>(</span><span class=cF5>StrReplace</span><span class=cF7>(</span><span class=cF5>StrReplace</span><span class=cF0>(</span><span class=cF5>StrReplace</span><span class=cF7>(</span><span class=cF0>buf,
<a name="l728"></a> </span><span class=cF6>&quot;+ &quot;</span><span class=cF0>, </span><span class=cF6>&quot;&quot;</span><span class=cF7>)</span><span class=cF0>,
<a name="l729"></a> </span><span class=cF6>&quot;- &quot;</span><span class=cF0>, </span><span class=cF6>&quot;&quot;</span><span class=cF0>,, </span><span class=cF3>TRUE</span><span class=cF0>),
<a name="l730"></a> </span><span class=cF6>&quot;+&quot;</span><span class=cF0>, </span><span class=cF6>&quot;\n$BLUE$+$GREEN$&quot;</span><span class=cF0>,, </span><span class=cF3>TRUE</span><span class=cF7>)</span><span class=cF0>,
<a name="l731"></a> </span><span class=cF6>&quot;-&quot;</span><span class=cF0>, </span><span class=cF6>&quot;\n$BLUE$-$RED$&quot;</span><span class=cF0>,, </span><span class=cF3>TRUE</span><span class=cF0>);
<a name="l732"></a>
<a name="l733"></a> str = </span><span class=cF5>MStrPrint</span><span class=cF0>(</span><span class=cF6>&quot;$ID,17$%s$ID,-17$&quot;</span><span class=cF0>, tmp);
<a name="l734"></a> </span><span class=cF5>Free</span><span class=cF0>(tmp);
<a name="l735"></a>
<a name="l736"></a> </span><span class=cF1>return</span><span class=cF0> str;
<a name="l737"></a>}
<a name="l738"></a>
<a name="l739"></a></span><span class=cF1>public</span><span class=cF0> </span><span class=cF9>I64</span><span class=cF0> </span><span class=cF5>SysRep</span><span class=cF0>(</span><span class=cF9>I64</span><span class=cF0> type=</span><span class=cF3>SMBIOSt_ALL</span><span class=cF0>, </span><span class=cF9>I64</span><span class=cF0> handle=</span><span class=cFE>0</span><span class=cF0>, </span><span class=cF1>Bool</span><span class=cF0> show_all_flags=</span><span class=cF3>FALSE</span><span class=cF0>, </span><span class=cF9>I64</span><span class=cF0> memdev_handle=</span><span class=cFE>0xFFFF</span><span class=cF0>)
<a name="l740"></a>{</span><span class=cF2>//Display info of System Management BIOS (SMBIOS) structures. Returns structure count of displayed structures.</span><span class=cF0>
<a name="l741"></a> </span><span class=cF9>I64</span><span class=cF0> i = </span><span class=cFE>1</span><span class=cF0>, structure_count = </span><span class=cFE>0</span><span class=cF0>, cache_count = </span><span class=cFE>0</span><span class=cF0>;
<a name="l742"></a> </span><span class=cF9>CSMBIOSEntryPoint</span><span class=cF0> *entry;
<a name="l743"></a> </span><span class=cF9>CSMBIOSHeader</span><span class=cF0> *header;
<a name="l744"></a> </span><span class=cF1>U8</span><span class=cF0> buffer[</span><span class=cFE>2048</span><span class=cF0>], buffer2[</span><span class=cFE>512</span><span class=cF0>], *str;
<a name="l745"></a>
<a name="l746"></a> </span><span class=cF1>if</span><span class=cF0> (!</span><span class=cF5>SMBIOSEntryScan</span><span class=cF7>(</span><span class=cF0>&amp;entry</span><span class=cF7>)</span><span class=cF0>)
<a name="l747"></a> </span><span class=cF7>{</span><span class=cF0>
<a name="l748"></a> </span><span class=cF6>&quot;No SMBIOS data found.\n&quot;</span><span class=cF0>;
<a name="l749"></a> </span><span class=cF1>return</span><span class=cF0> </span><span class=cFE>0</span><span class=cF0>;
<a name="l750"></a> </span><span class=cF7>}</span><span class=cF0>
<a name="l751"></a> header = entry-&gt;table_address;
<a name="l752"></a>
<a name="l753"></a> </span><span class=cF1>if</span><span class=cF0> (!handle &amp;&amp; type == </span><span class=cFE>0xFF</span><span class=cF0>)
<a name="l754"></a> </span><span class=cF6>&quot;SMBIOS version %d.%d (%d entries)\n&quot;</span><span class=cF0>, entry-&gt;major_version, entry-&gt;minor_version, entry-&gt;structure_count;
<a name="l755"></a> </span><span class=cF1>while</span><span class=cF0> (header-&gt;type != </span><span class=cFE>127</span><span class=cF0>)
<a name="l756"></a> </span><span class=cF7>{</span><span class=cF0>
<a name="l757"></a> </span><span class=cF1>if</span><span class=cF0> (handle &amp;&amp; header-&gt;handle != handle)
<a name="l758"></a> </span><span class=cF1>goto</span><span class=cF0> loop_end;
<a name="l759"></a> </span><span class=cF1>if</span><span class=cF0> (type != </span><span class=cFE>0xFF</span><span class=cF0> &amp;&amp; header-&gt;type != type)
<a name="l760"></a> </span><span class=cF1>goto</span><span class=cF0> loop_end;
<a name="l761"></a> </span><span class=cF1>switch</span><span class=cF0> (header-&gt;type)
<a name="l762"></a> {
<a name="l763"></a> </span><span class=cF1>start</span><span class=cF0>:
<a name="l764"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>SMBIOSt_BIOS</span><span class=cF0>:
<a name="l765"></a> </span><span class=cF9>CSMBIOSBIOSInfo</span><span class=cF0> *bios_info = header;
<a name="l766"></a> </span><span class=cF9>I64</span><span class=cF0> start_addr = bios_info-&gt;start_address_segment &lt;&lt; </span><span class=cFE>16</span><span class=cF0>;
<a name="l767"></a> </span><span class=cF6>&quot;$TR-C,\&quot;BIOS\&quot;$\n&quot;</span><span class=cF0>;
<a name="l768"></a> </span><span class=cF6>&quot;$FD,CYAN$&quot;</span><span class=cF0>;
<a name="l769"></a> </span><span class=cF6>&quot;$ID,3$&quot;</span><span class=cF0>
<a name="l770"></a> </span><span class=cF6>&quot;Vendor\t\t\t:$BLACK$%s$FG$\n&quot;</span><span class=cF0>, </span><span class=cF5>SMBIOSStr</span><span class=cF0>(header, bios_info-&gt;vendor);
<a name="l771"></a> </span><span class=cF6>&quot;Version\t\t\t:$BLACK$%s$FG$\n&quot;</span><span class=cF0>, </span><span class=cF5>SMBIOSStr</span><span class=cF0>(header, bios_info-&gt;version);
<a name="l772"></a> </span><span class=cF6>&quot;Release Date\t\t:$BLACK$%s (mm/dd/yyyy)$FG$\n&quot;</span><span class=cF0>, </span><span class=cF5>SMBIOSStr</span><span class=cF0>(header, bios_info-&gt;release_date);
<a name="l773"></a> </span><span class=cF6>&quot;Release Version\t:$BLACK$%d.%d$FG$\n&quot;</span><span class=cF0>, bios_info-&gt;major_release, bios_info-&gt;minor_release;
<a name="l774"></a> </span><span class=cF6>&quot;Start Address\t:$BLACK$0x%X$FG$\n&quot;</span><span class=cF0>, </span><span class=cF5>Seg2Linear</span><span class=cF0>(&amp;start_addr);
<a name="l775"></a> </span><span class=cF6>&quot;Image Size\t\t:$BLACK$%d bytes$FG$\n&quot;</span><span class=cF0>, (</span><span class=cFE>0x10000</span><span class=cF0> - bios_info-&gt;start_address_segment) * </span><span class=cFE>16</span><span class=cF0>;
<a name="l776"></a> </span><span class=cF6>&quot;ROM Size\t\t\t:$BLACK$&quot;</span><span class=cF0>;
<a name="l777"></a> </span><span class=cF1>if</span><span class=cF0> (bios_info-&gt;rom_size == </span><span class=cFE>0xFF</span><span class=cF0>)
<a name="l778"></a> </span><span class=cF6>&quot;%d %ziB$FG$\n&quot;</span><span class=cF0>, bios_info-&gt;extended_rom_size &amp; ~</span><span class=cFE>0xC000</span><span class=cF0>, </span><span class=cF5>Bt</span><span class=cF0>(&amp;bios_info-&gt;extended_rom_size, </span><span class=cFE>14</span><span class=cF0>), </span><span class=cF6>&quot;M\0G&quot;</span><span class=cF0>;
<a name="l779"></a> </span><span class=cF1>else</span><span class=cF0>
<a name="l780"></a> </span><span class=cF6>&quot;%d KiB$FG$\n&quot;</span><span class=cF0>, (bios_info-&gt;rom_size + </span><span class=cFE>1</span><span class=cF0>) * </span><span class=cFE>64</span><span class=cF0>;
<a name="l781"></a> </span><span class=cF1>if</span><span class=cF0> (</span><span class=cF5>Bt</span><span class=cF7>(</span><span class=cF0>&amp;bios_info-&gt;flags, </span><span class=cFE>3</span><span class=cF7>)</span><span class=cF0>)
<a name="l782"></a> </span><span class=cF6>&quot;Flags Not Supported$FG$\n&quot;</span><span class=cF0>;
<a name="l783"></a> </span><span class=cF1>else</span><span class=cF0>
<a name="l784"></a> </span><span class=cF7>{</span><span class=cF0>
<a name="l785"></a> </span><span class=cF6>&quot;$TR,\&quot;Flags\&quot;$&quot;</span><span class=cF0>;
<a name="l786"></a> </span><span class=cF5>FlagsStrPrint</span><span class=cF0>(buffer, </span><span class=cF5>Define</span><span class=cF7>(</span><span class=cF6>&quot;ST_SMBIOS_BIOS_FLAGS&quot;</span><span class=cF7>)</span><span class=cF0>, bios_info-&gt;flags &amp; ~</span><span class=cFE>0xF</span><span class=cF0>, show_all_flags, </span><span class=cFE>31</span><span class=cF0>);
<a name="l787"></a> </span><span class=cF5>CatPrint</span><span class=cF0>(buffer, </span><span class=cF5>FlagsStrPrint</span><span class=cF7>(</span><span class=cF0>buffer2, </span><span class=cF5>Define</span><span class=cF0>(</span><span class=cF6>&quot;ST_SMBIOS_BIOS_FLAGSEXT1&quot;</span><span class=cF0>), bios_info-&gt;extended_flags[</span><span class=cFE>0</span><span class=cF0>], show_all_flags, </span><span class=cFE>8</span><span class=cF7>)</span><span class=cF0>);
<a name="l788"></a> </span><span class=cF5>CatPrint</span><span class=cF0>(buffer, </span><span class=cF5>FlagsStrPrint</span><span class=cF7>(</span><span class=cF0>buffer2, </span><span class=cF5>Define</span><span class=cF0>(</span><span class=cF6>&quot;ST_SMBIOS_BIOS_FLAGSEXT2&quot;</span><span class=cF0>), bios_info-&gt;extended_flags[</span><span class=cFE>1</span><span class=cF0>], show_all_flags, </span><span class=cFE>5</span><span class=cF7>)</span><span class=cF0>);
<a name="l789"></a> str = </span><span class=cF5>SysRepFlagsMake</span><span class=cF0>(buffer);
<a name="l790"></a> </span><span class=cF6>&quot;%s$FG$\n&quot;</span><span class=cF0>, str;
<a name="l791"></a> </span><span class=cF5>Free</span><span class=cF0>(str);
<a name="l792"></a> </span><span class=cF7>}</span><span class=cF0>
<a name="l793"></a> </span><span class=cF6>&quot;$ID,-3$&quot;</span><span class=cF0>;
<a name="l794"></a> </span><span class=cF1>break</span><span class=cF0>;
<a name="l795"></a>
<a name="l796"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>SMBIOSt_SYSTEM</span><span class=cF0>:
<a name="l797"></a> </span><span class=cF9>CSMBIOSSystemInfo</span><span class=cF0> *sys_info = header;
<a name="l798"></a> </span><span class=cF6>&quot;$TR-C,\&quot;System\&quot;$\n&quot;</span><span class=cF0>;
<a name="l799"></a> </span><span class=cF6>&quot;$FD,CYAN$&quot;</span><span class=cF0>;
<a name="l800"></a> </span><span class=cF6>&quot;$ID,3$Manufacturer\t\t:$BLACK$%s$FG$\n&quot;</span><span class=cF0>, </span><span class=cF5>SMBIOSStr</span><span class=cF0>(header, sys_info-&gt;manufacturer);
<a name="l801"></a> </span><span class=cF6>&quot;Product Name\t\t:$BLACK$%s$FG$\n&quot;</span><span class=cF0>, </span><span class=cF5>SMBIOSStr</span><span class=cF0>(header, sys_info-&gt;product_name);
<a name="l802"></a> </span><span class=cF6>&quot;Version\t\t\t:$BLACK$%s$FG$\n&quot;</span><span class=cF0>, </span><span class=cF5>SMBIOSStr</span><span class=cF0>(header, sys_info-&gt;version);
<a name="l803"></a> </span><span class=cF6>&quot;Serial Number\t:$BLACK$%s$FG$\n&quot;</span><span class=cF0>, </span><span class=cF5>SMBIOSStr</span><span class=cF0>(header, sys_info-&gt;serial_number);
<a name="l804"></a> </span><span class=cF6>&quot;UUID\t\t\t\t:$BLACK$%X-%X-%X-%X-%X$FG$\n&quot;</span><span class=cF0>, </span><span class=cF5>EndianU32</span><span class=cF0>(sys_info-&gt;uuid</span><span class=cF7>(</span><span class=cF9>U32</span><span class=cF0> *</span><span class=cF7>)</span><span class=cF0>),
<a name="l805"></a> </span><span class=cF5>EndianU16</span><span class=cF0>(</span><span class=cF7>(</span><span class=cF0>sys_info-&gt;uuid</span><span class=cF7>)(</span><span class=cF9>U16</span><span class=cF0> *</span><span class=cF7>)</span><span class=cF0>[</span><span class=cFE>2</span><span class=cF0>]), </span><span class=cF5>EndianU16</span><span class=cF0>(</span><span class=cF7>(</span><span class=cF0>sys_info-&gt;uuid</span><span class=cF7>)(</span><span class=cF9>U16</span><span class=cF0> *</span><span class=cF7>)</span><span class=cF0>[</span><span class=cFE>3</span><span class=cF0>]), </span><span class=cF5>EndianU16</span><span class=cF0>(</span><span class=cF7>(</span><span class=cF0>sys_info-&gt;uuid</span><span class=cF7>)(</span><span class=cF9>U16</span><span class=cF0> *</span><span class=cF7>)</span><span class=cF0>[</span><span class=cFE>4</span><span class=cF0>]),
<a name="l806"></a> </span><span class=cF5>EndianU16</span><span class=cF0>(</span><span class=cF7>(</span><span class=cF0>sys_info-&gt;uuid</span><span class=cF7>)(</span><span class=cF9>U16</span><span class=cF0> *</span><span class=cF7>)</span><span class=cF0>[</span><span class=cFE>5</span><span class=cF0>]) &lt;&lt; </span><span class=cFE>32</span><span class=cF0> | </span><span class=cF5>EndianU32</span><span class=cF0>(</span><span class=cF7>(</span><span class=cF0>sys_info-&gt;uuid</span><span class=cF7>)(</span><span class=cF9>U32</span><span class=cF0> *</span><span class=cF7>)</span><span class=cF0>[</span><span class=cFE>3</span><span class=cF0>]);
<a name="l807"></a> </span><span class=cF6>&quot;Wakeup Type\t\t:$BLACK$%Z$FG$\n&quot;</span><span class=cF0>, sys_info-&gt;wakeup_type, </span><span class=cF6>&quot;ST_SMBIOS_WAKEUP_TYPES&quot;</span><span class=cF0>;
<a name="l808"></a> </span><span class=cF6>&quot;SKU Number\t\t:$BLACK$%s$FG$\n&quot;</span><span class=cF0>, </span><span class=cF5>SMBIOSStr</span><span class=cF0>(header, sys_info-&gt;sku_number);
<a name="l809"></a> </span><span class=cF6>&quot;Family\t\t\t:$BLACK$%s$FG$\n&quot;</span><span class=cF0>, </span><span class=cF5>SMBIOSStr</span><span class=cF0>(header, sys_info-&gt;family);
<a name="l810"></a> </span><span class=cF6>&quot;$ID,-3$&quot;</span><span class=cF0>;
<a name="l811"></a> </span><span class=cF1>break</span><span class=cF0>;
<a name="l812"></a>
<a name="l813"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>SMBIOSt_ENCLOSURE</span><span class=cF0>:
<a name="l814"></a> </span><span class=cF9>CSMBIOSEnclosureInfo</span><span class=cF0> *info = header;
<a name="l815"></a> </span><span class=cF6>&quot;$TR-C,\&quot;Enclosure\&quot;$\n&quot;</span><span class=cF0>;
<a name="l816"></a> </span><span class=cF6>&quot;$FD,CYAN$&quot;</span><span class=cF0>;
<a name="l817"></a> </span><span class=cF6>&quot;$ID,3$Manufacturer\t\t:$BLACK$%s$FG$\n&quot;</span><span class=cF0>, </span><span class=cF5>SMBIOSStr</span><span class=cF0>(header, info-&gt;manufacturer);
<a name="l818"></a> </span><span class=cF6>&quot;Type\t\t\t\t:$BLACK$%Z%z$FG$\n&quot;</span><span class=cF0>, info-&gt;type &amp; </span><span class=cFE>0x7F</span><span class=cF0>, </span><span class=cF6>&quot;ST_SMBIOS_ENCLOSURE_TYPES&quot;</span><span class=cF0>,
<a name="l819"></a> </span><span class=cF5>Bt</span><span class=cF0>(&amp;info-&gt;type, </span><span class=cFE>7</span><span class=cF0>), </span><span class=cF6>&quot; \0, Lock Present&quot;</span><span class=cF0>;
<a name="l820"></a> </span><span class=cF6>&quot;Version\t\t\t:$BLACK$%s$FG$\n&quot;</span><span class=cF0>, </span><span class=cF5>SMBIOSStr</span><span class=cF0>(header, info-&gt;version);
<a name="l821"></a> </span><span class=cF6>&quot;Bootup State\t\t:$BLACK$%Z$FG$\n&quot;</span><span class=cF0>, info-&gt;bootup_state, </span><span class=cF6>&quot;ST_SMBIOS_ENCLOSURE_STATES&quot;</span><span class=cF0>;
<a name="l822"></a> </span><span class=cF6>&quot;Thermal State\t:$BLACK$%Z$FG$\n&quot;</span><span class=cF0>, info-&gt;thermal_state, </span><span class=cF6>&quot;ST_SMBIOS_ENCLOSURE_STATES&quot;</span><span class=cF0>;
<a name="l823"></a> </span><span class=cF6>&quot;Power Supply\t\t:$BLACK$%Z$FG$\n&quot;</span><span class=cF0>, info-&gt;power_supply_state, </span><span class=cF6>&quot;ST_SMBIOS_ENCLOSURE_STATES&quot;</span><span class=cF0>;
<a name="l824"></a> </span><span class=cF6>&quot;Security Status\t:$BLACK$%Z$FG$\n&quot;</span><span class=cF0>, info-&gt;security_status, </span><span class=cF6>&quot;ST_SMBIOS_ENCLOSURE_SECURITY_STATUSES&quot;</span><span class=cF0>;
<a name="l825"></a> </span><span class=cF6>&quot;Height\t\t\t:$BLACK$&quot;</span><span class=cF0>;
<a name="l826"></a> </span><span class=cF1>if</span><span class=cF0> (info-&gt;height)
<a name="l827"></a> </span><span class=cF6>&quot;%0.2f\&quot;$FG$\n&quot;</span><span class=cF0>, info-&gt;height * </span><span class=cFE>1</span><span class=cF0>.</span><span class=cFE>75</span><span class=cF0>; </span><span class=cF2>//height is in 'U' units. 1 'U' is 1.75 inches or 4.445 cm.</span><span class=cF0>
<a name="l828"></a> </span><span class=cF1>else</span><span class=cF0> </span><span class=cF6>&quot;Unknown$FG$\n&quot;</span><span class=cF0>;
<a name="l829"></a> </span><span class=cF6>&quot;Serial Number\t:$BLACK$%s$FG$\n&quot;</span><span class=cF0>, </span><span class=cF5>SMBIOSStr</span><span class=cF0>(header, info-&gt;serial_number);
<a name="l830"></a> </span><span class=cF6>&quot;Asset Tag\t\t:$BLACK$%s$FG$\n&quot;</span><span class=cF0>, </span><span class=cF5>SMBIOSStr</span><span class=cF0>(header, info-&gt;asset_tag);
<a name="l831"></a> </span><span class=cF6>&quot;Power Cord Count\t:$BLACK$&quot;</span><span class=cF0>;
<a name="l832"></a> </span><span class=cF1>if</span><span class=cF0> (info-&gt;power_cord_count)
<a name="l833"></a> </span><span class=cF6>&quot;%d$FG$\n&quot;</span><span class=cF0>, info-&gt;power_cord_count;
<a name="l834"></a> </span><span class=cF1>else</span><span class=cF0> </span><span class=cF6>&quot;Unknown$FG$\n&quot;</span><span class=cF0>;
<a name="l835"></a></span><span class=cF2>//</span><span class=cF0> </span><span class=cF2>&quot;Contained Elements:$BLACK$&quot;,r,'\t'; //TODO: maybe implement this?</span><span class=cF0>
<a name="l836"></a> </span><span class=cF6>&quot;$ID,-3$&quot;</span><span class=cF0>;
<a name="l837"></a> </span><span class=cF1>break</span><span class=cF0>;
<a name="l838"></a>
<a name="l839"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>SMBIOSt_PROCESSOR</span><span class=cF0>:
<a name="l840"></a> </span><span class=cF9>CSMBIOSProcessorInfo</span><span class=cF0> *p_info = header;
<a name="l841"></a> </span><span class=cF9>CRAXRBXRCXRDX</span><span class=cF0> regs;
<a name="l842"></a> </span><span class=cF5>CPUId</span><span class=cF0>(</span><span class=cFE>1</span><span class=cF0>, &amp;regs);
<a name="l843"></a> </span><span class=cF6>&quot;$TR-C,\&quot;Processor\&quot;$\n&quot;</span><span class=cF0>;
<a name="l844"></a> </span><span class=cF6>&quot;$FD,CYAN$&quot;</span><span class=cF0>;
<a name="l845"></a> </span><span class=cF6>&quot;$ID,3$Socket Name\t\t:$BLACK$%s$FG$\n&quot;</span><span class=cF0>, </span><span class=cF5>SMBIOSStr</span><span class=cF0>(header, p_info-&gt;name);
<a name="l846"></a> </span><span class=cF6>&quot;Processor Type\t:$BLACK$%Z$FG$\n&quot;</span><span class=cF0>, p_info-&gt;type, </span><span class=cF6>&quot;ST_SMBIOS_PROCESSOR_TYPES&quot;</span><span class=cF0>;
<a name="l847"></a> </span><span class=cF6>&quot;Status\t\t\t:$BLACK$%z, %z$FG$\n&quot;</span><span class=cF0>, p_info-&gt;status &gt;&gt; </span><span class=cFE>6</span><span class=cF0>, </span><span class=cF6>&quot;Socket Unpopulated\0Socket Populated&quot;</span><span class=cF0>,
<a name="l848"></a> p_info-&gt;status &amp; </span><span class=cFE>7</span><span class=cF0>, </span><span class=cF6>&quot;Unknown\0CPU Enabled\0CPU Disabled through BIOS Setup\0&quot;</span><span class=cF0>
<a name="l849"></a> </span><span class=cF6>&quot;CPU Disabled by BIOS (POST Error)\0CPU is Idle, Waiting to be Enabled\0 \0 \0Other&quot;</span><span class=cF0>;
<a name="l850"></a> </span><span class=cF6>&quot;Core Count\t\t:$BLACK$%d$FG$\n&quot;</span><span class=cF0>, p_info-&gt;core_count;
<a name="l851"></a> </span><span class=cF6>&quot;Cores Enabled\t:$BLACK$%d$FG$\n&quot;</span><span class=cF0>, p_info-&gt;cores_enabled;
<a name="l852"></a> </span><span class=cF6>&quot;Manufacturer\t\t:$BLACK$%s$FG$\n&quot;</span><span class=cF0>, </span><span class=cF5>SMBIOSStr</span><span class=cF0>(header, p_info-&gt;manufacturer);
<a name="l853"></a></span><span class=cF2>//</span><span class=cF0> </span><span class=cF2>&quot;CPU Family\t\t\t:$BLACK$%z$FG$\n&quot;, p_info-&gt;family, &quot;ST_SMBIOS_PROCESSOR_FAMILIES&quot;; TODO: maybe implement this?</span><span class=cF0>
<a name="l854"></a> </span><span class=cF6>&quot;Name\t\t\t\t:$BLACK$%s$FG$\n&quot;</span><span class=cF0>, </span><span class=cF5>SMBIOSStr</span><span class=cF0>(header, p_info-&gt;version);
<a name="l855"></a> </span><span class=cF6>&quot;Family\t\t\t:$BLACK$&quot;</span><span class=cF0>;
<a name="l856"></a> </span><span class=cF1>if</span><span class=cF0> (regs.rax &gt;&gt; </span><span class=cFE>8</span><span class=cF0> &amp; </span><span class=cFE>0xF</span><span class=cF0> &lt; </span><span class=cFE>0xF</span><span class=cF0>)
<a name="l857"></a> </span><span class=cF6>&quot;%d$FG$\n&quot;</span><span class=cF0>, regs.rax &gt;&gt; </span><span class=cFE>8</span><span class=cF0> &amp; </span><span class=cFE>0xF</span><span class=cF0>;
<a name="l858"></a> </span><span class=cF1>else</span><span class=cF0>
<a name="l859"></a> </span><span class=cF6>&quot;%d$FG$\n&quot;</span><span class=cF0>, </span><span class=cFE>0xF</span><span class=cF0> + regs.rax &gt;&gt; </span><span class=cFE>20</span><span class=cF0> &amp; </span><span class=cFE>0xFF</span><span class=cF0>;
<a name="l860"></a>
<a name="l861"></a> </span><span class=cF6>&quot;Model\t\t\t:$BLACK$&quot;</span><span class=cF0>;
<a name="l862"></a> </span><span class=cF1>if</span><span class=cF0> (regs.rax &gt;&gt; </span><span class=cFE>4</span><span class=cF0> &amp; </span><span class=cFE>0xF</span><span class=cF0> &lt; </span><span class=cFE>0xF</span><span class=cF0>)
<a name="l863"></a> </span><span class=cF6>&quot;%d$FG$\n&quot;</span><span class=cF0>, regs.rax &gt;&gt; </span><span class=cFE>4</span><span class=cF0> &amp; </span><span class=cFE>0xF</span><span class=cF0>;
<a name="l864"></a> </span><span class=cF1>else</span><span class=cF0>
<a name="l865"></a> </span><span class=cF6>&quot;%d$FG$\n&quot;</span><span class=cF0>, (regs.rax &gt;&gt; </span><span class=cFE>4</span><span class=cF0> &amp; </span><span class=cFE>0xF</span><span class=cF0>) &lt;&lt; </span><span class=cFE>4</span><span class=cF0> | (regs.rax &gt;&gt; </span><span class=cFE>16</span><span class=cF0> &amp; </span><span class=cFE>0xF</span><span class=cF0>);
<a name="l866"></a>
<a name="l867"></a> </span><span class=cF6>&quot;Stepping\t\t\t:$BLACK$%d$FG$\n&quot;</span><span class=cF0>, regs.rax &amp; </span><span class=cFE>0xF</span><span class=cF0>;
<a name="l868"></a> </span><span class=cF6>&quot;Current Speed\t:$BLACK$&quot;</span><span class=cF0>;
<a name="l869"></a> </span><span class=cF1>if</span><span class=cF0> (p_info-&gt;current_speed)
<a name="l870"></a> </span><span class=cF6>&quot;%0.1f GHz$FG$\n&quot;</span><span class=cF0>, p_info-&gt;current_speed / </span><span class=cFE>1000</span><span class=cF0>.</span><span class=cFE>0</span><span class=cF0>;
<a name="l871"></a> </span><span class=cF1>else</span><span class=cF0> </span><span class=cF6>&quot;Unknown$FG$\n&quot;</span><span class=cF0>;
<a name="l872"></a>
<a name="l873"></a> </span><span class=cF6>&quot;Max Speed\t\t:$BLACK$&quot;</span><span class=cF0>;
<a name="l874"></a> </span><span class=cF1>if</span><span class=cF0> (p_info-&gt;max_speed)
<a name="l875"></a> </span><span class=cF6>&quot;%0.1f GHz$FG$\n&quot;</span><span class=cF0>, p_info-&gt;max_speed / </span><span class=cFE>1000</span><span class=cF0>.</span><span class=cFE>0</span><span class=cF0>;
<a name="l876"></a> </span><span class=cF1>else</span><span class=cF0> </span><span class=cF6>&quot;Unknown$FG$\n&quot;</span><span class=cF0>;
<a name="l877"></a> </span><span class=cF6>&quot;Socket\t\t\t:$BLACK$%Z$FG$\n&quot;</span><span class=cF0>, p_info-&gt;upgrade, </span><span class=cF6>&quot;ST_SMBIOS_PROCESSOR_UPGRADES&quot;</span><span class=cF0>;
<a name="l878"></a>
<a name="l879"></a> </span><span class=cF6>&quot;Voltage\t\t\t:$BLACK$&quot;</span><span class=cF0>;
<a name="l880"></a> </span><span class=cF1>if</span><span class=cF0> (</span><span class=cF5>Bt</span><span class=cF7>(</span><span class=cF0>&amp;p_info-&gt;voltage, </span><span class=cFE>7</span><span class=cF7>)</span><span class=cF0>)
<a name="l881"></a> </span><span class=cF6>&quot;%0.1fV$FG$\n&quot;</span><span class=cF0>, (p_info-&gt;voltage &amp; </span><span class=cFE>0x7F</span><span class=cF0>) / </span><span class=cFE>10</span><span class=cF0>.</span><span class=cFE>0</span><span class=cF0>;
<a name="l882"></a> </span><span class=cF1>else</span><span class=cF0>
<a name="l883"></a> </span><span class=cF6>&quot;%Z$FG$\n&quot;</span><span class=cF0>, </span><span class=cF5>Bsf</span><span class=cF0>(p_info-&gt;voltage), </span><span class=cF6>&quot;ST_SMBIOS_PROCESSOR_VOLTAGE_LEVELS&quot;</span><span class=cF0>;
<a name="l884"></a>
<a name="l885"></a> </span><span class=cF6>&quot;External Clock\t:$BLACK$&quot;</span><span class=cF0>;
<a name="l886"></a> </span><span class=cF1>if</span><span class=cF0> (p_info-&gt;external_clock)
<a name="l887"></a> </span><span class=cF6>&quot;%d MHz$FG$\n&quot;</span><span class=cF0>, p_info-&gt;external_clock;
<a name="l888"></a> </span><span class=cF1>else</span><span class=cF0> </span><span class=cF6>&quot;Unknown$FG$\n&quot;</span><span class=cF0>;
<a name="l889"></a>
<a name="l890"></a> </span><span class=cF6>&quot;Serial Number\t:$BLACK$%s$FG$\n&quot;</span><span class=cF0>, </span><span class=cF5>SMBIOSStr</span><span class=cF0>(header, p_info-&gt;serial_number);
<a name="l891"></a> </span><span class=cF6>&quot;Asset Tag\t\t:$BLACK$%s$FG$\n&quot;</span><span class=cF0>, </span><span class=cF5>SMBIOSStr</span><span class=cF0>(header, p_info-&gt;asset_tag);
<a name="l892"></a> </span><span class=cF6>&quot;Part Number\t\t:$BLACK$%s$FG$\n&quot;</span><span class=cF0>, </span><span class=cF5>SMBIOSStr</span><span class=cF0>(header, p_info-&gt;part_number);
<a name="l893"></a>
<a name="l894"></a> </span><span class=cF5>FlagsStrPrint</span><span class=cF0>(buffer, </span><span class=cF5>Define</span><span class=cF7>(</span><span class=cF6>&quot;ST_SMBIOS_PROCESSOR_FLAGS&quot;</span><span class=cF7>)</span><span class=cF0>, p_info-&gt;characteristics, show_all_flags, </span><span class=cFE>9</span><span class=cF0>);
<a name="l895"></a> str = </span><span class=cF5>SysRepFlagsMake</span><span class=cF0>(buffer);
<a name="l896"></a> </span><span class=cF6>&quot;$TR,\&quot;Processor Flags\&quot;$%s$FG$\n&quot;</span><span class=cF0>, str;
<a name="l897"></a> </span><span class=cF5>FlagsStrPrint</span><span class=cF0>(buffer, </span><span class=cF5>Define</span><span class=cF7>(</span><span class=cF6>&quot;ST_CPUID_1_EDX_FLAGS&quot;</span><span class=cF7>)</span><span class=cF0>, regs.rdx, show_all_flags, </span><span class=cFE>32</span><span class=cF0>);
<a name="l898"></a> </span><span class=cF5>CatPrint</span><span class=cF0>(buffer, </span><span class=cF5>FlagsStrPrint</span><span class=cF7>(</span><span class=cF0>buffer2, </span><span class=cF5>Define</span><span class=cF0>(</span><span class=cF6>&quot;ST_CPUID_1_ECX_FLAGS&quot;</span><span class=cF0>), regs.rcx, show_all_flags, </span><span class=cFE>31</span><span class=cF7>)</span><span class=cF0>);
<a name="l899"></a> str = </span><span class=cF5>SysRepFlagsMake</span><span class=cF0>(buffer);
<a name="l900"></a> </span><span class=cF6>&quot;$TR,\&quot;CPUID 0x1 Flags\&quot;$%s$FG$\n&quot;</span><span class=cF0>, str;
<a name="l901"></a> </span><span class=cF5>Free</span><span class=cF0>(str);
<a name="l902"></a> </span><span class=cF1>if</span><span class=cF0> (p_info-&gt;l1_cache_handle &amp;&amp; p_info-&gt;l1_cache_handle != </span><span class=cFE>0xFFFF</span><span class=cF0>)
<a name="l903"></a> </span><span class=cF7>{</span><span class=cF0>
<a name="l904"></a> </span><span class=cF6>&quot;$TR,\&quot;L1 Cache Info\&quot;$\n&quot;</span><span class=cF0>;
<a name="l905"></a> </span><span class=cF5>SysRep</span><span class=cF0>(,p_info-&gt;l1_cache_handle, show_all_flags);
<a name="l906"></a> </span><span class=cF7>}</span><span class=cF0>
<a name="l907"></a> </span><span class=cF1>if</span><span class=cF0> (p_info-&gt;l2_cache_handle &amp;&amp; p_info-&gt;l2_cache_handle != </span><span class=cFE>0xFFFF</span><span class=cF0>)
<a name="l908"></a> </span><span class=cF7>{</span><span class=cF0>
<a name="l909"></a> </span><span class=cF6>&quot;$TR,\&quot;L2 Cache Info\&quot;$\n&quot;</span><span class=cF0>;
<a name="l910"></a> </span><span class=cF5>SysRep</span><span class=cF0>(,p_info-&gt;l2_cache_handle, show_all_flags);
<a name="l911"></a> </span><span class=cF7>}</span><span class=cF0>
<a name="l912"></a> </span><span class=cF1>if</span><span class=cF0> (p_info-&gt;l3_cache_handle &amp;&amp; p_info-&gt;l3_cache_handle != </span><span class=cFE>0xFFFF</span><span class=cF0>)
<a name="l913"></a> </span><span class=cF7>{</span><span class=cF0>
<a name="l914"></a> </span><span class=cF6>&quot;$TR,\&quot;L3 Cache Info\&quot;$\n&quot;</span><span class=cF0>;
<a name="l915"></a> </span><span class=cF5>SysRep</span><span class=cF0>(,p_info-&gt;l3_cache_handle, show_all_flags);
<a name="l916"></a> </span><span class=cF7>}</span><span class=cF0>
<a name="l917"></a> </span><span class=cF6>&quot;$ID,-3$&quot;</span><span class=cF0>;
<a name="l918"></a> </span><span class=cF1>break</span><span class=cF0>;
<a name="l919"></a>
<a name="l920"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>SMBIOSt_CACHE</span><span class=cF0>:
<a name="l921"></a> </span><span class=cF1>if</span><span class=cF0> (!handle)
<a name="l922"></a> </span><span class=cF1>break</span><span class=cF0>;
<a name="l923"></a> </span><span class=cF1>if</span><span class=cF0> (cache_count++ &gt; </span><span class=cFE>0</span><span class=cF0>)
<a name="l924"></a> </span><span class=cF1>break</span><span class=cF0>;
<a name="l925"></a> </span><span class=cF9>CSMBIOSCacheInfo</span><span class=cF0> *c_info = header;
<a name="l926"></a> </span><span class=cF6>&quot;$FD,CYAN$&quot;</span><span class=cF0>;
<a name="l927"></a> </span><span class=cF6>&quot;$ID,3$&quot;</span><span class=cF0>;
<a name="l928"></a> </span><span class=cF6>&quot;Name\t\t\t\t\t:$BLACK$%s$FG$\n&quot;</span><span class=cF0>, </span><span class=cF5>SMBIOSStr</span><span class=cF0>(header, c_info-&gt;name);
<a name="l929"></a> </span><span class=cF6>&quot;Status\t\t\t\t:$BLACK$%z$FG$\n&quot;</span><span class=cF0>, </span><span class=cF5>Bt</span><span class=cF0>(&amp;c_info-&gt;config, </span><span class=cFE>7</span><span class=cF0>), </span><span class=cF6>&quot;Disabled\0Enabled&quot;</span><span class=cF0>;
<a name="l930"></a> </span><span class=cF6>&quot;Mode\t\t\t\t\t:$BLACK$%z$FG$\n&quot;</span><span class=cF0>, c_info-&gt;config &gt;&gt; </span><span class=cFE>8</span><span class=cF0> &amp; </span><span class=cFE>3</span><span class=cF0>, </span><span class=cF6>&quot;Write-Through\0Write-Back\0Varies with Memory Address\0Unknown&quot;</span><span class=cF0>;
<a name="l931"></a> </span><span class=cF6>&quot;Type\t\t\t\t\t:$BLACK$%z$FG$\n&quot;</span><span class=cF0>, c_info-&gt;cache_type, </span><span class=cF6>&quot; \0Other\0Unknown\0Instruction\0Data\0Unified&quot;</span><span class=cF0>;
<a name="l932"></a> </span><span class=cF6>&quot;Location\t\t\t\t:$BLACK$%z$FG$\n&quot;</span><span class=cF0>, c_info-&gt;config &gt;&gt; </span><span class=cFE>5</span><span class=cF0> &amp; </span><span class=cFE>3</span><span class=cF0>, </span><span class=cF6>&quot;CPU Internal\0External\0 \0Unknown&quot;</span><span class=cF0>;
<a name="l933"></a> </span><span class=cF6>&quot;Socketed\t\t\t\t:$BLACK$%z$FG$\n&quot;</span><span class=cF0>, </span><span class=cF5>Bt</span><span class=cF0>(&amp;c_info-&gt;config, </span><span class=cFE>3</span><span class=cF0>), </span><span class=cF6>&quot;No\0Yes&quot;</span><span class=cF0>;
<a name="l934"></a> </span><span class=cF6>&quot;Max Cache Size\t\t:$BLACK$&quot;</span><span class=cF0>;
<a name="l935"></a> </span><span class=cF1>if</span><span class=cF0> (</span><span class=cF5>Bt</span><span class=cF7>(</span><span class=cF0>&amp;c_info-&gt;max_size, </span><span class=cFE>15</span><span class=cF7>)</span><span class=cF0>) </span><span class=cF2>//if Bit 15 is 1 then granularity is 64K else 1K</span><span class=cF0>
<a name="l936"></a> </span><span class=cF6>&quot;%d KB$FG$\n&quot;</span><span class=cF0>, (c_info-&gt;max_size &amp; </span><span class=cFE>0x7FFF</span><span class=cF0>) * </span><span class=cFE>64</span><span class=cF0>;
<a name="l937"></a> </span><span class=cF1>else</span><span class=cF0>
<a name="l938"></a> </span><span class=cF6>&quot;%d KB$FG$\n&quot;</span><span class=cF0>, c_info-&gt;max_size &amp; </span><span class=cFE>0x7FFF</span><span class=cF0>;
<a name="l939"></a> </span><span class=cF6>&quot;Installed Size\t\t:$BLACK$&quot;</span><span class=cF0>;
<a name="l940"></a> </span><span class=cF1>if</span><span class=cF0> (</span><span class=cF5>Bt</span><span class=cF7>(</span><span class=cF0>&amp;c_info-&gt;installed_size, </span><span class=cFE>15</span><span class=cF7>)</span><span class=cF0>) </span><span class=cF2>//if Bit 15 is 1 then granularity is 64K else 1K</span><span class=cF0>
<a name="l941"></a> </span><span class=cF6>&quot;%d KB$FG$\n&quot;</span><span class=cF0>, (c_info-&gt;installed_size &amp; </span><span class=cFE>0x7FFF</span><span class=cF0>) * </span><span class=cFE>64</span><span class=cF0>;
<a name="l942"></a> </span><span class=cF1>else</span><span class=cF0>
<a name="l943"></a> </span><span class=cF6>&quot;%d KB$FG$\n&quot;</span><span class=cF0>, c_info-&gt;installed_size &amp; </span><span class=cFE>0x7FFF</span><span class=cF0>;
<a name="l944"></a> </span><span class=cF5>FlagsStrPrint</span><span class=cF0>(buffer, </span><span class=cF5>Define</span><span class=cF7>(</span><span class=cF6>&quot;ST_SMBIOS_CACHE_SRAM_TYPES&quot;</span><span class=cF7>)</span><span class=cF0>, c_info-&gt;supported_sram_type);
<a name="l945"></a> str = </span><span class=cF5>StrReplace</span><span class=cF0>(buffer, </span><span class=cF6>&quot;+&quot;</span><span class=cF0>, </span><span class=cF6>&quot;, &quot;</span><span class=cF0>);
<a name="l946"></a> </span><span class=cF6>&quot;Supported SRAM Types\t:$BLACK$%s$FG$\n&quot;</span><span class=cF0>, str + </span><span class=cFE>2</span><span class=cF0>;
<a name="l947"></a> </span><span class=cF5>Free</span><span class=cF0>(str);
<a name="l948"></a> </span><span class=cF6>&quot;Installed SRAM Type\t:$BLACK$%Z$FG$\n&quot;</span><span class=cF0>, </span><span class=cF5>Bsf</span><span class=cF0>(c_info-&gt;installed_sram_type), </span><span class=cF6>&quot;ST_SMBIOS_CACHE_SRAM_TYPES&quot;</span><span class=cF0>;
<a name="l949"></a> </span><span class=cF6>&quot;Cache Speed\t\t\t:$BLACK$&quot;</span><span class=cF0>;
<a name="l950"></a> </span><span class=cF1>if</span><span class=cF0> (c_info-&gt;cache_speed)
<a name="l951"></a> </span><span class=cF6>&quot;%d nS$FG$\n&quot;</span><span class=cF0>, c_info-&gt;cache_speed;
<a name="l952"></a> </span><span class=cF1>else</span><span class=cF0> </span><span class=cF6>&quot;Unknown$FG$\n&quot;</span><span class=cF0>;
<a name="l953"></a> </span><span class=cF6>&quot;ECC type\t\t\t\t:$BLACK$%z$FG$\n&quot;</span><span class=cF0>, c_info-&gt;error_correction_type,
<a name="l954"></a> </span><span class=cF6>&quot; \0Other\0Unknown\0None\0Parity\0Single-bit ECC\0Multi-bit ECC&quot;</span><span class=cF0>;
<a name="l955"></a> </span><span class=cF6>&quot;Associativity\t\t\t:$BLACK$%Z$FG$\n&quot;</span><span class=cF0>, c_info-&gt;associativity, </span><span class=cF6>&quot;ST_SMBIOS_CACHE_ASSOCIATIVITY&quot;</span><span class=cF0>;
<a name="l956"></a> </span><span class=cF6>&quot;$ID,-3$&quot;</span><span class=cF0>;
<a name="l957"></a> </span><span class=cF1>break</span><span class=cF0>;
<a name="l958"></a>
<a name="l959"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>SMBIOSt_PHYMEM</span><span class=cF0>:
<a name="l960"></a> </span><span class=cF9>CSMBIOSMemArrayInfo</span><span class=cF0> *ma_info = header;
<a name="l961"></a> </span><span class=cF6>&quot;$TR,\&quot;Memory Array\&quot;$\n&quot;</span><span class=cF0>;
<a name="l962"></a> </span><span class=cF6>&quot;$FD,CYAN$&quot;</span><span class=cF0>;
<a name="l963"></a> </span><span class=cF6>&quot;$ID,3$&quot;</span><span class=cF0>;
<a name="l964"></a> </span><span class=cF6>&quot;Location\t\t\t:$BLACK$%Z$FG$\n&quot;</span><span class=cF0>, ma_info-&gt;location, </span><span class=cF6>&quot;ST_SMBIOS_PHYMEM_LOCATIONS&quot;</span><span class=cF0>;
<a name="l965"></a> </span><span class=cF6>&quot;Use\t\t\t\t:$BLACK$%Z$FG$\n&quot;</span><span class=cF0>, ma_info-&gt;use, </span><span class=cF6>&quot;ST_SMBIOS_PHYMEM_USES&quot;</span><span class=cF0>;
<a name="l966"></a> </span><span class=cF6>&quot;Error Correction\t:$BLACK$%z$FG$\n&quot;</span><span class=cF0>, ma_info-&gt;use, </span><span class=cF6>&quot; \0Other\0Unknown\0None\0Parity\0Single-bit ECC\0Multi-bit ECC\0CRC&quot;</span><span class=cF0>;
<a name="l967"></a> </span><span class=cF6>&quot;Max Capacity\t\t:$BLACK$&quot;</span><span class=cF0>;
<a name="l968"></a> </span><span class=cF1>if</span><span class=cF0> (ma_info-&gt;max_capacity == </span><span class=cFE>0x80000000</span><span class=cF0>)
<a name="l969"></a> </span><span class=cF6>&quot;%d MB$FG$\n&quot;</span><span class=cF0>, ma_info-&gt;extended_max_capacity / </span><span class=cFE>1024</span><span class=cF0>;
<a name="l970"></a> </span><span class=cF1>else</span><span class=cF0>
<a name="l971"></a> </span><span class=cF6>&quot;%d MB$FG$\n&quot;</span><span class=cF0>, ma_info-&gt;max_capacity / </span><span class=cFE>1024</span><span class=cF0>;
<a name="l972"></a> </span><span class=cF6>&quot;Mem Device Count\t:$BLACK$%d$FG$\n&quot;</span><span class=cF0>, ma_info-&gt;mem_device_count;
<a name="l973"></a> </span><span class=cF6>&quot;$TR,\&quot;Memory Devices\&quot;$\n&quot;</span><span class=cF0>;
<a name="l974"></a> </span><span class=cF6>&quot;$ID,3$&quot;</span><span class=cF0>;
<a name="l975"></a> </span><span class=cF5>SysRep</span><span class=cF0>(</span><span class=cF3>SMBIOSt_MEM_DEVICE</span><span class=cF0>, handle, show_all_flags, ma_info-&gt;header.handle);
<a name="l976"></a> </span><span class=cF6>&quot;$ID,-3$&quot;</span><span class=cF0>;
<a name="l977"></a> </span><span class=cF6>&quot;$ID,-3$&quot;</span><span class=cF0>;
<a name="l978"></a> </span><span class=cF1>break</span><span class=cF0>;
<a name="l979"></a>
<a name="l980"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>SMBIOSt_MEM_DEVICE</span><span class=cF0>:
<a name="l981"></a> </span><span class=cF9>CSMBIOSMemDeviceInfo</span><span class=cF0> *mem_info = header;
<a name="l982"></a> </span><span class=cF1>if</span><span class=cF0> (type != </span><span class=cF3>SMBIOSt_MEM_DEVICE</span><span class=cF0>)
<a name="l983"></a> </span><span class=cF1>break</span><span class=cF0>;
<a name="l984"></a> </span><span class=cF1>if</span><span class=cF0> (memdev_handle != </span><span class=cFE>0xFFFF</span><span class=cF0> &amp;&amp; memdev_handle != mem_info-&gt;memory_array_handle)
<a name="l985"></a> </span><span class=cF1>break</span><span class=cF0>;
<a name="l986"></a> </span><span class=cF6>&quot;$TR,\&quot;Memory Device\&quot;$\n&quot;</span><span class=cF0>;
<a name="l987"></a> </span><span class=cF6>&quot;$FD,CYAN$&quot;</span><span class=cF0>;
<a name="l988"></a> </span><span class=cF6>&quot;$ID,3$&quot;</span><span class=cF0>;
<a name="l989"></a> </span><span class=cF6>&quot;Device Location\t:$BLACK$%s$FG$\n&quot;</span><span class=cF0>, </span><span class=cF5>SMBIOSStr</span><span class=cF0>(header, mem_info-&gt;device_locator);
<a name="l990"></a> </span><span class=cF6>&quot;Bank Location\t\t:$BLACK$%s$FG$\n&quot;</span><span class=cF0>, </span><span class=cF5>SMBIOSStr</span><span class=cF0>(header, mem_info-&gt;bank_locator);
<a name="l991"></a> </span><span class=cF6>&quot;Manufacturer\t\t:$BLACK$%s$FG$\n&quot;</span><span class=cF0>, </span><span class=cF5>SMBIOSStr</span><span class=cF0>(header, mem_info-&gt;manufacturer);
<a name="l992"></a> </span><span class=cF6>&quot;Size\t\t\t\t:$BLACK$&quot;</span><span class=cF0>;
<a name="l993"></a> </span><span class=cF1>if</span><span class=cF0> (!mem_info-&gt;size)
<a name="l994"></a> </span><span class=cF6>&quot;No Device Installed$FG$\n&quot;</span><span class=cF0>;
<a name="l995"></a> </span><span class=cF1>else</span><span class=cF0> </span><span class=cF1>if</span><span class=cF0> (mem_info-&gt;size == </span><span class=cFE>0xFFFF</span><span class=cF0>)
<a name="l996"></a> </span><span class=cF6>&quot;Unknown$FG$\n&quot;</span><span class=cF0>;
<a name="l997"></a> </span><span class=cF1>else</span><span class=cF0> </span><span class=cF1>if</span><span class=cF0> (mem_info-&gt;size == </span><span class=cFE>0x7FFF</span><span class=cF0>)
<a name="l998"></a> </span><span class=cF6>&quot;%d GB$FG$\n&quot;</span><span class=cF0>, mem_info-&gt;extended_size;
<a name="l999"></a> </span><span class=cF1>else</span><span class=cF0>
<a name="l1000"></a> </span><span class=cF6>&quot;%d %zB$FG$\n&quot;</span><span class=cF0>, mem_info-&gt;size &amp; </span><span class=cFE>0x7FFF</span><span class=cF0>, </span><span class=cF5>Bt</span><span class=cF0>(&amp;mem_info-&gt;size, </span><span class=cFE>15</span><span class=cF0>), </span><span class=cF6>&quot;M\0K&quot;</span><span class=cF0>;
<a name="l1001"></a> </span><span class=cF1>if</span><span class=cF0> (entry-&gt;major_version &gt;= </span><span class=cFE>2</span><span class=cF0> &amp;&amp; entry-&gt;minor_version &gt;= </span><span class=cFE>8</span><span class=cF0>)
<a name="l1002"></a> </span><span class=cF7>{</span><span class=cF0>
<a name="l1003"></a> </span><span class=cF6>&quot;Min Voltage\t\t:$BLACK$&quot;</span><span class=cF0>;
<a name="l1004"></a> </span><span class=cF1>if</span><span class=cF0> (mem_info-&gt;min_voltage)
<a name="l1005"></a> </span><span class=cF6>&quot;%d mV$FG$\n&quot;</span><span class=cF0>, mem_info-&gt;min_voltage;
<a name="l1006"></a> </span><span class=cF1>else</span><span class=cF0>
<a name="l1007"></a> </span><span class=cF6>&quot;Unknown$FG$\n&quot;</span><span class=cF0>;
<a name="l1008"></a> </span><span class=cF6>&quot;Max Voltage\t\t:$BLACK$&quot;</span><span class=cF0>;
<a name="l1009"></a> </span><span class=cF1>if</span><span class=cF0> (mem_info-&gt;max_voltage)
<a name="l1010"></a> </span><span class=cF6>&quot;%d mV$FG$\n&quot;</span><span class=cF0>, mem_info-&gt;max_voltage;
<a name="l1011"></a> </span><span class=cF1>else</span><span class=cF0>
<a name="l1012"></a> </span><span class=cF6>&quot;Unknown$FG$\n&quot;</span><span class=cF0>;
<a name="l1013"></a> </span><span class=cF6>&quot;Configured Volt.\t:$BLACK$&quot;</span><span class=cF0>;
<a name="l1014"></a> </span><span class=cF1>if</span><span class=cF0> (mem_info-&gt;configured_voltage)
<a name="l1015"></a> </span><span class=cF6>&quot;%d mV$FG$\n&quot;</span><span class=cF0>, mem_info-&gt;configured_voltage;
<a name="l1016"></a> </span><span class=cF1>else</span><span class=cF0>
<a name="l1017"></a> </span><span class=cF6>&quot;Unknown$FG$\n&quot;</span><span class=cF0>;
<a name="l1018"></a> </span><span class=cF7>}</span><span class=cF0>
<a name="l1019"></a> </span><span class=cF6>&quot;Total Width\t\t:$BLACK$&quot;</span><span class=cF0>;
<a name="l1020"></a> </span><span class=cF1>if</span><span class=cF0> (mem_info-&gt;total_width != </span><span class=cFE>0xFFFF</span><span class=cF0>)
<a name="l1021"></a> </span><span class=cF6>&quot;%d bits$FG$\n&quot;</span><span class=cF0>, mem_info-&gt;total_width;
<a name="l1022"></a> </span><span class=cF1>else</span><span class=cF0>
<a name="l1023"></a> </span><span class=cF6>&quot;Unknown$FG$\n&quot;</span><span class=cF0>;
<a name="l1024"></a> </span><span class=cF6>&quot;Data Width\t\t\t:$BLACK$&quot;</span><span class=cF0>;
<a name="l1025"></a> </span><span class=cF1>if</span><span class=cF0> (mem_info-&gt;data_width != </span><span class=cFE>0xFFFF</span><span class=cF0>)
<a name="l1026"></a> </span><span class=cF6>&quot;%d bits$FG$\n&quot;</span><span class=cF0>, mem_info-&gt;data_width;
<a name="l1027"></a> </span><span class=cF1>else</span><span class=cF0>
<a name="l1028"></a> </span><span class=cF6>&quot;Unknown$FG$\n&quot;</span><span class=cF0>;
<a name="l1029"></a> </span><span class=cF6>&quot;Max Speed\t\t\t:$BLACK$&quot;</span><span class=cF0>;
<a name="l1030"></a> </span><span class=cF1>if</span><span class=cF0> (mem_info-&gt;speed)
<a name="l1031"></a> </span><span class=cF6>&quot;%d </span><span class=cF9><u>MT/s</u></span><span class=cF6>$FG$\n&quot;</span><span class=cF0>, mem_info-&gt;speed;
<a name="l1032"></a> </span><span class=cF1>else</span><span class=cF0>
<a name="l1033"></a> </span><span class=cF6>&quot;Unknown$FG$\n&quot;</span><span class=cF0>;
<a name="l1034"></a> </span><span class=cF6>&quot;Configured Speed\t:$BLACK$&quot;</span><span class=cF0>;
<a name="l1035"></a> </span><span class=cF1>if</span><span class=cF0> (mem_info-&gt;configured_speed)
<a name="l1036"></a> </span><span class=cF6>&quot;%d </span><span class=cF9><u>MT/s</u></span><span class=cF6>$FG$\n&quot;</span><span class=cF0>, mem_info-&gt;configured_speed;
<a name="l1037"></a> </span><span class=cF1>else</span><span class=cF0>
<a name="l1038"></a> </span><span class=cF6>&quot;Unknown$FG$\n&quot;</span><span class=cF0>;
<a name="l1039"></a> </span><span class=cF6>&quot;Serial Number\t\t:$BLACK$%s$FG$\n&quot;</span><span class=cF0>, </span><span class=cF5>SMBIOSStr</span><span class=cF0>(header, mem_info-&gt;serial_number);
<a name="l1040"></a> </span><span class=cF6>&quot;Part Number\t\t:$BLACK$%s$FG$\n&quot;</span><span class=cF0>, </span><span class=cF5>SMBIOSStr</span><span class=cF0>(header, mem_info-&gt;part_number);
<a name="l1041"></a> </span><span class=cF6>&quot;Asset Tag\t\t\t:$BLACK$%s$FG$\n&quot;</span><span class=cF0>, </span><span class=cF5>SMBIOSStr</span><span class=cF0>(header, mem_info-&gt;asset_tag);
<a name="l1042"></a> </span><span class=cF6>&quot;Form Factor\t\t:$BLACK$%Z$FG$\n&quot;</span><span class=cF0>, mem_info-&gt;form_factor, </span><span class=cF6>&quot;ST_SMBIOS_MEMDEV_FORM_FACTORS&quot;</span><span class=cF0>;
<a name="l1043"></a> </span><span class=cF6>&quot;Type\t\t\t\t:$BLACK$%Z$FG$\n&quot;</span><span class=cF0>, mem_info-&gt;type, </span><span class=cF6>&quot;ST_SMBIOS_MEMDEV_TYPES&quot;</span><span class=cF0>;
<a name="l1044"></a> </span><span class=cF5>FlagsStrPrint</span><span class=cF0>(buffer, </span><span class=cF5>Define</span><span class=cF7>(</span><span class=cF6>&quot;ST_SMBIOS_MEMDEV_TYPE_DETAILS&quot;</span><span class=cF7>)</span><span class=cF0>, mem_info-&gt;type_detail, show_all_flags, </span><span class=cFE>16</span><span class=cF0>);
<a name="l1045"></a> str = </span><span class=cF5>SysRepFlagsMake</span><span class=cF0>(buffer);
<a name="l1046"></a> </span><span class=cF6>&quot;$TR,\&quot;Type Flags\&quot;$%s$FG$\n&quot;</span><span class=cF0>, str;
<a name="l1047"></a> </span><span class=cF5>Free</span><span class=cF0>(str);
<a name="l1048"></a> </span><span class=cF6>&quot;$ID,-3$&quot;</span><span class=cF0>;
<a name="l1049"></a> </span><span class=cF1>break</span><span class=cF0>;
<a name="l1050"></a>
<a name="l1051"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>SMBIOSt_BASEBOARD</span><span class=cF0>:
<a name="l1052"></a> </span><span class=cF9>CSMBIOSBaseboardInfo</span><span class=cF0> *b_info = header;
<a name="l1053"></a> </span><span class=cF6>&quot;$TR-C,\&quot;Baseboard\&quot;$\n&quot;</span><span class=cF0>;
<a name="l1054"></a> </span><span class=cF6>&quot;$FD,CYAN$&quot;</span><span class=cF0>;
<a name="l1055"></a> </span><span class=cF6>&quot;$ID,3$&quot;</span><span class=cF0>;
<a name="l1056"></a> </span><span class=cF6>&quot;Manufacturer\t\t:$BLACK$%s$FG$\n&quot;</span><span class=cF0>, </span><span class=cF5>SMBIOSStr</span><span class=cF0>(header, b_info-&gt;manufacturer);
<a name="l1057"></a> </span><span class=cF6>&quot;Product\t\t\t:$BLACK$%s$FG$\n&quot;</span><span class=cF0>, </span><span class=cF5>SMBIOSStr</span><span class=cF0>(header, b_info-&gt;product);
<a name="l1058"></a> </span><span class=cF6>&quot;Version\t\t\t:$BLACK$%s$FG$\n&quot;</span><span class=cF0>, </span><span class=cF5>SMBIOSStr</span><span class=cF0>(header, b_info-&gt;version);
<a name="l1059"></a> </span><span class=cF6>&quot;Type\t\t\t\t:$BLACK$%Z$FG$\n&quot;</span><span class=cF0>, b_info-&gt;board_type, </span><span class=cF6>&quot;ST_SMBIOS_BASEBOARD_TYPES&quot;</span><span class=cF0>;
<a name="l1060"></a> </span><span class=cF6>&quot;Location\t\t\t:$BLACK$%s$FG$\n&quot;</span><span class=cF0>, </span><span class=cF5>SMBIOSStr</span><span class=cF0>(header, b_info-&gt;chassis_location, </span><span class=cF6>&quot;Not Specified&quot;</span><span class=cF0>);
<a name="l1061"></a> </span><span class=cF6>&quot;Serial Number\t:$BLACK$%s$FG$\n&quot;</span><span class=cF0>, </span><span class=cF5>SMBIOSStr</span><span class=cF0>(header, b_info-&gt;serial_number);
<a name="l1062"></a> </span><span class=cF6>&quot;Asset Tag\t\t:$BLACK$%s$FG$\n&quot;</span><span class=cF0>, </span><span class=cF5>SMBIOSStr</span><span class=cF0>(header, b_info-&gt;asset_tag);
<a name="l1063"></a> </span><span class=cF6>&quot;$TR,\&quot;Flags\&quot;$&quot;</span><span class=cF0>;
<a name="l1064"></a> </span><span class=cF5>FlagsStrPrint</span><span class=cF0>(buffer, </span><span class=cF5>Define</span><span class=cF7>(</span><span class=cF6>&quot;ST_SMBIOS_BASEBOARD_FLAGS&quot;</span><span class=cF7>)</span><span class=cF0>, b_info-&gt;feature_flags, show_all_flags, </span><span class=cFE>5</span><span class=cF0>);
<a name="l1065"></a> str = </span><span class=cF5>SysRepFlagsMake</span><span class=cF0>(buffer);
<a name="l1066"></a> </span><span class=cF6>&quot;%s$FG$\n&quot;</span><span class=cF0>, str;
<a name="l1067"></a> </span><span class=cF5>Free</span><span class=cF0>(str);
<a name="l1068"></a> </span><span class=cF6>&quot;$ID,-3$&quot;</span><span class=cF0>;
<a name="l1069"></a> </span><span class=cF1>break</span><span class=cF0>;
<a name="l1070"></a>
<a name="l1071"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>SMBIOSt_CONNECTOR</span><span class=cF0>:
<a name="l1072"></a> </span><span class=cF9>CSMBIOSConnectorInfo</span><span class=cF0> *con_info = header;
<a name="l1073"></a> </span><span class=cF6>&quot;$TR,\&quot;Port Connector\&quot;$\n&quot;</span><span class=cF0>;
<a name="l1074"></a> </span><span class=cF6>&quot;$FD,CYAN$&quot;</span><span class=cF0>;
<a name="l1075"></a> </span><span class=cF6>&quot;$ID,3$&quot;</span><span class=cF0>;
<a name="l1076"></a> </span><span class=cF6>&quot;Port Type\t\t:$BLACK$&quot;</span><span class=cF0>;
<a name="l1077"></a> </span><span class=cF1>if</span><span class=cF0> (con_info-&gt;port_type == </span><span class=cFE>0xFF</span><span class=cF0>)
<a name="l1078"></a> </span><span class=cF6>&quot;Other$FG$\n&quot;</span><span class=cF0>;
<a name="l1079"></a> </span><span class=cF1>else</span><span class=cF0>
<a name="l1080"></a> </span><span class=cF6>&quot;%Z$FG$\n&quot;</span><span class=cF0>, con_info-&gt;port_type, </span><span class=cF6>&quot;ST_SMBIOS_PORT_TYPES&quot;</span><span class=cF0>;
<a name="l1081"></a> </span><span class=cF6>&quot;External Name\t:$BLACK$%s$FG$\n&quot;</span><span class=cF0>, </span><span class=cF5>SMBIOSStr</span><span class=cF0>(header, con_info-&gt;external_name);
<a name="l1082"></a> </span><span class=cF6>&quot;Internal Name\t:$BLACK$%s$FG$\n&quot;</span><span class=cF0>, </span><span class=cF5>SMBIOSStr</span><span class=cF0>(header, con_info-&gt;internal_name);
<a name="l1083"></a> </span><span class=cF6>&quot;External Type\t:$BLACK$&quot;</span><span class=cF0>;
<a name="l1084"></a> </span><span class=cF1>if</span><span class=cF0> (con_info-&gt;external_type == </span><span class=cFE>0xFF</span><span class=cF0>)
<a name="l1085"></a> </span><span class=cF6>&quot;Other$FG$\n&quot;</span><span class=cF0>;
<a name="l1086"></a> </span><span class=cF1>else</span><span class=cF0>
<a name="l1087"></a> </span><span class=cF6>&quot;%Z$FG$\n&quot;</span><span class=cF0>, con_info-&gt;external_type, </span><span class=cF6>&quot;ST_SMBIOS_CONNECTOR_TYPES&quot;</span><span class=cF0>;
<a name="l1088"></a> </span><span class=cF6>&quot;Internal Type\t:$BLACK$&quot;</span><span class=cF0>;
<a name="l1089"></a> </span><span class=cF1>if</span><span class=cF0> (con_info-&gt;internal_type == </span><span class=cFE>0xFF</span><span class=cF0>)
<a name="l1090"></a> </span><span class=cF6>&quot;Other$FG$\n&quot;</span><span class=cF0>;
<a name="l1091"></a> </span><span class=cF1>else</span><span class=cF0>
<a name="l1092"></a> </span><span class=cF6>&quot;%Z$FG$\n&quot;</span><span class=cF0>, con_info-&gt;internal_type, </span><span class=cF6>&quot;ST_SMBIOS_CONNECTOR_TYPES&quot;</span><span class=cF0>;
<a name="l1093"></a> </span><span class=cF6>&quot;$ID,-3$&quot;</span><span class=cF0>;
<a name="l1094"></a> </span><span class=cF1>break</span><span class=cF0>;
<a name="l1095"></a>
<a name="l1096"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>SMBIOSt_BATTERY</span><span class=cF0>:
<a name="l1097"></a> </span><span class=cF9>CSMBIOSBatteryInfo</span><span class=cF0> *bat_info = header;
<a name="l1098"></a> </span><span class=cF6>&quot;$TR,\&quot;Battery\&quot;$\n&quot;</span><span class=cF0>;
<a name="l1099"></a> </span><span class=cF6>&quot;$FD,CYAN$&quot;</span><span class=cF0>;
<a name="l1100"></a> </span><span class=cF6>&quot;$ID,3$&quot;</span><span class=cF0>;
<a name="l1101"></a> </span><span class=cF6>&quot;Name\t\t\t\t:$BLACK$%s$FG$\n&quot;</span><span class=cF0>, </span><span class=cF5>SMBIOSStr</span><span class=cF0>(header, bat_info-&gt;name);
<a name="l1102"></a> </span><span class=cF6>&quot;Manufacturer\t\t:$BLACK$%s$FG$\n&quot;</span><span class=cF0>, </span><span class=cF5>SMBIOSStr</span><span class=cF0>(header, bat_info-&gt;manufacturer);
<a name="l1103"></a> </span><span class=cF6>&quot;</span><span class=cF9><u>SBDS</u></span><span class=cF6> Version\t\t:$BLACK$%s$FG$\n&quot;</span><span class=cF0>, </span><span class=cF5>SMBIOSStr</span><span class=cF0>(header, bat_info-&gt;manufacturer);
<a name="l1104"></a> </span><span class=cF6>&quot;Manufacture Date\t:$BLACK$&quot;</span><span class=cF0>;
<a name="l1105"></a> </span><span class=cF1>if</span><span class=cF0> (bat_info-&gt;manufacture_date)
<a name="l1106"></a> </span><span class=cF6>&quot;%s$FG$\n&quot;</span><span class=cF0>, </span><span class=cF5>SMBIOSStr</span><span class=cF0>(header, bat_info-&gt;manufacture_date);
<a name="l1107"></a> </span><span class=cF1>else</span><span class=cF0>
<a name="l1108"></a> </span><span class=cF6>&quot;%s$FG$\n&quot;</span><span class=cF0>, </span><span class=cF5>SMBIOSStr</span><span class=cF0>(header, bat_info-&gt;sbds_manufacture_date);
<a name="l1109"></a> </span><span class=cF6>&quot;Chemistry\t\t:$BLACK$&quot;</span><span class=cF0>;
<a name="l1110"></a> </span><span class=cF1>if</span><span class=cF0> (bat_info-&gt;chemistry)
<a name="l1111"></a> </span><span class=cF6>&quot;%s$FG$\n&quot;</span><span class=cF0>, </span><span class=cF5>SMBIOSStr</span><span class=cF0>(header, bat_info-&gt;chemistry);
<a name="l1112"></a> </span><span class=cF1>else</span><span class=cF0>
<a name="l1113"></a> </span><span class=cF6>&quot;%s$FG$\n&quot;</span><span class=cF0>, </span><span class=cF5>SMBIOSStr</span><span class=cF0>(header, bat_info-&gt;sbds_chemistry);
<a name="l1114"></a> </span><span class=cF6>&quot;Capacity\t\t\t:$BLACK$&quot;</span><span class=cF0>;
<a name="l1115"></a> </span><span class=cF1>if</span><span class=cF0> (bat_info-&gt;capacity)
<a name="l1116"></a> </span><span class=cF6>&quot;%d Milliwatt-Hours$FG$\n&quot;</span><span class=cF0>, bat_info-&gt;capacity * bat_info-&gt;capacity_multiplier;
<a name="l1117"></a> </span><span class=cF1>else</span><span class=cF0>
<a name="l1118"></a> </span><span class=cF6>&quot;Unknown$FG$\n&quot;</span><span class=cF0>;
<a name="l1119"></a> </span><span class=cF6>&quot;Voltage\t\t\t:$BLACK$&quot;</span><span class=cF0>;
<a name="l1120"></a> </span><span class=cF1>if</span><span class=cF0> (bat_info-&gt;voltage)
<a name="l1121"></a> </span><span class=cF6>&quot;%d Millivolts$FG$\n&quot;</span><span class=cF0>, bat_info-&gt;voltage;
<a name="l1122"></a> </span><span class=cF1>else</span><span class=cF0>
<a name="l1123"></a> </span><span class=cF6>&quot;Unknown$FG$\n&quot;</span><span class=cF0>;
<a name="l1124"></a> </span><span class=cF6>&quot;Max Data Error\t:$BLACK$&quot;</span><span class=cF0>;
<a name="l1125"></a> </span><span class=cF1>if</span><span class=cF0> (bat_info-&gt;max_battery_data_error != </span><span class=cFE>0xFF</span><span class=cF0>)
<a name="l1126"></a> </span><span class=cF6>&quot;%d$FG$\n&quot;</span><span class=cF0>, bat_info-&gt;max_battery_data_error;
<a name="l1127"></a> </span><span class=cF1>else</span><span class=cF0>
<a name="l1128"></a> </span><span class=cF6>&quot;Unknown$FG$\n&quot;</span><span class=cF0>;
<a name="l1129"></a> </span><span class=cF6>&quot;Serial Number\t:$BLACK$&quot;</span><span class=cF0>;
<a name="l1130"></a> </span><span class=cF1>if</span><span class=cF0> (bat_info-&gt;serial_number)
<a name="l1131"></a> </span><span class=cF6>&quot;%s$FG$\n&quot;</span><span class=cF0>, </span><span class=cF5>SMBIOSStr</span><span class=cF0>(header, bat_info-&gt;serial_number);
<a name="l1132"></a> </span><span class=cF1>else</span><span class=cF0>
<a name="l1133"></a> </span><span class=cF6>&quot;%d$FG$\n&quot;</span><span class=cF0>, bat_info-&gt;sbds_serial_number;
<a name="l1134"></a> </span><span class=cF6>&quot;$ID,-3$&quot;</span><span class=cF0>;
<a name="l1135"></a> </span><span class=cF1>break</span><span class=cF0>;
<a name="l1136"></a>
<a name="l1137"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>SMBIOSt_OEM_STRINGS</span><span class=cF0>:
<a name="l1138"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>SMBIOSt_SYS_CONFIG_OPTIONS</span><span class=cF0>:
<a name="l1139"></a> </span><span class=cF1>if</span><span class=cF0> (header-&gt;type == </span><span class=cF3>SMBIOSt_OEM_STRINGS</span><span class=cF0>)
<a name="l1140"></a> </span><span class=cF6>&quot;$TR,\&quot;OEM Strings\&quot;$\n&quot;</span><span class=cF0>;
<a name="l1141"></a> </span><span class=cF1>else</span><span class=cF0>
<a name="l1142"></a> </span><span class=cF6>&quot;$TR,\&quot;Sys Config Strings\&quot;$\n&quot;</span><span class=cF0>;
<a name="l1143"></a> </span><span class=cF6>&quot;$FD,CYAN$&quot;</span><span class=cF0>;
<a name="l1144"></a> </span><span class=cF6>&quot;$ID,3$&quot;</span><span class=cF0>;
<a name="l1145"></a> str = *(header</span><span class=cF7>(</span><span class=cF1>U8</span><span class=cF0> *</span><span class=cF7>)</span><span class=cF0> + </span><span class=cF1>sizeof</span><span class=cF7>(</span><span class=cF9>CSMBIOSHeader</span><span class=cF7>)</span><span class=cF0>); </span><span class=cF2>//using str to hold the string count</span><span class=cF0>
<a name="l1146"></a> </span><span class=cF1>for</span><span class=cF0> (i = </span><span class=cFE>1</span><span class=cF0>; i &lt;= str; i++)
<a name="l1147"></a> </span><span class=cF6>&quot;\t\t\t\t\t:$BLACK$%s$FG$\n&quot;</span><span class=cF0>, </span><span class=cF5>SMBIOSStr</span><span class=cF0>(header, i);
<a name="l1148"></a> </span><span class=cF6>&quot;$ID,-3$&quot;</span><span class=cF0>;
<a name="l1149"></a> </span><span class=cF1>break</span><span class=cF0>;
<a name="l1150"></a>
<a name="l1151"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>SMBIOSt_SLOT</span><span class=cF0>:
<a name="l1152"></a> </span><span class=cF9>CSMBIOSSlotInfo</span><span class=cF0> *slot_info = header;
<a name="l1153"></a> </span><span class=cF6>&quot;$TR,\&quot;Slot\&quot;$\n&quot;</span><span class=cF0>;
<a name="l1154"></a> </span><span class=cF6>&quot;$FD,CYAN$&quot;</span><span class=cF0>;
<a name="l1155"></a> </span><span class=cF6>&quot;$ID,3$&quot;</span><span class=cF0>;
<a name="l1156"></a> </span><span class=cF6>&quot;Name\t\t\t\t:$BLACK$%s$FG$\n&quot;</span><span class=cF0>, </span><span class=cF5>SMBIOSStr</span><span class=cF0>(header, slot_info-&gt;name);
<a name="l1157"></a> </span><span class=cF6>&quot;Type\t\t\t\t:$BLACK$&quot;</span><span class=cF0>;
<a name="l1158"></a> </span><span class=cF1>if</span><span class=cF0> (slot_info-&gt;type &gt;= </span><span class=cFE>0xA0</span><span class=cF0>)
<a name="l1159"></a> </span><span class=cF6>&quot;%Z$FG$\n&quot;</span><span class=cF0>, slot_info-&gt;type - </span><span class=cFE>0xA0</span><span class=cF0>, </span><span class=cF6>&quot;ST_SMBIOS_SLOT_TYPES2&quot;</span><span class=cF0>;
<a name="l1160"></a> </span><span class=cF1>else</span><span class=cF0>
<a name="l1161"></a> </span><span class=cF6>&quot;%Z$FG$\n&quot;</span><span class=cF0>, slot_info-&gt;type, </span><span class=cF6>&quot;ST_SMBIOS_SLOT_TYPES1&quot;</span><span class=cF0>;
<a name="l1162"></a> </span><span class=cF6>&quot;Data Bus Width\t:$BLACK$%Z$FG$\n&quot;</span><span class=cF0>, slot_info-&gt;data_bus_width, </span><span class=cF6>&quot;ST_SMBIOS_SLOT_DATA_BUS_WIDTHS&quot;</span><span class=cF0>;
<a name="l1163"></a> </span><span class=cF6>&quot;Current Usage\t:$BLACK$%z$FG$\n&quot;</span><span class=cF0>, slot_info-&gt;current_usage, </span><span class=cF6>&quot; \0Other\0Unknown\0Available\0In Use\0Unavailable&quot;</span><span class=cF0>;
<a name="l1164"></a> </span><span class=cF6>&quot;Slot Length\t\t:$BLACK$%z$FG$\n&quot;</span><span class=cF0>, slot_info-&gt;length, </span><span class=cF6>&quot; \0Other\0Unknown\0Short\0Long\02.5\&quot; Drive Form Factor\03.5\&quot; Drive Form Factor&quot;</span><span class=cF0>;
<a name="l1165"></a> </span><span class=cF6>&quot;Segment Group\t:$BLACK$&quot;</span><span class=cF0>;
<a name="l1166"></a> </span><span class=cF1>if</span><span class=cF0> (slot_info-&gt;segment_group_number != </span><span class=cFE>0xFF</span><span class=cF0>)
<a name="l1167"></a> </span><span class=cF6>&quot;%d$FG$\n&quot;</span><span class=cF0>, slot_info-&gt;segment_group_number;
<a name="l1168"></a> </span><span class=cF1>else</span><span class=cF0>
<a name="l1169"></a> </span><span class=cF6>&quot;None$FG$\n&quot;</span><span class=cF0>;
<a name="l1170"></a> </span><span class=cF6>&quot;Bus\t\t\t\t:$BLACK$&quot;</span><span class=cF0>;
<a name="l1171"></a> </span><span class=cF1>if</span><span class=cF0> (slot_info-&gt;bus_number != </span><span class=cFE>0xFF</span><span class=cF0>)
<a name="l1172"></a> </span><span class=cF6>&quot;%d$FG$\n&quot;</span><span class=cF0>, slot_info-&gt;bus_number;
<a name="l1173"></a> </span><span class=cF1>else</span><span class=cF0>
<a name="l1174"></a> </span><span class=cF6>&quot;None$FG$\n&quot;</span><span class=cF0>;
<a name="l1175"></a>
<a name="l1176"></a> </span><span class=cF1>if</span><span class=cF0> (slot_info-&gt;device_function_number != </span><span class=cFE>0xFF</span><span class=cF0>)
<a name="l1177"></a> </span><span class=cF7>{</span><span class=cF0>
<a name="l1178"></a> </span><span class=cF6>&quot;Device\t\t\t:$BLACK$%d$FG$\n&quot;</span><span class=cF0>, slot_info-&gt;device_function_number &gt;&gt; </span><span class=cFE>3</span><span class=cF0>;
<a name="l1179"></a> </span><span class=cF6>&quot;Function\t\t\t:$BLACK$%d$FG$\n&quot;</span><span class=cF0>, slot_info-&gt;device_function_number &amp; </span><span class=cFE>7</span><span class=cF0>;
<a name="l1180"></a> </span><span class=cF7>}</span><span class=cF0>
<a name="l1181"></a> </span><span class=cF1>else</span><span class=cF0>
<a name="l1182"></a> </span><span class=cF6>&quot;Device\t\t\t:$BLACK$None$FG$\nFunction\t\t\t:$BLACK$None$FG$\n&quot;</span><span class=cF0>;
<a name="l1183"></a> </span><span class=cF6>&quot;$TR,\&quot;Flags\&quot;$&quot;</span><span class=cF0>;
<a name="l1184"></a> </span><span class=cF1>if</span><span class=cF0> (!</span><span class=cF5>Bt</span><span class=cF7>(</span><span class=cF0>&amp;slot_info-&gt;flags1, </span><span class=cFE>0</span><span class=cF7>)</span><span class=cF0>)
<a name="l1185"></a> </span><span class=cF7>{</span><span class=cF0>
<a name="l1186"></a> </span><span class=cF5>FlagsStrPrint</span><span class=cF0>(buffer, </span><span class=cF5>Define</span><span class=cF7>(</span><span class=cF6>&quot;ST_SMBIOS_SLOT_FLAGS1&quot;</span><span class=cF7>)</span><span class=cF0>, slot_info-&gt;flags1, show_all_flags, </span><span class=cFE>8</span><span class=cF0>);
<a name="l1187"></a> </span><span class=cF5>CatPrint</span><span class=cF0>(buffer, </span><span class=cF5>FlagsStrPrint</span><span class=cF7>(</span><span class=cF0>buffer2, </span><span class=cF5>Define</span><span class=cF0>(</span><span class=cF6>&quot;ST_SMBIOS_SLOT_FLAGS2&quot;</span><span class=cF0>), slot_info-&gt;flags2, show_all_flags, </span><span class=cFE>4</span><span class=cF7>)</span><span class=cF0>);
<a name="l1188"></a> str = </span><span class=cF5>SysRepFlagsMake</span><span class=cF0>(buffer);
<a name="l1189"></a> </span><span class=cF6>&quot;%s$FG$\n&quot;</span><span class=cF0>, str;
<a name="l1190"></a> </span><span class=cF5>Free</span><span class=cF0>(str);
<a name="l1191"></a> </span><span class=cF7>}</span><span class=cF0>
<a name="l1192"></a> </span><span class=cF6>&quot;$ID,-3$&quot;</span><span class=cF0>;
<a name="l1193"></a> </span><span class=cF1>break</span><span class=cF0>;
<a name="l1194"></a>
<a name="l1195"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cFE>28</span><span class=cF0>:
<a name="l1196"></a> </span><span class=cF6>&quot;$TR,\&quot;Temperature Probe\&quot;$\n&quot;</span><span class=cF0>;
<a name="l1197"></a> </span><span class=cF1>break</span><span class=cF0>;
<a name="l1198"></a>
<a name="l1199"></a> </span><span class=cF1>end</span><span class=cF0>:
<a name="l1200"></a> structure_count++;
<a name="l1201"></a> }
<a name="l1202"></a>loop_end:
<a name="l1203"></a> header = header(</span><span class=cF1>U8</span><span class=cF0> *) + header-&gt;length;
<a name="l1204"></a> </span><span class=cF1>for</span><span class=cF0> (i = </span><span class=cFE>1</span><span class=cF0>; header</span><span class=cF7>(</span><span class=cF1>U8</span><span class=cF0> *</span><span class=cF7>)</span><span class=cF0>[i - </span><span class=cFE>1</span><span class=cF0>] || header</span><span class=cF7>(</span><span class=cF1>U8</span><span class=cF0> *</span><span class=cF7>)</span><span class=cF0>[i]; i++);
<a name="l1205"></a> header = header(</span><span class=cF1>U8</span><span class=cF0> *) + i + </span><span class=cFE>1</span><span class=cF0>;
<a name="l1206"></a> </span><span class=cF7>}</span><span class=cF0>
<a name="l1207"></a> </span><span class=cF1>if</span><span class=cF0> (!handle)
<a name="l1208"></a> </span><span class=cF6>&quot;$FD,BLUE$&quot;</span><span class=cF0>;
<a name="l1209"></a>
<a name="l1210"></a> </span><span class=cF1>return</span><span class=cF0> structure_count;
<a name="l1211"></a>}
<a name="l1212"></a>
<a name="l1213"></a></span><span class=cF1>public</span><span class=cF0> </span><span class=cF1>U0</span><span class=cF0> </span><span class=cF5>BIOSRep</span><span class=cF0>()
<a name="l1214"></a>{</span><span class=cF2>//Wrapper around </span><a href="https://tomawezome.github.io/ZealOS/System/Utils/SysRep.CC.html#l739"><span class=cF4>SysRep</span></a><span class=cF2>() to only show BIOS info.</span><span class=cF0>
<a name="l1215"></a> </span><span class=cF5>SysRep</span><span class=cF0>(</span><span class=cF3>SMBIOSt_BIOS</span><span class=cF0>);
<a name="l1216"></a>}
</span></pre></body>
</html>