QueryTable.c 80 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147
  1. /** @file
  2. Build a table, each item is (Key, Info) pair.
  3. And give a interface of query a string out of a table.
  4. Copyright (c) 2005 - 2021, Intel Corporation. All rights reserved.<BR>
  5. (C) Copyright 2016-2019 Hewlett Packard Enterprise Development LP<BR>
  6. SPDX-License-Identifier: BSD-2-Clause-Patent
  7. **/
  8. #include "UefiShellDebug1CommandsLib.h"
  9. #include "QueryTable.h"
  10. #include "PrintInfo.h"
  11. TABLE_ITEM SystemWakeupTypeTable[] = {
  12. {
  13. 0x0,
  14. L" Reserved"
  15. },
  16. {
  17. 0x1,
  18. L" Other"
  19. },
  20. {
  21. 0x2,
  22. L" Unknown"
  23. },
  24. {
  25. 0x3,
  26. L" APM Timer"
  27. },
  28. {
  29. 0x4,
  30. L" Modem Ring"
  31. },
  32. {
  33. 0x5,
  34. L" LAN Remote"
  35. },
  36. {
  37. 0x6,
  38. L" Power Switch"
  39. },
  40. {
  41. 0x7,
  42. L" AC Power Restored"
  43. }
  44. };
  45. TABLE_ITEM BaseBoardFeatureFlagsTable[] = {
  46. {
  47. 0,
  48. L" Hosting board"
  49. },
  50. {
  51. 1,
  52. L" Requires at least one daughter board or auxiliary card"
  53. },
  54. {
  55. 2,
  56. L" Removable"
  57. },
  58. {
  59. 3,
  60. L" Replaceable"
  61. },
  62. {
  63. 4,
  64. L" Hot swappable"
  65. }
  66. };
  67. TABLE_ITEM BaseBoardBoardTypeTable[] = {
  68. {
  69. 0x01,
  70. L" Unknown"
  71. },
  72. {
  73. 0x02,
  74. L" Other"
  75. },
  76. {
  77. 0x03,
  78. L" Server Blade"
  79. },
  80. {
  81. 0x04,
  82. L" Connectivity Switch"
  83. },
  84. {
  85. 0x05,
  86. L" System Management Module"
  87. },
  88. {
  89. 0x06,
  90. L" Processor Module"
  91. },
  92. {
  93. 0x07,
  94. L" I/O Module"
  95. },
  96. {
  97. 0x08,
  98. L" Memory Module"
  99. },
  100. {
  101. 0x09,
  102. L" Daughter board"
  103. },
  104. {
  105. 0x0A,
  106. L" Motherboard"
  107. },
  108. {
  109. 0x0B,
  110. L" Processor/Memory Module"
  111. },
  112. {
  113. 0x0C,
  114. L" Processor/IO Module"
  115. },
  116. {
  117. 0x0D,
  118. L" Interconnect Board"
  119. }
  120. };
  121. TABLE_ITEM SystemEnclosureTypeTable[] = {
  122. {
  123. 0x01,
  124. L" Other"
  125. },
  126. {
  127. 0x02,
  128. L" Unknown"
  129. },
  130. {
  131. 0x03,
  132. L" Desktop"
  133. },
  134. {
  135. 0x04,
  136. L" Low Profile Desktop"
  137. },
  138. {
  139. 0x05,
  140. L" Pizza Box"
  141. },
  142. {
  143. 0x06,
  144. L" Mini Tower"
  145. },
  146. {
  147. 0x07,
  148. L" Tower"
  149. },
  150. {
  151. 0x08,
  152. L" Portable"
  153. },
  154. {
  155. 0x09,
  156. L" Laptop"
  157. },
  158. {
  159. 0x0A,
  160. L" Notebook"
  161. },
  162. {
  163. 0x0B,
  164. L" Hand Held"
  165. },
  166. {
  167. 0x0C,
  168. L" Docking Station"
  169. },
  170. {
  171. 0x0D,
  172. L" All in One"
  173. },
  174. {
  175. 0x0E,
  176. L" Sub Notebook"
  177. },
  178. {
  179. 0x0F,
  180. L" Space-saving"
  181. },
  182. {
  183. 0x10,
  184. L" Lunch Box"
  185. },
  186. {
  187. 0x11,
  188. L" Main Server Chassis"
  189. },
  190. {
  191. 0x12,
  192. L" Expansion Chassis"
  193. },
  194. {
  195. 0x13,
  196. L" SubChassis"
  197. },
  198. {
  199. 0x14,
  200. L" Bus Expansion Chassis"
  201. },
  202. {
  203. 0x15,
  204. L" Peripheral Chassis"
  205. },
  206. {
  207. 0x16,
  208. L" RAID Chassis"
  209. },
  210. {
  211. 0x17,
  212. L" Rack Mount Chassis"
  213. },
  214. {
  215. 0x18,
  216. L" Sealed-case PC"
  217. },
  218. {
  219. 0x19,
  220. L" Multi-system Chassis"
  221. },
  222. {
  223. 0x1A,
  224. L" CompactPCI"
  225. },
  226. {
  227. 0x1B,
  228. L" AdvancedTCA"
  229. },
  230. {
  231. 0x1C,
  232. L" Blade"
  233. },
  234. {
  235. 0x1D,
  236. L" Blade Enclosure"
  237. },
  238. {
  239. 0x1E,
  240. L" Tablet"
  241. },
  242. {
  243. 0x1F,
  244. L" Convertible"
  245. },
  246. {
  247. 0x20,
  248. L" Detachable"
  249. },
  250. {
  251. 0x21,
  252. L" IoT Gateway"
  253. },
  254. {
  255. 0x22,
  256. L" Embedded PC"
  257. },
  258. {
  259. 0x23,
  260. L" Mini PC"
  261. },
  262. {
  263. 0x24,
  264. L" Stick PC"
  265. },
  266. };
  267. TABLE_ITEM SystemEnclosureStatusTable[] = {
  268. {
  269. 0x1,
  270. L" Other"
  271. },
  272. {
  273. 0x2,
  274. L" Unknown"
  275. },
  276. {
  277. 0x3,
  278. L" Safe"
  279. },
  280. {
  281. 0x4,
  282. L" Warning"
  283. },
  284. {
  285. 0x5,
  286. L" Critical"
  287. },
  288. {
  289. 0x6,
  290. L" Non-recoverable"
  291. }
  292. };
  293. TABLE_ITEM SESecurityStatusTable[] = {
  294. {
  295. 0x1,
  296. L" Other"
  297. },
  298. {
  299. 0x2,
  300. L" Unknown"
  301. },
  302. {
  303. 0x3,
  304. L" None"
  305. },
  306. {
  307. 0x4,
  308. L" External interface locked out"
  309. },
  310. {
  311. 0x5,
  312. L" External interface enabled"
  313. }
  314. };
  315. TABLE_ITEM ProcessorTypeTable[] = {
  316. {
  317. 0x1,
  318. L" Other"
  319. },
  320. {
  321. 0x2,
  322. L" Unknown"
  323. },
  324. {
  325. 0x3,
  326. L" Central Processor"
  327. },
  328. {
  329. 0x4,
  330. L" Math Processor"
  331. },
  332. {
  333. 0x5,
  334. L" DSP Processor"
  335. },
  336. {
  337. 0x6,
  338. L" Video Processor "
  339. },
  340. };
  341. TABLE_ITEM ProcessorUpgradeTable[] = {
  342. {
  343. 0x01,
  344. L"Other"
  345. },
  346. {
  347. 0x02,
  348. L"Unknown"
  349. },
  350. {
  351. 0x03,
  352. L"Daughter Board"
  353. },
  354. {
  355. 0x04,
  356. L"ZIF Socket"
  357. },
  358. {
  359. 0x05,
  360. L"Replaceable Piggy Back"
  361. },
  362. {
  363. 0x06,
  364. L"None"
  365. },
  366. {
  367. 0x07,
  368. L"LIF Socket"
  369. },
  370. {
  371. 0x08,
  372. L"Slot 1"
  373. },
  374. {
  375. 0x09,
  376. L"Slot 2"
  377. },
  378. {
  379. 0x0A,
  380. L"370-pin socket"
  381. },
  382. {
  383. 0x0B,
  384. L"Slot A"
  385. },
  386. {
  387. 0x0C,
  388. L"Slot M"
  389. },
  390. {
  391. 0x0D,
  392. L"Socket 423"
  393. },
  394. {
  395. 0x0E,
  396. L"Socket A"
  397. },
  398. {
  399. 0x0F,
  400. L"Socket 478"
  401. },
  402. {
  403. 0x10,
  404. L"Socket 754"
  405. },
  406. {
  407. 0x11,
  408. L"Socket 940"
  409. },
  410. {
  411. 0x12,
  412. L"Socket 939"
  413. },
  414. {
  415. 0x13,
  416. L"Socket mPGA604"
  417. },
  418. {
  419. 0x14,
  420. L"Socket LGA771"
  421. },
  422. {
  423. 0x15,
  424. L"Socket LGA775"
  425. },
  426. {
  427. 0x16,
  428. L"Socket S1"
  429. },
  430. {
  431. 0x17,
  432. L"Socket AM2"
  433. },
  434. {
  435. 0x18,
  436. L"Socket F"
  437. },
  438. {
  439. 0x19,
  440. L"Socket LGA1366"
  441. },
  442. {
  443. 0x1A,
  444. L"Socket G34"
  445. },
  446. {
  447. 0x1B,
  448. L"Socket AM3"
  449. },
  450. {
  451. 0x1C,
  452. L"Socket C32"
  453. },
  454. {
  455. 0x1D,
  456. L"Socket LGA1156"
  457. },
  458. {
  459. 0x1E,
  460. L"Socket LGA1567"
  461. },
  462. {
  463. 0x1F,
  464. L"Socket PGA988A"
  465. },
  466. {
  467. 0x20,
  468. L"Socket BGA1288"
  469. },
  470. {
  471. 0x21,
  472. L"Socket rPGA988B"
  473. },
  474. {
  475. 0x22,
  476. L"Socket BGA1023"
  477. },
  478. {
  479. 0x23,
  480. L"Socket BGA1224"
  481. },
  482. {
  483. 0x24,
  484. L"Socket LGA1155"
  485. },
  486. {
  487. 0x25,
  488. L"Socket LGA1356"
  489. },
  490. {
  491. 0x26,
  492. L"Socket LGA2011"
  493. },
  494. {
  495. 0x27,
  496. L"Socket FS1"
  497. },
  498. {
  499. 0x28,
  500. L"Socket FS2"
  501. },
  502. {
  503. 0x29,
  504. L"Socket FM1"
  505. },
  506. {
  507. 0x2A,
  508. L"Socket FM2"
  509. },
  510. {
  511. 0x2B,
  512. L"Socket LGA2011-3"
  513. },
  514. {
  515. 0x2C,
  516. L"Socket LGA1356-3"
  517. },
  518. {
  519. 0x2D,
  520. L"Socket LGA1150"
  521. },
  522. {
  523. 0x2E,
  524. L"Socket BGA1168"
  525. },
  526. {
  527. 0x2F,
  528. L"Socket BGA1234"
  529. },
  530. {
  531. 0x30,
  532. L"Socket BGA1364"
  533. },
  534. {
  535. 0x31,
  536. L"Socket AM4"
  537. },
  538. {
  539. 0x32,
  540. L"Socket LGA1151"
  541. },
  542. {
  543. 0x33,
  544. L"Socket BGA1356"
  545. },
  546. {
  547. 0x34,
  548. L"Socket BGA1440"
  549. },
  550. {
  551. 0x35,
  552. L"Socket BGA1515"
  553. },
  554. {
  555. 0x36,
  556. L"Socket LGA3647-1"
  557. },
  558. {
  559. 0x37,
  560. L"Socket SP3"
  561. },
  562. {
  563. 0x38,
  564. L"Socket SP3r2"
  565. },
  566. {
  567. 0x39,
  568. L"Socket LGA2066"
  569. },
  570. {
  571. 0x3A,
  572. L"Socket BGA1392"
  573. },
  574. {
  575. 0x3B,
  576. L"Socket BGA1510"
  577. },
  578. {
  579. 0x3C,
  580. L"Socket BGA1528"
  581. },
  582. {
  583. 0x3D,
  584. L"Socket LGA4189"
  585. },
  586. {
  587. 0x3E,
  588. L"Socket LGA1200"
  589. },
  590. {
  591. 0x3F,
  592. L"Socket LGA4677"
  593. },
  594. {
  595. 0x40,
  596. L"Socket LGA1700"
  597. },
  598. {
  599. 0x41,
  600. L"Socket BGA1744"
  601. },
  602. {
  603. 0x42,
  604. L"Socket BGA1781"
  605. },
  606. {
  607. 0x43,
  608. L"Socket BGA1211"
  609. },
  610. {
  611. 0x44,
  612. L"Socket BGA2422"
  613. },
  614. {
  615. 0x45,
  616. L"Socket LGA1211"
  617. },
  618. {
  619. 0x46,
  620. L"Socket LGA2422"
  621. },
  622. {
  623. 0x47,
  624. L"Socket LGA5773"
  625. },
  626. {
  627. 0x48,
  628. L"Socket BGA5773"
  629. }
  630. };
  631. TABLE_ITEM ProcessorCharacteristicsTable[] = {
  632. {
  633. 1,
  634. L" Unknown"
  635. },
  636. {
  637. 2,
  638. L" 64-bit Capable"
  639. },
  640. {
  641. 3,
  642. L" Multi-Core"
  643. },
  644. {
  645. 4,
  646. L" Hardware Thread"
  647. },
  648. {
  649. 5,
  650. L" Execute Protection"
  651. },
  652. {
  653. 6,
  654. L" Enhanced Virtualization"
  655. },
  656. {
  657. 7,
  658. L" Power/Performance Control"
  659. },
  660. {
  661. 8,
  662. L" 128-bit Capable"
  663. },
  664. {
  665. 9,
  666. L" ARM64 SoC ID"
  667. }
  668. };
  669. TABLE_ITEM McErrorDetectMethodTable[] = {
  670. {
  671. 0x01,
  672. L"Other"
  673. },
  674. {
  675. 0x02,
  676. L"Unknown"
  677. },
  678. {
  679. 0x03,
  680. L"None"
  681. },
  682. {
  683. 0x04,
  684. L"8-bit Parity"
  685. },
  686. {
  687. 0x05,
  688. L"32-bit ECC"
  689. },
  690. {
  691. 0x06,
  692. L"64-bit ECC"
  693. },
  694. {
  695. 0x07,
  696. L"128-bit ECC"
  697. },
  698. {
  699. 0x08,
  700. L"CRC"
  701. },
  702. };
  703. TABLE_ITEM McErrorCorrectCapabilityTable[] = {
  704. {
  705. 0,
  706. L"Other"
  707. },
  708. {
  709. 1,
  710. L"Unknown"
  711. },
  712. {
  713. 2,
  714. L"None"
  715. },
  716. {
  717. 3,
  718. L"Single Bit Error Correcting"
  719. },
  720. {
  721. 4,
  722. L"Double Bit Error Correcting"
  723. },
  724. {
  725. 5,
  726. L"Error Scrubbing"
  727. },
  728. };
  729. TABLE_ITEM McInterleaveSupportTable[] = {
  730. {
  731. 0x01,
  732. L"Other"
  733. },
  734. {
  735. 0x02,
  736. L"Unknown"
  737. },
  738. {
  739. 0x03,
  740. L"One Way Interleave"
  741. },
  742. {
  743. 0x04,
  744. L"Two Way Interleave"
  745. },
  746. {
  747. 0x05,
  748. L"Four Way Interleave"
  749. },
  750. {
  751. 0x06,
  752. L"Eight Way Interleave"
  753. },
  754. {
  755. 0x07,
  756. L"Sixteen Way Interleave"
  757. }
  758. };
  759. TABLE_ITEM McMemorySpeedsTable[] = {
  760. {
  761. 0,
  762. L" Other"
  763. },
  764. {
  765. 1,
  766. L" Unknown"
  767. },
  768. {
  769. 2,
  770. L" 70ns"
  771. },
  772. {
  773. 3,
  774. L" 60ns"
  775. },
  776. {
  777. 4,
  778. L" 50ns"
  779. },
  780. };
  781. TABLE_ITEM MemoryModuleVoltageTable[] = {
  782. {
  783. 0,
  784. L" 5V"
  785. },
  786. {
  787. 1,
  788. L" 3.3V"
  789. },
  790. {
  791. 2,
  792. L" 2.9V"
  793. },
  794. };
  795. TABLE_ITEM MmMemoryTypeTable[] = {
  796. {
  797. 0,
  798. L" Other"
  799. },
  800. {
  801. 1,
  802. L" Unknown"
  803. },
  804. {
  805. 2,
  806. L" Standard"
  807. },
  808. {
  809. 3,
  810. L" Fast Page Mode"
  811. },
  812. {
  813. 4,
  814. L" EDO"
  815. },
  816. {
  817. 5,
  818. L" Parity"
  819. },
  820. {
  821. 6,
  822. L" ECC "
  823. },
  824. {
  825. 7,
  826. L" SIMM"
  827. },
  828. {
  829. 8,
  830. L" DIMM"
  831. },
  832. {
  833. 9,
  834. L" Burst EDO"
  835. },
  836. {
  837. 10,
  838. L" SDRAM"
  839. }
  840. };
  841. TABLE_ITEM MmErrorStatusTable[] = {
  842. {
  843. 0,
  844. L" Uncorrectable errors received"
  845. },
  846. {
  847. 1,
  848. L" Correctable errors received"
  849. },
  850. {
  851. 2,
  852. L" Error Status obtained from the event log"
  853. }
  854. };
  855. TABLE_ITEM CacheSRAMTypeTable[] = {
  856. {
  857. 0,
  858. L" Other"
  859. },
  860. {
  861. 1,
  862. L" Unknown"
  863. },
  864. {
  865. 2,
  866. L" Non-Burst"
  867. },
  868. {
  869. 3,
  870. L" Burst"
  871. },
  872. {
  873. 4,
  874. L" Pipeline Burst"
  875. },
  876. {
  877. 5,
  878. L" Synchronous"
  879. },
  880. {
  881. 6,
  882. L" Asynchronous"
  883. },
  884. };
  885. TABLE_ITEM CacheErrCorrectingTypeTable[] = {
  886. {
  887. 0x01,
  888. L"Other"
  889. },
  890. {
  891. 0x02,
  892. L"Unknown"
  893. },
  894. {
  895. 0x03,
  896. L"None"
  897. },
  898. {
  899. 0x04,
  900. L"Parity"
  901. },
  902. {
  903. 0x05,
  904. L"Single-bit ECC"
  905. },
  906. {
  907. 0x06,
  908. L"Multi-bit ECC"
  909. }
  910. };
  911. TABLE_ITEM CacheSystemCacheTypeTable[] = {
  912. {
  913. 0x01,
  914. L"Other"
  915. },
  916. {
  917. 0x02,
  918. L"Unknown"
  919. },
  920. {
  921. 0x03,
  922. L"Instruction"
  923. },
  924. {
  925. 0x04,
  926. L"Data"
  927. },
  928. {
  929. 0x05,
  930. L"Unified"
  931. }
  932. };
  933. TABLE_ITEM CacheAssociativityTable[] = {
  934. {
  935. 0x01,
  936. L"Other"
  937. },
  938. {
  939. 0x02,
  940. L"Unknown"
  941. },
  942. {
  943. 0x03,
  944. L"Direct Mapped"
  945. },
  946. {
  947. 0x04,
  948. L"2-way Set-Associative"
  949. },
  950. {
  951. 0x05,
  952. L"4-way Set-Associative"
  953. },
  954. {
  955. 0x06,
  956. L"Fully Associative"
  957. },
  958. {
  959. 0x07,
  960. L"8-way Set-Associative"
  961. },
  962. {
  963. 0x08,
  964. L"16-way Set-Associative"
  965. },
  966. {
  967. 0x09,
  968. L"12-way Set-Associative"
  969. },
  970. {
  971. 0x0A,
  972. L"24-way Set-Associative"
  973. },
  974. {
  975. 0x0B,
  976. L"32-way Set-Associative"
  977. },
  978. {
  979. 0x0C,
  980. L"48-way Set-Associative"
  981. },
  982. {
  983. 0x0D,
  984. L"64-way Set-Associative"
  985. },
  986. {
  987. 0x0E,
  988. L"20-way Set-Associative"
  989. }
  990. };
  991. TABLE_ITEM PortConnectorTypeTable[] = {
  992. {
  993. 0x00,
  994. L"None"
  995. },
  996. {
  997. 0x01,
  998. L"Centronics"
  999. },
  1000. {
  1001. 0x02,
  1002. L"Mini Centronics"
  1003. },
  1004. {
  1005. 0x03,
  1006. L"Proprietary"
  1007. },
  1008. {
  1009. 0x04,
  1010. L"DB-25 pin male"
  1011. },
  1012. {
  1013. 0x05,
  1014. L"DB-25 pin female"
  1015. },
  1016. {
  1017. 0x06,
  1018. L"DB-15 pin male"
  1019. },
  1020. {
  1021. 0x07,
  1022. L"DB-15 pin female"
  1023. },
  1024. {
  1025. 0x08,
  1026. L"DB-9 pin male"
  1027. },
  1028. {
  1029. 0x09,
  1030. L"DB-9 pin female"
  1031. },
  1032. {
  1033. 0x0A,
  1034. L"RJ-11"
  1035. },
  1036. {
  1037. 0x0B,
  1038. L"RJ-45"
  1039. },
  1040. {
  1041. 0x0C,
  1042. L"50 Pin MiniSCSI"
  1043. },
  1044. {
  1045. 0x0D,
  1046. L"Mini-DIN"
  1047. },
  1048. {
  1049. 0x0E,
  1050. L"Micro-DIN"
  1051. },
  1052. {
  1053. 0x0F,
  1054. L"PS/2"
  1055. },
  1056. {
  1057. 0x10,
  1058. L"Infrared"
  1059. },
  1060. {
  1061. 0x11,
  1062. L"HP-HIL"
  1063. },
  1064. {
  1065. 0x12,
  1066. L"Access Bus (USB)"
  1067. },
  1068. {
  1069. 0x13,
  1070. L"SSA SCSI"
  1071. },
  1072. {
  1073. 0x14,
  1074. L"Circular DIN-8 male"
  1075. },
  1076. {
  1077. 0x15,
  1078. L"Circular DIN-8 female"
  1079. },
  1080. {
  1081. 0x16,
  1082. L"On Board IDE"
  1083. },
  1084. {
  1085. 0x17,
  1086. L"On Board Floppy"
  1087. },
  1088. {
  1089. 0x18,
  1090. L"9 Pin Dual Inline (pin 10 cut)"
  1091. },
  1092. {
  1093. 0x19,
  1094. L"25 Pin Dual Inline (pin 26 cut)"
  1095. },
  1096. {
  1097. 0x1A,
  1098. L"50 Pin Dual Inline"
  1099. },
  1100. {
  1101. 0x1B,
  1102. L"68 Pin Dual Inline"
  1103. },
  1104. {
  1105. 0x1C,
  1106. L"On Board Sound Input from CD-ROM"
  1107. },
  1108. {
  1109. 0x1D,
  1110. L"Mini-Centronics Type-14"
  1111. },
  1112. {
  1113. 0x1E,
  1114. L"Mini-Centronics Type-26"
  1115. },
  1116. {
  1117. 0x1F,
  1118. L"Mini-jack (headphones)"
  1119. },
  1120. {
  1121. 0x20,
  1122. L"BNC"
  1123. },
  1124. {
  1125. 0x21,
  1126. L"1394"
  1127. },
  1128. {
  1129. 0x22,
  1130. L"SAS/SATA Plug Receptacle"
  1131. },
  1132. {
  1133. 0x23,
  1134. L"USB Type-C Receptacle"
  1135. },
  1136. {
  1137. 0xA0,
  1138. L"PC-98"
  1139. },
  1140. {
  1141. 0xA1,
  1142. L"PC-98Hireso"
  1143. },
  1144. {
  1145. 0xA2,
  1146. L"PC-H98"
  1147. },
  1148. {
  1149. 0xA3,
  1150. L"PC-98Note"
  1151. },
  1152. {
  1153. 0xA4,
  1154. L"PC-98Full"
  1155. },
  1156. {
  1157. 0xFF,
  1158. L"Other"
  1159. },
  1160. };
  1161. TABLE_ITEM PortTypeTable[] = {
  1162. {
  1163. 0x00,
  1164. L"None"
  1165. },
  1166. {
  1167. 0x01,
  1168. L"Parallel Port XT/AT Compatible"
  1169. },
  1170. {
  1171. 0x02,
  1172. L"Parallel Port PS/2"
  1173. },
  1174. {
  1175. 0x03,
  1176. L"Parallel Port ECP"
  1177. },
  1178. {
  1179. 0x04,
  1180. L"Parallel Port EPP"
  1181. },
  1182. {
  1183. 0x05,
  1184. L"Parallel Port ECP/EPP"
  1185. },
  1186. {
  1187. 0x06,
  1188. L"Serial Port XT/AT Compatible"
  1189. },
  1190. {
  1191. 0x07,
  1192. L"Serial Port 16450 Compatible"
  1193. },
  1194. {
  1195. 0x08,
  1196. L"Serial Port 16550 Compatible"
  1197. },
  1198. {
  1199. 0x09,
  1200. L"Serial Port 16550A Compatible"
  1201. },
  1202. {
  1203. 0x0A,
  1204. L"SCSI Port"
  1205. },
  1206. {
  1207. 0x0B,
  1208. L"MIDI Port"
  1209. },
  1210. {
  1211. 0x0C,
  1212. L"Joy Stick Port"
  1213. },
  1214. {
  1215. 0x0D,
  1216. L"Keyboard Port"
  1217. },
  1218. {
  1219. 0x0E,
  1220. L"Mouse Port"
  1221. },
  1222. {
  1223. 0x0F,
  1224. L"SSA SCSI"
  1225. },
  1226. {
  1227. 0x10,
  1228. L"USB"
  1229. },
  1230. {
  1231. 0x11,
  1232. L"FireWire (IEEE P1394)"
  1233. },
  1234. {
  1235. 0x12,
  1236. L"PCMCIA Type II"
  1237. },
  1238. {
  1239. 0x13,
  1240. L"PCMCIA Type II"
  1241. },
  1242. {
  1243. 0x14,
  1244. L"PCMCIA Type III"
  1245. },
  1246. {
  1247. 0x15,
  1248. L"Cardbus"
  1249. },
  1250. {
  1251. 0x16,
  1252. L"Access Bus Port"
  1253. },
  1254. {
  1255. 0x17,
  1256. L"SCSI II"
  1257. },
  1258. {
  1259. 0x18,
  1260. L"SCSI Wide"
  1261. },
  1262. {
  1263. 0x19,
  1264. L"PC-98"
  1265. },
  1266. {
  1267. 0x1A,
  1268. L"PC-98-Hireso"
  1269. },
  1270. {
  1271. 0x1B,
  1272. L"PC-H98"
  1273. },
  1274. {
  1275. 0x1C,
  1276. L"Video Port"
  1277. },
  1278. {
  1279. 0x1D,
  1280. L"Audio Port"
  1281. },
  1282. {
  1283. 0x1E,
  1284. L"Modem Port"
  1285. },
  1286. {
  1287. 0x1F,
  1288. L"Network Port"
  1289. },
  1290. {
  1291. 0x20,
  1292. L"SATA Port"
  1293. },
  1294. {
  1295. 0x21,
  1296. L"SAS Port"
  1297. },
  1298. {
  1299. 0x22,
  1300. L"Multi-Function Display Port (MFDP)"
  1301. },
  1302. {
  1303. 0x23,
  1304. L"Thunderbolt"
  1305. },
  1306. {
  1307. 0xA0,
  1308. L"8251 Compatible"
  1309. },
  1310. {
  1311. 0xA1,
  1312. L"8251 FIFO Compatible"
  1313. },
  1314. {
  1315. 0xFF,
  1316. L"Other "
  1317. },
  1318. };
  1319. TABLE_ITEM SystemSlotTypeTable[] = {
  1320. {
  1321. 0x01,
  1322. L"Other"
  1323. },
  1324. {
  1325. 0x02,
  1326. L"Unknown"
  1327. },
  1328. {
  1329. 0x03,
  1330. L"ISA"
  1331. },
  1332. {
  1333. 0x04,
  1334. L"MCA"
  1335. },
  1336. {
  1337. 0x05,
  1338. L"EISA"
  1339. },
  1340. {
  1341. 0x06,
  1342. L"PCI"
  1343. },
  1344. {
  1345. 0x07,
  1346. L"PC Card (PCMCIA)"
  1347. },
  1348. {
  1349. 0x08,
  1350. L"VL-VESA"
  1351. },
  1352. {
  1353. 0x09,
  1354. L"Proprietary"
  1355. },
  1356. {
  1357. 0x0A,
  1358. L"Processor Card Slot"
  1359. },
  1360. {
  1361. 0x0B,
  1362. L"Proprietary Memory Card Slot"
  1363. },
  1364. {
  1365. 0x0C,
  1366. L"I/O Riser Card Slot"
  1367. },
  1368. {
  1369. 0x0D,
  1370. L"NuBus"
  1371. },
  1372. {
  1373. 0x0E,
  1374. L"PCI - 66MHz Capable"
  1375. },
  1376. {
  1377. 0x0F,
  1378. L"AGP"
  1379. },
  1380. {
  1381. 0x10,
  1382. L"AGP 2X"
  1383. },
  1384. {
  1385. 0x11,
  1386. L"AGP 4X"
  1387. },
  1388. {
  1389. 0x12,
  1390. L"PCI-X"
  1391. },
  1392. {
  1393. 0x13,
  1394. L"AGP 8X"
  1395. },
  1396. {
  1397. 0x14,
  1398. L"M.2 Socket 1-DP (Mechanical Key A)"
  1399. },
  1400. {
  1401. 0x15,
  1402. L"M.2 Socket 1-SD (Mechanical Key E)"
  1403. },
  1404. {
  1405. 0x16,
  1406. L"M.2 Socket 2 (Mechanical Key B)"
  1407. },
  1408. {
  1409. 0x17,
  1410. L"M.2 Socket 3 (Mechanical Key M)"
  1411. },
  1412. {
  1413. 0x18,
  1414. L"MXM Type I"
  1415. },
  1416. {
  1417. 0x19,
  1418. L"MXM Type II"
  1419. },
  1420. {
  1421. 0x1A,
  1422. L"MXM Type III (standard connector)"
  1423. },
  1424. {
  1425. 0x1B,
  1426. L"MXM Type III (HE connector)"
  1427. },
  1428. {
  1429. 0x1C,
  1430. L"MXM Type IV"
  1431. },
  1432. {
  1433. 0x1D,
  1434. L"MXM 3.0 Type A"
  1435. },
  1436. {
  1437. 0x1E,
  1438. L"MXM 3.0 Type B"
  1439. },
  1440. {
  1441. 0x1F,
  1442. L"PCI Express Gen 2 SFF-8639"
  1443. },
  1444. {
  1445. 0x20,
  1446. L"PCI Express Gen 3 SFF-8639"
  1447. },
  1448. {
  1449. 0x21,
  1450. L"PCI Express Mini 52-pin (CEM spec. 2.0) with bottom-side keep-outs"
  1451. },
  1452. {
  1453. 0x22,
  1454. L"PCI Express Mini 52-pin (CEM spec. 2.0) without bottom-side keep-outs"
  1455. },
  1456. {
  1457. 0x23,
  1458. L"PCI Express Mini 76-pin (CEM spec. 2.0) Corresponds to Display-Mini card"
  1459. },
  1460. {
  1461. 0x24,
  1462. L"PCI Express Gen 4 SFF-8639 (U.2)"
  1463. },
  1464. {
  1465. 0x25,
  1466. L"PCI Express Gen 5 SFF-8639 (U.2)"
  1467. },
  1468. {
  1469. 0x26,
  1470. L"OCP NIC 3.0 Small Form Factor (SFF)"
  1471. },
  1472. {
  1473. 0x27,
  1474. L"OCP NIC 3.0 Large Form Factor (LFF)"
  1475. },
  1476. {
  1477. 0x28,
  1478. L"OCP NIC Prior to 3.0"
  1479. },
  1480. {
  1481. SlotTypeCXLFlexbus10,
  1482. L"CXL Flexbus 1.0"
  1483. },
  1484. {
  1485. 0xA0,
  1486. L"PC-98/C20 "
  1487. },
  1488. {
  1489. 0xA1,
  1490. L"PC-98/C24 "
  1491. },
  1492. {
  1493. 0xA2,
  1494. L"PC-98/E "
  1495. },
  1496. {
  1497. 0xA3,
  1498. L"PC-98/Local Bus "
  1499. },
  1500. {
  1501. 0xA4,
  1502. L"PC-98/Card "
  1503. },
  1504. {
  1505. 0xA5,
  1506. L"PCI Express "
  1507. },
  1508. {
  1509. 0xA6,
  1510. L"PCI Express X1"
  1511. },
  1512. {
  1513. 0xA7,
  1514. L"PCI Express X2"
  1515. },
  1516. {
  1517. 0xA8,
  1518. L"PCI Express X4"
  1519. },
  1520. {
  1521. 0xA9,
  1522. L"PCI Express X8"
  1523. },
  1524. {
  1525. 0xAA,
  1526. L"PCI Express X16"
  1527. },
  1528. {
  1529. 0xAB,
  1530. L"PCI Express Gen 2"
  1531. },
  1532. {
  1533. 0xAC,
  1534. L"PCI Express Gen 2 X1"
  1535. },
  1536. {
  1537. 0xAD,
  1538. L"PCI Express Gen 2 X2"
  1539. },
  1540. {
  1541. 0xAE,
  1542. L"PCI Express Gen 2 X4"
  1543. },
  1544. {
  1545. 0xAF,
  1546. L"PCI Express Gen 2 X8"
  1547. },
  1548. {
  1549. 0xB0,
  1550. L"PCI Express Gen 2 X16"
  1551. },
  1552. {
  1553. 0xB1,
  1554. L"PCI Express Gen 3"
  1555. },
  1556. {
  1557. 0xB2,
  1558. L"PCI Express Gen 3 X1"
  1559. },
  1560. {
  1561. 0xB3,
  1562. L"PCI Express Gen 3 X2"
  1563. },
  1564. {
  1565. 0xB4,
  1566. L"PCI Express Gen 3 X4"
  1567. },
  1568. {
  1569. 0xB5,
  1570. L"PCI Express Gen 3 X8"
  1571. },
  1572. {
  1573. 0xB6,
  1574. L"PCI Express Gen 3 X16"
  1575. },
  1576. {
  1577. SlotTypePciExpressGen4,
  1578. L"PCI Express Gen 4"
  1579. },
  1580. {
  1581. SlotTypePciExpressGen4X1,
  1582. L"PCI Express Gen 4 X1"
  1583. },
  1584. {
  1585. SlotTypePciExpressGen4X2,
  1586. L"PCI Express Gen 4 X2"
  1587. },
  1588. {
  1589. SlotTypePciExpressGen4X4,
  1590. L"PCI Express Gen 4 X4"
  1591. },
  1592. {
  1593. SlotTypePciExpressGen4X8,
  1594. L"PCI Express Gen 4 X8"
  1595. },
  1596. {
  1597. SlotTypePciExpressGen4X16,
  1598. L"PCI Express Gen 4 X16"
  1599. },
  1600. {
  1601. SlotTypePCIExpressGen5,
  1602. L"PCI Express Gen 5"
  1603. },
  1604. {
  1605. SlotTypePCIExpressGen5X1,
  1606. L"PCI Express Gen 5 x1"
  1607. },
  1608. {
  1609. SlotTypePCIExpressGen5X2,
  1610. L"PCI Express Gen 5 x2"
  1611. },
  1612. {
  1613. SlotTypePCIExpressGen5X4,
  1614. L"PCI Express Gen 5 x4"
  1615. },
  1616. {
  1617. SlotTypePCIExpressGen5X8,
  1618. L"PCI Express Gen 5 x8"
  1619. },
  1620. {
  1621. SlotTypePCIExpressGen5X16,
  1622. L"PCI Express Gen 5 x16"
  1623. },
  1624. {
  1625. SlotTypePCIExpressGen6andBeyond,
  1626. L"PCI Express Gen 6 and Beyond"
  1627. },
  1628. {
  1629. SlotTypeEnterpriseandDatacenter1UE1FormFactorSlot,
  1630. L"Enterprise and Datacenter 1U E1 Form Factor Slot"
  1631. },
  1632. {
  1633. SlotTypeEnterpriseandDatacenter3E3FormFactorSlot,
  1634. L"Enterprise and Datacenter 3'E3 Form Factor Slot"
  1635. }
  1636. };
  1637. TABLE_ITEM SystemSlotDataBusWidthTable[] = {
  1638. {
  1639. 0x01,
  1640. L" Other"
  1641. },
  1642. {
  1643. 0x02,
  1644. L" Unknown"
  1645. },
  1646. {
  1647. 0x03,
  1648. L" 8 bit"
  1649. },
  1650. {
  1651. 0x04,
  1652. L" 16 bit"
  1653. },
  1654. {
  1655. 0x05,
  1656. L" 32 bit"
  1657. },
  1658. {
  1659. 0x06,
  1660. L" 64 bit"
  1661. },
  1662. {
  1663. 0x07,
  1664. L" 128 bit"
  1665. },
  1666. {
  1667. 0x08,
  1668. L" 1x or x1"
  1669. },
  1670. {
  1671. 0x09,
  1672. L" 2x or x2"
  1673. },
  1674. {
  1675. 0x0A,
  1676. L" 4x or x4"
  1677. },
  1678. {
  1679. 0x0B,
  1680. L" 8x or x8"
  1681. },
  1682. {
  1683. 0x0C,
  1684. L" 12x or x12"
  1685. },
  1686. {
  1687. 0x0D,
  1688. L" 16x or x16"
  1689. },
  1690. {
  1691. 0x0E,
  1692. L" 32x or x32"
  1693. }
  1694. };
  1695. TABLE_ITEM SystemSlotPhysicalWidthTable[] = {
  1696. {
  1697. 0x01,
  1698. L" Other"
  1699. },
  1700. {
  1701. 0x02,
  1702. L" Unknown"
  1703. },
  1704. {
  1705. 0x03,
  1706. L" 8 bit"
  1707. },
  1708. {
  1709. 0x04,
  1710. L" 16 bit"
  1711. },
  1712. {
  1713. 0x05,
  1714. L" 32 bit"
  1715. },
  1716. {
  1717. 0x06,
  1718. L" 64 bit"
  1719. },
  1720. {
  1721. 0x07,
  1722. L" 128 bit"
  1723. },
  1724. {
  1725. 0x08,
  1726. L" 1x or x1"
  1727. },
  1728. {
  1729. 0x09,
  1730. L" 2x or x2"
  1731. },
  1732. {
  1733. 0x0A,
  1734. L" 4x or x4"
  1735. },
  1736. {
  1737. 0x0B,
  1738. L" 8x or x8"
  1739. },
  1740. {
  1741. 0x0C,
  1742. L" 12x or x12"
  1743. },
  1744. {
  1745. 0x0D,
  1746. L" 16x or x16"
  1747. },
  1748. {
  1749. 0x0E,
  1750. L" 32x or x32"
  1751. }
  1752. };
  1753. TABLE_ITEM SystemSlotInformationTable[] = {
  1754. {
  1755. 0x00,
  1756. L" Others"
  1757. },
  1758. {
  1759. 0x01,
  1760. L" Gen 1"
  1761. },
  1762. {
  1763. 0x02,
  1764. L" Gen 2"
  1765. },
  1766. {
  1767. 0x03,
  1768. L" Gen 3"
  1769. },
  1770. {
  1771. 0x04,
  1772. L" Gen 4"
  1773. },
  1774. {
  1775. 0x05,
  1776. L" Gen 5"
  1777. },
  1778. {
  1779. 0x06,
  1780. L" Gen 6"
  1781. }
  1782. };
  1783. TABLE_ITEM SystemSlotCurrentUsageTable[] = {
  1784. {
  1785. 0x01,
  1786. L" Other"
  1787. },
  1788. {
  1789. 0x02,
  1790. L" Unknown"
  1791. },
  1792. {
  1793. 0x03,
  1794. L" Available"
  1795. },
  1796. {
  1797. 0x04,
  1798. L" In use"
  1799. },
  1800. {
  1801. 0x05,
  1802. L" Unavailable"
  1803. }
  1804. };
  1805. TABLE_ITEM SystemSlotLengthTable[] = {
  1806. {
  1807. 0x01,
  1808. L" Other"
  1809. },
  1810. {
  1811. 0x02,
  1812. L" Unknown"
  1813. },
  1814. {
  1815. 0x03,
  1816. L" Short length"
  1817. },
  1818. {
  1819. 0x04,
  1820. L" Long Length"
  1821. },
  1822. };
  1823. TABLE_ITEM SystemSlotHeightTable[] = {
  1824. {
  1825. 0x00,
  1826. L" Not applicable"
  1827. },
  1828. {
  1829. 0x01,
  1830. L" Other"
  1831. },
  1832. {
  1833. 0x02,
  1834. L" Unkown"
  1835. },
  1836. {
  1837. 0x03,
  1838. L" Full height"
  1839. },
  1840. {
  1841. 0x04,
  1842. L" Low-Profile"
  1843. },
  1844. };
  1845. TABLE_ITEM SlotCharacteristics1Table[] = {
  1846. {
  1847. 0,
  1848. L" Characteristics Unknown"
  1849. },
  1850. {
  1851. 1,
  1852. L" Provides 5.0 Volts"
  1853. },
  1854. {
  1855. 2,
  1856. L" Provides 3.3 Volts"
  1857. },
  1858. {
  1859. 3,
  1860. L" Slot's opening is shared with another slot, e.g. PCI/EISA shared slot."
  1861. },
  1862. {
  1863. 4,
  1864. L" PC Card slot supports PC Card-16"
  1865. },
  1866. {
  1867. 5,
  1868. L" PC Card slot supports CardBus"
  1869. },
  1870. {
  1871. 6,
  1872. L" PC Card slot supports Zoom Video "
  1873. },
  1874. {
  1875. 7,
  1876. L" PC Card slot supports Modem Ring Resume "
  1877. }
  1878. };
  1879. TABLE_ITEM SlotCharacteristics2Table[] = {
  1880. {
  1881. 0,
  1882. L" PCI slot supports Power Management Enable (PME#) signal"
  1883. },
  1884. {
  1885. 1,
  1886. L" Slot supports hot-plug devices"
  1887. },
  1888. {
  1889. 2,
  1890. L" PCI slot supports SMBus signal"
  1891. },
  1892. {
  1893. 3,
  1894. L" PCIe slot supports bifurcation"
  1895. },
  1896. {
  1897. 4,
  1898. L" Slot supports async/surprise removal"
  1899. },
  1900. {
  1901. 5,
  1902. L" Flexbus slot, CXL 1.0 capable"
  1903. },
  1904. {
  1905. 6,
  1906. L" Flexbus slot, CXL 2.0 capable"
  1907. },
  1908. {
  1909. 7,
  1910. L" Reserved"
  1911. }
  1912. };
  1913. TABLE_ITEM OnboardDeviceTypesTable[] = {
  1914. {
  1915. 0x01,
  1916. L" Other"
  1917. },
  1918. {
  1919. 0x02,
  1920. L" Unknown"
  1921. },
  1922. {
  1923. 0x03,
  1924. L" Video"
  1925. },
  1926. {
  1927. 0x04,
  1928. L" SCSI Controller"
  1929. },
  1930. {
  1931. 0x05,
  1932. L" Ethernet"
  1933. },
  1934. {
  1935. 0x06,
  1936. L" Token Ring"
  1937. },
  1938. {
  1939. 0x07,
  1940. L" Sound"
  1941. },
  1942. {
  1943. 0x08,
  1944. L" Pata Controller"
  1945. },
  1946. {
  1947. 0x09,
  1948. L" Sata Controller"
  1949. },
  1950. {
  1951. 0x0A,
  1952. L" Sas Controller"
  1953. },
  1954. {
  1955. 0x0B,
  1956. L" Wireless LAN"
  1957. },
  1958. {
  1959. 0x0C,
  1960. L" Bluetooth"
  1961. },
  1962. {
  1963. 0x0D,
  1964. L" WWAN"
  1965. },
  1966. {
  1967. 0x0E,
  1968. L" embedded Multi-Media Controller"
  1969. },
  1970. {
  1971. 0x0F,
  1972. L" NVMe Controller"
  1973. },
  1974. {
  1975. 0x10,
  1976. L" UFS Controller"
  1977. }
  1978. };
  1979. TABLE_ITEM SELTypesTable[] = {
  1980. {
  1981. 0x00,
  1982. L" Reserved."
  1983. },
  1984. {
  1985. 0x01,
  1986. L" Single-bit ECC memory error"
  1987. },
  1988. {
  1989. 0x02,
  1990. L" Multi-bit ECC memory error"
  1991. },
  1992. {
  1993. 0x03,
  1994. L" Parity memory error"
  1995. },
  1996. {
  1997. 0x04,
  1998. L" Bus time-out"
  1999. },
  2000. {
  2001. 0x05,
  2002. L" I/O Channel Check"
  2003. },
  2004. {
  2005. 0x06,
  2006. L" Software NMI"
  2007. },
  2008. {
  2009. 0x07,
  2010. L" POST Memory Resize"
  2011. },
  2012. {
  2013. 0x08,
  2014. L" POST Error"
  2015. },
  2016. {
  2017. 0x09,
  2018. L" PCI Parity Error"
  2019. },
  2020. {
  2021. 0x0A,
  2022. L" PCI System Error"
  2023. },
  2024. {
  2025. 0x0B,
  2026. L" CPU Failure"
  2027. },
  2028. {
  2029. 0x0C,
  2030. L" EISA FailSafe Timer time-out"
  2031. },
  2032. {
  2033. 0x0D,
  2034. L" Correctable memory log disabled"
  2035. },
  2036. {
  2037. 0x0E,
  2038. L" Logging disabled for a specific Event Type"
  2039. },
  2040. {
  2041. 0x0F,
  2042. L" Reserved"
  2043. },
  2044. {
  2045. 0x10,
  2046. L" System Limit Exceeded"
  2047. },
  2048. {
  2049. 0x11,
  2050. L" Asynchronous hardware timer expired and issued a system reset"
  2051. },
  2052. {
  2053. 0x12,
  2054. L" System configuration information"
  2055. },
  2056. {
  2057. 0x13,
  2058. L" Hard-disk information"
  2059. },
  2060. {
  2061. 0x14,
  2062. L" System reconfigured"
  2063. },
  2064. {
  2065. 0x15,
  2066. L" Uncorrectable CPU-complex error"
  2067. },
  2068. {
  2069. 0x16,
  2070. L" Log Area Reset/Cleared"
  2071. },
  2072. {
  2073. 0x17,
  2074. L" System boot"
  2075. },
  2076. {
  2077. 0x7F18,
  2078. L" Unused by SMBIOS specification"
  2079. },
  2080. {
  2081. 0xFE80,
  2082. L" System and OEM specified"
  2083. },
  2084. {
  2085. 0xFF,
  2086. L" End-of-log"
  2087. },
  2088. };
  2089. TABLE_ITEM SELVarDataFormatTypeTable[] = {
  2090. {
  2091. 0x00,
  2092. L" None "
  2093. },
  2094. {
  2095. 0x01,
  2096. L" Handle "
  2097. },
  2098. {
  2099. 0x02,
  2100. L" Multiple-Event "
  2101. },
  2102. {
  2103. 0x03,
  2104. L" Multiple-Event Handle "
  2105. },
  2106. {
  2107. 0x04,
  2108. L" POST Results Bitmap "
  2109. },
  2110. //
  2111. // Defined below
  2112. //
  2113. {
  2114. 0x05,
  2115. L" System Management Type"
  2116. },
  2117. //
  2118. // Defined below
  2119. //
  2120. {
  2121. 0x06,
  2122. L" Multiple-Event System Management Type "
  2123. },
  2124. {
  2125. 0x7F07,
  2126. L" Unused "
  2127. },
  2128. {
  2129. 0xFF80,
  2130. L" OEM assigned "
  2131. },
  2132. };
  2133. TABLE_ITEM PostResultsBitmapDw1Table[] = {
  2134. {
  2135. 0,
  2136. L" Channel 2 Timer error "
  2137. },
  2138. {
  2139. 1,
  2140. L" Master PIC (8259 #1) error "
  2141. },
  2142. {
  2143. 2,
  2144. L" Slave PIC (8259 #2) error "
  2145. },
  2146. {
  2147. 3,
  2148. L" CMOS Battery Failure "
  2149. },
  2150. {
  2151. 4,
  2152. L" CMOS System Options Not Set "
  2153. },
  2154. {
  2155. 5,
  2156. L" CMOS Checksum Error "
  2157. },
  2158. {
  2159. 6,
  2160. L" CMOS Configuration Error "
  2161. },
  2162. {
  2163. 7,
  2164. L" Mouse and Keyboard Swapped "
  2165. },
  2166. {
  2167. 8,
  2168. L" Keyboard Locked "
  2169. },
  2170. {
  2171. 9,
  2172. L" Keyboard Not Functional "
  2173. },
  2174. {
  2175. 10,
  2176. L" Keyboard Controller Not Functional "
  2177. },
  2178. {
  2179. 11,
  2180. L" CMOS Memory Size Different "
  2181. },
  2182. {
  2183. 12,
  2184. L" Memory Decreased in Size "
  2185. },
  2186. {
  2187. 13,
  2188. L" Cache Memory Error "
  2189. },
  2190. {
  2191. 14,
  2192. L" Floppy Drive 0 Error "
  2193. },
  2194. {
  2195. 15,
  2196. L" Floppy Drive 1 Error "
  2197. },
  2198. {
  2199. 16,
  2200. L" Floppy Controller Failure "
  2201. },
  2202. {
  2203. 17,
  2204. L" Number of ATA Drives Reduced Error "
  2205. },
  2206. {
  2207. 18,
  2208. L" CMOS Time Not Set "
  2209. },
  2210. {
  2211. 19,
  2212. L" DDC Monitor Configuration Change "
  2213. },
  2214. {
  2215. 20,
  2216. L" Reserved, set to 0 "
  2217. },
  2218. {
  2219. 21,
  2220. L" Reserved, set to 0 "
  2221. },
  2222. {
  2223. 22,
  2224. L" Reserved, set to 0 "
  2225. },
  2226. {
  2227. 23,
  2228. L" Reserved, set to 0 "
  2229. },
  2230. {
  2231. 24,
  2232. L" Second DWORD has valid data "
  2233. },
  2234. {
  2235. 25,
  2236. L" Reserved, set to 0 "
  2237. },
  2238. {
  2239. 26,
  2240. L" Reserved, set to 0 "
  2241. },
  2242. {
  2243. 27,
  2244. L" Reserved, set to 0 "
  2245. },
  2246. {
  2247. 28,
  2248. L" Normally 0; available for OEM assignment "
  2249. },
  2250. {
  2251. 29,
  2252. L" Normally 0; available for OEM assignment "
  2253. },
  2254. {
  2255. 30,
  2256. L" Normally 0; available for OEM assignment "
  2257. },
  2258. {
  2259. 31,
  2260. L" Normally 0; available for OEM assignment "
  2261. },
  2262. };
  2263. TABLE_ITEM PostResultsBitmapDw2Table[] = {
  2264. {
  2265. 0,
  2266. L" Normally 0; available for OEM assignment "
  2267. },
  2268. {
  2269. 1,
  2270. L" Normally 0; available for OEM assignment "
  2271. },
  2272. {
  2273. 2,
  2274. L" Normally 0; available for OEM assignment "
  2275. },
  2276. {
  2277. 3,
  2278. L" Normally 0; available for OEM assignment "
  2279. },
  2280. {
  2281. 4,
  2282. L" Normally 0; available for OEM assignment "
  2283. },
  2284. {
  2285. 5,
  2286. L" Normally 0; available for OEM assignment "
  2287. },
  2288. {
  2289. 6,
  2290. L" Normally 0; available for OEM assignment "
  2291. },
  2292. {
  2293. 7,
  2294. L" PCI Memory Conflict "
  2295. },
  2296. {
  2297. 8,
  2298. L" PCI I/O Conflict "
  2299. },
  2300. {
  2301. 9,
  2302. L" PCI IRQ Conflict "
  2303. },
  2304. {
  2305. 10,
  2306. L" PNP Memory Conflict "
  2307. },
  2308. {
  2309. 11,
  2310. L" PNP 32 bit Memory Conflict "
  2311. },
  2312. {
  2313. 12,
  2314. L" PNP I/O Conflict "
  2315. },
  2316. {
  2317. 13,
  2318. L" PNP IRQ Conflict "
  2319. },
  2320. {
  2321. 14,
  2322. L" PNP DMA Conflict "
  2323. },
  2324. {
  2325. 15,
  2326. L" Bad PNP Serial ID Checksum "
  2327. },
  2328. {
  2329. 16,
  2330. L" Bad PNP Resource Data Checksum "
  2331. },
  2332. {
  2333. 17,
  2334. L" Static Resource Conflict "
  2335. },
  2336. {
  2337. 18,
  2338. L" NVRAM Checksum Error, NVRAM Cleared "
  2339. },
  2340. {
  2341. 19,
  2342. L" System Board Device Resource Conflict "
  2343. },
  2344. {
  2345. 20,
  2346. L" Primary Output Device Not Found "
  2347. },
  2348. {
  2349. 21,
  2350. L" Primary Input Device Not Found "
  2351. },
  2352. {
  2353. 22,
  2354. L" Primary Boot Device Not Found "
  2355. },
  2356. {
  2357. 23,
  2358. L" NVRAM Cleared By Jumper "
  2359. },
  2360. {
  2361. 24,
  2362. L" NVRAM Data Invalid, NVRAM Cleared "
  2363. },
  2364. {
  2365. 25,
  2366. L" FDC Resource Conflict "
  2367. },
  2368. {
  2369. 26,
  2370. L" Primary ATA Controller Resource Conflict "
  2371. },
  2372. {
  2373. 27,
  2374. L" Secondary ATA Controller Resource Conflict "
  2375. },
  2376. {
  2377. 28,
  2378. L" Parallel Port Resource Conflict "
  2379. },
  2380. {
  2381. 29,
  2382. L" Serial Port 1 Resource Conflict "
  2383. },
  2384. {
  2385. 30,
  2386. L" Serial Port 2 Resource Conflict "
  2387. },
  2388. {
  2389. 31,
  2390. L" Audio Resource Conflict "
  2391. },
  2392. };
  2393. TABLE_ITEM SELSysManagementTypesTable[] = {
  2394. {
  2395. 0x01,
  2396. L" +2.5V Out of range, #2 "
  2397. },
  2398. {
  2399. 0x02,
  2400. L" +3.3V Out of range "
  2401. },
  2402. {
  2403. 0x03,
  2404. L" +5V Out of range "
  2405. },
  2406. {
  2407. 0x04,
  2408. L" -5V Out of range "
  2409. },
  2410. {
  2411. 0x05,
  2412. L" +12V Out of range "
  2413. },
  2414. {
  2415. 0x06,
  2416. L" -12V Out of range "
  2417. },
  2418. {
  2419. 0x0F07,
  2420. L" Reserved for future out-of-range voltage levels "
  2421. },
  2422. {
  2423. 0x10,
  2424. L" System board temperature out of range "
  2425. },
  2426. {
  2427. 0x11,
  2428. L" Processor #1 temperature out of range "
  2429. },
  2430. {
  2431. 0x12,
  2432. L" Processor #2 temperature out of range "
  2433. },
  2434. {
  2435. 0x13,
  2436. L" Processor #3 temperature out of range "
  2437. },
  2438. {
  2439. 0x14,
  2440. L" Processor #4 temperature out of range "
  2441. },
  2442. {
  2443. 0x1F15,
  2444. L" Reserved for future out-of-range temperatures"
  2445. },
  2446. {
  2447. 0x2720,
  2448. L" Fan n (n = 0 to 7) Out of range "
  2449. },
  2450. {
  2451. 0x2F28,
  2452. L" Reserved for future assignment via this specification "
  2453. },
  2454. {
  2455. 0x30,
  2456. L" Chassis secure switch activated "
  2457. },
  2458. };
  2459. TABLE_ITEM PMALocationTable[] = {
  2460. {
  2461. 0x01,
  2462. L" Other"
  2463. },
  2464. {
  2465. 0x02,
  2466. L" Unknown"
  2467. },
  2468. {
  2469. 0x03,
  2470. L" System board or motherboard"
  2471. },
  2472. {
  2473. 0x04,
  2474. L" ISA add-on card"
  2475. },
  2476. {
  2477. 0x05,
  2478. L" EISA add-on card"
  2479. },
  2480. {
  2481. 0x06,
  2482. L" PCI add-on card"
  2483. },
  2484. {
  2485. 0x07,
  2486. L" MCA add-on card"
  2487. },
  2488. {
  2489. 0x08,
  2490. L" PCMCIA add-on card"
  2491. },
  2492. {
  2493. 0x09,
  2494. L" Proprietary add-on card"
  2495. },
  2496. {
  2497. 0x0A,
  2498. L" NuBus"
  2499. },
  2500. {
  2501. 0xA0,
  2502. L" PC-98/C20 add-on card"
  2503. },
  2504. {
  2505. 0xA1,
  2506. L" PC-98/C24 add-on card"
  2507. },
  2508. {
  2509. 0xA2,
  2510. L" PC-98/E add-on card"
  2511. },
  2512. {
  2513. 0xA3,
  2514. L" PC-98/Local bus add-on card"
  2515. },
  2516. {
  2517. MemoryArrayLocationCXLAddonCard,
  2518. L" CXL add-on card"
  2519. }
  2520. };
  2521. TABLE_ITEM PMAUseTable[] = {
  2522. {
  2523. 0x01,
  2524. L" Other"
  2525. },
  2526. {
  2527. 0x02,
  2528. L" Unknown"
  2529. },
  2530. {
  2531. 0x03,
  2532. L" System memory"
  2533. },
  2534. {
  2535. 0x04,
  2536. L" Video memory"
  2537. },
  2538. {
  2539. 0x05,
  2540. L" Flash memory"
  2541. },
  2542. {
  2543. 0x06,
  2544. L" Non-volatile RAM"
  2545. },
  2546. {
  2547. 0x07,
  2548. L" Cache memory"
  2549. }
  2550. };
  2551. TABLE_ITEM PMAErrorCorrectionTypesTable[] = {
  2552. {
  2553. 0x01,
  2554. L" Other"
  2555. },
  2556. {
  2557. 0x02,
  2558. L" Unknown"
  2559. },
  2560. {
  2561. 0x03,
  2562. L" None"
  2563. },
  2564. {
  2565. 0x04,
  2566. L" Parity"
  2567. },
  2568. {
  2569. 0x05,
  2570. L" Single-bit ECC"
  2571. },
  2572. {
  2573. 0x06,
  2574. L" Multi-bit ECC"
  2575. },
  2576. {
  2577. 0x07,
  2578. L" CRC"
  2579. }
  2580. };
  2581. TABLE_ITEM MemoryDeviceFormFactorTable[] = {
  2582. {
  2583. 0x01,
  2584. L" Other"
  2585. },
  2586. {
  2587. 0x02,
  2588. L" Unknown"
  2589. },
  2590. {
  2591. 0x03,
  2592. L" SIMM"
  2593. },
  2594. {
  2595. 0x04,
  2596. L" SIP"
  2597. },
  2598. {
  2599. 0x05,
  2600. L" Chip"
  2601. },
  2602. {
  2603. 0x06,
  2604. L" DIP"
  2605. },
  2606. {
  2607. 0x07,
  2608. L" ZIP"
  2609. },
  2610. {
  2611. 0x08,
  2612. L" Proprietary Card"
  2613. },
  2614. {
  2615. 0x09,
  2616. L" DIMM"
  2617. },
  2618. {
  2619. 0x0A,
  2620. L" TSOP"
  2621. },
  2622. {
  2623. 0x0B,
  2624. L" Row of chips"
  2625. },
  2626. {
  2627. 0x0C,
  2628. L" RIMM"
  2629. },
  2630. {
  2631. 0x0D,
  2632. L" SODIMM"
  2633. },
  2634. {
  2635. 0x0E,
  2636. L" SRIMM"
  2637. },
  2638. {
  2639. 0x0F,
  2640. L" FB-DIMM"
  2641. },
  2642. {
  2643. MemoryFormFactorDie,
  2644. L" Die"
  2645. }
  2646. };
  2647. TABLE_ITEM MemoryDeviceTypeTable[] = {
  2648. {
  2649. 0x01,
  2650. L" Other"
  2651. },
  2652. {
  2653. 0x02,
  2654. L" Unknown"
  2655. },
  2656. {
  2657. 0x03,
  2658. L" DRAM"
  2659. },
  2660. {
  2661. 0x04,
  2662. L" EDRAM"
  2663. },
  2664. {
  2665. 0x05,
  2666. L" VRAM"
  2667. },
  2668. {
  2669. 0x06,
  2670. L" SRAM"
  2671. },
  2672. {
  2673. 0x07,
  2674. L" RAM"
  2675. },
  2676. {
  2677. 0x08,
  2678. L" ROM"
  2679. },
  2680. {
  2681. 0x09,
  2682. L" FLASH"
  2683. },
  2684. {
  2685. 0x0A,
  2686. L" EEPROM"
  2687. },
  2688. {
  2689. 0x0B,
  2690. L" FEPROM"
  2691. },
  2692. {
  2693. 0x0C,
  2694. L" EPROM"
  2695. },
  2696. {
  2697. 0x0D,
  2698. L" CDRAM"
  2699. },
  2700. {
  2701. 0x0E,
  2702. L" 3DRAM"
  2703. },
  2704. {
  2705. 0x0F,
  2706. L" SDRAM"
  2707. },
  2708. {
  2709. 0x10,
  2710. L" SGRAM"
  2711. },
  2712. {
  2713. 0x11,
  2714. L" RDRAM"
  2715. },
  2716. {
  2717. 0x12,
  2718. L" DDR"
  2719. },
  2720. {
  2721. 0x13,
  2722. L" DDR2"
  2723. },
  2724. {
  2725. 0x14,
  2726. L" DDR2 FB-DIMM"
  2727. },
  2728. {
  2729. 0x18,
  2730. L" DDR3"
  2731. },
  2732. {
  2733. 0x19,
  2734. L" FBD2"
  2735. },
  2736. {
  2737. 0x1A,
  2738. L" DDR4"
  2739. },
  2740. {
  2741. 0x1B,
  2742. L" LPDDR"
  2743. },
  2744. {
  2745. 0x1C,
  2746. L" LPDDR2"
  2747. },
  2748. {
  2749. 0x1D,
  2750. L" LPDDR3"
  2751. },
  2752. {
  2753. 0x1E,
  2754. L" LPDDR4"
  2755. },
  2756. {
  2757. 0x1F,
  2758. L" Logical non-volatile device"
  2759. },
  2760. {
  2761. MemoryTypeHBM,
  2762. L" HBM (High Bandwidth Memory)"
  2763. },
  2764. {
  2765. MemoryTypeHBM2,
  2766. L" HBM2 (High Bandwidth Memory Generation 2)"
  2767. },
  2768. {
  2769. MemoryTypeDdr5,
  2770. L" DDR5"
  2771. },
  2772. {
  2773. MemoryTypeLpddr5,
  2774. L" LPDDR5"
  2775. }
  2776. };
  2777. TABLE_ITEM MemoryDeviceTypeDetailTable[] = {
  2778. {
  2779. 1,
  2780. L" Other"
  2781. },
  2782. {
  2783. 2,
  2784. L" Unknown"
  2785. },
  2786. {
  2787. 3,
  2788. L" Fast-paged"
  2789. },
  2790. {
  2791. 4,
  2792. L" Static column"
  2793. },
  2794. {
  2795. 5,
  2796. L" Pseudo-STATIC"
  2797. },
  2798. {
  2799. 6,
  2800. L" RAMBUS "
  2801. },
  2802. {
  2803. 7,
  2804. L" Synchronous"
  2805. },
  2806. {
  2807. 8,
  2808. L" CMOS"
  2809. },
  2810. {
  2811. 9,
  2812. L" EDO"
  2813. },
  2814. {
  2815. 10,
  2816. L" Window DRAM"
  2817. },
  2818. {
  2819. 11,
  2820. L" Cache DRAM"
  2821. },
  2822. {
  2823. 12,
  2824. L" Non-volatile"
  2825. },
  2826. {
  2827. 13,
  2828. L" Registered(Buffered)"
  2829. },
  2830. {
  2831. 14,
  2832. L" Unbuffered(Unregistered)"
  2833. }
  2834. };
  2835. TABLE_ITEM MemoryDeviceMemoryTechnologyTable[] = {
  2836. {
  2837. 0x01,
  2838. L" Other"
  2839. },
  2840. {
  2841. 0x02,
  2842. L" Unknown"
  2843. },
  2844. {
  2845. 0x03,
  2846. L" DRAM"
  2847. },
  2848. {
  2849. 0x04,
  2850. L" NVDIMM-N"
  2851. },
  2852. {
  2853. 0x05,
  2854. L" NVDIMM-F"
  2855. },
  2856. {
  2857. 0x06,
  2858. L" NVDIMM-P"
  2859. },
  2860. {
  2861. MemoryTechnologyIntelOptanePersistentMemory,
  2862. L" Intel Optane Persistent Memory"
  2863. }
  2864. };
  2865. TABLE_ITEM MemoryDeviceMemoryOperatingModeCapabilityTable[] = {
  2866. {
  2867. 1,
  2868. L" Other"
  2869. },
  2870. {
  2871. 2,
  2872. L" Unknown"
  2873. },
  2874. {
  2875. 3,
  2876. L" Volatile memory"
  2877. },
  2878. {
  2879. 4,
  2880. L" Byte-accessible persistent memory"
  2881. },
  2882. {
  2883. 5,
  2884. L" Block-accessible persistent memory"
  2885. }
  2886. };
  2887. TABLE_ITEM MemoryErrorTypeTable[] = {
  2888. {
  2889. 0x01,
  2890. L" Other"
  2891. },
  2892. {
  2893. 0x02,
  2894. L" Unknown"
  2895. },
  2896. {
  2897. 0x03,
  2898. L" OK"
  2899. },
  2900. {
  2901. 0x04,
  2902. L" Bad read"
  2903. },
  2904. {
  2905. 0x05,
  2906. L" Parity error"
  2907. },
  2908. {
  2909. 0x06,
  2910. L" Single-bit error"
  2911. },
  2912. {
  2913. 0x07,
  2914. L" Double-bit error"
  2915. },
  2916. {
  2917. 0x08,
  2918. L" Multi-bit error"
  2919. },
  2920. {
  2921. 0x09,
  2922. L" Nibble error"
  2923. },
  2924. {
  2925. 0x0A,
  2926. L" Checksum error"
  2927. },
  2928. {
  2929. 0x0B,
  2930. L" CRC error"
  2931. },
  2932. {
  2933. 0x0C,
  2934. L" Corrected single-bit error"
  2935. },
  2936. {
  2937. 0x0D,
  2938. L" Corrected error"
  2939. },
  2940. {
  2941. 0x0E,
  2942. L" Uncorrectable error"
  2943. },
  2944. };
  2945. TABLE_ITEM MemoryErrorGranularityTable[] = {
  2946. {
  2947. 0x01,
  2948. L" Other"
  2949. },
  2950. {
  2951. 0x02,
  2952. L" Unknown"
  2953. },
  2954. {
  2955. 0x03,
  2956. L" Device level"
  2957. },
  2958. {
  2959. 0x04,
  2960. L" Memory partition level"
  2961. },
  2962. };
  2963. TABLE_ITEM MemoryErrorOperationTable[] = {
  2964. {
  2965. 0x01,
  2966. L" Other"
  2967. },
  2968. {
  2969. 0x02,
  2970. L" Unknown"
  2971. },
  2972. {
  2973. 0x03,
  2974. L" Read"
  2975. },
  2976. {
  2977. 0x04,
  2978. L" Write"
  2979. },
  2980. {
  2981. 0x05,
  2982. L" Partial Write"
  2983. },
  2984. };
  2985. TABLE_ITEM PointingDeviceTypeTable[] = {
  2986. {
  2987. 0x01,
  2988. L" Other"
  2989. },
  2990. {
  2991. 0x02,
  2992. L" Unknown"
  2993. },
  2994. {
  2995. 0x03,
  2996. L" Mouse"
  2997. },
  2998. {
  2999. 0x04,
  3000. L" Track Ball"
  3001. },
  3002. {
  3003. 0x05,
  3004. L" Track Point"
  3005. },
  3006. {
  3007. 0x06,
  3008. L" Glide Point"
  3009. },
  3010. {
  3011. 0x07,
  3012. L" Touch Pad"
  3013. },
  3014. };
  3015. TABLE_ITEM PointingDeviceInterfaceTable[] = {
  3016. {
  3017. 0x01,
  3018. L" Other"
  3019. },
  3020. {
  3021. 0x02,
  3022. L" Unknown"
  3023. },
  3024. {
  3025. 0x03,
  3026. L" Serial"
  3027. },
  3028. {
  3029. 0x04,
  3030. L" PS/2"
  3031. },
  3032. {
  3033. 0x05,
  3034. L" Infrared"
  3035. },
  3036. {
  3037. 0x06,
  3038. L" HP-HIL"
  3039. },
  3040. {
  3041. 0x07,
  3042. L" Bus mouse"
  3043. },
  3044. {
  3045. 0x08,
  3046. L" ADB(Apple Desktop Bus"
  3047. },
  3048. {
  3049. 0xA0,
  3050. L" Bus mouse DB-9"
  3051. },
  3052. {
  3053. 0xA1,
  3054. L" Bus mouse mirco-DIN"
  3055. },
  3056. {
  3057. 0xA2,
  3058. L" USB"
  3059. },
  3060. };
  3061. TABLE_ITEM PBDeviceChemistryTable[] = {
  3062. {
  3063. 0x01,
  3064. L" Other "
  3065. },
  3066. {
  3067. 0x02,
  3068. L" Unknown "
  3069. },
  3070. {
  3071. 0x03,
  3072. L" Lead Acid "
  3073. },
  3074. {
  3075. 0x04,
  3076. L" Nickel Cadmium "
  3077. },
  3078. {
  3079. 0x05,
  3080. L" Nickel metal hydride "
  3081. },
  3082. {
  3083. 0x06,
  3084. L" Lithium-ion "
  3085. },
  3086. {
  3087. 0x07,
  3088. L" Zinc air "
  3089. },
  3090. {
  3091. 0x08,
  3092. L" Lithium Polymer "
  3093. },
  3094. };
  3095. TABLE_ITEM VPLocationTable[] = {
  3096. {
  3097. 0x01,
  3098. L" Other "
  3099. },
  3100. {
  3101. 0x02,
  3102. L" Unknown "
  3103. },
  3104. {
  3105. 0x03,
  3106. L" OK "
  3107. },
  3108. {
  3109. 0x04,
  3110. L" Non-critical "
  3111. },
  3112. {
  3113. 0x05,
  3114. L" Critical "
  3115. },
  3116. {
  3117. 0x06,
  3118. L" Non-recoverable "
  3119. },
  3120. };
  3121. TABLE_ITEM VPStatusTable[] = {
  3122. {
  3123. 0x01,
  3124. L" Other "
  3125. },
  3126. {
  3127. 0x02,
  3128. L" Unknown "
  3129. },
  3130. {
  3131. 0x03,
  3132. L" Processor "
  3133. },
  3134. {
  3135. 0x04,
  3136. L" Disk "
  3137. },
  3138. {
  3139. 0x05,
  3140. L" Peripheral Bay "
  3141. },
  3142. {
  3143. 0x06,
  3144. L" System Management Module "
  3145. },
  3146. {
  3147. 0x07,
  3148. L" Motherboard "
  3149. },
  3150. {
  3151. 0x08,
  3152. L" Memory Module "
  3153. },
  3154. {
  3155. 0x09,
  3156. L" Processor Module "
  3157. },
  3158. {
  3159. 0x0A,
  3160. L" Power Unit "
  3161. },
  3162. {
  3163. 0x0B,
  3164. L" Add-in Card "
  3165. },
  3166. };
  3167. TABLE_ITEM CoolingDeviceStatusTable[] = {
  3168. {
  3169. 0x01,
  3170. L" Other "
  3171. },
  3172. {
  3173. 0x02,
  3174. L" Unknown "
  3175. },
  3176. {
  3177. 0x03,
  3178. L" OK "
  3179. },
  3180. {
  3181. 0x04,
  3182. L" Non-critical "
  3183. },
  3184. {
  3185. 0x05,
  3186. L" Critical "
  3187. },
  3188. {
  3189. 0x06,
  3190. L" Non-recoverable "
  3191. },
  3192. };
  3193. TABLE_ITEM CoolingDeviceTypeTable[] = {
  3194. {
  3195. 0x01,
  3196. L" Other "
  3197. },
  3198. {
  3199. 0x02,
  3200. L" Unknown "
  3201. },
  3202. {
  3203. 0x03,
  3204. L" Fan "
  3205. },
  3206. {
  3207. 0x04,
  3208. L" Centrifugal Blower "
  3209. },
  3210. {
  3211. 0x05,
  3212. L" Chip Fan "
  3213. },
  3214. {
  3215. 0x06,
  3216. L" Cabinet Fan "
  3217. },
  3218. {
  3219. 0x07,
  3220. L" Power Supply Fan "
  3221. },
  3222. {
  3223. 0x08,
  3224. L" Heat Pipe "
  3225. },
  3226. {
  3227. 0x09,
  3228. L" Integrated Refrigeration "
  3229. },
  3230. {
  3231. 0x10,
  3232. L" Active Cooling "
  3233. },
  3234. {
  3235. 0x11,
  3236. L" Passive Cooling "
  3237. },
  3238. };
  3239. TABLE_ITEM TemperatureProbeStatusTable[] = {
  3240. {
  3241. 0x01,
  3242. L" Other "
  3243. },
  3244. {
  3245. 0x02,
  3246. L" Unknown "
  3247. },
  3248. {
  3249. 0x03,
  3250. L" OK "
  3251. },
  3252. {
  3253. 0x04,
  3254. L" Non-critical "
  3255. },
  3256. {
  3257. 0x05,
  3258. L" Critical "
  3259. },
  3260. {
  3261. 0x06,
  3262. L" Non-recoverable "
  3263. },
  3264. };
  3265. TABLE_ITEM TemperatureProbeLocTable[] = {
  3266. {
  3267. 0x01,
  3268. L" Other "
  3269. },
  3270. {
  3271. 0x02,
  3272. L" Unknown "
  3273. },
  3274. {
  3275. 0x03,
  3276. L" Processor "
  3277. },
  3278. {
  3279. 0x04,
  3280. L" Disk "
  3281. },
  3282. {
  3283. 0x05,
  3284. L" Peripheral Bay "
  3285. },
  3286. {
  3287. 0x06,
  3288. L" System Management Module "
  3289. },
  3290. {
  3291. 0x07,
  3292. L" Motherboard "
  3293. },
  3294. {
  3295. 0x08,
  3296. L" Memory Module "
  3297. },
  3298. {
  3299. 0x09,
  3300. L" Processor Module "
  3301. },
  3302. {
  3303. 0x0A,
  3304. L" Power Unit "
  3305. },
  3306. {
  3307. 0x0B,
  3308. L" Add-in Card "
  3309. },
  3310. };
  3311. TABLE_ITEM ECPStatusTable[] = {
  3312. {
  3313. 0x01,
  3314. L" Other "
  3315. },
  3316. {
  3317. 0x02,
  3318. L" Unknown "
  3319. },
  3320. {
  3321. 0x03,
  3322. L" OK "
  3323. },
  3324. {
  3325. 0x04,
  3326. L" Non-critical "
  3327. },
  3328. {
  3329. 0x05,
  3330. L" Critical "
  3331. },
  3332. {
  3333. 0x06,
  3334. L" Non-recoverable "
  3335. },
  3336. };
  3337. TABLE_ITEM ECPLocTable[] = {
  3338. {
  3339. 0x01,
  3340. L" Other "
  3341. },
  3342. {
  3343. 0x02,
  3344. L" Unknown "
  3345. },
  3346. {
  3347. 0x03,
  3348. L" Processor "
  3349. },
  3350. {
  3351. 0x04,
  3352. L" Disk "
  3353. },
  3354. {
  3355. 0x05,
  3356. L" Peripheral Bay "
  3357. },
  3358. {
  3359. 0x06,
  3360. L" System Management Module "
  3361. },
  3362. {
  3363. 0x07,
  3364. L" Motherboard "
  3365. },
  3366. {
  3367. 0x08,
  3368. L" Memory Module "
  3369. },
  3370. {
  3371. 0x09,
  3372. L" Processor Module "
  3373. },
  3374. {
  3375. 0x0A,
  3376. L" Power Unit "
  3377. },
  3378. {
  3379. 0x0B,
  3380. L" Add-in Card "
  3381. },
  3382. };
  3383. TABLE_ITEM MDTypeTable[] = {
  3384. {
  3385. 0x01,
  3386. L" Other "
  3387. },
  3388. {
  3389. 0x02,
  3390. L" Unknown "
  3391. },
  3392. {
  3393. 0x03,
  3394. L" National Semiconductor LM75 "
  3395. },
  3396. {
  3397. 0x04,
  3398. L" National Semiconductor LM78 "
  3399. },
  3400. {
  3401. 0x05,
  3402. L" National Semiconductor LM79 "
  3403. },
  3404. {
  3405. 0x06,
  3406. L" National Semiconductor LM80 "
  3407. },
  3408. {
  3409. 0x07,
  3410. L" National Semiconductor LM81 "
  3411. },
  3412. {
  3413. 0x08,
  3414. L" Analog Devices ADM9240 "
  3415. },
  3416. {
  3417. 0x09,
  3418. L" Dallas Semiconductor DS1780 "
  3419. },
  3420. {
  3421. 0x0A,
  3422. L" Maxim 1617 "
  3423. },
  3424. {
  3425. 0x0B,
  3426. L" Genesys GL518SM "
  3427. },
  3428. {
  3429. 0x0C,
  3430. L" Winbond W83781D "
  3431. },
  3432. {
  3433. 0x0D,
  3434. L" Holtek HT82H791 "
  3435. },
  3436. };
  3437. TABLE_ITEM MDAddressTypeTable[] = {
  3438. {
  3439. 0x01,
  3440. L" Other "
  3441. },
  3442. {
  3443. 0x02,
  3444. L" Unknown "
  3445. },
  3446. {
  3447. 0x03,
  3448. L" I/O Port "
  3449. },
  3450. {
  3451. 0x04,
  3452. L" Memory "
  3453. },
  3454. {
  3455. 0x05,
  3456. L" SM Bus "
  3457. },
  3458. };
  3459. TABLE_ITEM MemoryChannelTypeTable[] = {
  3460. {
  3461. 0x01,
  3462. L" Other "
  3463. },
  3464. {
  3465. 0x02,
  3466. L" Unknown "
  3467. },
  3468. {
  3469. 0x03,
  3470. L" RamBus "
  3471. },
  3472. {
  3473. 0x04,
  3474. L" SyncLink "
  3475. },
  3476. };
  3477. TABLE_ITEM IPMIDIBMCInterfaceTypeTable[] = {
  3478. {
  3479. 0x00,
  3480. L" Unknown "
  3481. },
  3482. {
  3483. 0x01,
  3484. L" KCS: Keyboard Controller Style "
  3485. },
  3486. {
  3487. 0x02,
  3488. L" SMIC: Server Management Interface Chip "
  3489. },
  3490. {
  3491. 0x03,
  3492. L" BT: Block Transfer "
  3493. },
  3494. {
  3495. 0x04,
  3496. L" SSIF: SMBus System Interface "
  3497. },
  3498. {
  3499. 0xFF05,
  3500. L" Reserved for future assignment by this specification "
  3501. },
  3502. };
  3503. TABLE_ITEM MCHostInterfaceTypeTable[] = {
  3504. {
  3505. 0x3F00,
  3506. L" MCTP Host Interface "
  3507. },
  3508. {
  3509. 0x40,
  3510. L" Network Host Interface "
  3511. },
  3512. {
  3513. 0xF0,
  3514. L" OEM defined "
  3515. },
  3516. };
  3517. TABLE_ITEM ProcessorArchitectureTypesTable[] = {
  3518. {
  3519. 0,
  3520. L" Reserved "
  3521. },
  3522. {
  3523. 1,
  3524. L" IA32 (x86) "
  3525. },
  3526. {
  3527. 2,
  3528. L" x64 (x86-64, intel64, AMD64, EM64T) "
  3529. },
  3530. {
  3531. 3,
  3532. L" Intel Itanium architecture "
  3533. },
  3534. {
  3535. 4,
  3536. L" 32-bit ARM (Aarch32) "
  3537. },
  3538. {
  3539. 5,
  3540. L" 64-bit ARM (Aarch64) "
  3541. },
  3542. {
  3543. 6,
  3544. L" 32-bit RISC-V (RV32) "
  3545. },
  3546. {
  3547. 7,
  3548. L" 64-bit RISC-V (RV64) "
  3549. },
  3550. {
  3551. 8,
  3552. L" 128-bit RISC-V (RV128) "
  3553. }
  3554. };
  3555. TABLE_ITEM StructureTypeInfoTable[] = {
  3556. {
  3557. 0,
  3558. L" BIOS Information"
  3559. },
  3560. {
  3561. 1,
  3562. L" System Information"
  3563. },
  3564. {
  3565. 2,
  3566. L" Base Board Information"
  3567. },
  3568. {
  3569. 3,
  3570. L" System Enclosure"
  3571. },
  3572. {
  3573. 4,
  3574. L" Processor Information"
  3575. },
  3576. {
  3577. 5,
  3578. L" Memory Controller Information "
  3579. },
  3580. {
  3581. 6,
  3582. L" Memory Module Information "
  3583. },
  3584. {
  3585. 7,
  3586. L" Cache Information "
  3587. },
  3588. {
  3589. 8,
  3590. L" Port Connector Information "
  3591. },
  3592. {
  3593. 9,
  3594. L" System Slots "
  3595. },
  3596. {
  3597. 10,
  3598. L" On Board Devices Information "
  3599. },
  3600. {
  3601. 11,
  3602. L" OEM Strings"
  3603. },
  3604. {
  3605. 12,
  3606. L" System Configuration Options "
  3607. },
  3608. {
  3609. 13,
  3610. L" BIOS Language Information "
  3611. },
  3612. {
  3613. 14,
  3614. L" Group Associations "
  3615. },
  3616. {
  3617. 15,
  3618. L" System Event Log "
  3619. },
  3620. {
  3621. 16,
  3622. L" Physical Memory Array "
  3623. },
  3624. {
  3625. 17,
  3626. L" Memory Device "
  3627. },
  3628. {
  3629. 18,
  3630. L" 32-bit Memory Error Information "
  3631. },
  3632. {
  3633. 19,
  3634. L" Memory Array Mapped Address "
  3635. },
  3636. {
  3637. 20,
  3638. L" Memory Device Mapped Address "
  3639. },
  3640. {
  3641. 21,
  3642. L" Built-in Pointing Device "
  3643. },
  3644. {
  3645. 22,
  3646. L" Portable Battery "
  3647. },
  3648. {
  3649. 23,
  3650. L" System Reset "
  3651. },
  3652. {
  3653. 24,
  3654. L" Hardware Security "
  3655. },
  3656. {
  3657. 25,
  3658. L" System Power Controls "
  3659. },
  3660. {
  3661. 26,
  3662. L" Voltage Probe "
  3663. },
  3664. {
  3665. 27,
  3666. L" Cooling Device "
  3667. },
  3668. {
  3669. 28,
  3670. L" Temperature Probe "
  3671. },
  3672. {
  3673. 29,
  3674. L" Electrical Current Probe "
  3675. },
  3676. {
  3677. 30,
  3678. L" Out-of-Band Remote Access "
  3679. },
  3680. {
  3681. 31,
  3682. L" Boot Integrity Services (BIS) Entry Point"
  3683. },
  3684. {
  3685. 32,
  3686. L" System Boot Information "
  3687. },
  3688. {
  3689. 33,
  3690. L" 64-bit Memory Error Information "
  3691. },
  3692. {
  3693. 34,
  3694. L" Management Device "
  3695. },
  3696. {
  3697. 35,
  3698. L" Management Device Component "
  3699. },
  3700. {
  3701. 36,
  3702. L" Management Device Threshold Data "
  3703. },
  3704. {
  3705. 37,
  3706. L" Memory Channel "
  3707. },
  3708. {
  3709. 38,
  3710. L" IPMI Device Information "
  3711. },
  3712. {
  3713. 39,
  3714. L" System Power Supply"
  3715. },
  3716. {
  3717. 40,
  3718. L" Additional Information"
  3719. },
  3720. {
  3721. 41,
  3722. L" Onboard Devices Extended Information"
  3723. },
  3724. {
  3725. 42,
  3726. L" Management Controller Host Interface"
  3727. },
  3728. {
  3729. 43,
  3730. L" TPM Device"
  3731. },
  3732. {
  3733. 44,
  3734. L" Processor Additional Information"
  3735. },
  3736. {
  3737. 0x7E,
  3738. L" Inactive"
  3739. },
  3740. {
  3741. 0x7F,
  3742. L" End-of-Table "
  3743. },
  3744. };
  3745. /**
  3746. Given a table and a Key, return the responding info.
  3747. Notes:
  3748. Table[Index].Key is change from UINT8 to UINT16,
  3749. in order to deal with "0xaa - 0xbb".
  3750. For example:
  3751. DisplaySELVariableDataFormatTypes(UINT8 Type, UINT8 Option)
  3752. has a item:
  3753. "0x07-0x7F, Unused"
  3754. Now define Key = 0x7F07, that is to say: High = 0x7F, Low = 0x07.
  3755. Then all the Key Value between Low and High gets the same string
  3756. L"Unused".
  3757. @param[in] Table The begin address of table.
  3758. @param[in] Number The number of table items.
  3759. @param[in] Key The query Key.
  3760. @param[in, out] Info Input as empty buffer; output as data buffer.
  3761. @param[in] InfoLen The max number of characters for Info.
  3762. @return the found Key and Info is valid.
  3763. @retval QUERY_TABLE_UNFOUND and Info should be NULL.
  3764. **/
  3765. UINT8
  3766. QueryTable (
  3767. IN TABLE_ITEM *Table,
  3768. IN UINTN Number,
  3769. IN UINT8 Key,
  3770. IN OUT CHAR16 *Info,
  3771. IN UINTN InfoLen
  3772. )
  3773. {
  3774. UINTN Index;
  3775. //
  3776. // High byte and Low byte of word
  3777. //
  3778. UINT8 High;
  3779. UINT8 Low;
  3780. for (Index = 0; Index < Number; Index++) {
  3781. High = (UINT8)(Table[Index].Key >> 8);
  3782. Low = (UINT8)(Table[Index].Key & 0x00FF);
  3783. //
  3784. // Check if Key is in the range
  3785. // or if Key == Value in the table
  3786. //
  3787. if ( ((High > Low) && (Key >= Low) && (Key <= High))
  3788. || (Table[Index].Key == Key))
  3789. {
  3790. StrnCpyS (Info, InfoLen, Table[Index].Info, InfoLen - 1);
  3791. StrnCatS (Info, InfoLen, L"\n", InfoLen - 1 - StrLen (Info));
  3792. return Key;
  3793. }
  3794. }
  3795. StrCpyS (Info, InfoLen, L"Undefined Value\n");
  3796. return QUERY_TABLE_UNFOUND;
  3797. }
  3798. /**
  3799. Given a table of bit info and a Key, return the responding info to the Key.
  3800. @param[in] Table Point to a table which maintains a map of 'bit' to 'message'.
  3801. @param[in] Number Number of table items.
  3802. @param[in] Bits The Key of query the bit map information.
  3803. **/
  3804. VOID
  3805. PrintBitsInfo (
  3806. IN TABLE_ITEM *Table,
  3807. IN UINTN Number,
  3808. IN UINT32 Bits
  3809. )
  3810. {
  3811. //
  3812. // Get certain bit of 'Value':
  3813. //
  3814. #define BIT(Value, bit) ((Value) & ((UINT32) 1) << (bit))
  3815. //
  3816. // Clear certain bit of 'Value':
  3817. //
  3818. #define CLR_BIT(Value, bit) ((Value) -= (BIT (Value, bit)))
  3819. UINTN Index;
  3820. UINT32 Value;
  3821. BOOLEAN FirstInfo;
  3822. FirstInfo = TRUE;
  3823. Value = Bits;
  3824. //
  3825. // query the table and print information
  3826. //
  3827. for (Index = 0; Index < Number; Index++) {
  3828. if (BIT (Value, Table[Index].Key) != 0) {
  3829. if (!FirstInfo) {
  3830. //
  3831. // If it is not first info, print the separator first.
  3832. //
  3833. Print (L" | ");
  3834. }
  3835. Print (Table[Index].Info);
  3836. FirstInfo = FALSE;
  3837. //
  3838. // clear the bit, for reserved bits test
  3839. //
  3840. CLR_BIT (Value, Table[Index].Key);
  3841. }
  3842. }
  3843. //
  3844. // There is no any info if FirstInfo is still TRUE.
  3845. //
  3846. if (FirstInfo) {
  3847. ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_NO_INFO), gShellDebug1HiiHandle);
  3848. }
  3849. if (Value != 0) {
  3850. ShellPrintHiiEx (
  3851. -1,
  3852. -1,
  3853. NULL,
  3854. STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_RSVD_BITS_SET),
  3855. gShellDebug1HiiHandle,
  3856. Value
  3857. );
  3858. }
  3859. Print (L"\n");
  3860. }
  3861. //
  3862. // //////////////////////////////////////////////////////////////////
  3863. //
  3864. // Following uses QueryTable functions to simplify the coding.
  3865. // QueryTable(), PrintBitsInfo()
  3866. //
  3867. //
  3868. #define PRINT_TABLE_ITEM(Table, Key) \
  3869. do { \
  3870. UINTN Num; \
  3871. CHAR16 Info[66]; \
  3872. Num = sizeof (Table) / sizeof (TABLE_ITEM); \
  3873. ZeroMem (Info, sizeof (Info)); \
  3874. QueryTable (Table, Num, Key, Info, sizeof(Info)/sizeof(Info[0])); \
  3875. Print (Info); \
  3876. } while (0);
  3877. #define PRINT_BITS_INFO(Table, bits) \
  3878. do { \
  3879. UINTN Num; \
  3880. Num = sizeof (Table) / sizeof (TABLE_ITEM); \
  3881. PrintBitsInfo (Table, Num, (UINT32) bits); \
  3882. } while (0);
  3883. /**
  3884. Display System Information (Type 1) Type.
  3885. @param[in] Type The key of the structure.
  3886. @param[in] Option The optional information.
  3887. **/
  3888. VOID
  3889. DisplaySystemWakeupType (
  3890. IN UINT8 Type,
  3891. IN UINT8 Option
  3892. )
  3893. {
  3894. ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_WAKEUP_TYPE), gShellDebug1HiiHandle);
  3895. PRINT_INFO_OPTION (Type, Option);
  3896. PRINT_TABLE_ITEM (SystemWakeupTypeTable, Type);
  3897. }
  3898. /**
  3899. Display Base Board (Type 2) Feature Flags.
  3900. @param[in] FeatureFlags The key of the structure.
  3901. @param[in] Option The optional information.
  3902. **/
  3903. VOID
  3904. DisplayBaseBoardFeatureFlags (
  3905. IN UINT8 FeatureFlags,
  3906. IN UINT8 Option
  3907. )
  3908. {
  3909. ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_BASE_BOARD_FEATURE_FLAGS), gShellDebug1HiiHandle);
  3910. PRINT_INFO_OPTION (FeatureFlags, Option);
  3911. PRINT_BITS_INFO (BaseBoardFeatureFlagsTable, FeatureFlags);
  3912. }
  3913. /**
  3914. Display Base Board (Type 2) Board Type.
  3915. @param[in] Type The key of the structure.
  3916. @param[in] Option The optional information.
  3917. **/
  3918. VOID
  3919. DisplayBaseBoardBoardType (
  3920. IN UINT8 Type,
  3921. IN UINT8 Option
  3922. )
  3923. {
  3924. ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_BASE_BOARD_BOARD_TYPE), gShellDebug1HiiHandle);
  3925. PRINT_INFO_OPTION (Type, Option);
  3926. PRINT_TABLE_ITEM (BaseBoardBoardTypeTable, Type);
  3927. }
  3928. /**
  3929. Display System Enclosure (Type 3) Enclosure Type.
  3930. @param[in] Type The key of the structure.
  3931. @param[in] Option The optional information.
  3932. **/
  3933. VOID
  3934. DisplaySystemEnclosureType (
  3935. IN UINT8 Type,
  3936. IN UINT8 Option
  3937. )
  3938. {
  3939. ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_CHASSIS_TYPE), gShellDebug1HiiHandle);
  3940. PRINT_INFO_OPTION (Type, Option);
  3941. //
  3942. // query table and print info
  3943. //
  3944. PRINT_TABLE_ITEM (SystemEnclosureTypeTable, Type);
  3945. if (BIT (Type, 7) != 0) {
  3946. ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_CHASSIS_LOCK_PRESENT), gShellDebug1HiiHandle);
  3947. }
  3948. }
  3949. /**
  3950. Display System Enclosure (Type 3) Enclosure Status.
  3951. @param[in] Status The key of the structure.
  3952. @param[in] Option The optional information.
  3953. **/
  3954. VOID
  3955. DisplaySystemEnclosureStatus (
  3956. IN UINT8 Status,
  3957. IN UINT8 Option
  3958. )
  3959. {
  3960. ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_CHASSIS_STATUS), gShellDebug1HiiHandle);
  3961. PRINT_INFO_OPTION (Status, Option);
  3962. PRINT_TABLE_ITEM (SystemEnclosureStatusTable, Status);
  3963. }
  3964. /**
  3965. Display System Enclosure (Type 3) Security Status.
  3966. @param[in] Status The key of the structure.
  3967. @param[in] Option The optional information.
  3968. **/
  3969. VOID
  3970. DisplaySESecurityStatus (
  3971. IN UINT8 Status,
  3972. IN UINT8 Option
  3973. )
  3974. {
  3975. ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_CHASSIS_SECURITY), gShellDebug1HiiHandle);
  3976. PRINT_INFO_OPTION (Status, Option);
  3977. PRINT_TABLE_ITEM (SESecurityStatusTable, Status);
  3978. }
  3979. /**
  3980. Display Processor Information (Type 4) Type.
  3981. @param[in] Type The key of the structure.
  3982. @param[in] Option The optional information.
  3983. **/
  3984. VOID
  3985. DisplayProcessorType (
  3986. IN UINT8 Type,
  3987. IN UINT8 Option
  3988. )
  3989. {
  3990. ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_PROC_TYPE), gShellDebug1HiiHandle);
  3991. PRINT_INFO_OPTION (Type, Option);
  3992. PRINT_TABLE_ITEM (ProcessorTypeTable, Type);
  3993. }
  3994. /**
  3995. Display Processor Information (Type 4) Upgrade.
  3996. @param[in] Upgrade The key of the structure.
  3997. @param[in] Option The optional information.
  3998. **/
  3999. VOID
  4000. DisplayProcessorUpgrade (
  4001. IN UINT8 Upgrade,
  4002. IN UINT8 Option
  4003. )
  4004. {
  4005. ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_PROC_UPDATE), gShellDebug1HiiHandle);
  4006. PRINT_INFO_OPTION (Upgrade, Option);
  4007. PRINT_TABLE_ITEM (ProcessorUpgradeTable, Upgrade);
  4008. }
  4009. /**
  4010. Display Processor Information (Type 4) Characteristics.
  4011. @param[in] Type The key of the structure.
  4012. @param[in] Option The optional information.
  4013. **/
  4014. VOID
  4015. DisplayProcessorCharacteristics (
  4016. IN UINT16 Type,
  4017. IN UINT8 Option
  4018. )
  4019. {
  4020. ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_PROC_CHARACTERISTICS), gShellDebug1HiiHandle);
  4021. PRINT_INFO_OPTION (Type, Option);
  4022. PRINT_BITS_INFO (ProcessorCharacteristicsTable, Type);
  4023. }
  4024. /**
  4025. Display Memory Controller Information (Type 5) method.
  4026. @param[in] Method The key of the structure.
  4027. @param[in] Option The optional information.
  4028. **/
  4029. VOID
  4030. DisplayMcErrorDetectMethod (
  4031. IN UINT8 Method,
  4032. IN UINT8 Option
  4033. )
  4034. {
  4035. ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_DETECTMETHOD), gShellDebug1HiiHandle);
  4036. PRINT_INFO_OPTION (Method, Option);
  4037. PRINT_TABLE_ITEM (McErrorDetectMethodTable, Method);
  4038. }
  4039. /**
  4040. Display Memory Controller Information (Type 5) Capability.
  4041. @param[in] Capability The key of the structure.
  4042. @param[in] Option The optional information.
  4043. **/
  4044. VOID
  4045. DisplayMcErrorCorrectCapability (
  4046. IN UINT8 Capability,
  4047. IN UINT8 Option
  4048. )
  4049. {
  4050. ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_CORRECT_CAPABILITY), gShellDebug1HiiHandle);
  4051. PRINT_INFO_OPTION (Capability, Option);
  4052. PRINT_BITS_INFO (McErrorCorrectCapabilityTable, Capability);
  4053. }
  4054. /**
  4055. Display Memory Controller Information (Type 5) Support.
  4056. @param[in] Support The key of the structure.
  4057. @param[in] Option The optional information.
  4058. **/
  4059. VOID
  4060. DisplayMcInterleaveSupport (
  4061. IN UINT8 Support,
  4062. IN UINT8 Option
  4063. )
  4064. {
  4065. ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_INTERLEAVE_SUPPORT), gShellDebug1HiiHandle);
  4066. PRINT_INFO_OPTION (Support, Option);
  4067. PRINT_TABLE_ITEM (McInterleaveSupportTable, Support);
  4068. }
  4069. /**
  4070. Display Memory Controller Information (Type 5) speeds.
  4071. @param[in] Speed The key of the structure.
  4072. @param[in] Option The optional information.
  4073. **/
  4074. VOID
  4075. DisplayMcMemorySpeeds (
  4076. IN UINT16 Speed,
  4077. IN UINT8 Option
  4078. )
  4079. {
  4080. ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_MEMORY_SPEED), gShellDebug1HiiHandle);
  4081. PRINT_INFO_OPTION (Speed, Option);
  4082. PRINT_BITS_INFO (McMemorySpeedsTable, Speed);
  4083. }
  4084. /**
  4085. Display Memory Controller Information (Type 5) voltage.
  4086. @param[in] Voltage The key of the structure.
  4087. @param[in] Option The optional information.
  4088. **/
  4089. VOID
  4090. DisplayMemoryModuleVoltage (
  4091. IN UINT8 Voltage,
  4092. IN UINT8 Option
  4093. )
  4094. {
  4095. ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_REQUIRED_VOLTAGES), gShellDebug1HiiHandle);
  4096. PRINT_INFO_OPTION (Voltage, Option);
  4097. PRINT_BITS_INFO (MemoryModuleVoltageTable, Voltage);
  4098. }
  4099. /**
  4100. Display Memory Module Information (Type 6) type.
  4101. @param[in] Type The key of the structure.
  4102. @param[in] Option The optional information.
  4103. **/
  4104. VOID
  4105. DisplayMmMemoryType (
  4106. IN UINT16 Type,
  4107. IN UINT8 Option
  4108. )
  4109. {
  4110. ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_MODULE_TYPE), gShellDebug1HiiHandle);
  4111. PRINT_INFO_OPTION (Type, Option);
  4112. PRINT_BITS_INFO (MmMemoryTypeTable, Type);
  4113. }
  4114. /**
  4115. Display Memory Module Information (Type 6) status.
  4116. @param[in] Status The key of the structure.
  4117. @param[in] Option The optional information.
  4118. **/
  4119. VOID
  4120. DisplayMmErrorStatus (
  4121. IN UINT8 Status,
  4122. IN UINT8 Option
  4123. )
  4124. {
  4125. ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_MODULE_ERROR_STATUS), gShellDebug1HiiHandle);
  4126. PRINT_INFO_OPTION (Status, Option);
  4127. PRINT_BITS_INFO (MmErrorStatusTable, Status);
  4128. }
  4129. /**
  4130. Display Cache Information (Type 7) SRAM Type.
  4131. @param[in] Type The key of the structure.
  4132. @param[in] Option The optional information.
  4133. **/
  4134. VOID
  4135. DisplayCacheSRAMType (
  4136. IN UINT16 Type,
  4137. IN UINT8 Option
  4138. )
  4139. {
  4140. ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_CACHE_SRAM_TYPE), gShellDebug1HiiHandle);
  4141. PRINT_INFO_OPTION ((UINT8)Type, Option);
  4142. PRINT_BITS_INFO (CacheSRAMTypeTable, (UINT8)Type);
  4143. }
  4144. /**
  4145. Display Cache Information (Type 7) correcting Type.
  4146. @param[in] Type The key of the structure.
  4147. @param[in] Option The optional information.
  4148. **/
  4149. VOID
  4150. DisplayCacheErrCorrectingType (
  4151. IN UINT8 Type,
  4152. IN UINT8 Option
  4153. )
  4154. {
  4155. ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_CACHE_ERROR_CORRECTING), gShellDebug1HiiHandle);
  4156. PRINT_INFO_OPTION (Type, Option);
  4157. PRINT_TABLE_ITEM (CacheErrCorrectingTypeTable, Type);
  4158. }
  4159. /**
  4160. Display Cache Information (Type 7) Type.
  4161. @param[in] Type The key of the structure.
  4162. @param[in] Option The optional information.
  4163. **/
  4164. VOID
  4165. DisplayCacheSystemCacheType (
  4166. IN UINT8 Type,
  4167. IN UINT8 Option
  4168. )
  4169. {
  4170. ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_CACHE_SYSTEM_TYPE), gShellDebug1HiiHandle);
  4171. PRINT_INFO_OPTION (Type, Option);
  4172. PRINT_TABLE_ITEM (CacheSystemCacheTypeTable, Type);
  4173. }
  4174. /**
  4175. Display Cache Information (Type 7) Associativity.
  4176. @param[in] Associativity The key of the structure.
  4177. @param[in] Option The optional information.
  4178. **/
  4179. VOID
  4180. DisplayCacheAssociativity (
  4181. IN UINT8 Associativity,
  4182. IN UINT8 Option
  4183. )
  4184. {
  4185. ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_CACHE_ASSOCIATIVITY), gShellDebug1HiiHandle);
  4186. PRINT_INFO_OPTION (Associativity, Option);
  4187. PRINT_TABLE_ITEM (CacheAssociativityTable, Associativity);
  4188. }
  4189. /**
  4190. Display Port Connector Information (Type 8) type.
  4191. @param[in] Type The key of the structure.
  4192. @param[in] Option The optional information.
  4193. **/
  4194. VOID
  4195. DisplayPortConnectorType (
  4196. IN UINT8 Type,
  4197. IN UINT8 Option
  4198. )
  4199. {
  4200. ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_PORT_CONNECTOR_TYPE), gShellDebug1HiiHandle);
  4201. PRINT_INFO_OPTION (Type, Option);
  4202. PRINT_TABLE_ITEM (PortConnectorTypeTable, Type);
  4203. }
  4204. /**
  4205. Display Port Connector Information (Type 8) port type.
  4206. @param[in] Type The key of the structure.
  4207. @param[in] Option The optional information.
  4208. **/
  4209. VOID
  4210. DisplayPortType (
  4211. IN UINT8 Type,
  4212. IN UINT8 Option
  4213. )
  4214. {
  4215. ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_PORT_TYPE), gShellDebug1HiiHandle);
  4216. PRINT_INFO_OPTION (Type, Option);
  4217. PRINT_TABLE_ITEM (PortTypeTable, Type);
  4218. }
  4219. /**
  4220. Display System Slots (Type 9) slot type.
  4221. @param[in] Type The key of the structure.
  4222. @param[in] Option The optional information.
  4223. **/
  4224. VOID
  4225. DisplaySystemSlotType (
  4226. IN UINT8 Type,
  4227. IN UINT8 Option
  4228. )
  4229. {
  4230. ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_SLOT_TYPE), gShellDebug1HiiHandle);
  4231. PRINT_INFO_OPTION (Type, Option);
  4232. PRINT_TABLE_ITEM (SystemSlotTypeTable, Type);
  4233. }
  4234. /**
  4235. Display System Slots (Type 9) data bus width.
  4236. @param[in] Width The key of the structure.
  4237. @param[in] Option The optional information.
  4238. **/
  4239. VOID
  4240. DisplaySystemSlotDataBusWidth (
  4241. IN UINT8 Width,
  4242. IN UINT8 Option
  4243. )
  4244. {
  4245. ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_SLOT_DATA), gShellDebug1HiiHandle);
  4246. PRINT_INFO_OPTION (Width, Option);
  4247. PRINT_TABLE_ITEM (SystemSlotDataBusWidthTable, Width);
  4248. }
  4249. /**
  4250. Display System Slots (Type 9) usage information.
  4251. @param[in] Usage The key of the structure.
  4252. @param[in] Option The optional information.
  4253. **/
  4254. VOID
  4255. DisplaySystemSlotCurrentUsage (
  4256. IN UINT8 Usage,
  4257. IN UINT8 Option
  4258. )
  4259. {
  4260. ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_SLOT_CURRENT_USAGE), gShellDebug1HiiHandle);
  4261. PRINT_INFO_OPTION (Usage, Option);
  4262. PRINT_TABLE_ITEM (SystemSlotCurrentUsageTable, Usage);
  4263. }
  4264. /**
  4265. Display System Slots (Type 9) slot length.
  4266. @param[in] Length The key of the structure.
  4267. @param[in] Option The optional information.
  4268. **/
  4269. VOID
  4270. DisplaySystemSlotLength (
  4271. IN UINT8 Length,
  4272. IN UINT8 Option
  4273. )
  4274. {
  4275. ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_SLOT_LENGTH), gShellDebug1HiiHandle);
  4276. PRINT_INFO_OPTION (Length, Option);
  4277. PRINT_TABLE_ITEM (SystemSlotLengthTable, Length);
  4278. }
  4279. /**
  4280. Display System Slots (Type 9) characteristics.
  4281. @param[in] Chara1 The key of the structure.
  4282. @param[in] Option The optional information.
  4283. **/
  4284. VOID
  4285. DisplaySlotCharacteristics1 (
  4286. IN UINT8 Chara1,
  4287. IN UINT8 Option
  4288. )
  4289. {
  4290. ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SLOT_CHARACTERISTICS), gShellDebug1HiiHandle);
  4291. PRINT_INFO_OPTION (Chara1, Option);
  4292. PRINT_BITS_INFO (SlotCharacteristics1Table, Chara1);
  4293. }
  4294. /**
  4295. Display System Slots (Type 9) characteristics.
  4296. @param[in] Chara2 The key of the structure.
  4297. @param[in] Option The optional information.
  4298. **/
  4299. VOID
  4300. DisplaySlotCharacteristics2 (
  4301. IN UINT8 Chara2,
  4302. IN UINT8 Option
  4303. )
  4304. {
  4305. ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SLOT_CHARACTERISTICS_2), gShellDebug1HiiHandle);
  4306. PRINT_INFO_OPTION (Chara2, Option);
  4307. PRINT_BITS_INFO (SlotCharacteristics2Table, Chara2);
  4308. }
  4309. /**
  4310. Display System Slots (Type 9) Information.
  4311. @param[in] Width The key of the structure.
  4312. @param[in] Option The optional information.
  4313. **/
  4314. VOID
  4315. DisplaySystemSlotInformation (
  4316. IN UINT8 Width,
  4317. IN UINT8 Option
  4318. )
  4319. {
  4320. ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_SLOT_INFORMATION), gShellDebug1HiiHandle);
  4321. PRINT_INFO_OPTION (Width, Option);
  4322. PRINT_TABLE_ITEM (SystemSlotInformationTable, Width);
  4323. }
  4324. /**
  4325. Display System Slots (Type 9) Physical Width.
  4326. @param[in] Width The key of the structure.
  4327. @param[in] Option The optional information.
  4328. **/
  4329. VOID
  4330. DisplaySystemSlotPhysicalWidth (
  4331. IN UINT8 Width,
  4332. IN UINT8 Option
  4333. )
  4334. {
  4335. ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_SLOT_PHYSICAL_WIDTH), gShellDebug1HiiHandle);
  4336. PRINT_INFO_OPTION (Width, Option);
  4337. PRINT_TABLE_ITEM (SystemSlotPhysicalWidthTable, Width);
  4338. }
  4339. /**
  4340. Display System Slots (Type 9) slot height.
  4341. @param[in] Length The key of the structure.
  4342. @param[in] Option The optional information.
  4343. **/
  4344. VOID
  4345. DisplaySystemSlotHeight (
  4346. IN UINT8 Length,
  4347. IN UINT8 Option
  4348. )
  4349. {
  4350. ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_SLOT_HEIGHT), gShellDebug1HiiHandle);
  4351. PRINT_INFO_OPTION (Length, Option);
  4352. PRINT_TABLE_ITEM (SystemSlotHeightTable, Length);
  4353. }
  4354. /**
  4355. Display On Board Devices Information (Type 10) types.
  4356. @param[in] Type The key of the structure.
  4357. @param[in] Option The optional information.
  4358. **/
  4359. VOID
  4360. DisplayOnboardDeviceTypes (
  4361. IN UINT8 Type,
  4362. IN UINT8 Option
  4363. )
  4364. {
  4365. ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_ONBOARD_DEVICE_TYPE), gShellDebug1HiiHandle);
  4366. PRINT_INFO_OPTION (Type, Option);
  4367. PRINT_TABLE_ITEM (OnboardDeviceTypesTable, Type);
  4368. }
  4369. /**
  4370. Display System Event Log (Type 15) types.
  4371. @param[in] Type The key of the structure.
  4372. @param[in] Option The optional information.
  4373. **/
  4374. VOID
  4375. DisplaySELTypes (
  4376. IN UINT8 Type,
  4377. IN UINT8 Option
  4378. )
  4379. {
  4380. ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_EVENT_LOG_TYPE), gShellDebug1HiiHandle);
  4381. PRINT_INFO_OPTION (Type, Option);
  4382. PRINT_TABLE_ITEM (SELTypesTable, Type);
  4383. }
  4384. /**
  4385. Display System Event Log (Type 15) format type.
  4386. @param[in] Type The key of the structure.
  4387. @param[in] Option The optional information.
  4388. **/
  4389. VOID
  4390. DisplaySELVarDataFormatType (
  4391. IN UINT8 Type,
  4392. IN UINT8 Option
  4393. )
  4394. {
  4395. ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_EVENT_LOG_VAR_DATA_FORMAT), gShellDebug1HiiHandle);
  4396. PRINT_INFO_OPTION (Type, Option);
  4397. PRINT_TABLE_ITEM (SELVarDataFormatTypeTable, Type);
  4398. }
  4399. /**
  4400. Display System Event Log (Type 15) dw1.
  4401. @param[in] Key The key of the structure.
  4402. @param[in] Option The optional information.
  4403. **/
  4404. VOID
  4405. DisplayPostResultsBitmapDw1 (
  4406. IN UINT32 Key,
  4407. IN UINT8 Option
  4408. )
  4409. {
  4410. ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_POST_RESULTS_BITMAP), gShellDebug1HiiHandle);
  4411. PRINT_INFO_OPTION (Key, Option);
  4412. PRINT_BITS_INFO (PostResultsBitmapDw1Table, Key);
  4413. }
  4414. /**
  4415. Display System Event Log (Type 15) dw2.
  4416. @param[in] Key The key of the structure.
  4417. @param[in] Option The optional information.
  4418. **/
  4419. VOID
  4420. DisplayPostResultsBitmapDw2 (
  4421. IN UINT32 Key,
  4422. IN UINT8 Option
  4423. )
  4424. {
  4425. ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_POST_RESULTS_SECOND_DWORD), gShellDebug1HiiHandle);
  4426. PRINT_INFO_OPTION (Key, Option);
  4427. PRINT_BITS_INFO (PostResultsBitmapDw2Table, Key);
  4428. }
  4429. /**
  4430. Display System Event Log (Type 15) type.
  4431. @param[in] SMType The key of the structure.
  4432. @param[in] Option The optional information.
  4433. **/
  4434. VOID
  4435. DisplaySELSysManagementTypes (
  4436. IN UINT32 SMType,
  4437. IN UINT8 Option
  4438. )
  4439. {
  4440. UINT8 Temp;
  4441. ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_MANAGEMENT_TYPES), gShellDebug1HiiHandle);
  4442. PRINT_INFO_OPTION (SMType, Option);
  4443. //
  4444. // Deal with wide range Value
  4445. //
  4446. if (SMType >= 0x80000000) {
  4447. ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_OEM_ASSIGNED), gShellDebug1HiiHandle);
  4448. } else if (SMType >= 0x00020000) {
  4449. ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_RSVD_FOR_FUTURE_ASSIGN), gShellDebug1HiiHandle);
  4450. } else if (SMType >= 0x00010000) {
  4451. ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_MANAGEMENT_PROBE), gShellDebug1HiiHandle);
  4452. } else if (SMType >= 0x31) {
  4453. ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_RSVD_FOR_FUTURE_ASSIGN), gShellDebug1HiiHandle);
  4454. } else {
  4455. //
  4456. // Deal with One byte data
  4457. //
  4458. Temp = (UINT8)(SMType & 0x3F);
  4459. PRINT_TABLE_ITEM (SELSysManagementTypesTable, Temp);
  4460. }
  4461. }
  4462. /**
  4463. Display Physical Memory Array (Type 16) Location.
  4464. @param[in] Location The key of the structure.
  4465. @param[in] Option The optional information.
  4466. **/
  4467. VOID
  4468. DisplayPMALocation (
  4469. IN UINT8 Location,
  4470. IN UINT8 Option
  4471. )
  4472. {
  4473. ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_PHYS_MEM_ARRAY_LOCATION), gShellDebug1HiiHandle);
  4474. PRINT_INFO_OPTION (Location, Option);
  4475. PRINT_TABLE_ITEM (PMALocationTable, Location);
  4476. }
  4477. /**
  4478. Display Physical Memory Array (Type 16) Use.
  4479. @param[in] Use The key of the structure.
  4480. @param[in] Option The optional information.
  4481. **/
  4482. VOID
  4483. DisplayPMAUse (
  4484. IN UINT8 Use,
  4485. IN UINT8 Option
  4486. )
  4487. {
  4488. ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_PHYS_MEM_ARRAY_USE), gShellDebug1HiiHandle);
  4489. PRINT_INFO_OPTION (Use, Option);
  4490. PRINT_TABLE_ITEM (PMAUseTable, Use);
  4491. }
  4492. /**
  4493. Display Physical Memory Array (Type 16) Types.
  4494. @param[in] Type The key of the structure.
  4495. @param[in] Option The optional information.
  4496. **/
  4497. VOID
  4498. DisplayPMAErrorCorrectionTypes (
  4499. IN UINT8 Type,
  4500. IN UINT8 Option
  4501. )
  4502. {
  4503. ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_PHYS_MEM_ARRAY_ERROR), gShellDebug1HiiHandle);
  4504. PRINT_INFO_OPTION (Type, Option);
  4505. PRINT_TABLE_ITEM (PMAErrorCorrectionTypesTable, Type);
  4506. }
  4507. /**
  4508. Display Memory Device (Type 17) form factor.
  4509. @param[in] FormFactor The key of the structure.
  4510. @param[in] Option The optional information.
  4511. **/
  4512. VOID
  4513. DisplayMemoryDeviceFormFactor (
  4514. IN UINT8 FormFactor,
  4515. IN UINT8 Option
  4516. )
  4517. {
  4518. ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_DEVICE_FORM_FACTOR), gShellDebug1HiiHandle);
  4519. PRINT_INFO_OPTION (FormFactor, Option);
  4520. PRINT_TABLE_ITEM (MemoryDeviceFormFactorTable, FormFactor);
  4521. }
  4522. /**
  4523. Display Memory Device (Type 17) type.
  4524. @param[in] Type The key of the structure.
  4525. @param[in] Option The optional information.
  4526. **/
  4527. VOID
  4528. DisplayMemoryDeviceType (
  4529. IN UINT8 Type,
  4530. IN UINT8 Option
  4531. )
  4532. {
  4533. ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_DEVICE_TYPE), gShellDebug1HiiHandle);
  4534. PRINT_INFO_OPTION (Type, Option);
  4535. PRINT_TABLE_ITEM (MemoryDeviceTypeTable, Type);
  4536. }
  4537. /**
  4538. Display Memory Device (Type 17) details.
  4539. @param[in] Para The key of the structure.
  4540. @param[in] Option The optional information.
  4541. **/
  4542. VOID
  4543. DisplayMemoryDeviceTypeDetail (
  4544. IN UINT16 Para,
  4545. IN UINT8 Option
  4546. )
  4547. {
  4548. ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_DEVICE_TYPE_DETAIL), gShellDebug1HiiHandle);
  4549. PRINT_INFO_OPTION (Para, Option);
  4550. PRINT_BITS_INFO (MemoryDeviceTypeDetailTable, Para);
  4551. }
  4552. /**
  4553. Display Memory Device (Type 17) memory technology.
  4554. @param[in] Para The key of the structure.
  4555. @param[in] Option The optional information.
  4556. **/
  4557. VOID
  4558. DisplayMemoryDeviceMemoryTechnology (
  4559. IN UINT8 Para,
  4560. IN UINT8 Option
  4561. )
  4562. {
  4563. ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_DEVICE_MEMORY_TECHNOLOGY), gShellDebug1HiiHandle);
  4564. PRINT_INFO_OPTION (Para, Option);
  4565. PRINT_TABLE_ITEM (MemoryDeviceMemoryTechnologyTable, Para);
  4566. }
  4567. /**
  4568. Display Memory Device (Type 17) memory operating mode capability.
  4569. @param[in] Para The key of the structure.
  4570. @param[in] Option The optional information.
  4571. **/
  4572. VOID
  4573. DisplayMemoryDeviceMemoryOperatingModeCapability (
  4574. IN UINT16 Para,
  4575. IN UINT8 Option
  4576. )
  4577. {
  4578. ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_DEVICE_MEM_OPER_MODE_CAPA), gShellDebug1HiiHandle);
  4579. PRINT_INFO_OPTION (Para, Option);
  4580. PRINT_BITS_INFO (MemoryDeviceMemoryOperatingModeCapabilityTable, Para);
  4581. }
  4582. /**
  4583. Display 32-bit Memory Error Information (Type 18) type.
  4584. @param[in] ErrorType The key of the structure.
  4585. @param[in] Option The optional information.
  4586. **/
  4587. VOID
  4588. DisplayMemoryErrorType (
  4589. IN UINT8 ErrorType,
  4590. IN UINT8 Option
  4591. )
  4592. {
  4593. ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_ERROR_INFO), gShellDebug1HiiHandle);
  4594. PRINT_INFO_OPTION (ErrorType, Option);
  4595. PRINT_TABLE_ITEM (MemoryErrorTypeTable, ErrorType);
  4596. }
  4597. /**
  4598. Display 32-bit Memory Error Information (Type 18) error granularity.
  4599. @param[in] Granularity The key of the structure.
  4600. @param[in] Option The optional information.
  4601. **/
  4602. VOID
  4603. DisplayMemoryErrorGranularity (
  4604. IN UINT8 Granularity,
  4605. IN UINT8 Option
  4606. )
  4607. {
  4608. ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_ERROR_GRANULARITY), gShellDebug1HiiHandle);
  4609. PRINT_INFO_OPTION (Granularity, Option);
  4610. PRINT_TABLE_ITEM (MemoryErrorGranularityTable, Granularity);
  4611. }
  4612. /**
  4613. Display 32-bit Memory Error Information (Type 18) error information.
  4614. @param[in] Operation The key of the structure.
  4615. @param[in] Option The optional information.
  4616. **/
  4617. VOID
  4618. DisplayMemoryErrorOperation (
  4619. IN UINT8 Operation,
  4620. IN UINT8 Option
  4621. )
  4622. {
  4623. ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_ERROR_OP), gShellDebug1HiiHandle);
  4624. PRINT_INFO_OPTION (Operation, Option);
  4625. PRINT_TABLE_ITEM (MemoryErrorOperationTable, Operation);
  4626. }
  4627. /**
  4628. Display Built-in Pointing Device (Type 21) type information.
  4629. @param[in] Type The key of the structure.
  4630. @param[in] Option The optional information.
  4631. **/
  4632. VOID
  4633. DisplayPointingDeviceType (
  4634. IN UINT8 Type,
  4635. IN UINT8 Option
  4636. )
  4637. {
  4638. ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_POINTING_DEVICE_TYPE), gShellDebug1HiiHandle);
  4639. PRINT_INFO_OPTION (Type, Option);
  4640. PRINT_TABLE_ITEM (PointingDeviceTypeTable, Type);
  4641. }
  4642. /**
  4643. Display Built-in Pointing Device (Type 21) information.
  4644. @param[in] Interface The key of the structure.
  4645. @param[in] Option The optional information.
  4646. **/
  4647. VOID
  4648. DisplayPointingDeviceInterface (
  4649. IN UINT8 Interface,
  4650. IN UINT8 Option
  4651. )
  4652. {
  4653. ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_POINTING_DEVICE_INTERFACE), gShellDebug1HiiHandle);
  4654. PRINT_INFO_OPTION (Interface, Option);
  4655. PRINT_TABLE_ITEM (PointingDeviceInterfaceTable, Interface);
  4656. }
  4657. /**
  4658. Display Portable Battery (Type 22) information.
  4659. @param[in] Key The key of the structure.
  4660. @param[in] Option The optional information.
  4661. **/
  4662. VOID
  4663. DisplayPBDeviceChemistry (
  4664. IN UINT8 Key,
  4665. IN UINT8 Option
  4666. )
  4667. {
  4668. ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_PORTABLE_BATT_DEV_CHEM), gShellDebug1HiiHandle);
  4669. PRINT_INFO_OPTION (Key, Option);
  4670. PRINT_TABLE_ITEM (PBDeviceChemistryTable, Key);
  4671. }
  4672. /**
  4673. Display Voltage Probe (Type 26) location information.
  4674. @param[in] Key The key of the structure.
  4675. @param[in] Option The optional information.
  4676. **/
  4677. VOID
  4678. DisplayVPLocation (
  4679. IN UINT8 Key,
  4680. IN UINT8 Option
  4681. )
  4682. {
  4683. UINT8 Loc;
  4684. Loc = (UINT8)((Key & 0xE0) >> 5);
  4685. ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_VOLTAGE_PROBE_LOC), gShellDebug1HiiHandle);
  4686. PRINT_INFO_OPTION (Loc, Option);
  4687. PRINT_TABLE_ITEM (VPLocationTable, Loc);
  4688. }
  4689. /**
  4690. Display Voltage Probe (Type 26) status ype information.
  4691. @param[in] Key The key of the structure.
  4692. @param[in] Option The optional information.
  4693. **/
  4694. VOID
  4695. DisplayVPStatus (
  4696. IN UINT8 Key,
  4697. IN UINT8 Option
  4698. )
  4699. {
  4700. UINT8 Status;
  4701. Status = (UINT8)(Key & 0x1F);
  4702. ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_VOLTAGE_PROBE_STATUS), gShellDebug1HiiHandle);
  4703. PRINT_INFO_OPTION (Status, Option);
  4704. PRINT_TABLE_ITEM (VPStatusTable, Status);
  4705. }
  4706. /**
  4707. Display Cooling (Type 27) status information.
  4708. @param[in] Key The key of the structure.
  4709. @param[in] Option The optional information.
  4710. **/
  4711. VOID
  4712. DisplayCoolingDeviceStatus (
  4713. IN UINT8 Key,
  4714. IN UINT8 Option
  4715. )
  4716. {
  4717. UINT8 Status;
  4718. Status = (UINT8)((Key & 0xE0) >> 5);
  4719. ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_COOLING_DEV_STATUS), gShellDebug1HiiHandle);
  4720. PRINT_INFO_OPTION (Status, Option);
  4721. PRINT_TABLE_ITEM (CoolingDeviceStatusTable, Status);
  4722. }
  4723. /**
  4724. Display Cooling (Type 27) type information.
  4725. @param[in] Key The key of the structure.
  4726. @param[in] Option The optional information.
  4727. **/
  4728. VOID
  4729. DisplayCoolingDeviceType (
  4730. IN UINT8 Key,
  4731. IN UINT8 Option
  4732. )
  4733. {
  4734. UINT8 Type;
  4735. Type = (UINT8)(Key & 0x1F);
  4736. ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_COOLING_DEV_TYPE), gShellDebug1HiiHandle);
  4737. PRINT_INFO_OPTION (Type, Option);
  4738. PRINT_TABLE_ITEM (CoolingDeviceTypeTable, Type);
  4739. }
  4740. /**
  4741. Display Temperature Probe (Type 28) status information.
  4742. @param[in] Key The key of the structure.
  4743. @param[in] Option The optional information.
  4744. **/
  4745. VOID
  4746. DisplayTemperatureProbeStatus (
  4747. IN UINT8 Key,
  4748. IN UINT8 Option
  4749. )
  4750. {
  4751. UINT8 Status;
  4752. Status = (UINT8)((Key & 0xE0) >> 5);
  4753. ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_TEMP_PROBE), gShellDebug1HiiHandle);
  4754. PRINT_INFO_OPTION (Status, Option);
  4755. PRINT_TABLE_ITEM (TemperatureProbeStatusTable, Status);
  4756. }
  4757. /**
  4758. Display Temperature Probe (Type 28) location information.
  4759. @param[in] Key The key of the structure.
  4760. @param[in] Option The optional information.
  4761. **/
  4762. VOID
  4763. DisplayTemperatureProbeLoc (
  4764. IN UINT8 Key,
  4765. IN UINT8 Option
  4766. )
  4767. {
  4768. UINT8 Loc;
  4769. Loc = (UINT8)(Key & 0x1F);
  4770. ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_VOLTAGE_PROBE_LOC), gShellDebug1HiiHandle);
  4771. PRINT_INFO_OPTION (Loc, Option);
  4772. PRINT_TABLE_ITEM (TemperatureProbeLocTable, Loc);
  4773. }
  4774. /**
  4775. Display Electrical Current Probe (Type 29) status information.
  4776. @param[in] Key The key of the structure.
  4777. @param[in] Option The optional information.
  4778. **/
  4779. VOID
  4780. DisplayECPStatus (
  4781. IN UINT8 Key,
  4782. IN UINT8 Option
  4783. )
  4784. {
  4785. UINT8 Status;
  4786. Status = (UINT8)((Key & 0xE0) >> 5);
  4787. ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_ELEC_PROBE_STATUS), gShellDebug1HiiHandle);
  4788. PRINT_INFO_OPTION (Status, Option);
  4789. PRINT_TABLE_ITEM (ECPStatusTable, Status);
  4790. }
  4791. /**
  4792. Display Type 29 information.
  4793. @param[in] Key The key of the structure.
  4794. @param[in] Option The optional information.
  4795. **/
  4796. VOID
  4797. DisplayECPLoc (
  4798. IN UINT8 Key,
  4799. IN UINT8 Option
  4800. )
  4801. {
  4802. UINT8 Loc;
  4803. Loc = (UINT8)(Key & 0x1F);
  4804. ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_ELEC_PROBE_LOC), gShellDebug1HiiHandle);
  4805. PRINT_INFO_OPTION (Loc, Option);
  4806. PRINT_TABLE_ITEM (ECPLocTable, Loc);
  4807. }
  4808. /**
  4809. Display Management Device (Type 34) Type.
  4810. @param[in] Key The key of the structure.
  4811. @param[in] Option The optional information.
  4812. **/
  4813. VOID
  4814. DisplayMDType (
  4815. IN UINT8 Key,
  4816. IN UINT8 Option
  4817. )
  4818. {
  4819. ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MANAGEMENT_DEV_TYPE), gShellDebug1HiiHandle);
  4820. PRINT_INFO_OPTION (Key, Option);
  4821. PRINT_TABLE_ITEM (MDTypeTable, Key);
  4822. }
  4823. /**
  4824. Display Management Device (Type 34) Address Type.
  4825. @param[in] Key The key of the structure.
  4826. @param[in] Option The optional information.
  4827. **/
  4828. VOID
  4829. DisplayMDAddressType (
  4830. IN UINT8 Key,
  4831. IN UINT8 Option
  4832. )
  4833. {
  4834. ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MANAGEMENT_DEV_ADDR_TYPE), gShellDebug1HiiHandle);
  4835. PRINT_INFO_OPTION (Key, Option);
  4836. PRINT_TABLE_ITEM (MDAddressTypeTable, Key);
  4837. }
  4838. /**
  4839. Display Memory Channel (Type 37) information.
  4840. @param[in] Key The key of the structure.
  4841. @param[in] Option The optional information.
  4842. **/
  4843. VOID
  4844. DisplayMemoryChannelType (
  4845. IN UINT8 Key,
  4846. IN UINT8 Option
  4847. )
  4848. {
  4849. ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_CHANNEL_TYPE), gShellDebug1HiiHandle);
  4850. PRINT_INFO_OPTION (Key, Option);
  4851. PRINT_TABLE_ITEM (MemoryChannelTypeTable, Key);
  4852. }
  4853. /**
  4854. Display IPMI Device Information (Type 38) information.
  4855. @param[in] Key The key of the structure.
  4856. @param[in] Option The optional information.
  4857. **/
  4858. VOID
  4859. DisplayIPMIDIBMCInterfaceType (
  4860. IN UINT8 Key,
  4861. IN UINT8 Option
  4862. )
  4863. {
  4864. ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_BMC_INTERFACE_TYPE), gShellDebug1HiiHandle);
  4865. PRINT_INFO_OPTION (Key, Option);
  4866. PRINT_TABLE_ITEM (IPMIDIBMCInterfaceTypeTable, Key);
  4867. }
  4868. /**
  4869. Display Management Controller Host Interface (Type 42) information.
  4870. @param[in] Key The key of the structure.
  4871. @param[in] Option The optional information.
  4872. **/
  4873. VOID
  4874. DisplayMCHostInterfaceType (
  4875. IN UINT8 Key,
  4876. IN UINT8 Option
  4877. )
  4878. {
  4879. ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MC_HOST_INTERFACE_TYPE), gShellDebug1HiiHandle);
  4880. PRINT_INFO_OPTION (Key, Option);
  4881. PRINT_TABLE_ITEM (MCHostInterfaceTypeTable, Key);
  4882. }
  4883. /**
  4884. Display Processor Architecture Type (Type 44).
  4885. @param[in] Key The key of the structure.
  4886. @param[in] Option The optional information.
  4887. **/
  4888. VOID
  4889. DisplayProcessorArchitectureType (
  4890. IN UINT8 Key,
  4891. IN UINT8 Option
  4892. )
  4893. {
  4894. ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_PROCESSOR_ARCH_TYPE), gShellDebug1HiiHandle);
  4895. PRINT_INFO_OPTION (Key, Option);
  4896. PRINT_TABLE_ITEM (ProcessorArchitectureTypesTable, Key);
  4897. }
  4898. /**
  4899. Display the structure type information.
  4900. @param[in] Key The key of the structure.
  4901. @param[in] Option The optional information.
  4902. **/
  4903. VOID
  4904. DisplayStructureTypeInfo (
  4905. IN UINT8 Key,
  4906. IN UINT8 Option
  4907. )
  4908. {
  4909. //
  4910. // display
  4911. //
  4912. ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_STRUCT_TYPE), gShellDebug1HiiHandle);
  4913. PRINT_INFO_OPTION (Key, Option);
  4914. PRINT_TABLE_ITEM (StructureTypeInfoTable, Key);
  4915. }