DataHubRecords.h 122 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937
  1. /** @file
  2. DataHubRecord.h includes all data hub subclass GUID definitions.
  3. This file includes all data hub sub class defitions from
  4. Cache subclass specification 0.9, DataHub SubClass specification 0.9, Memory SubClass Spec 0.9,
  5. Processor Subclass specification 0.9, and Misc SubClass specification 0.9.
  6. Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>
  7. SPDX-License-Identifier: BSD-2-Clause-Patent
  8. **/
  9. #ifndef _DATAHUB_RECORDS_GUID_H_
  10. #define _DATAHUB_RECORDS_GUID_H_
  11. //
  12. // Local defintion of STRING_REF
  13. //
  14. typedef UINT16 STRING_REF;
  15. //
  16. // The include is required to retrieve type EFI_EXP_BASE10_DATA
  17. //
  18. #include <Guid/StatusCodeDataTypeId.h>
  19. #define EFI_PROCESSOR_SUBCLASS_GUID \
  20. { 0x26fdeb7e, 0xb8af, 0x4ccf, {0xaa, 0x97, 0x02, 0x63, 0x3c, 0xe4, 0x8c, 0xa7 } }
  21. extern EFI_GUID gEfiProcessorSubClassGuid;
  22. #define EFI_CACHE_SUBCLASS_GUID \
  23. { 0x7f0013a7, 0xdc79, 0x4b22, {0x80, 0x99, 0x11, 0xf7, 0x5f, 0xdc, 0x82, 0x9d } }
  24. extern EFI_GUID gEfiCacheSubClassGuid;
  25. ///
  26. /// The memory subclass belongs to the data class and is identified as the memory
  27. /// subclass by the GUID.
  28. ///
  29. #define EFI_MEMORY_SUBCLASS_GUID \
  30. {0x4E8F4EBB, 0x64B9, 0x4e05, {0x9B, 0x18, 0x4C, 0xFE, 0x49, 0x23, 0x50, 0x97} }
  31. extern EFI_GUID gEfiMemorySubClassGuid;
  32. #define EFI_MISC_SUBCLASS_GUID \
  33. { 0x772484B2, 0x7482, 0x4b91, {0x9F, 0x9A, 0xAD, 0x43, 0xF8, 0x1C, 0x58, 0x81 } }
  34. extern EFI_GUID gEfiMiscSubClassGuid;
  35. ///
  36. /// Inconsistent with specification here:
  37. /// In ProcSubclass specification 0.9, the value is 0x0100.
  38. /// Keep it unchanged from the perspective of binary consistency.
  39. ///
  40. #define EFI_PROCESSOR_SUBCLASS_VERSION 0x00010000
  41. #pragma pack(1)
  42. typedef struct _USB_PORT_DEVICE_PATH {
  43. ACPI_HID_DEVICE_PATH PciRootBridgeDevicePath;
  44. PCI_DEVICE_PATH PciBusDevicePath;
  45. EFI_DEVICE_PATH_PROTOCOL EndDevicePath;
  46. } USB_PORT_DEVICE_PATH;
  47. //
  48. // IDE
  49. //
  50. typedef struct _IDE_DEVICE_PATH {
  51. ACPI_HID_DEVICE_PATH PciRootBridgeDevicePath;
  52. PCI_DEVICE_PATH PciBusDevicePath;
  53. EFI_DEVICE_PATH_PROTOCOL EndDevicePath;
  54. } IDE_DEVICE_PATH;
  55. //
  56. // RMC Connector
  57. //
  58. typedef struct _RMC_CONN_DEVICE_PATH {
  59. ACPI_HID_DEVICE_PATH PciRootBridgeDevicePath;
  60. PCI_DEVICE_PATH PciBridgeDevicePath;
  61. PCI_DEVICE_PATH PciBusDevicePath;
  62. EFI_DEVICE_PATH_PROTOCOL EndDevicePath;
  63. } RMC_CONN_DEVICE_PATH;
  64. //
  65. // RIDE
  66. //
  67. typedef struct _RIDE_DEVICE_PATH {
  68. ACPI_HID_DEVICE_PATH PciRootBridgeDevicePath;
  69. PCI_DEVICE_PATH PciBridgeDevicePath;
  70. PCI_DEVICE_PATH PciBusDevicePath;
  71. EFI_DEVICE_PATH_PROTOCOL EndDevicePath;
  72. } RIDE_DEVICE_PATH;
  73. //
  74. // Gigabit NIC
  75. //
  76. typedef struct _GB_NIC_DEVICE_PATH {
  77. ACPI_HID_DEVICE_PATH PciRootBridgeDevicePath;
  78. PCI_DEVICE_PATH PciBridgeDevicePath;
  79. PCI_DEVICE_PATH PciXBridgeDevicePath;
  80. PCI_DEVICE_PATH PciXBusDevicePath;
  81. EFI_DEVICE_PATH_PROTOCOL EndDevicePath;
  82. } GB_NIC_DEVICE_PATH;
  83. //
  84. // P/S2 Connector
  85. //
  86. typedef struct _PS2_CONN_DEVICE_PATH {
  87. ACPI_HID_DEVICE_PATH PciRootBridgeDevicePath;
  88. PCI_DEVICE_PATH LpcBridgeDevicePath;
  89. ACPI_HID_DEVICE_PATH LpcBusDevicePath;
  90. EFI_DEVICE_PATH_PROTOCOL EndDevicePath;
  91. } PS2_CONN_DEVICE_PATH;
  92. //
  93. // Serial Port Connector
  94. //
  95. typedef struct _SERIAL_CONN_DEVICE_PATH {
  96. ACPI_HID_DEVICE_PATH PciRootBridgeDevicePath;
  97. PCI_DEVICE_PATH LpcBridgeDevicePath;
  98. ACPI_HID_DEVICE_PATH LpcBusDevicePath;
  99. EFI_DEVICE_PATH_PROTOCOL EndDevicePath;
  100. } SERIAL_CONN_DEVICE_PATH;
  101. //
  102. // Parallel Port Connector
  103. //
  104. typedef struct _PARALLEL_CONN_DEVICE_PATH {
  105. ACPI_HID_DEVICE_PATH PciRootBridgeDevicePath;
  106. PCI_DEVICE_PATH LpcBridgeDevicePath;
  107. ACPI_HID_DEVICE_PATH LpcBusDevicePath;
  108. EFI_DEVICE_PATH_PROTOCOL EndDevicePath;
  109. } PARALLEL_CONN_DEVICE_PATH;
  110. //
  111. // Floopy Connector
  112. //
  113. typedef struct _FLOOPY_CONN_DEVICE_PATH {
  114. ACPI_HID_DEVICE_PATH PciRootBridgeDevicePath;
  115. PCI_DEVICE_PATH LpcBridgeDevicePath;
  116. ACPI_HID_DEVICE_PATH LpcBusDevicePath;
  117. EFI_DEVICE_PATH_PROTOCOL EndDevicePath;
  118. } FLOOPY_CONN_DEVICE_PATH;
  119. ///
  120. /// Inconsistent with specification here:
  121. /// In MiscSubclass specification 0.9, this data structure and corrsponding fields are NOT defined.
  122. /// It's implementation-specific to simplify the code logic.
  123. ///
  124. typedef union _EFI_MISC_PORT_DEVICE_PATH {
  125. USB_PORT_DEVICE_PATH UsbDevicePath;
  126. IDE_DEVICE_PATH IdeDevicePath;
  127. RMC_CONN_DEVICE_PATH RmcConnDevicePath;
  128. RIDE_DEVICE_PATH RideDevicePath;
  129. GB_NIC_DEVICE_PATH GbNicDevicePath;
  130. PS2_CONN_DEVICE_PATH Ps2ConnDevicePath;
  131. SERIAL_CONN_DEVICE_PATH SerialConnDevicePath;
  132. PARALLEL_CONN_DEVICE_PATH ParallelConnDevicePath;
  133. FLOOPY_CONN_DEVICE_PATH FloppyConnDevicePath;
  134. } EFI_MISC_PORT_DEVICE_PATH;
  135. #pragma pack()
  136. ///
  137. /// String Token Definition
  138. ///
  139. /// Inconsistent with specification here:
  140. /// The macro isn't defined by any specification.
  141. /// Keep it unchanged for backward compatibility.
  142. ///
  143. #define EFI_STRING_TOKEN UINT16
  144. ///
  145. /// Each data record that is a member of some subclass starts with a standard
  146. /// header of type EFI_SUBCLASS_TYPE1_HEADER.
  147. /// This header is only a guideline and applicable only to a data
  148. /// subclass that is producing SMBIOS data records. A subclass can start with a
  149. /// different header if needed.
  150. ///
  151. typedef struct {
  152. ///
  153. /// The version of the specification to which a specific subclass data record adheres.
  154. ///
  155. UINT32 Version;
  156. ///
  157. /// The size in bytes of this data class header.
  158. ///
  159. UINT32 HeaderSize;
  160. ///
  161. /// The instance number of the subclass with the same ProducerName. This number is
  162. /// applicable in cases where multiple subclass instances that were produced by the same
  163. /// driver exist in the system. This entry is 1 based; 0 means Reserved and -1 means Not
  164. /// Applicable. All data consumer drivers should be able to handle all the possible values
  165. /// of Instance, including Not Applicable and Reserved.
  166. ///
  167. UINT16 Instance;
  168. ///
  169. /// The instance number of the RecordType for the same Instance. This number is
  170. /// applicable in cases where multiple instances of the RecordType exist for a specific
  171. /// Instance. This entry is 1 based; 0 means Reserved and -1 means Not Applicable.
  172. /// All data consumer drivers should be able to handle all the possible values of
  173. /// SubInstance, including Not Applicable and Reserved.
  174. ///
  175. UINT16 SubInstance;
  176. ///
  177. /// The record number for the data record being specified. The numbering scheme and
  178. /// definition is defined in the specific subclass specification.
  179. ///
  180. UINT32 RecordType;
  181. } EFI_SUBCLASS_TYPE1_HEADER;
  182. ///
  183. /// This structure is used to link data records in the same subclasses. A data record is
  184. /// defined as a link to another data record in the same subclass using this structure.
  185. ///
  186. typedef struct {
  187. ///
  188. /// An EFI_GUID that identifies the component that produced this data record. Type
  189. /// EFI_GUID is defined in InstallProtocolInterface() in the EFI 1.10 Specification.
  190. ///
  191. EFI_GUID ProducerName;
  192. ///
  193. /// The instance number of the subclass with the same ProducerName. This number is
  194. /// applicable in cases where multiple subclass instances that were produced by the same
  195. /// driver exist in the system. This entry is 1 based; 0 means Reserved and -1 means Not
  196. /// Applicable. All data consumer drivers should be able to handle all the possible values
  197. /// of Instance, including Not Applicable and Reserved.
  198. ///
  199. UINT16 Instance;
  200. /// The instance number of the RecordType for the same Instance. This number is
  201. /// applicable in cases where multiple instances of the RecordType exist for a specific
  202. /// Instance. This entry is 1 based; 0 means Reserved and -1 means Not Applicable.
  203. /// All data consumer drivers should be able to handle all the possible values of
  204. /// SubInstance, including Not Applicable and Reserved.
  205. UINT16 SubInstance;
  206. } EFI_INTER_LINK_DATA;
  207. //
  208. // EXP data
  209. //
  210. ///
  211. /// This macro provides a calculation for base-10 representations. Value and Exponent are each
  212. /// INT16. It is signed to cover negative values and is 16 bits wide (15 bits for data and 1 bit
  213. /// for the sign).
  214. ///
  215. typedef struct {
  216. ///
  217. /// The INT16 number by which to multiply the base-10 representation.
  218. ///
  219. UINT16 Value;
  220. ///
  221. /// The INT16 number by which to raise the base-10 calculation.
  222. ///
  223. UINT16 Exponent;
  224. } EFI_EXP_BASE2_DATA;
  225. typedef EFI_EXP_BASE10_DATA EFI_PROCESSOR_MAX_CORE_FREQUENCY_DATA;
  226. typedef EFI_EXP_BASE10_DATA EFI_PROCESSOR_MAX_FSB_FREQUENCY_DATA;
  227. typedef EFI_EXP_BASE10_DATA EFI_PROCESSOR_CORE_FREQUENCY_DATA;
  228. ///
  229. /// This data record refers to the list of frequencies that the processor core supports. The list of
  230. /// supported frequencies is determined by the firmware based on hardware capabilities--for example,
  231. /// it could be a common subset of all processors and the chipset. The unit of measurement of this data
  232. /// record is in Hertz. For asynchronous processors, the content of this data record is zero.
  233. /// The list is terminated by -1 in the Value field of the last element. A Value field of zero means
  234. /// that the processor/driver supports automatic frequency selection.
  235. ///
  236. /// Inconsistent with specification here:
  237. /// According to MiscSubclass 0.9 specification, it should be a pointer since it refers to a list of frequencies.
  238. ///
  239. typedef EFI_EXP_BASE10_DATA *EFI_PROCESSOR_CORE_FREQUENCY_LIST_DATA;
  240. ///
  241. /// This data record refers to the list of supported frequencies of the processor external bus. The list of
  242. /// supported frequencies is determined by the firmware based on hardware capabilities--for example,
  243. /// it could be a common subset of all processors and the chipset. The unit of measurement of this data
  244. /// record is in Hertz. For asynchronous processors, the content of this data record is NULL.
  245. /// The list is terminated by -1 in the Value field of the last element. A Value field of zero means
  246. /// that the processor/driver supports automatic frequency selection.
  247. ///
  248. typedef EFI_EXP_BASE10_DATA *EFI_PROCESSOR_FSB_FREQUENCY_LIST_DATA;
  249. typedef EFI_EXP_BASE10_DATA EFI_PROCESSOR_FSB_FREQUENCY_DATA;
  250. typedef STRING_REF EFI_PROCESSOR_VERSION_DATA;
  251. typedef STRING_REF EFI_PROCESSOR_MANUFACTURER_DATA;
  252. typedef STRING_REF EFI_PROCESSOR_SERIAL_NUMBER_DATA;
  253. typedef STRING_REF EFI_PROCESSOR_ASSET_TAG_DATA;
  254. typedef STRING_REF EFI_PROCESSOR_PART_NUMBER_DATA;
  255. typedef struct {
  256. UINT32 ProcessorSteppingId:4;
  257. UINT32 ProcessorModel: 4;
  258. UINT32 ProcessorFamily: 4;
  259. UINT32 ProcessorType: 2;
  260. UINT32 ProcessorReserved1: 2;
  261. UINT32 ProcessorXModel: 4;
  262. UINT32 ProcessorXFamily: 8;
  263. UINT32 ProcessorReserved2: 4;
  264. } EFI_PROCESSOR_SIGNATURE;
  265. ///
  266. /// Inconsistent with specification here:
  267. /// The name of third field in ProcSubClass specification 0.9 is LogicalProcessorCount.
  268. /// Keep it unchanged for backward compatibility.
  269. ///
  270. typedef struct {
  271. UINT32 ProcessorBrandIndex :8;
  272. UINT32 ProcessorClflush :8;
  273. UINT32 ProcessorReserved :8;
  274. UINT32 ProcessorDfltApicId :8;
  275. } EFI_PROCESSOR_MISC_INFO;
  276. typedef struct {
  277. UINT32 ProcessorFpu: 1;
  278. UINT32 ProcessorVme: 1;
  279. UINT32 ProcessorDe: 1;
  280. UINT32 ProcessorPse: 1;
  281. UINT32 ProcessorTsc: 1;
  282. UINT32 ProcessorMsr: 1;
  283. UINT32 ProcessorPae: 1;
  284. UINT32 ProcessorMce: 1;
  285. UINT32 ProcessorCx8: 1;
  286. UINT32 ProcessorApic: 1;
  287. UINT32 ProcessorReserved1: 1;
  288. UINT32 ProcessorSep: 1;
  289. UINT32 ProcessorMtrr: 1;
  290. UINT32 ProcessorPge: 1;
  291. UINT32 ProcessorMca: 1;
  292. UINT32 ProcessorCmov: 1;
  293. UINT32 ProcessorPat: 1;
  294. UINT32 ProcessorPse36: 1;
  295. UINT32 ProcessorPsn: 1;
  296. UINT32 ProcessorClfsh: 1;
  297. UINT32 ProcessorReserved2: 1;
  298. UINT32 ProcessorDs: 1;
  299. UINT32 ProcessorAcpi: 1;
  300. UINT32 ProcessorMmx: 1;
  301. UINT32 ProcessorFxsr: 1;
  302. UINT32 ProcessorSse: 1;
  303. UINT32 ProcessorSse2: 1;
  304. UINT32 ProcessorSs: 1;
  305. UINT32 ProcessorReserved3: 1;
  306. UINT32 ProcessorTm: 1;
  307. UINT32 ProcessorReserved4: 2;
  308. } EFI_PROCESSOR_FEATURE_FLAGS;
  309. ///
  310. /// This data record refers to the unique ID that identifies a set of processors. This data record is 16
  311. /// bytes in length. The data in this structure is processor specific and reserved values can be defined
  312. /// for future use. The consumer of this data should not make any assumption and should use this data
  313. /// with respect to the processor family defined in the Family record number.
  314. ///
  315. typedef struct {
  316. ///
  317. /// Identifies the processor.
  318. ///
  319. EFI_PROCESSOR_SIGNATURE Signature;
  320. ///
  321. /// Provides additional processor information.
  322. ///
  323. EFI_PROCESSOR_MISC_INFO MiscInfo;
  324. ///
  325. /// Reserved for future use.
  326. ///
  327. UINT32 Reserved;
  328. ///
  329. /// Provides additional processor information.
  330. ///
  331. EFI_PROCESSOR_FEATURE_FLAGS FeatureFlags;
  332. } EFI_PROCESSOR_ID_DATA;
  333. ///
  334. /// This data record refers to the general classification of the processor. This data record is 4 bytes in
  335. /// length.
  336. ///
  337. typedef enum {
  338. EfiProcessorOther = 1,
  339. EfiProcessorUnknown = 2,
  340. EfiCentralProcessor = 3,
  341. EfiMathProcessor = 4,
  342. EfiDspProcessor = 5,
  343. EfiVideoProcessor = 6
  344. } EFI_PROCESSOR_TYPE_DATA;
  345. ///
  346. /// This data record refers to the family of the processor as defined by the DMTF.
  347. /// This data record is 4 bytes in length.
  348. ///
  349. typedef enum {
  350. EfiProcessorFamilyOther = 0x01,
  351. EfiProcessorFamilyUnknown = 0x02,
  352. EfiProcessorFamily8086 = 0x03,
  353. EfiProcessorFamily80286 = 0x04,
  354. EfiProcessorFamilyIntel386 = 0x05,
  355. EfiProcessorFamilyIntel486 = 0x06,
  356. EfiProcessorFamily8087 = 0x07,
  357. EfiProcessorFamily80287 = 0x08,
  358. EfiProcessorFamily80387 = 0x09,
  359. EfiProcessorFamily80487 = 0x0A,
  360. EfiProcessorFamilyPentium = 0x0B,
  361. EfiProcessorFamilyPentiumPro = 0x0C,
  362. EfiProcessorFamilyPentiumII = 0x0D,
  363. EfiProcessorFamilyPentiumMMX = 0x0E,
  364. EfiProcessorFamilyCeleron = 0x0F,
  365. EfiProcessorFamilyPentiumIIXeon = 0x10,
  366. EfiProcessorFamilyPentiumIII = 0x11,
  367. EfiProcessorFamilyM1 = 0x12,
  368. EfiProcessorFamilyM2 = 0x13,
  369. EfiProcessorFamilyM1Reserved2 = 0x14,
  370. EfiProcessorFamilyM1Reserved3 = 0x15,
  371. EfiProcessorFamilyM1Reserved4 = 0x16,
  372. EfiProcessorFamilyM1Reserved5 = 0x17,
  373. EfiProcessorFamilyAmdDuron = 0x18,
  374. EfiProcessorFamilyK5 = 0x19,
  375. EfiProcessorFamilyK6 = 0x1A,
  376. EfiProcessorFamilyK6_2 = 0x1B,
  377. EfiProcessorFamilyK6_3 = 0x1C,
  378. EfiProcessorFamilyAmdAthlon = 0x1D,
  379. EfiProcessorFamilyAmd29000 = 0x1E,
  380. EfiProcessorFamilyK6_2Plus = 0x1F,
  381. EfiProcessorFamilyPowerPC = 0x20,
  382. EfiProcessorFamilyPowerPC601 = 0x21,
  383. EfiProcessorFamilyPowerPC603 = 0x22,
  384. EfiProcessorFamilyPowerPC603Plus = 0x23,
  385. EfiProcessorFamilyPowerPC604 = 0x24,
  386. EfiProcessorFamilyPowerPC620 = 0x25,
  387. EfiProcessorFamilyPowerPCx704 = 0x26,
  388. EfiProcessorFamilyPowerPC750 = 0x27,
  389. EfiProcessorFamilyAlpha3 = 0x30,
  390. EfiProcessorFamilyAlpha21064 = 0x31,
  391. EfiProcessorFamilyAlpha21066 = 0x32,
  392. EfiProcessorFamilyAlpha21164 = 0x33,
  393. EfiProcessorFamilyAlpha21164PC = 0x34,
  394. EfiProcessorFamilyAlpha21164a = 0x35,
  395. EfiProcessorFamilyAlpha21264 = 0x36,
  396. EfiProcessorFamilyAlpha21364 = 0x37,
  397. EfiProcessorFamilyMips = 0x40,
  398. EfiProcessorFamilyMIPSR4000 = 0x41,
  399. EfiProcessorFamilyMIPSR4200 = 0x42,
  400. EfiProcessorFamilyMIPSR4400 = 0x43,
  401. EfiProcessorFamilyMIPSR4600 = 0x44,
  402. EfiProcessorFamilyMIPSR10000 = 0x45,
  403. EfiProcessorFamilySparc = 0x50,
  404. EfiProcessorFamilySuperSparc = 0x51,
  405. EfiProcessorFamilymicroSparcII = 0x52,
  406. EfiProcessorFamilymicroSparcIIep = 0x53,
  407. EfiProcessorFamilyUltraSparc = 0x54,
  408. EfiProcessorFamilyUltraSparcII = 0x55,
  409. EfiProcessorFamilyUltraSparcIIi = 0x56,
  410. EfiProcessorFamilyUltraSparcIII = 0x57,
  411. ///
  412. /// Inconsistent with specification here:
  413. /// This field in ProcSubClass specification 0.9 is defined as EfiProcessorFamilyUltraSparcIIi.
  414. /// Change it to EfiProcessorFamilyUltraSparcIIIi to avoid build break.
  415. ///
  416. EfiProcessorFamilyUltraSparcIIIi = 0x58,
  417. EfiProcessorFamily68040 = 0x60,
  418. EfiProcessorFamily68xxx = 0x61,
  419. EfiProcessorFamily68000 = 0x62,
  420. EfiProcessorFamily68010 = 0x63,
  421. EfiProcessorFamily68020 = 0x64,
  422. EfiProcessorFamily68030 = 0x65,
  423. EfiProcessorFamilyHobbit = 0x70,
  424. EfiProcessorFamilyCrusoeTM5000 = 0x78,
  425. EfiProcessorFamilyCrusoeTM3000 = 0x79,
  426. EfiProcessorFamilyEfficeonTM8000 = 0x7A,
  427. EfiProcessorFamilyWeitek = 0x80,
  428. EfiProcessorFamilyItanium = 0x82,
  429. EfiProcessorFamilyAmdAthlon64 = 0x83,
  430. EfiProcessorFamilyAmdOpteron = 0x84,
  431. EfiProcessorFamilyAmdSempron = 0x85,
  432. EfiProcessorFamilyAmdTurion64Mobile = 0x86,
  433. EfiProcessorFamilyDualCoreAmdOpteron = 0x87,
  434. EfiProcessorFamilyAmdAthlon64X2DualCore = 0x88,
  435. EfiProcessorFamilyAmdTurion64X2Mobile = 0x89,
  436. EfiProcessorFamilyPARISC = 0x90,
  437. EfiProcessorFamilyPaRisc8500 = 0x91,
  438. EfiProcessorFamilyPaRisc8000 = 0x92,
  439. EfiProcessorFamilyPaRisc7300LC = 0x93,
  440. EfiProcessorFamilyPaRisc7200 = 0x94,
  441. EfiProcessorFamilyPaRisc7100LC = 0x95,
  442. EfiProcessorFamilyPaRisc7100 = 0x96,
  443. EfiProcessorFamilyV30 = 0xA0,
  444. EfiProcessorFamilyPentiumIIIXeon = 0xB0,
  445. EfiProcessorFamilyPentiumIIISpeedStep = 0xB1,
  446. EfiProcessorFamilyPentium4 = 0xB2,
  447. EfiProcessorFamilyIntelXeon = 0xB3,
  448. EfiProcessorFamilyAS400 = 0xB4,
  449. EfiProcessorFamilyIntelXeonMP = 0xB5,
  450. EfiProcessorFamilyAMDAthlonXP = 0xB6,
  451. EfiProcessorFamilyAMDAthlonMP = 0xB7,
  452. EfiProcessorFamilyIntelItanium2 = 0xB8,
  453. ///
  454. /// Inconsistent with specification here:
  455. /// This field is NOT defined in ProcSubClass specification 0.9. It's introduced for SMBIOS2.6 specification.
  456. ///
  457. EfiProcessorFamilyIntelPentiumM = 0xB9,
  458. ///
  459. /// Inconsistent with specification here:
  460. /// This field is NOT defined in ProcSubClass specification 0.9. It's introduced for SMBIOS2.6 specification.
  461. ///
  462. EfiProcessorFamilyIntelCeleronD = 0xBA,
  463. ///
  464. /// Inconsistent with specification here:
  465. /// This field is NOT defined in ProcSubClass specification 0.9. It's introduced for SMBIOS2.6 specification.
  466. ///
  467. EfiProcessorFamilyIntelPentiumD = 0xBB,
  468. ///
  469. /// Inconsistent with specification here:
  470. /// This field is NOT defined in ProcSubClass specification 0.9. It's introduced for SMBIOS2.6 specification.
  471. ///
  472. EfiProcessorFamilyIntelPentiumEx = 0xBC,
  473. ///
  474. /// Inconsistent with specification here:
  475. /// This field is NOT defined in ProcSubClass specification 0.9. It's introduced for SMBIOS2.6 specification.
  476. ///
  477. EfiProcessorFamilyIntelCoreSolo = 0xBD,
  478. ///
  479. /// Inconsistent with specification here:
  480. /// This field is NOT defined in ProcSubClass specification 0.9. It's introduced for SMBIOS2.6 specification.
  481. ///
  482. EfiProcessorFamilyReserved = 0xBE,
  483. ///
  484. /// Inconsistent with specification here:
  485. /// This field is NOT defined in ProcSubClass specification 0.9. It's introduced for SMBIOS2.6 specification.
  486. ///
  487. EfiProcessorFamilyIntelCore2 = 0xBF,
  488. EfiProcessorFamilyIBM390 = 0xC8,
  489. EfiProcessorFamilyG4 = 0xC9,
  490. EfiProcessorFamilyG5 = 0xCA,
  491. ///
  492. /// Inconsistent with specification here:
  493. /// This field is NOT defined in ProcSubClass specification 0.9. It's introduced for SMBIOS2.6 specification.
  494. ///
  495. EfiProcessorFamilyG6 = 0xCB,
  496. ///
  497. /// Inconsistent with specification here:
  498. /// This field is NOT defined in ProcSubClass specification 0.9. It's introduced for SMBIOS2.6 specification.
  499. ///
  500. EfiProcessorFamilyzArchitectur = 0xCC,
  501. ///
  502. /// Inconsistent with specification here:
  503. /// This field is NOT defined in ProcSubClass specification 0.9. It's introduced for SMBIOS2.6 specification.
  504. ///
  505. EfiProcessorFamilyViaC7M = 0xD2,
  506. ///
  507. /// Inconsistent with specification here:
  508. /// This field is NOT defined in ProcSubClass specification 0.9. It's introduced for SMBIOS2.6 specification.
  509. ///
  510. EfiProcessorFamilyViaC7D = 0xD3,
  511. ///
  512. /// Inconsistent with specification here:
  513. /// This field is NOT defined in ProcSubClass specification 0.9. It's introduced for SMBIOS2.6 specification.
  514. ///
  515. EfiProcessorFamilyViaC7 = 0xD4,
  516. ///
  517. /// Inconsistent with specification here:
  518. /// This field is NOT defined in ProcSubClass specification 0.9. It's introduced for SMBIOS2.6 specification.
  519. ///
  520. EfiProcessorFamilyViaEden = 0xD5,
  521. EfiProcessorFamilyi860 = 0xFA,
  522. EfiProcessorFamilyi960 = 0xFB,
  523. ///
  524. /// Inconsistent with specification here:
  525. /// This field is NOT defined in ProcSubClass specification 0.9. It's introduced for SMBIOS2.6 specification.
  526. ///
  527. EfiProcessorFamilyIndicatorFamily2 = 0xFE,
  528. ///
  529. /// Inconsistent with specification here:
  530. /// This field is NOT defined in ProcSubClass specification 0.9. It's introduced for SMBIOS2.6 specification.
  531. ///
  532. EfiProcessorFamilyReserved1 = 0xFF
  533. } EFI_PROCESSOR_FAMILY_DATA;
  534. typedef enum {
  535. EfiProcessorFamilySh3 = 0x104,
  536. EfiProcessorFamilySh4 = 0x105,
  537. EfiProcessorFamilyArm = 0x118,
  538. EfiProcessorFamilyStrongArm = 0x119,
  539. EfiProcessorFamily6x86 = 0x12C,
  540. EfiProcessorFamilyMediaGx = 0x12D,
  541. EfiProcessorFamilyMii = 0x12E,
  542. EfiProcessorFamilyWinChip = 0x140,
  543. EfiProcessorFamilyDsp = 0x15E,
  544. EfiProcessorFamilyVideo = 0x1F4
  545. } EFI_PROCESSOR_FAMILY2_DATA;
  546. ///
  547. /// This data record refers to the core voltage of the processor being defined. The unit of measurement
  548. /// of this data record is in volts.
  549. ///
  550. typedef EFI_EXP_BASE10_DATA EFI_PROCESSOR_VOLTAGE_DATA;
  551. ///
  552. /// This data record refers to the base address of the APIC of the processor being defined. This data
  553. /// record is a physical address location.
  554. ///
  555. typedef EFI_PHYSICAL_ADDRESS EFI_PROCESSOR_APIC_BASE_ADDRESS_DATA;
  556. ///
  557. /// This data record refers to the ID of the APIC of the processor being defined. This data record is a
  558. /// 4-byte entry.
  559. ///
  560. typedef UINT32 EFI_PROCESSOR_APIC_ID_DATA;
  561. ///
  562. /// This data record refers to the version number of the APIC of the processor being defined. This data
  563. /// record is a 4-byte entry.
  564. ///
  565. typedef UINT32 EFI_PROCESSOR_APIC_VERSION_NUMBER_DATA;
  566. typedef enum {
  567. EfiProcessorIa32Microcode = 1,
  568. EfiProcessorIpfPalAMicrocode = 2,
  569. EfiProcessorIpfPalBMicrocode = 3
  570. } EFI_PROCESSOR_MICROCODE_TYPE;
  571. ///
  572. /// This data record refers to the revision of the processor microcode that is loaded in the processor.
  573. /// This data record is a 4-byte entry.
  574. ///
  575. typedef struct {
  576. ///
  577. /// Identifies what type of microcode the data is.
  578. ///
  579. EFI_PROCESSOR_MICROCODE_TYPE ProcessorMicrocodeType;
  580. ///
  581. /// Indicates the revision number of this microcode.
  582. ///
  583. UINT32 ProcessorMicrocodeRevisionNumber;
  584. } EFI_PROCESSOR_MICROCODE_REVISION_DATA;
  585. ///
  586. /// This data record refers to the status of the processor.
  587. ///
  588. typedef struct {
  589. UINT32 CpuStatus :3; ///< Indicates the status of the processor.
  590. UINT32 Reserved1 :3; ///< Reserved for future use. Should be set to zero.
  591. UINT32 SocketPopulated :1; ///< Indicates if the processor is socketed or not.
  592. UINT32 Reserved2 :1; ///< Reserved for future use. Should be set to zero.
  593. UINT32 ApicEnable :1; ///< Indicates if the APIC is enabled or not.
  594. UINT32 BootApplicationProcessor :1; ///< Indicates if this processor is the boot processor.
  595. UINT32 Reserved3 :22;///< Reserved for future use. Should be set to zero.
  596. } EFI_PROCESSOR_STATUS_DATA;
  597. typedef enum {
  598. EfiCpuStatusUnknown = 0,
  599. EfiCpuStatusEnabled = 1,
  600. EfiCpuStatusDisabledByUser = 2,
  601. EfiCpuStatusDisabledbyBios = 3,
  602. EfiCpuStatusIdle = 4,
  603. EfiCpuStatusOther = 7
  604. } EFI_CPU_STATUS;
  605. typedef enum {
  606. EfiProcessorSocketOther = 1,
  607. EfiProcessorSocketUnknown = 2,
  608. EfiProcessorSocketDaughterBoard = 3,
  609. EfiProcessorSocketZIF = 4,
  610. EfiProcessorSocketReplacePiggyBack = 5,
  611. EfiProcessorSocketNone = 6,
  612. EfiProcessorSocketLIF = 7,
  613. EfiProcessorSocketSlot1 = 8,
  614. EfiProcessorSocketSlot2 = 9,
  615. EfiProcessorSocket370Pin = 0xA,
  616. EfiProcessorSocketSlotA = 0xB,
  617. EfiProcessorSocketSlotM = 0xC,
  618. EfiProcessorSocket423 = 0xD,
  619. EfiProcessorSocketA462 = 0xE,
  620. EfiProcessorSocket478 = 0xF,
  621. EfiProcessorSocket754 = 0x10,
  622. EfiProcessorSocket940 = 0x11,
  623. ///
  624. /// Inconsistent with specification here:
  625. /// This field is NOT defined in ProcSubClass specification 0.9. It's introduced for SMBIOS2.6 specification.
  626. ///
  627. EfiProcessorSocket939 = 0x12,
  628. ///
  629. /// Inconsistent with specification here:
  630. /// This field is NOT defined in ProcSubClass specification 0.9. It's introduced for SMBIOS2.6 specification.
  631. ///
  632. EfiProcessorSocketmPGA604 = 0x13,
  633. ///
  634. /// Inconsistent with specification here:
  635. /// This field is NOT defined in ProcSubClass specification 0.9. It's introduced for SMBIOS2.6 specification.
  636. ///
  637. EfiProcessorSocketLGA771 = 0x14,
  638. ///
  639. /// Inconsistent with specification here:
  640. /// This field is NOT defined in ProcSubClass specification 0.9. It's introduced for SMBIOS2.6 specification.
  641. ///
  642. EfiProcessorSocketLGA775 = 0x15
  643. } EFI_PROCESSOR_SOCKET_TYPE_DATA;
  644. typedef STRING_REF EFI_PROCESSOR_SOCKET_NAME_DATA;
  645. ///
  646. /// Inconsistent with specification here:
  647. /// In ProcSubclass specification 0.9, the naming is EFI_PROCESSOR_CACHE_ASSOCIATION_DATA.
  648. /// Keep it unchanged for backward compatibilty.
  649. ///
  650. typedef EFI_INTER_LINK_DATA EFI_CACHE_ASSOCIATION_DATA;
  651. ///
  652. /// This data record refers to the health status of the processor.
  653. ///
  654. /// Inconsistent with specification here:
  655. /// In ProcSubclass specification 0.9, the naming is EFI_PROCESSOR_HEALTH_STATUS_DATA.
  656. /// Keep it unchanged for backward compatibilty.
  657. ///
  658. typedef enum {
  659. EfiProcessorHealthy = 1,
  660. EfiProcessorPerfRestricted = 2,
  661. EfiProcessorFuncRestricted = 3
  662. } EFI_PROCESSOR_HEALTH_STATUS;
  663. ///
  664. /// This data record refers to the package number of this processor. Multiple logical processors can
  665. /// exist in a system and each logical processor can be correlated to the physical processor using this
  666. /// record type.
  667. ///
  668. typedef UINTN EFI_PROCESSOR_PACKAGE_NUMBER_DATA;
  669. typedef UINT8 EFI_PROCESSOR_CORE_COUNT_DATA;
  670. typedef UINT8 EFI_PROCESSOR_ENABLED_CORE_COUNT_DATA;
  671. typedef UINT8 EFI_PROCESSOR_THREAD_COUNT_DATA;
  672. typedef struct {
  673. UINT16 Reserved :1;
  674. UINT16 Unknown :1;
  675. UINT16 Capable64Bit :1;
  676. UINT16 Reserved2 :13;
  677. } EFI_PROCESSOR_CHARACTERISTICS_DATA;
  678. ///
  679. /// Inconsistent with specification here:
  680. /// In ProcSubclass specification 0.9, the enumeration type data structure is NOT defined.
  681. /// The equivalent in specification is
  682. /// #define EFI_PROCESSOR_FREQUENCY_RECORD_NUMBER 0x00000001
  683. /// #define EFI_PROCESSOR_BUS_FREQUENCY_RECORD_NUMBER 0x00000002
  684. /// #define EFI_PROCESSOR_VERSION_RECORD_NUMBER 0x00000003
  685. /// #define EFI_PROCESSOR_MANUFACTURER_RECORD_NUMBER 0x00000004
  686. /// #define EFI_PROCESSOR_SERIAL_NUMBER_RECORD_NUMBER 0x00000005
  687. /// #define EFI_PROCESSOR_ID_RECORD_NUMBER 0x00000006
  688. /// #define EFI_PROCESSOR_TYPE_RECORD_NUMBER 0x00000007
  689. /// #define EFI_PROCESSOR_FAMILY_RECORD_NUMBER 0x00000008
  690. /// #define EFI_PROCESSOR_VOLTAGE_RECORD_NUMBER 0x00000009
  691. /// #define EFI_PROCESSOR_APIC_BASE_ADDRESS_RECORD_NUMBER 0x0000000A
  692. /// #define EFI_PROCESSOR_APIC_ID_RECORD_NUMBER 0x0000000B
  693. /// #define EFI_PROCESSOR_APIC_VER_NUMBER_RECORD_NUMBER 0x0000000C
  694. /// #define EFI_PROCESSOR_MICROCODE_REVISION_RECORD_NUMBER 0x0000000D
  695. /// #define EFI_PROCESSOR_STATUS_RECORD_NUMBER 0x0000000E
  696. /// #define EFI_PROCESSOR_SOCKET_TYPE_RECORD_NUMBER 0x0000000F
  697. /// #define EFI_PROCESSOR_SOCKET_NAME_RECORD_NUMBER 0x00000010
  698. /// #define EFI_PROCESSOR_CACHE_ASSOCIATION_RECORD_NUMBER 0x00000011
  699. /// #define EFI_PROCESSOR_MAX_FREQUENCY_RECORD_NUMBER 0x00000012
  700. /// #define EFI_PROCESSOR_ASSET_TAG_RECORD_NUMBER 0x00000013
  701. /// #define EFI_PROCESSOR_MAX_FSB_FREQUENCY_RECORD_NUMBER 0x00000014
  702. /// #define EFI_PROCESSOR_PACKAGE_NUMBER_RECORD_NUMBER 0x00000015
  703. /// #define EFI_PROCESSOR_FREQUENCY_LIST_RECORD_NUMBER 0x00000016
  704. /// #define EFI_PROCESSOR_FSB_FREQUENCY_LIST_RECORD_NUMBER 0x00000017
  705. /// #define EFI_PROCESSOR_HEALTH_STATUS_RECORD_NUMBER 0x00000018
  706. ///
  707. /// Keep the definition unchanged for backward compatibility.
  708. typedef enum {
  709. ProcessorCoreFrequencyRecordType = 1,
  710. ProcessorFsbFrequencyRecordType = 2,
  711. ProcessorVersionRecordType = 3,
  712. ProcessorManufacturerRecordType = 4,
  713. ProcessorSerialNumberRecordType = 5,
  714. ProcessorIdRecordType = 6,
  715. ProcessorTypeRecordType = 7,
  716. ProcessorFamilyRecordType = 8,
  717. ProcessorVoltageRecordType = 9,
  718. ProcessorApicBaseAddressRecordType = 10,
  719. ProcessorApicIdRecordType = 11,
  720. ProcessorApicVersionNumberRecordType = 12,
  721. CpuUcodeRevisionDataRecordType = 13,
  722. ProcessorStatusRecordType = 14,
  723. ProcessorSocketTypeRecordType = 15,
  724. ProcessorSocketNameRecordType = 16,
  725. CacheAssociationRecordType = 17,
  726. ProcessorMaxCoreFrequencyRecordType = 18,
  727. ProcessorAssetTagRecordType = 19,
  728. ProcessorMaxFsbFrequencyRecordType = 20,
  729. ProcessorPackageNumberRecordType = 21,
  730. ProcessorCoreFrequencyListRecordType = 22,
  731. ProcessorFsbFrequencyListRecordType = 23,
  732. ProcessorHealthStatusRecordType = 24,
  733. ProcessorCoreCountRecordType = 25,
  734. ProcessorEnabledCoreCountRecordType = 26,
  735. ProcessorThreadCountRecordType = 27,
  736. ProcessorCharacteristicsRecordType = 28,
  737. ProcessorFamily2RecordType = 29,
  738. ProcessorPartNumberRecordType = 30,
  739. } EFI_CPU_VARIABLE_RECORD_TYPE;
  740. ///
  741. /// Inconsistent with specification here:
  742. /// In ProcSubclass specification 0.9, the union type data structure is NOT defined.
  743. /// It's implementation-specific to simplify the code logic.
  744. ///
  745. typedef union {
  746. EFI_PROCESSOR_CORE_FREQUENCY_LIST_DATA ProcessorCoreFrequencyList;
  747. EFI_PROCESSOR_FSB_FREQUENCY_LIST_DATA ProcessorFsbFrequencyList;
  748. EFI_PROCESSOR_SERIAL_NUMBER_DATA ProcessorSerialNumber;
  749. EFI_PROCESSOR_CORE_FREQUENCY_DATA ProcessorCoreFrequency;
  750. EFI_PROCESSOR_FSB_FREQUENCY_DATA ProcessorFsbFrequency;
  751. EFI_PROCESSOR_MAX_CORE_FREQUENCY_DATA ProcessorMaxCoreFrequency;
  752. EFI_PROCESSOR_MAX_FSB_FREQUENCY_DATA ProcessorMaxFsbFrequency;
  753. EFI_PROCESSOR_VERSION_DATA ProcessorVersion;
  754. EFI_PROCESSOR_MANUFACTURER_DATA ProcessorManufacturer;
  755. EFI_PROCESSOR_ID_DATA ProcessorId;
  756. EFI_PROCESSOR_TYPE_DATA ProcessorType;
  757. EFI_PROCESSOR_FAMILY_DATA ProcessorFamily;
  758. EFI_PROCESSOR_VOLTAGE_DATA ProcessorVoltage;
  759. EFI_PROCESSOR_APIC_BASE_ADDRESS_DATA ProcessorApicBase;
  760. EFI_PROCESSOR_APIC_ID_DATA ProcessorApicId;
  761. EFI_PROCESSOR_APIC_VERSION_NUMBER_DATA ProcessorApicVersionNumber;
  762. EFI_PROCESSOR_MICROCODE_REVISION_DATA CpuUcodeRevisionData;
  763. EFI_PROCESSOR_STATUS_DATA ProcessorStatus;
  764. EFI_PROCESSOR_SOCKET_TYPE_DATA ProcessorSocketType;
  765. EFI_PROCESSOR_SOCKET_NAME_DATA ProcessorSocketName;
  766. EFI_PROCESSOR_ASSET_TAG_DATA ProcessorAssetTag;
  767. EFI_PROCESSOR_PART_NUMBER_DATA ProcessorPartNumber;
  768. EFI_PROCESSOR_HEALTH_STATUS ProcessorHealthStatus;
  769. EFI_PROCESSOR_PACKAGE_NUMBER_DATA ProcessorPackageNumber;
  770. EFI_PROCESSOR_CORE_COUNT_DATA ProcessorCoreCount;
  771. EFI_PROCESSOR_ENABLED_CORE_COUNT_DATA ProcessorEnabledCoreCount;
  772. EFI_PROCESSOR_THREAD_COUNT_DATA ProcessorThreadCount;
  773. EFI_PROCESSOR_CHARACTERISTICS_DATA ProcessorCharacteristics;
  774. EFI_PROCESSOR_FAMILY2_DATA ProcessorFamily2;
  775. } EFI_CPU_VARIABLE_RECORD;
  776. typedef struct {
  777. EFI_SUBCLASS_TYPE1_HEADER DataRecordHeader;
  778. EFI_CPU_VARIABLE_RECORD VariableRecord;
  779. } EFI_CPU_DATA_RECORD;
  780. #define EFI_CACHE_SUBCLASS_VERSION 0x00010000
  781. typedef EFI_EXP_BASE2_DATA EFI_CACHE_SIZE_DATA;
  782. ///
  783. /// Inconsistent with specification here:
  784. /// In CacheSubclass specification 0.9, the naming is EFI_CACHE_MAXIMUM_SIZE_DATA.
  785. /// Keep it unchanged for backward compatibilty.
  786. ///
  787. typedef EFI_EXP_BASE2_DATA EFI_MAXIMUM_CACHE_SIZE_DATA;
  788. typedef EFI_EXP_BASE10_DATA EFI_CACHE_SPEED_DATA;
  789. typedef STRING_REF EFI_CACHE_SOCKET_DATA;
  790. typedef struct {
  791. UINT32 Other :1;
  792. UINT32 Unknown :1;
  793. UINT32 NonBurst :1;
  794. UINT32 Burst :1;
  795. UINT32 PipelineBurst :1;
  796. ///
  797. /// Inconsistent between CacheSubclass 0.9 and SMBIOS specifications here:
  798. /// In CacheSubclass specification 0.9, the sequence of Asynchronous and Synchronous fileds
  799. /// are opposite to SMBIOS specification.
  800. ///
  801. UINT32 Asynchronous :1;
  802. UINT32 Synchronous :1;
  803. UINT32 Reserved :25;
  804. } EFI_CACHE_SRAM_TYPE_DATA;
  805. typedef EFI_CACHE_SRAM_TYPE_DATA EFI_CACHE_SRAM_INSTALL_DATA;
  806. typedef enum {
  807. EfiCacheErrorOther = 1,
  808. EfiCacheErrorUnknown = 2,
  809. EfiCacheErrorNone = 3,
  810. EfiCacheErrorParity = 4,
  811. EfiCacheErrorSingleBit = 5,
  812. EfiCacheErrorMultiBit = 6
  813. } EFI_CACHE_ERROR_TYPE_DATA;
  814. typedef enum {
  815. EfiCacheTypeOther = 1,
  816. EfiCacheTypeUnknown = 2,
  817. EfiCacheTypeInstruction = 3,
  818. EfiCacheTypeData = 4,
  819. EfiCacheTypeUnified = 5
  820. } EFI_CACHE_TYPE_DATA;
  821. typedef enum {
  822. EfiCacheAssociativityOther = 1,
  823. EfiCacheAssociativityUnknown = 2,
  824. EfiCacheAssociativityDirectMapped = 3,
  825. EfiCacheAssociativity2Way = 4,
  826. EfiCacheAssociativity4Way = 5,
  827. EfiCacheAssociativityFully = 6,
  828. EfiCacheAssociativity8Way = 7,
  829. EfiCacheAssociativity16Way = 8
  830. } EFI_CACHE_ASSOCIATIVITY_DATA;
  831. ///
  832. /// Inconsistent with specification here:
  833. /// In CacheSubclass 0.9 specification. It defines the field type as UINT16.
  834. /// In fact, it should be UINT32 type because it refers to a 32bit width data.
  835. ///
  836. typedef struct {
  837. UINT32 Level :3;
  838. UINT32 Socketed :1;
  839. UINT32 Reserved2 :1;
  840. UINT32 Location :2;
  841. UINT32 Enable :1;
  842. UINT32 OperationalMode :2;
  843. UINT32 Reserved1 :22;
  844. } EFI_CACHE_CONFIGURATION_DATA;
  845. #define EFI_CACHE_L1 1
  846. #define EFI_CACHE_L2 2
  847. #define EFI_CACHE_L3 3
  848. #define EFI_CACHE_L4 4
  849. #define EFI_CACHE_LMAX EFI_CACHE_L4
  850. #define EFI_CACHE_SOCKETED 1
  851. #define EFI_CACHE_NOT_SOCKETED 0
  852. typedef enum {
  853. EfiCacheInternal = 0,
  854. EfiCacheExternal = 1,
  855. EfiCacheReserved = 2,
  856. EfiCacheUnknown = 3
  857. } EFI_CACHE_LOCATION;
  858. #define EFI_CACHE_ENABLED 1
  859. #define EFI_CACHE_DISABLED 0
  860. typedef enum {
  861. EfiCacheWriteThrough = 0,
  862. EfiCacheWriteBack = 1,
  863. EfiCacheDynamicMode = 2,
  864. EfiCacheUnknownMode = 3
  865. } EFI_CACHE_OPERATIONAL_MODE;
  866. ///
  867. /// Inconsistent with specification here:
  868. /// In CacheSubclass specification 0.9, the enumeration type data structure is NOT defined.
  869. /// The equivalent in specification is
  870. /// #define EFI_CACHE_SIZE_RECORD_NUMBER 0x00000001
  871. /// #define EFI_CACHE_MAXIMUM_SIZE_RECORD_NUMBER 0x00000002
  872. /// #define EFI_CACHE_SPEED_RECORD_NUMBER 0x00000003
  873. /// #define EFI_CACHE_SOCKET_RECORD_NUMBER 0x00000004
  874. /// #define EFI_CACHE_SRAM_SUPPORT_RECORD_NUMBER 0x00000005
  875. /// #define EFI_CACHE_SRAM_INSTALL_RECORD_NUMBER 0x00000006
  876. /// #define EFI_CACHE_ERROR_SUPPORT_RECORD_NUMBER 0x00000007
  877. /// #define EFI_CACHE_TYPE_RECORD_NUMBER 0x00000008
  878. /// #define EFI_CACHE_ASSOCIATIVITY_RECORD_NUMBER 0x00000009
  879. /// #define EFI_CACHE_CONFIGURATION_RECORD_NUMBER 0x0000000A
  880. /// Keep the definition unchanged for backward compatibility.
  881. ///
  882. typedef enum {
  883. CacheSizeRecordType = 1,
  884. MaximumSizeCacheRecordType = 2,
  885. CacheSpeedRecordType = 3,
  886. CacheSocketRecordType = 4,
  887. CacheSramTypeRecordType = 5,
  888. CacheInstalledSramTypeRecordType = 6,
  889. CacheErrorTypeRecordType = 7,
  890. CacheTypeRecordType = 8,
  891. CacheAssociativityRecordType = 9,
  892. CacheConfigRecordType = 10
  893. } EFI_CACHE_VARIABLE_RECORD_TYPE;
  894. ///
  895. /// Inconsistent with specification here:
  896. /// In CacheSubclass specification 0.9, the union type data structure is NOT defined.
  897. /// It's implementation-specific to simplify the code logic.
  898. ///
  899. typedef union {
  900. EFI_CACHE_SIZE_DATA CacheSize;
  901. EFI_MAXIMUM_CACHE_SIZE_DATA MaximumCacheSize;
  902. EFI_CACHE_SPEED_DATA CacheSpeed;
  903. EFI_CACHE_SOCKET_DATA CacheSocket;
  904. EFI_CACHE_SRAM_TYPE_DATA CacheSramType;
  905. EFI_CACHE_SRAM_TYPE_DATA CacheInstalledSramType;
  906. EFI_CACHE_ERROR_TYPE_DATA CacheErrorType;
  907. EFI_CACHE_TYPE_DATA CacheType;
  908. EFI_CACHE_ASSOCIATIVITY_DATA CacheAssociativity;
  909. EFI_CACHE_CONFIGURATION_DATA CacheConfig;
  910. EFI_CACHE_ASSOCIATION_DATA CacheAssociation;
  911. } EFI_CACHE_VARIABLE_RECORD;
  912. typedef struct {
  913. EFI_SUBCLASS_TYPE1_HEADER DataRecordHeader;
  914. EFI_CACHE_VARIABLE_RECORD VariableRecord;
  915. } EFI_CACHE_DATA_RECORD;
  916. #define EFI_MEMORY_SUBCLASS_VERSION 0x0100
  917. #define EFI_MEMORY_SIZE_RECORD_NUMBER 0x00000001
  918. typedef enum _EFI_MEMORY_REGION_TYPE {
  919. EfiMemoryRegionMemory = 0x01,
  920. EfiMemoryRegionReserved = 0x02,
  921. EfiMemoryRegionAcpi = 0x03,
  922. EfiMemoryRegionNvs = 0x04
  923. } EFI_MEMORY_REGION_TYPE;
  924. ///
  925. /// This data record refers to the size of a memory region. The regions that are
  926. /// described can refer to physical memory, memory-mapped I/O, or reserved BIOS memory regions.
  927. /// The unit of measurement of this data record is in bytes.
  928. ///
  929. typedef struct {
  930. ///
  931. /// A zero-based value that indicates which processor(s) can access the memory region.
  932. /// A value of 0xFFFF indicates the region is accessible by all processors.
  933. ///
  934. UINT32 ProcessorNumber;
  935. ///
  936. /// A zero-based value that indicates the starting bus that can access the memory region.
  937. ///
  938. UINT16 StartBusNumber;
  939. ///
  940. /// A zero-based value that indicates the ending bus that can access the memory region.
  941. /// A value of 0xFF for a PCI system indicates the region is accessible by all buses and
  942. /// is global in scope. An example of the EndBusNumber not being 0xFF is a system
  943. /// with two or more peer-to-host PCI bridges.
  944. ///
  945. UINT16 EndBusNumber;
  946. ///
  947. /// The type of memory region from the operating system's point of view.
  948. /// MemoryRegionType values are equivalent to the legacy INT 15 AX = E820 BIOS
  949. /// command values.
  950. ///
  951. EFI_MEMORY_REGION_TYPE MemoryRegionType;
  952. ///
  953. /// The size of the memory region in bytes.
  954. ///
  955. EFI_EXP_BASE2_DATA MemorySize;
  956. ///
  957. /// The starting physical address of the memory region.
  958. ///
  959. EFI_PHYSICAL_ADDRESS MemoryStartAddress;
  960. } EFI_MEMORY_SIZE_DATA;
  961. #define EFI_MEMORY_ARRAY_LOCATION_RECORD_NUMBER 0x00000002
  962. typedef enum _EFI_MEMORY_ARRAY_LOCATION {
  963. EfiMemoryArrayLocationOther = 0x01,
  964. EfiMemoryArrayLocationUnknown = 0x02,
  965. EfiMemoryArrayLocationSystemBoard = 0x03,
  966. EfiMemoryArrayLocationIsaAddonCard = 0x04,
  967. EfiMemoryArrayLocationEisaAddonCard = 0x05,
  968. EfiMemoryArrayLocationPciAddonCard = 0x06,
  969. EfiMemoryArrayLocationMcaAddonCard = 0x07,
  970. EfiMemoryArrayLocationPcmciaAddonCard = 0x08,
  971. EfiMemoryArrayLocationProprietaryAddonCard = 0x09,
  972. EfiMemoryArrayLocationNuBus = 0x0A,
  973. EfiMemoryArrayLocationPc98C20AddonCard = 0xA0,
  974. EfiMemoryArrayLocationPc98C24AddonCard = 0xA1,
  975. EfiMemoryArrayLocationPc98EAddonCard = 0xA2,
  976. EfiMemoryArrayLocationPc98LocalBusAddonCard = 0xA3
  977. } EFI_MEMORY_ARRAY_LOCATION;
  978. typedef enum _EFI_MEMORY_ARRAY_USE {
  979. EfiMemoryArrayUseOther = 0x01,
  980. EfiMemoryArrayUseUnknown = 0x02,
  981. EfiMemoryArrayUseSystemMemory = 0x03,
  982. EfiMemoryArrayUseVideoMemory = 0x04,
  983. EfiMemoryArrayUseFlashMemory = 0x05,
  984. EfiMemoryArrayUseNonVolatileRam = 0x06,
  985. EfiMemoryArrayUseCacheMemory = 0x07
  986. } EFI_MEMORY_ARRAY_USE;
  987. typedef enum _EFI_MEMORY_ERROR_CORRECTION {
  988. EfiMemoryErrorCorrectionOther = 0x01,
  989. EfiMemoryErrorCorrectionUnknown = 0x02,
  990. EfiMemoryErrorCorrectionNone = 0x03,
  991. EfiMemoryErrorCorrectionParity = 0x04,
  992. EfiMemoryErrorCorrectionSingleBitEcc = 0x05,
  993. EfiMemoryErrorCorrectionMultiBitEcc = 0x06,
  994. EfiMemoryErrorCorrectionCrc = 0x07
  995. } EFI_MEMORY_ERROR_CORRECTION;
  996. ///
  997. /// This data record refers to the physical memory array. This data record is a structure.
  998. /// The type definition structure for EFI_MEMORY_ARRAY_LOCATION_DATA is in SMBIOS 2.3.4:
  999. /// - Table 3.3.17.1, Type 16, Offset 0x4
  1000. /// - Table 3.3.17.2, Type 16, Offset 0x5
  1001. /// - Table 3.3.17.3, Type 16, with the following offsets:
  1002. /// -- Offset 0x6
  1003. /// -- Offset 0x7
  1004. /// -- Offset 0xB
  1005. /// -- Offset 0xD
  1006. ///
  1007. typedef struct {
  1008. ///
  1009. /// The physical location of the memory array.
  1010. ///
  1011. EFI_MEMORY_ARRAY_LOCATION MemoryArrayLocation;
  1012. ///
  1013. /// The memory array usage.
  1014. ///
  1015. EFI_MEMORY_ARRAY_USE MemoryArrayUse;
  1016. ///
  1017. /// The primary error correction or detection supported by this memory array.
  1018. ///
  1019. EFI_MEMORY_ERROR_CORRECTION MemoryErrorCorrection;
  1020. ///
  1021. /// The maximum memory capacity size in kilobytes. If capacity is unknown, then
  1022. /// values of MaximumMemoryCapacity.Value = 0x00 and
  1023. /// MaximumMemoryCapacity.Exponent = 0x8000 are used.
  1024. ///
  1025. EFI_EXP_BASE2_DATA MaximumMemoryCapacity;
  1026. ///
  1027. /// The number of memory slots or sockets that are available for memory devices
  1028. /// in this array.
  1029. ///
  1030. UINT16 NumberMemoryDevices;
  1031. } EFI_MEMORY_ARRAY_LOCATION_DATA;
  1032. #define EFI_MEMORY_ARRAY_LINK_RECORD_NUMBER 0x00000003
  1033. typedef enum _EFI_MEMORY_FORM_FACTOR {
  1034. EfiMemoryFormFactorOther = 0x01,
  1035. EfiMemoryFormFactorUnknown = 0x02,
  1036. EfiMemoryFormFactorSimm = 0x03,
  1037. EfiMemoryFormFactorSip = 0x04,
  1038. EfiMemoryFormFactorChip = 0x05,
  1039. EfiMemoryFormFactorDip = 0x06,
  1040. EfiMemoryFormFactorZip = 0x07,
  1041. EfiMemoryFormFactorProprietaryCard = 0x08,
  1042. EfiMemoryFormFactorDimm = 0x09,
  1043. EfiMemoryFormFactorTsop = 0x0A,
  1044. EfiMemoryFormFactorRowOfChips = 0x0B,
  1045. EfiMemoryFormFactorRimm = 0x0C,
  1046. EfiMemoryFormFactorSodimm = 0x0D,
  1047. EfiMemoryFormFactorSrimm = 0x0E,
  1048. ///
  1049. /// Inconsistent with specification here:
  1050. /// This field is NOT defined in MemSubClass specification 0.9. It's introduced for SMBIOS2.6 specification.
  1051. ///
  1052. EfiMemoryFormFactorFbDimm = 0x0F
  1053. } EFI_MEMORY_FORM_FACTOR;
  1054. typedef enum _EFI_MEMORY_ARRAY_TYPE {
  1055. EfiMemoryTypeOther = 0x01,
  1056. EfiMemoryTypeUnknown = 0x02,
  1057. EfiMemoryTypeDram = 0x03,
  1058. EfiMemoryTypeEdram = 0x04,
  1059. EfiMemoryTypeVram = 0x05,
  1060. EfiMemoryTypeSram = 0x06,
  1061. EfiMemoryTypeRam = 0x07,
  1062. EfiMemoryTypeRom = 0x08,
  1063. EfiMemoryTypeFlash = 0x09,
  1064. EfiMemoryTypeEeprom = 0x0A,
  1065. EfiMemoryTypeFeprom = 0x0B,
  1066. EfiMemoryTypeEprom = 0x0C,
  1067. EfiMemoryTypeCdram = 0x0D,
  1068. EfiMemoryType3Dram = 0x0E,
  1069. EfiMemoryTypeSdram = 0x0F,
  1070. EfiMemoryTypeSgram = 0x10,
  1071. EfiMemoryTypeRdram = 0x11,
  1072. EfiMemoryTypeDdr = 0x12,
  1073. ///
  1074. /// Inconsistent with specification here:
  1075. /// This field is NOT defined in MemSubClass specification 0.9. It's introduced for SMBIOS2.6 specification.
  1076. ///
  1077. EfiMemoryTypeDdr2 = 0x13,
  1078. ///
  1079. /// Inconsistent with specification here:
  1080. /// This field is NOT defined in MemSubClass specification 0.9. It's introduced for SMBIOS2.6 specification.
  1081. ///
  1082. EfiMemoryTypeDdr2FbDimm = 0x14
  1083. } EFI_MEMORY_ARRAY_TYPE;
  1084. typedef struct {
  1085. UINT32 Reserved :1;
  1086. UINT32 Other :1;
  1087. UINT32 Unknown :1;
  1088. UINT32 FastPaged :1;
  1089. UINT32 StaticColumn :1;
  1090. UINT32 PseudoStatic :1;
  1091. UINT32 Rambus :1;
  1092. UINT32 Synchronous :1;
  1093. UINT32 Cmos :1;
  1094. UINT32 Edo :1;
  1095. UINT32 WindowDram :1;
  1096. UINT32 CacheDram :1;
  1097. UINT32 Nonvolatile :1;
  1098. UINT32 Reserved1 :19;
  1099. } EFI_MEMORY_TYPE_DETAIL;
  1100. typedef enum {
  1101. EfiMemoryStateEnabled = 0,
  1102. EfiMemoryStateUnknown = 1,
  1103. EfiMemoryStateUnsupported = 2,
  1104. EfiMemoryStateError = 3,
  1105. EfiMemoryStateAbsent = 4,
  1106. EfiMemoryStateDisabled = 5,
  1107. ///
  1108. /// Inconsistent with specification here:
  1109. /// This field is NOT defined in MemSubClass specification 0.9. It's introduced for SMBIOS2.6 specification.
  1110. ///
  1111. EfiMemoryStatePartial = 6
  1112. } EFI_MEMORY_STATE;
  1113. ///
  1114. /// This data record describes a memory device. This data record is a structure.
  1115. /// The type definition structure for EFI_MEMORY_ARRAY_LINK_DATA is in SMBIOS 2.3.4.
  1116. ///
  1117. typedef struct {
  1118. ///
  1119. /// A string that identifies the physically labeled socket or board position where the
  1120. /// memory device is located.
  1121. ///
  1122. STRING_REF MemoryDeviceLocator;
  1123. ///
  1124. /// A string denoting the physically labeled bank where the memory device is located.
  1125. ///
  1126. STRING_REF MemoryBankLocator;
  1127. ///
  1128. /// A string denoting the memory manufacturer.
  1129. ///
  1130. STRING_REF MemoryManufacturer;
  1131. ///
  1132. /// A string denoting the serial number of the memory device.
  1133. ///
  1134. STRING_REF MemorySerialNumber;
  1135. ///
  1136. /// The asset tag of the memory device.
  1137. ///
  1138. STRING_REF MemoryAssetTag;
  1139. ///
  1140. /// A string denoting the part number of the memory device.
  1141. ///
  1142. STRING_REF MemoryPartNumber;
  1143. ///
  1144. /// A link to a memory array structure set.
  1145. ///
  1146. EFI_INTER_LINK_DATA MemoryArrayLink;
  1147. ///
  1148. /// A link to a memory array structure set.
  1149. ///
  1150. EFI_INTER_LINK_DATA MemorySubArrayLink;
  1151. ///
  1152. /// The total width in bits of this memory device. If there are no error correcting bits,
  1153. /// then the total width equals the data width. If the width is unknown, then set the field
  1154. /// to 0xFFFF.
  1155. ///
  1156. UINT16 MemoryTotalWidth;
  1157. ///
  1158. /// The data width in bits of the memory device. A data width of 0x00 and a total width
  1159. /// of 0x08 indicate that the device is used solely for error correction.
  1160. ///
  1161. UINT16 MemoryDataWidth;
  1162. ///
  1163. /// The size in bytes of the memory device. A value of 0x00 denotes that no device is
  1164. /// installed, while a value of all Fs denotes that the size is not known.
  1165. ///
  1166. EFI_EXP_BASE2_DATA MemoryDeviceSize;
  1167. ///
  1168. /// The form factor of the memory device.
  1169. ///
  1170. EFI_MEMORY_FORM_FACTOR MemoryFormFactor;
  1171. ///
  1172. /// A memory device set that must be populated with all devices of the same type and
  1173. /// size. A value of 0x00 indicates that the device is not part of any set. A value of 0xFF
  1174. /// indicates that the attribute is unknown. Any other value denotes the set number.
  1175. ///
  1176. UINT8 MemoryDeviceSet;
  1177. ///
  1178. /// The memory type in the socket.
  1179. ///
  1180. EFI_MEMORY_ARRAY_TYPE MemoryType;
  1181. ///
  1182. /// The memory type details.
  1183. ///
  1184. EFI_MEMORY_TYPE_DETAIL MemoryTypeDetail;
  1185. ///
  1186. /// The memory speed in megahertz (MHz). A value of 0x00 denotes that
  1187. /// the speed is unknown.
  1188. /// Inconsistent with specification here:
  1189. /// In MemSubclass specification 0.9, the naming is MemoryTypeSpeed.
  1190. /// Keep it unchanged for backward compatibilty.
  1191. ///
  1192. EFI_EXP_BASE10_DATA MemorySpeed;
  1193. ///
  1194. /// The memory state.
  1195. ///
  1196. EFI_MEMORY_STATE MemoryState;
  1197. } EFI_MEMORY_ARRAY_LINK_DATA;
  1198. #define EFI_MEMORY_ARRAY_START_ADDRESS_RECORD_NUMBER 0x00000004
  1199. ///
  1200. /// This data record refers to a specified physical memory array associated with
  1201. /// a given memory range.
  1202. ///
  1203. typedef struct {
  1204. ///
  1205. /// The starting physical address in bytes of memory mapped to a specified physical
  1206. /// memory array.
  1207. ///
  1208. EFI_PHYSICAL_ADDRESS MemoryArrayStartAddress;
  1209. ///
  1210. /// The last physical address in bytes of memory mapped to a specified physical memory
  1211. /// array.
  1212. ///
  1213. EFI_PHYSICAL_ADDRESS MemoryArrayEndAddress;
  1214. ///
  1215. /// See Physical Memory Array (Type 16) for physical memory array structures.
  1216. ///
  1217. EFI_INTER_LINK_DATA PhysicalMemoryArrayLink;
  1218. ///
  1219. /// The number of memory devices that form a single row of memory for the address
  1220. /// partition.
  1221. ///
  1222. UINT16 MemoryArrayPartitionWidth;
  1223. } EFI_MEMORY_ARRAY_START_ADDRESS_DATA;
  1224. #define EFI_MEMORY_DEVICE_START_ADDRESS_RECORD_NUMBER 0x00000005
  1225. ///
  1226. /// This data record refers to a physical memory device that is associated with
  1227. /// a given memory range.
  1228. ///
  1229. typedef struct {
  1230. ///
  1231. /// The starting physical address that is associated with the device.
  1232. ///
  1233. EFI_PHYSICAL_ADDRESS MemoryDeviceStartAddress;
  1234. ///
  1235. /// The ending physical address that is associated with the device.
  1236. ///
  1237. EFI_PHYSICAL_ADDRESS MemoryDeviceEndAddress;
  1238. ///
  1239. /// A link to the memory device data structure.
  1240. ///
  1241. EFI_INTER_LINK_DATA PhysicalMemoryDeviceLink;
  1242. ///
  1243. /// A link to the memory array data structure.
  1244. ///
  1245. EFI_INTER_LINK_DATA PhysicalMemoryArrayLink;
  1246. ///
  1247. /// The position of the memory device in a row. A value of 0x00 is reserved and a value
  1248. /// of 0xFF indicates that the position is unknown.
  1249. ///
  1250. UINT8 MemoryDevicePartitionRowPosition;
  1251. ///
  1252. /// The position of the device in an interleave.
  1253. ///
  1254. UINT8 MemoryDeviceInterleavePosition;
  1255. ///
  1256. /// The maximum number of consecutive rows from the device that are accessed in a
  1257. /// single interleave transfer. A value of 0x00 indicates that the device is not interleaved
  1258. /// and a value of 0xFF indicates that the interleave configuration is unknown.
  1259. ///
  1260. UINT8 MemoryDeviceInterleaveDataDepth;
  1261. } EFI_MEMORY_DEVICE_START_ADDRESS_DATA;
  1262. //
  1263. // Memory. Channel Device Type - SMBIOS Type 37
  1264. //
  1265. #define EFI_MEMORY_CHANNEL_TYPE_RECORD_NUMBER 0x00000006
  1266. typedef enum _EFI_MEMORY_CHANNEL_TYPE {
  1267. EfiMemoryChannelTypeOther = 1,
  1268. EfiMemoryChannelTypeUnknown = 2,
  1269. EfiMemoryChannelTypeRambus = 3,
  1270. EfiMemoryChannelTypeSyncLink = 4
  1271. } EFI_MEMORY_CHANNEL_TYPE;
  1272. ///
  1273. /// This data record refers the type of memory that is associated with the channel. This data record is a
  1274. /// structure.
  1275. /// The type definition structure for EFI_MEMORY_CHANNEL_TYPE_DATA is in SMBIOS 2.3.4,
  1276. /// Table 3.3.38, Type 37, with the following offsets:
  1277. /// - Offset 0x4
  1278. /// - Offset 0x5
  1279. /// - Offset 0x6
  1280. ///
  1281. typedef struct {
  1282. ///
  1283. /// The type of memory that is associated with the channel.
  1284. ///
  1285. EFI_MEMORY_CHANNEL_TYPE MemoryChannelType;
  1286. ///
  1287. /// The maximum load that is supported by the channel.
  1288. ///
  1289. UINT8 MemoryChannelMaximumLoad;
  1290. ///
  1291. /// The number of memory devices on this channel.
  1292. ///
  1293. UINT8 MemoryChannelDeviceCount;
  1294. } EFI_MEMORY_CHANNEL_TYPE_DATA;
  1295. #define EFI_MEMORY_CHANNEL_DEVICE_RECORD_NUMBER 0x00000007
  1296. ///
  1297. /// This data record refers to the memory device that is associated with the memory channel. This data
  1298. /// record is a structure.
  1299. /// The type definition structure for EFI_MEMORY_CHANNEL_DEVICE_DATA is in SMBIOS 2.3.4,
  1300. /// Table 3.3.38, Type 37, with the following offsets:
  1301. /// - Offset 0x7
  1302. /// - Offset 0x8
  1303. ///
  1304. typedef struct {
  1305. ///
  1306. /// A number between one and MemoryChannelDeviceCount plus an arbitrary base.
  1307. ///
  1308. UINT8 DeviceId;
  1309. ///
  1310. /// The Link of the associated memory device. See Memory Device (Type 17) for
  1311. /// memory devices.
  1312. ///
  1313. EFI_INTER_LINK_DATA DeviceLink;
  1314. ///
  1315. /// The number of load units that this device consumes.
  1316. ///
  1317. UINT8 MemoryChannelDeviceLoad;
  1318. } EFI_MEMORY_CHANNEL_DEVICE_DATA;
  1319. //
  1320. // Memory. Controller Information - SMBIOS Type 5
  1321. //
  1322. ///
  1323. /// Inconsistent with specification here:
  1324. /// In MemSubclass specification 0.9, the following data structures are NOT defined.
  1325. /// It's introduced for SmBios 2.6 type 5.
  1326. ///
  1327. #define EFI_MEMORY_CONTROLLER_INFORMATION_RECORD_NUMBER 0x00000008
  1328. ///
  1329. /// Inconsistent with specification here:
  1330. /// In MemSubclass specification 0.9, the following data structures are NOT defined.
  1331. /// It's introduced for SmBios 2.6 type 5.
  1332. ///
  1333. typedef enum {
  1334. EfiErrorDetectingMethodOther = 1,
  1335. EfiErrorDetectingMethodUnknown = 2,
  1336. EfiErrorDetectingMethodNone = 3,
  1337. EfiErrorDetectingMethodParity = 4,
  1338. EfiErrorDetectingMethod32Ecc = 5,
  1339. EfiErrorDetectingMethod64Ecc = 6,
  1340. EfiErrorDetectingMethod128Ecc = 7,
  1341. EfiErrorDetectingMethodCrc = 8
  1342. } EFI_MEMORY_ERROR_DETECT_METHOD_TYPE;
  1343. ///
  1344. /// Inconsistent with specification here:
  1345. /// In MemSubclass specification 0.9, the following data structures are NOT defined.
  1346. /// It's introduced for SmBios 2.6 type 5.
  1347. ///
  1348. typedef struct {
  1349. UINT8 Other :1;
  1350. UINT8 Unknown :1;
  1351. UINT8 None :1;
  1352. UINT8 SingleBitErrorCorrect :1;
  1353. UINT8 DoubleBitErrorCorrect :1;
  1354. UINT8 ErrorScrubbing :1;
  1355. UINT8 Reserved :2;
  1356. } EFI_MEMORY_ERROR_CORRECT_CAPABILITY;
  1357. ///
  1358. /// Inconsistent with specification here:
  1359. /// In MemSubclass specification 0.9, the following data structures are NOT defined.
  1360. /// It's introduced for SmBios 2.6 type 5.
  1361. ///
  1362. typedef enum {
  1363. EfiMemoryInterleaveOther = 1,
  1364. EfiMemoryInterleaveUnknown = 2,
  1365. EfiMemoryInterleaveOneWay = 3,
  1366. EfiMemoryInterleaveTwoWay = 4,
  1367. EfiMemoryInterleaveFourWay = 5,
  1368. EfiMemoryInterleaveEightWay = 6,
  1369. EfiMemoryInterleaveSixteenWay = 7
  1370. } EFI_MEMORY_SUPPORT_INTERLEAVE_TYPE;
  1371. ///
  1372. /// Inconsistent with specification here:
  1373. /// In MemSubclass specification 0.9, the following data structures are NOT defined.
  1374. /// It's introduced for SmBios 2.6 type 5.
  1375. ///
  1376. typedef struct {
  1377. UINT16 Other :1;
  1378. UINT16 Unknown :1;
  1379. UINT16 SeventyNs:1;
  1380. UINT16 SixtyNs :1;
  1381. UINT16 FiftyNs :1;
  1382. UINT16 Reserved :11;
  1383. } EFI_MEMORY_SPEED_TYPE;
  1384. ///
  1385. /// Inconsistent with specification here:
  1386. /// In MemSubclass specification 0.9, the following data structures are NOT defined.
  1387. /// It's introduced for SmBios 2.6 type 5.
  1388. ///
  1389. typedef struct {
  1390. UINT16 Other :1;
  1391. UINT16 Unknown :1;
  1392. UINT16 Standard :1;
  1393. UINT16 FastPageMode:1;
  1394. UINT16 EDO :1;
  1395. UINT16 Parity :1;
  1396. UINT16 ECC :1;
  1397. UINT16 SIMM :1;
  1398. UINT16 DIMM :1;
  1399. UINT16 BurstEdo :1;
  1400. UINT16 SDRAM :1;
  1401. UINT16 Reserved :5;
  1402. } EFI_MEMORY_SUPPORTED_TYPE;
  1403. ///
  1404. /// Inconsistent with specification here:
  1405. /// In MemSubclass specification 0.9, the following data structures are NOT defined.
  1406. /// It's introduced for SmBios 2.6 type 5.
  1407. ///
  1408. typedef struct {
  1409. UINT8 Five :1;
  1410. UINT8 Three :1;
  1411. UINT8 Two :1;
  1412. UINT8 Reserved:5;
  1413. } EFI_MEMORY_MODULE_VOLTAGE_TYPE;
  1414. ///
  1415. /// EFI_MEMORY_CONTROLLER_INFORMATION is obsolete
  1416. /// Use EFI_MEMORY_CONTROLLER_INFORMATION_DATA instead
  1417. ///
  1418. /// Inconsistent with specification here:
  1419. /// In MemSubclass specification 0.9, the following data structures are NOT defined.
  1420. /// It's introduced for SmBios 2.6 type 5.
  1421. ///
  1422. typedef struct {
  1423. EFI_MEMORY_ERROR_DETECT_METHOD_TYPE ErrorDetectingMethod;
  1424. EFI_MEMORY_ERROR_CORRECT_CAPABILITY ErrorCorrectingCapability;
  1425. EFI_MEMORY_SUPPORT_INTERLEAVE_TYPE MemorySupportedInterleave;
  1426. EFI_MEMORY_SUPPORT_INTERLEAVE_TYPE MemoryCurrentInterleave;
  1427. UINT8 MaxMemoryModuleSize;
  1428. EFI_MEMORY_SPEED_TYPE MemorySpeedType;
  1429. EFI_MEMORY_SUPPORTED_TYPE MemorySupportedType;
  1430. EFI_MEMORY_MODULE_VOLTAGE_TYPE MemoryModuleVoltage;
  1431. UINT8 NumberofMemorySlot;
  1432. EFI_MEMORY_ERROR_CORRECT_CAPABILITY EnabledCorrectingCapability;
  1433. UINT16 *MemoryModuleConfigHandles;
  1434. } EFI_MEMORY_CONTROLLER_INFORMATION;
  1435. ///
  1436. /// Inconsistent with specification here:
  1437. /// In MemSubclass specification 0.9, the following data structures are NOT defined.
  1438. /// It's introduced for SmBios 2.6 type 5.
  1439. ///
  1440. typedef struct {
  1441. EFI_MEMORY_ERROR_DETECT_METHOD_TYPE ErrorDetectingMethod;
  1442. EFI_MEMORY_ERROR_CORRECT_CAPABILITY ErrorCorrectingCapability;
  1443. EFI_MEMORY_SUPPORT_INTERLEAVE_TYPE MemorySupportedInterleave;
  1444. EFI_MEMORY_SUPPORT_INTERLEAVE_TYPE MemoryCurrentInterleave;
  1445. UINT8 MaxMemoryModuleSize;
  1446. EFI_MEMORY_SPEED_TYPE MemorySpeedType;
  1447. EFI_MEMORY_SUPPORTED_TYPE MemorySupportedType;
  1448. EFI_MEMORY_MODULE_VOLTAGE_TYPE MemoryModuleVoltage;
  1449. UINT8 NumberofMemorySlot;
  1450. EFI_MEMORY_ERROR_CORRECT_CAPABILITY EnabledCorrectingCapability;
  1451. EFI_INTER_LINK_DATA MemoryModuleConfig[1];
  1452. } EFI_MEMORY_CONTROLLER_INFORMATION_DATA;
  1453. ///
  1454. /// Memory. Error Information - SMBIOS Type 18
  1455. ///
  1456. /// Inconsistent with specification here:
  1457. /// In MemSubclass specification 0.9, the following data structures are NOT defined.
  1458. /// It's introduced for SmBios 2.6 type 18.
  1459. ///
  1460. #define EFI_MEMORY_32BIT_ERROR_INFORMATION_RECORD_NUMBER 0x00000009
  1461. ///
  1462. /// Inconsistent with specification here:
  1463. /// In MemSubclass specification 0.9, the following data structures are NOT defined.
  1464. /// It's introduced for SmBios 2.6 type 18.
  1465. ///
  1466. typedef enum {
  1467. EfiMemoryErrorOther = 1,
  1468. EfiMemoryErrorUnknown = 2,
  1469. EfiMemoryErrorOk = 3,
  1470. EfiMemoryErrorBadRead = 4,
  1471. EfiMemoryErrorParity = 5,
  1472. EfiMemoryErrorSigleBit = 6,
  1473. EfiMemoryErrorDoubleBit = 7,
  1474. EfiMemoryErrorMultiBit = 8,
  1475. EfiMemoryErrorNibble = 9,
  1476. EfiMemoryErrorChecksum = 10,
  1477. EfiMemoryErrorCrc = 11,
  1478. EfiMemoryErrorCorrectSingleBit = 12,
  1479. EfiMemoryErrorCorrected = 13,
  1480. EfiMemoryErrorUnCorrectable = 14
  1481. } EFI_MEMORY_ERROR_TYPE;
  1482. ///
  1483. /// Inconsistent with specification here:
  1484. /// In MemSubclass specification 0.9, the following data structures are NOT defined.
  1485. /// It's introduced for SmBios 2.6 type 18.
  1486. ///
  1487. typedef enum {
  1488. EfiMemoryGranularityOther = 1,
  1489. EfiMemoryGranularityOtherUnknown = 2,
  1490. EfiMemoryGranularityDeviceLevel = 3,
  1491. EfiMemoryGranularityMemPartitionLevel = 4
  1492. } EFI_MEMORY_ERROR_GRANULARITY_TYPE;
  1493. ///
  1494. /// Inconsistent with specification here:
  1495. /// In MemSubclass specification 0.9, the following data structures are NOT defined.
  1496. /// It's introduced for SmBios 2.6 type 18.
  1497. ///
  1498. typedef enum {
  1499. EfiMemoryErrorOperationOther = 1,
  1500. EfiMemoryErrorOperationUnknown = 2,
  1501. EfiMemoryErrorOperationRead = 3,
  1502. EfiMemoryErrorOperationWrite = 4,
  1503. EfiMemoryErrorOperationPartialWrite = 5
  1504. } EFI_MEMORY_ERROR_OPERATION_TYPE;
  1505. ///
  1506. /// Inconsistent with specification here:
  1507. /// In MemSubclass specification 0.9, the following data structures are NOT defined.
  1508. /// It's introduced for SmBios 2.6 type 18.
  1509. ///
  1510. typedef struct {
  1511. EFI_MEMORY_ERROR_TYPE MemoryErrorType;
  1512. EFI_MEMORY_ERROR_GRANULARITY_TYPE MemoryErrorGranularity;
  1513. EFI_MEMORY_ERROR_OPERATION_TYPE MemoryErrorOperation;
  1514. UINT32 VendorSyndrome;
  1515. UINT32 MemoryArrayErrorAddress;
  1516. UINT32 DeviceErrorAddress;
  1517. UINT32 DeviceErrorResolution;
  1518. } EFI_MEMORY_32BIT_ERROR_INFORMATION;
  1519. ///
  1520. /// Memory. Error Information - SMBIOS Type 33.
  1521. ///
  1522. /// Inconsistent with specification here:
  1523. /// In MemSubclass specification 0.9, the following data structures are NOT defined.
  1524. /// It's introduced for SmBios 2.6 type 33.
  1525. ///
  1526. #define EFI_MEMORY_64BIT_ERROR_INFORMATION_RECORD_NUMBER 0x0000000A
  1527. ///
  1528. /// Inconsistent with specification here:
  1529. /// In MemSubclass specification 0.9, the following data structures are NOT defined.
  1530. /// It's introduced for SmBios 2.6 type 33.
  1531. ///
  1532. typedef struct {
  1533. EFI_MEMORY_ERROR_TYPE MemoryErrorType;
  1534. EFI_MEMORY_ERROR_GRANULARITY_TYPE MemoryErrorGranularity;
  1535. EFI_MEMORY_ERROR_OPERATION_TYPE MemoryErrorOperation;
  1536. UINT32 VendorSyndrome;
  1537. UINT64 MemoryArrayErrorAddress;
  1538. UINT64 DeviceErrorAddress;
  1539. UINT32 DeviceErrorResolution;
  1540. } EFI_MEMORY_64BIT_ERROR_INFORMATION;
  1541. ///
  1542. /// Inconsistent with specification here:
  1543. /// In MemSubclass specification 0.9, the following data structures are NOT defined.
  1544. /// It is implementation-specific to simplify the code logic.
  1545. ///
  1546. typedef union _EFI_MEMORY_SUBCLASS_RECORDS {
  1547. EFI_MEMORY_SIZE_DATA SizeData;
  1548. EFI_MEMORY_ARRAY_LOCATION_DATA ArrayLocationData;
  1549. EFI_MEMORY_ARRAY_LINK_DATA ArrayLink;
  1550. EFI_MEMORY_ARRAY_START_ADDRESS_DATA ArrayStartAddress;
  1551. EFI_MEMORY_DEVICE_START_ADDRESS_DATA DeviceStartAddress;
  1552. EFI_MEMORY_CHANNEL_TYPE_DATA ChannelTypeData;
  1553. EFI_MEMORY_CHANNEL_DEVICE_DATA ChannelDeviceData;
  1554. EFI_MEMORY_CONTROLLER_INFORMATION MemoryControllerInfo;
  1555. EFI_MEMORY_32BIT_ERROR_INFORMATION Memory32bitErrorInfo;
  1556. EFI_MEMORY_64BIT_ERROR_INFORMATION Memory64bitErrorInfo;
  1557. } EFI_MEMORY_SUBCLASS_RECORDS;
  1558. typedef struct {
  1559. EFI_SUBCLASS_TYPE1_HEADER Header;
  1560. EFI_MEMORY_SUBCLASS_RECORDS Record;
  1561. } EFI_MEMORY_SUBCLASS_DRIVER_DATA;
  1562. #define EFI_MISC_SUBCLASS_VERSION 0x0100
  1563. #pragma pack(1)
  1564. //
  1565. // Last PCI Bus Number
  1566. //
  1567. #define EFI_MISC_LAST_PCI_BUS_RECORD_NUMBER 0x00000001
  1568. typedef struct {
  1569. UINT8 LastPciBus;
  1570. } EFI_MISC_LAST_PCI_BUS_DATA;
  1571. //
  1572. // Misc. BIOS Vendor - SMBIOS Type 0
  1573. //
  1574. #define EFI_MISC_BIOS_VENDOR_RECORD_NUMBER 0x00000002
  1575. typedef struct {
  1576. UINT64 Reserved1 :2;
  1577. UINT64 Unknown :1;
  1578. UINT64 BiosCharacteristicsNotSupported :1;
  1579. UINT64 IsaIsSupported :1;
  1580. UINT64 McaIsSupported :1;
  1581. UINT64 EisaIsSupported :1;
  1582. UINT64 PciIsSupported :1;
  1583. UINT64 PcmciaIsSupported :1;
  1584. UINT64 PlugAndPlayIsSupported :1;
  1585. UINT64 ApmIsSupported :1;
  1586. UINT64 BiosIsUpgradable :1;
  1587. UINT64 BiosShadowingAllowed :1;
  1588. UINT64 VlVesaIsSupported :1;
  1589. UINT64 EscdSupportIsAvailable :1;
  1590. UINT64 BootFromCdIsSupported :1;
  1591. UINT64 SelectableBootIsSupported :1;
  1592. UINT64 RomBiosIsSocketed :1;
  1593. UINT64 BootFromPcmciaIsSupported :1;
  1594. UINT64 EDDSpecificationIsSupported :1;
  1595. UINT64 JapaneseNecFloppyIsSupported :1;
  1596. UINT64 JapaneseToshibaFloppyIsSupported :1;
  1597. UINT64 Floppy525_360IsSupported :1;
  1598. UINT64 Floppy525_12IsSupported :1;
  1599. UINT64 Floppy35_720IsSupported :1;
  1600. UINT64 Floppy35_288IsSupported :1;
  1601. UINT64 PrintScreenIsSupported :1;
  1602. UINT64 Keyboard8042IsSupported :1;
  1603. UINT64 SerialIsSupported :1;
  1604. UINT64 PrinterIsSupported :1;
  1605. UINT64 CgaMonoIsSupported :1;
  1606. UINT64 NecPc98 :1;
  1607. UINT64 AcpiIsSupported :1;
  1608. UINT64 UsbLegacyIsSupported :1;
  1609. UINT64 AgpIsSupported :1;
  1610. UINT64 I20BootIsSupported :1;
  1611. UINT64 Ls120BootIsSupported :1;
  1612. UINT64 AtapiZipDriveBootIsSupported :1;
  1613. UINT64 Boot1394IsSupported :1;
  1614. UINT64 SmartBatteryIsSupported :1;
  1615. UINT64 BiosBootSpecIsSupported :1;
  1616. UINT64 FunctionKeyNetworkBootIsSupported :1;
  1617. UINT64 TargetContentDistributionEnabled :1;
  1618. UINT64 UefiSpecificationSupported :1;
  1619. UINT64 VirtualMachineSupported :1;
  1620. UINT64 Reserved :19;
  1621. } EFI_MISC_BIOS_CHARACTERISTICS;
  1622. typedef struct {
  1623. UINT64 BiosReserved :16;
  1624. UINT64 SystemReserved:16;
  1625. UINT64 Reserved :32;
  1626. } EFI_MISC_BIOS_CHARACTERISTICS_EXTENSION;
  1627. typedef struct {
  1628. STRING_REF BiosVendor;
  1629. STRING_REF BiosVersion;
  1630. STRING_REF BiosReleaseDate;
  1631. EFI_PHYSICAL_ADDRESS BiosStartingAddress;
  1632. EFI_EXP_BASE2_DATA BiosPhysicalDeviceSize;
  1633. EFI_MISC_BIOS_CHARACTERISTICS BiosCharacteristics1;
  1634. EFI_MISC_BIOS_CHARACTERISTICS_EXTENSION
  1635. BiosCharacteristics2;
  1636. ///
  1637. /// Inconsistent with specification here:
  1638. /// In MiscSubclass specification 0.9, this data structure and corrsponding fields are NOT defined.
  1639. /// It's introduced for SmBios 2.6 specification type 0.
  1640. ///
  1641. UINT8 BiosMajorRelease;
  1642. ///
  1643. /// Inconsistent with specification here:
  1644. /// In MiscSubclass specification 0.9, this data structure and corrsponding fields are NOT defined.
  1645. /// It's introduced for SmBios 2.6 specification type 0.
  1646. ///
  1647. UINT8 BiosMinorRelease;
  1648. ///
  1649. /// Inconsistent with specification here:
  1650. /// In MiscSubclass specification 0.9, this data structure and corrsponding fields are NOT defined.
  1651. /// It's introduced for SmBios 2.6 specification type 0.
  1652. ///
  1653. UINT8 BiosEmbeddedFirmwareMajorRelease;
  1654. ///
  1655. /// Inconsistent with specification here:
  1656. /// In MiscSubclass specification 0.9, this data structure and corrsponding fields are NOT defined.
  1657. /// It's introduced for SmBios 2.6 specification type 0.
  1658. ///
  1659. UINT8 BiosEmbeddedFirmwareMinorRelease;
  1660. } EFI_MISC_BIOS_VENDOR_DATA;
  1661. //
  1662. // Misc. System Manufacturer - SMBIOS Type 1
  1663. //
  1664. #define EFI_MISC_SYSTEM_MANUFACTURER_RECORD_NUMBER 0x00000003
  1665. typedef enum {
  1666. EfiSystemWakeupTypeReserved = 0,
  1667. EfiSystemWakeupTypeOther = 1,
  1668. EfiSystemWakeupTypeUnknown = 2,
  1669. EfiSystemWakeupTypeApmTimer = 3,
  1670. EfiSystemWakeupTypeModemRing = 4,
  1671. EfiSystemWakeupTypeLanRemote = 5,
  1672. EfiSystemWakeupTypePowerSwitch = 6,
  1673. EfiSystemWakeupTypePciPme = 7,
  1674. EfiSystemWakeupTypeAcPowerRestored = 8
  1675. } EFI_MISC_SYSTEM_WAKEUP_TYPE;
  1676. typedef struct {
  1677. STRING_REF SystemManufacturer;
  1678. STRING_REF SystemProductName;
  1679. STRING_REF SystemVersion;
  1680. STRING_REF SystemSerialNumber;
  1681. EFI_GUID SystemUuid;
  1682. EFI_MISC_SYSTEM_WAKEUP_TYPE SystemWakeupType;
  1683. ///
  1684. /// Inconsistent with specification here:
  1685. /// In MiscSubclass specification 0.9, this data structure and corrsponding fields are NOT defined.
  1686. /// It's introduced for SmBios 2.6 specification type 1.
  1687. ///
  1688. STRING_REF SystemSKUNumber;
  1689. ///
  1690. /// Inconsistent with specification here:
  1691. /// In MiscSubclass specification 0.9, this data structure and corrsponding fields are NOT defined.
  1692. /// It's introduced for SmBios 2.6 specification type 1.
  1693. ///
  1694. STRING_REF SystemFamily;
  1695. } EFI_MISC_SYSTEM_MANUFACTURER_DATA;
  1696. //
  1697. // Misc. Base Board Manufacturer - SMBIOS Type 2
  1698. //
  1699. #define EFI_MISC_BASE_BOARD_MANUFACTURER_RECORD_NUMBER 0x00000004
  1700. typedef struct {
  1701. UINT32 Motherboard :1;
  1702. UINT32 RequiresDaughterCard :1;
  1703. UINT32 Removable :1;
  1704. UINT32 Replaceable :1;
  1705. UINT32 HotSwappable :1;
  1706. UINT32 Reserved :27;
  1707. } EFI_BASE_BOARD_FEATURE_FLAGS;
  1708. typedef enum {
  1709. EfiBaseBoardTypeUnknown = 1,
  1710. EfiBaseBoardTypeOther = 2,
  1711. EfiBaseBoardTypeServerBlade = 3,
  1712. EfiBaseBoardTypeConnectivitySwitch = 4,
  1713. EfiBaseBoardTypeSystemManagementModule = 5,
  1714. EfiBaseBoardTypeProcessorModule = 6,
  1715. EfiBaseBoardTypeIOModule = 7,
  1716. EfiBaseBoardTypeMemoryModule = 8,
  1717. EfiBaseBoardTypeDaughterBoard = 9,
  1718. EfiBaseBoardTypeMotherBoard = 0xA,
  1719. EfiBaseBoardTypeProcessorMemoryModule = 0xB,
  1720. EfiBaseBoardTypeProcessorIOModule = 0xC,
  1721. EfiBaseBoardTypeInterconnectBoard = 0xD
  1722. } EFI_BASE_BOARD_TYPE;
  1723. typedef struct {
  1724. STRING_REF BaseBoardManufacturer;
  1725. STRING_REF BaseBoardProductName;
  1726. STRING_REF BaseBoardVersion;
  1727. STRING_REF BaseBoardSerialNumber;
  1728. STRING_REF BaseBoardAssetTag;
  1729. STRING_REF BaseBoardChassisLocation;
  1730. EFI_BASE_BOARD_FEATURE_FLAGS BaseBoardFeatureFlags;
  1731. EFI_BASE_BOARD_TYPE BaseBoardType;
  1732. EFI_INTER_LINK_DATA BaseBoardChassisLink;
  1733. UINT32 BaseBoardNumberLinks;
  1734. EFI_INTER_LINK_DATA LinkN;
  1735. } EFI_MISC_BASE_BOARD_MANUFACTURER_DATA;
  1736. //
  1737. // Misc. System/Chassis Enclosure - SMBIOS Type 3
  1738. //
  1739. #define EFI_MISC_CHASSIS_MANUFACTURER_RECORD_NUMBER 0x00000005
  1740. typedef enum {
  1741. EfiMiscChassisTypeOther = 0x1,
  1742. EfiMiscChassisTypeUnknown = 0x2,
  1743. EfiMiscChassisTypeDeskTop = 0x3,
  1744. EfiMiscChassisTypeLowProfileDesktop = 0x4,
  1745. EfiMiscChassisTypePizzaBox = 0x5,
  1746. EfiMiscChassisTypeMiniTower = 0x6,
  1747. EfiMiscChassisTypeTower = 0x7,
  1748. EfiMiscChassisTypePortable = 0x8,
  1749. EfiMiscChassisTypeLapTop = 0x9,
  1750. EfiMiscChassisTypeNotebook = 0xA,
  1751. EfiMiscChassisTypeHandHeld = 0xB,
  1752. EfiMiscChassisTypeDockingStation = 0xC,
  1753. EfiMiscChassisTypeAllInOne = 0xD,
  1754. EfiMiscChassisTypeSubNotebook = 0xE,
  1755. EfiMiscChassisTypeSpaceSaving = 0xF,
  1756. EfiMiscChassisTypeLunchBox = 0x10,
  1757. EfiMiscChassisTypeMainServerChassis = 0x11,
  1758. EfiMiscChassisTypeExpansionChassis = 0x12,
  1759. EfiMiscChassisTypeSubChassis = 0x13,
  1760. EfiMiscChassisTypeBusExpansionChassis = 0x14,
  1761. EfiMiscChassisTypePeripheralChassis = 0x15,
  1762. EfiMiscChassisTypeRaidChassis = 0x16,
  1763. EfiMiscChassisTypeRackMountChassis = 0x17,
  1764. EfiMiscChassisTypeSealedCasePc = 0x18,
  1765. EfiMiscChassisMultiSystemChassis = 0x19
  1766. } EFI_MISC_CHASSIS_TYPE;
  1767. typedef struct {
  1768. ///
  1769. /// Inconsistent with specification here:
  1770. /// In MiscSubclass 0.9 specification, it has the incorrect field name "EFI_MISC_CHASSIS_TYPE".
  1771. /// Change it to "ChassisType" to pass build.
  1772. ///
  1773. UINT32 ChassisType :16;
  1774. UINT32 ChassisLockPresent:1;
  1775. UINT32 Reserved :15;
  1776. } EFI_MISC_CHASSIS_STATUS;
  1777. typedef enum {
  1778. EfiChassisStateOther = 0x01,
  1779. EfiChassisStateUnknown = 0x02,
  1780. EfiChassisStateSafe = 0x03,
  1781. EfiChassisStateWarning = 0x04,
  1782. EfiChassisStateCritical = 0x05,
  1783. EfiChassisStateNonRecoverable = 0x06
  1784. } EFI_MISC_CHASSIS_STATE;
  1785. typedef enum {
  1786. EfiChassisSecurityStatusOther = 0x01,
  1787. EfiChassisSecurityStatusUnknown = 0x02,
  1788. EfiChassisSecurityStatusNone = 0x03,
  1789. EfiChassisSecurityStatusExternalInterfaceLockedOut = 0x04,
  1790. EfiChassisSecurityStatusExternalInterfaceLockedEnabled = 0x05
  1791. } EFI_MISC_CHASSIS_SECURITY_STATE;
  1792. typedef struct {
  1793. UINT32 RecordType :1;
  1794. UINT32 Type :7;
  1795. UINT32 Reserved :24;
  1796. } EFI_MISC_ELEMENT_TYPE;
  1797. typedef struct {
  1798. EFI_MISC_ELEMENT_TYPE ChassisElementType;
  1799. EFI_INTER_LINK_DATA ChassisElementStructure;
  1800. EFI_BASE_BOARD_TYPE ChassisBaseBoard;
  1801. UINT32 ChassisElementMinimum;
  1802. UINT32 ChassisElementMaximum;
  1803. } EFI_MISC_ELEMENTS;
  1804. typedef struct {
  1805. STRING_REF ChassisManufacturer;
  1806. STRING_REF ChassisVersion;
  1807. STRING_REF ChassisSerialNumber;
  1808. STRING_REF ChassisAssetTag;
  1809. EFI_MISC_CHASSIS_STATUS ChassisType;
  1810. EFI_MISC_CHASSIS_STATE ChassisBootupState;
  1811. EFI_MISC_CHASSIS_STATE ChassisPowerSupplyState;
  1812. EFI_MISC_CHASSIS_STATE ChassisThermalState;
  1813. EFI_MISC_CHASSIS_SECURITY_STATE ChassisSecurityState;
  1814. UINT32 ChassisOemDefined;
  1815. UINT32 ChassisHeight;
  1816. UINT32 ChassisNumberPowerCords;
  1817. UINT32 ChassisElementCount;
  1818. UINT32 ChassisElementRecordLength;
  1819. EFI_MISC_ELEMENTS ChassisElements;
  1820. } EFI_MISC_CHASSIS_MANUFACTURER_DATA;
  1821. //
  1822. // Misc. Port Connector Information - SMBIOS Type 8
  1823. //
  1824. #define EFI_MISC_PORT_INTERNAL_CONNECTOR_DESIGNATOR_RECORD_NUMBER 0x00000006
  1825. typedef enum {
  1826. EfiPortConnectorTypeNone = 0x00,
  1827. EfiPortConnectorTypeCentronics = 0x01,
  1828. EfiPortConnectorTypeMiniCentronics = 0x02,
  1829. EfiPortConnectorTypeProprietary = 0x03,
  1830. EfiPortConnectorTypeDB25Male = 0x04,
  1831. EfiPortConnectorTypeDB25Female = 0x05,
  1832. EfiPortConnectorTypeDB15Male = 0x06,
  1833. EfiPortConnectorTypeDB15Female = 0x07,
  1834. EfiPortConnectorTypeDB9Male = 0x08,
  1835. EfiPortConnectorTypeDB9Female = 0x09,
  1836. EfiPortConnectorTypeRJ11 = 0x0A,
  1837. EfiPortConnectorTypeRJ45 = 0x0B,
  1838. EfiPortConnectorType50PinMiniScsi = 0x0C,
  1839. EfiPortConnectorTypeMiniDin = 0x0D,
  1840. EfiPortConnectorTypeMicriDin = 0x0E,
  1841. EfiPortConnectorTypePS2 = 0x0F,
  1842. EfiPortConnectorTypeInfrared = 0x10,
  1843. EfiPortConnectorTypeHpHil = 0x11,
  1844. EfiPortConnectorTypeUsb = 0x12,
  1845. EfiPortConnectorTypeSsaScsi = 0x13,
  1846. EfiPortConnectorTypeCircularDin8Male = 0x14,
  1847. EfiPortConnectorTypeCircularDin8Female = 0x15,
  1848. EfiPortConnectorTypeOnboardIde = 0x16,
  1849. EfiPortConnectorTypeOnboardFloppy = 0x17,
  1850. EfiPortConnectorType9PinDualInline = 0x18,
  1851. EfiPortConnectorType25PinDualInline = 0x19,
  1852. EfiPortConnectorType50PinDualInline = 0x1A,
  1853. EfiPortConnectorType68PinDualInline = 0x1B,
  1854. EfiPortConnectorTypeOnboardSoundInput = 0x1C,
  1855. EfiPortConnectorTypeMiniCentronicsType14 = 0x1D,
  1856. EfiPortConnectorTypeMiniCentronicsType26 = 0x1E,
  1857. EfiPortConnectorTypeHeadPhoneMiniJack = 0x1F,
  1858. EfiPortConnectorTypeBNC = 0x20,
  1859. EfiPortConnectorType1394 = 0x21,
  1860. EfiPortConnectorTypePC98 = 0xA0,
  1861. EfiPortConnectorTypePC98Hireso = 0xA1,
  1862. EfiPortConnectorTypePCH98 = 0xA2,
  1863. EfiPortConnectorTypePC98Note = 0xA3,
  1864. EfiPortConnectorTypePC98Full = 0xA4,
  1865. EfiPortConnectorTypeOther = 0xFF
  1866. } EFI_MISC_PORT_CONNECTOR_TYPE;
  1867. typedef enum {
  1868. EfiPortTypeNone = 0x00,
  1869. EfiPortTypeParallelXtAtCompatible = 0x01,
  1870. EfiPortTypeParallelPortPs2 = 0x02,
  1871. EfiPortTypeParallelPortEcp = 0x03,
  1872. EfiPortTypeParallelPortEpp = 0x04,
  1873. EfiPortTypeParallelPortEcpEpp = 0x05,
  1874. EfiPortTypeSerialXtAtCompatible = 0x06,
  1875. EfiPortTypeSerial16450Compatible = 0x07,
  1876. EfiPortTypeSerial16550Compatible = 0x08,
  1877. EfiPortTypeSerial16550ACompatible = 0x09,
  1878. EfiPortTypeScsi = 0x0A,
  1879. EfiPortTypeMidi = 0x0B,
  1880. EfiPortTypeJoyStick = 0x0C,
  1881. EfiPortTypeKeyboard = 0x0D,
  1882. EfiPortTypeMouse = 0x0E,
  1883. EfiPortTypeSsaScsi = 0x0F,
  1884. EfiPortTypeUsb = 0x10,
  1885. EfiPortTypeFireWire = 0x11,
  1886. EfiPortTypePcmciaTypeI = 0x12,
  1887. EfiPortTypePcmciaTypeII = 0x13,
  1888. EfiPortTypePcmciaTypeIII = 0x14,
  1889. EfiPortTypeCardBus = 0x15,
  1890. EfiPortTypeAccessBusPort = 0x16,
  1891. EfiPortTypeScsiII = 0x17,
  1892. EfiPortTypeScsiWide = 0x18,
  1893. EfiPortTypePC98 = 0x19,
  1894. EfiPortTypePC98Hireso = 0x1A,
  1895. EfiPortTypePCH98 = 0x1B,
  1896. EfiPortTypeVideoPort = 0x1C,
  1897. EfiPortTypeAudioPort = 0x1D,
  1898. EfiPortTypeModemPort = 0x1E,
  1899. EfiPortTypeNetworkPort = 0x1F,
  1900. EfiPortType8251Compatible = 0xA0,
  1901. EfiPortType8251FifoCompatible = 0xA1,
  1902. EfiPortTypeOther = 0xFF
  1903. } EFI_MISC_PORT_TYPE;
  1904. typedef struct {
  1905. STRING_REF PortInternalConnectorDesignator;
  1906. STRING_REF PortExternalConnectorDesignator;
  1907. EFI_MISC_PORT_CONNECTOR_TYPE PortInternalConnectorType;
  1908. EFI_MISC_PORT_CONNECTOR_TYPE PortExternalConnectorType;
  1909. EFI_MISC_PORT_TYPE PortType;
  1910. ///
  1911. /// Inconsistent with specification here:
  1912. /// In MiscSubclass specification 0.9, this type of field is defined as EFI_DEVICE_PATH_PROTOCOL,
  1913. /// which causes the implementation some complexity. Keep it unchanged for backward
  1914. /// compatibility.
  1915. ///
  1916. EFI_MISC_PORT_DEVICE_PATH PortPath;
  1917. } EFI_MISC_PORT_INTERNAL_CONNECTOR_DESIGNATOR_DATA;
  1918. //
  1919. // Misc. System Slots - SMBIOS Type 9
  1920. //
  1921. #define EFI_MISC_SYSTEM_SLOT_DESIGNATION_RECORD_NUMBER 0x00000007
  1922. typedef enum {
  1923. EfiSlotTypeOther = 0x01,
  1924. EfiSlotTypeUnknown = 0x02,
  1925. EfiSlotTypeIsa = 0x03,
  1926. EfiSlotTypeMca = 0x04,
  1927. EfiSlotTypeEisa = 0x05,
  1928. EfiSlotTypePci = 0x06,
  1929. EfiSlotTypePcmcia = 0x07,
  1930. EfiSlotTypeVlVesa = 0x08,
  1931. EfiSlotTypeProprietary = 0x09,
  1932. EfiSlotTypeProcessorCardSlot = 0x0A,
  1933. EfiSlotTypeProprietaryMemoryCardSlot = 0x0B,
  1934. EfiSlotTypeIORiserCardSlot = 0x0C,
  1935. EfiSlotTypeNuBus = 0x0D,
  1936. EfiSlotTypePci66MhzCapable = 0x0E,
  1937. EfiSlotTypeAgp = 0x0F,
  1938. ///
  1939. /// Inconsistent with specification here:
  1940. /// In MiscSubclass specification 0.9, its naming should be EfiSlotTypeAgp2X
  1941. /// rather than EfiSlotTypeApg2X.
  1942. ///
  1943. EfiSlotTypeAgp2X = 0x10,
  1944. EfiSlotTypeAgp4X = 0x11,
  1945. EfiSlotTypePciX = 0x12,
  1946. EfiSlotTypeAgp8x = 0x13,
  1947. EfiSlotTypePC98C20 = 0xA0,
  1948. EfiSlotTypePC98C24 = 0xA1,
  1949. EfiSlotTypePC98E = 0xA2,
  1950. EfiSlotTypePC98LocalBus = 0xA3,
  1951. EfiSlotTypePC98Card = 0xA4,
  1952. ///
  1953. /// Inconsistent with specification here:
  1954. /// In MiscSubclass specification 0.9, these fields aren't defined.
  1955. /// They're introduced for SmBios 2.6 specification type 9.
  1956. ///
  1957. EfiSlotTypePciExpress = 0xA5,
  1958. EfiSlotTypePciExpressX1 = 0xA6,
  1959. EfiSlotTypePciExpressX2 = 0xA7,
  1960. EfiSlotTypePciExpressX4 = 0xA8,
  1961. EfiSlotTypePciExpressX8 = 0xA9,
  1962. EfiSlotTypePciExpressX16 = 0xAA
  1963. } EFI_MISC_SLOT_TYPE;
  1964. typedef enum {
  1965. EfiSlotDataBusWidthOther = 0x01,
  1966. EfiSlotDataBusWidthUnknown = 0x02,
  1967. EfiSlotDataBusWidth8Bit = 0x03,
  1968. EfiSlotDataBusWidth16Bit = 0x04,
  1969. EfiSlotDataBusWidth32Bit = 0x05,
  1970. EfiSlotDataBusWidth64Bit = 0x06,
  1971. EfiSlotDataBusWidth128Bit = 0x07,
  1972. ///
  1973. /// Inconsistent with specification here:
  1974. /// In MiscSubclass specification 0.9, these fields aren't defined.
  1975. /// They're introduced for SmBios 2.6 specification type 9.
  1976. ///
  1977. EfiSlotDataBusWidth1xOrx1 = 0x8,
  1978. EfiSlotDataBusWidth2xOrx2 = 0x9,
  1979. EfiSlotDataBusWidth4xOrx4 = 0xA,
  1980. EfiSlotDataBusWidth8xOrx8 = 0xB,
  1981. EfiSlotDataBusWidth12xOrx12 = 0xC,
  1982. EfiSlotDataBusWidth16xOrx16 = 0xD,
  1983. EfiSlotDataBusWidth32xOrx32 = 0xE
  1984. } EFI_MISC_SLOT_DATA_BUS_WIDTH;
  1985. typedef enum {
  1986. EfiSlotUsageOther = 1,
  1987. EfiSlotUsageUnknown = 2,
  1988. EfiSlotUsageAvailable = 3,
  1989. EfiSlotUsageInUse = 4
  1990. } EFI_MISC_SLOT_USAGE;
  1991. typedef enum {
  1992. EfiSlotLengthOther = 1,
  1993. EfiSlotLengthUnknown = 2,
  1994. EfiSlotLengthShort = 3,
  1995. EfiSlotLengthLong = 4
  1996. } EFI_MISC_SLOT_LENGTH;
  1997. typedef struct {
  1998. UINT32 CharacteristicsUnknown :1;
  1999. UINT32 Provides50Volts :1;
  2000. UINT32 Provides33Volts :1;
  2001. UINT32 SharedSlot :1;
  2002. UINT32 PcCard16Supported :1;
  2003. UINT32 CardBusSupported :1;
  2004. UINT32 ZoomVideoSupported :1;
  2005. UINT32 ModemRingResumeSupported:1;
  2006. UINT32 PmeSignalSupported :1;
  2007. UINT32 HotPlugDevicesSupported :1;
  2008. UINT32 SmbusSignalSupported :1;
  2009. UINT32 Reserved :21;
  2010. } EFI_MISC_SLOT_CHARACTERISTICS;
  2011. typedef struct {
  2012. STRING_REF SlotDesignation;
  2013. EFI_MISC_SLOT_TYPE SlotType;
  2014. EFI_MISC_SLOT_DATA_BUS_WIDTH SlotDataBusWidth;
  2015. EFI_MISC_SLOT_USAGE SlotUsage;
  2016. EFI_MISC_SLOT_LENGTH SlotLength;
  2017. UINT16 SlotId;
  2018. EFI_MISC_SLOT_CHARACTERISTICS SlotCharacteristics;
  2019. EFI_DEVICE_PATH_PROTOCOL SlotDevicePath;
  2020. } EFI_MISC_SYSTEM_SLOT_DESIGNATION_DATA;
  2021. //
  2022. // Misc. Onboard Device - SMBIOS Type 10
  2023. //
  2024. #define EFI_MISC_ONBOARD_DEVICE_RECORD_NUMBER 0x00000008
  2025. typedef enum {
  2026. EfiOnBoardDeviceTypeOther = 1,
  2027. EfiOnBoardDeviceTypeUnknown = 2,
  2028. EfiOnBoardDeviceTypeVideo = 3,
  2029. EfiOnBoardDeviceTypeScsiController = 4,
  2030. EfiOnBoardDeviceTypeEthernet = 5,
  2031. EfiOnBoardDeviceTypeTokenRing = 6,
  2032. EfiOnBoardDeviceTypeSound = 7
  2033. } EFI_MISC_ONBOARD_DEVICE_TYPE;
  2034. typedef struct {
  2035. UINT32 DeviceType :16;
  2036. UINT32 DeviceEnabled :1;
  2037. UINT32 Reserved :15;
  2038. } EFI_MISC_ONBOARD_DEVICE_STATUS;
  2039. typedef struct {
  2040. STRING_REF OnBoardDeviceDescription;
  2041. ///
  2042. /// Inconsistent with specification here:
  2043. /// In MiscSubclass specification 0.9, the name is OnBoardDeviceType.
  2044. /// Keep it unchanged for backward compatibilty.
  2045. ///
  2046. EFI_MISC_ONBOARD_DEVICE_STATUS OnBoardDeviceStatus;
  2047. EFI_DEVICE_PATH_PROTOCOL OnBoardDevicePath;
  2048. } EFI_MISC_ONBOARD_DEVICE_DATA;
  2049. //
  2050. // Misc. BIOS Language Information - SMBIOS Type 11
  2051. //
  2052. #define EFI_MISC_OEM_STRING_RECORD_NUMBER 0x00000009
  2053. typedef struct {
  2054. STRING_REF OemStringRef[1];
  2055. } EFI_MISC_OEM_STRING_DATA;
  2056. //
  2057. // Misc. System Options - SMBIOS Type 12
  2058. //
  2059. typedef struct {
  2060. STRING_REF SystemOptionStringRef[1];
  2061. } EFI_MISC_SYSTEM_OPTION_STRING_DATA;
  2062. #define EFI_MISC_SYSTEM_OPTION_STRING_RECORD_NUMBER 0x0000000A
  2063. //
  2064. // Misc. Number of Installable Languages - SMBIOS Type 13
  2065. //
  2066. #define EFI_MISC_NUMBER_OF_INSTALLABLE_LANGUAGES_RECORD_NUMBER 0x0000000B
  2067. typedef struct {
  2068. UINT32 AbbreviatedLanguageFormat :1;
  2069. UINT32 Reserved :31;
  2070. } EFI_MISC_LANGUAGE_FLAGS;
  2071. typedef struct {
  2072. UINT16 NumberOfInstallableLanguages;
  2073. EFI_MISC_LANGUAGE_FLAGS LanguageFlags;
  2074. UINT16 CurrentLanguageNumber;
  2075. } EFI_MISC_NUMBER_OF_INSTALLABLE_LANGUAGES_DATA;
  2076. //
  2077. // Misc. System Language String
  2078. //
  2079. #define EFI_MISC_SYSTEM_LANGUAGE_STRING_RECORD_NUMBER 0x0000000C
  2080. typedef struct {
  2081. UINT16 LanguageId;
  2082. STRING_REF SystemLanguageString;
  2083. } EFI_MISC_SYSTEM_LANGUAGE_STRING_DATA;
  2084. //
  2085. // Group Associations - SMBIOS Type 14
  2086. //
  2087. #define EFI_MISC_GROUP_NAME_RECORD_NUMBER 0x0000000D
  2088. typedef struct {
  2089. STRING_REF GroupName;
  2090. UINT16 NumberGroupItems;
  2091. UINT16 GroupId;
  2092. } EFI_MISC_GROUP_NAME_DATA;
  2093. //
  2094. // Group Item Set Element
  2095. //
  2096. #define EFI_MISC_GROUP_ITEM_SET_RECORD_NUMBER 0x0000000E
  2097. typedef struct {
  2098. EFI_GUID SubClass;
  2099. EFI_INTER_LINK_DATA GroupLink;
  2100. UINT16 GroupId;
  2101. UINT16 GroupElementId;
  2102. } EFI_MISC_GROUP_ITEM_SET_DATA;
  2103. //
  2104. // Misc. Pointing Device Type - SMBIOS Type 21
  2105. //
  2106. #define EFI_MISC_POINTING_DEVICE_TYPE_RECORD_NUMBER 0x0000000F
  2107. typedef enum {
  2108. EfiPointingDeviceTypeOther = 0x01,
  2109. EfiPointingDeviceTypeUnknown = 0x02,
  2110. EfiPointingDeviceTypeMouse = 0x03,
  2111. EfiPointingDeviceTypeTrackBall = 0x04,
  2112. EfiPointingDeviceTypeTrackPoint = 0x05,
  2113. EfiPointingDeviceTypeGlidePoint = 0x06,
  2114. EfiPointingDeviceTouchPad = 0x07,
  2115. EfiPointingDeviceTouchScreen = 0x08,
  2116. EfiPointingDeviceOpticalSensor = 0x09
  2117. } EFI_MISC_POINTING_DEVICE_TYPE;
  2118. typedef enum {
  2119. EfiPointingDeviceInterfaceOther = 0x01,
  2120. EfiPointingDeviceInterfaceUnknown = 0x02,
  2121. EfiPointingDeviceInterfaceSerial = 0x03,
  2122. EfiPointingDeviceInterfacePs2 = 0x04,
  2123. EfiPointingDeviceInterfaceInfrared = 0x05,
  2124. EfiPointingDeviceInterfaceHpHil = 0x06,
  2125. EfiPointingDeviceInterfaceBusMouse = 0x07,
  2126. EfiPointingDeviceInterfaceADB = 0x08,
  2127. EfiPointingDeviceInterfaceBusMouseDB9 = 0xA0,
  2128. EfiPointingDeviceInterfaceBusMouseMicroDin = 0xA1,
  2129. EfiPointingDeviceInterfaceUsb = 0xA2
  2130. } EFI_MISC_POINTING_DEVICE_INTERFACE;
  2131. typedef struct {
  2132. EFI_MISC_POINTING_DEVICE_TYPE PointingDeviceType;
  2133. EFI_MISC_POINTING_DEVICE_INTERFACE PointingDeviceInterface;
  2134. UINT16 NumberPointingDeviceButtons;
  2135. EFI_DEVICE_PATH_PROTOCOL PointingDevicePath;
  2136. } EFI_MISC_POINTING_DEVICE_TYPE_DATA;
  2137. //
  2138. // Portable Battery - SMBIOS Type 22
  2139. //
  2140. ///
  2141. /// Inconsistent with specification here:
  2142. /// In MiscSubclass specification 0.9, the name is EFI_MISC_BATTERY_LOCATION_RECORD_NUMBER.
  2143. /// Keep it unchanged for backward compatibilty.
  2144. ///
  2145. #define EFI_MISC_PORTABLE_BATTERY_RECORD_NUMBER 0x00000010
  2146. ///
  2147. /// Inconsistent with specification here:
  2148. /// In MiscSubclass specification 0.9, the structure name is EFI_MISC_BATTERY_DEVICE_CHEMISTRY.
  2149. /// And all field namings are also different with specification.
  2150. /// Keep it unchanged for backward compatibilty.
  2151. ///
  2152. typedef enum {
  2153. EfiPortableBatteryDeviceChemistryOther = 1,
  2154. EfiPortableBatteryDeviceChemistryUnknown = 2,
  2155. EfiPortableBatteryDeviceChemistryLeadAcid = 3,
  2156. EfiPortableBatteryDeviceChemistryNickelCadmium = 4,
  2157. EfiPortableBatteryDeviceChemistryNickelMetalHydride = 5,
  2158. EfiPortableBatteryDeviceChemistryLithiumIon = 6,
  2159. EfiPortableBatteryDeviceChemistryZincAir = 7,
  2160. EfiPortableBatteryDeviceChemistryLithiumPolymer = 8
  2161. } EFI_MISC_PORTABLE_BATTERY_DEVICE_CHEMISTRY;
  2162. ///
  2163. /// Inconsistent with specification here:
  2164. /// In MiscSubclass specification 0.9, the structure name is EFI_MISC_BATTERY_LOCATION_DATA.
  2165. /// Also, the name and the order of the fields vary with specifications.
  2166. /// Keep it unchanged for backward compatibilty.
  2167. ///
  2168. typedef struct {
  2169. STRING_REF Location;
  2170. STRING_REF Manufacturer;
  2171. STRING_REF ManufactureDate;
  2172. STRING_REF SerialNumber;
  2173. STRING_REF DeviceName;
  2174. EFI_MISC_PORTABLE_BATTERY_DEVICE_CHEMISTRY
  2175. DeviceChemistry;
  2176. UINT16 DesignCapacity;
  2177. UINT16 DesignVoltage;
  2178. STRING_REF SBDSVersionNumber;
  2179. UINT8 MaximumError;
  2180. UINT16 SBDSSerialNumber;
  2181. UINT16 SBDSManufactureDate;
  2182. STRING_REF SBDSDeviceChemistry;
  2183. UINT8 DesignCapacityMultiplier;
  2184. UINT32 OEMSpecific;
  2185. UINT8 BatteryNumber; // Temporary
  2186. BOOLEAN Valid; // Is entry valid - Temporary
  2187. } EFI_MISC_PORTABLE_BATTERY;
  2188. //
  2189. // Misc. Reset Capabilities - SMBIOS Type 23
  2190. //
  2191. #define EFI_MISC_RESET_CAPABILITIES_RECORD_NUMBER 0x00000011
  2192. typedef struct {
  2193. UINT32 Status :1;
  2194. UINT32 BootOption :2;
  2195. UINT32 BootOptionOnLimit :2;
  2196. UINT32 WatchdogTimerPresent:1;
  2197. UINT32 Reserved :26;
  2198. } EFI_MISC_RESET_CAPABILITIES_TYPE;
  2199. typedef struct {
  2200. EFI_MISC_RESET_CAPABILITIES_TYPE ResetCapabilities;
  2201. UINT16 ResetCount;
  2202. UINT16 ResetLimit;
  2203. UINT16 ResetTimerInterval;
  2204. UINT16 ResetTimeout;
  2205. } EFI_MISC_RESET_CAPABILITIES;
  2206. typedef struct {
  2207. EFI_MISC_RESET_CAPABILITIES ResetCapabilities;
  2208. UINT16 ResetCount;
  2209. UINT16 ResetLimit;
  2210. UINT16 ResetTimerInterval;
  2211. UINT16 ResetTimeout;
  2212. } EFI_MISC_RESET_CAPABILITIES_DATA;
  2213. //
  2214. // Misc. Hardware Security - SMBIOS Type 24
  2215. //
  2216. #define EFI_MISC_HARDWARE_SECURITY_SETTINGS_DATA_RECORD_NUMBER 0x00000012
  2217. ///
  2218. /// Inconsistent with specification here:
  2219. /// The MiscSubclass specification 0.9 only mentions the possible value of each field in
  2220. /// EFI_MISC_HARDWARE_SECURITY_SETTINGS.
  2221. /// It's implementation-specific in order to to simplify the code logic.
  2222. ///
  2223. typedef enum {
  2224. EfiHardwareSecurityStatusDisabled = 0,
  2225. EfiHardwareSecurityStatusEnabled = 1,
  2226. EfiHardwareSecurityStatusNotImplemented = 2,
  2227. EfiHardwareSecurityStatusUnknown = 3
  2228. } EFI_MISC_HARDWARE_SECURITY_STATUS;
  2229. typedef struct {
  2230. UINT32 FrontPanelResetStatus :2;
  2231. UINT32 AdministratorPasswordStatus :2;
  2232. UINT32 KeyboardPasswordStatus :2;
  2233. UINT32 PowerOnPasswordStatus :2;
  2234. UINT32 Reserved :24;
  2235. } EFI_MISC_HARDWARE_SECURITY_SETTINGS;
  2236. typedef struct {
  2237. EFI_MISC_HARDWARE_SECURITY_SETTINGS HardwareSecuritySettings;
  2238. } EFI_MISC_HARDWARE_SECURITY_SETTINGS_DATA;
  2239. //
  2240. // System Power Controls - SMBIOS Type 25
  2241. //
  2242. #define EFI_MISC_SCHEDULED_POWER_ON_MONTH_RECORD_NUMBER 0x00000013
  2243. typedef struct {
  2244. UINT16 ScheduledPoweronMonth;
  2245. UINT16 ScheduledPoweronDayOfMonth;
  2246. UINT16 ScheduledPoweronHour;
  2247. UINT16 ScheduledPoweronMinute;
  2248. UINT16 ScheduledPoweronSecond;
  2249. } EFI_MISC_SCHEDULED_POWER_ON_MONTH_DATA;
  2250. //
  2251. // Voltage Probe - SMBIOS Type 26
  2252. //
  2253. #define EFI_MISC_VOLTAGE_PROBE_DESCRIPTION_RECORD_NUMBER 0x00000014
  2254. typedef struct {
  2255. UINT32 VoltageProbeSite :5;
  2256. UINT32 VoltageProbeStatus :3;
  2257. UINT32 Reserved :24;
  2258. } EFI_MISC_VOLTAGE_PROBE_LOCATION;
  2259. typedef struct {
  2260. STRING_REF VoltageProbeDescription;
  2261. EFI_MISC_VOLTAGE_PROBE_LOCATION VoltageProbeLocation;
  2262. EFI_EXP_BASE10_DATA VoltageProbeMaximumValue;
  2263. EFI_EXP_BASE10_DATA VoltageProbeMinimumValue;
  2264. EFI_EXP_BASE10_DATA VoltageProbeResolution;
  2265. EFI_EXP_BASE10_DATA VoltageProbeTolerance;
  2266. EFI_EXP_BASE10_DATA VoltageProbeAccuracy;
  2267. EFI_EXP_BASE10_DATA VoltageProbeNominalValue;
  2268. EFI_EXP_BASE10_DATA MDLowerNoncriticalThreshold;
  2269. EFI_EXP_BASE10_DATA MDUpperNoncriticalThreshold;
  2270. EFI_EXP_BASE10_DATA MDLowerCriticalThreshold;
  2271. EFI_EXP_BASE10_DATA MDUpperCriticalThreshold;
  2272. EFI_EXP_BASE10_DATA MDLowerNonrecoverableThreshold;
  2273. EFI_EXP_BASE10_DATA MDUpperNonrecoverableThreshold;
  2274. UINT32 VoltageProbeOemDefined;
  2275. } EFI_MISC_VOLTAGE_PROBE_DESCRIPTION_DATA;
  2276. //
  2277. // Cooling Device - SMBIOS Type 27
  2278. //
  2279. #define EFI_MISC_COOLING_DEVICE_TEMP_LINK_RECORD_NUMBER 0x00000015
  2280. typedef struct {
  2281. UINT32 CoolingDevice :5;
  2282. UINT32 CoolingDeviceStatus :3;
  2283. UINT32 Reserved :24;
  2284. } EFI_MISC_COOLING_DEVICE_TYPE;
  2285. typedef struct {
  2286. EFI_MISC_COOLING_DEVICE_TYPE CoolingDeviceType;
  2287. EFI_INTER_LINK_DATA CoolingDeviceTemperatureLink;
  2288. UINT8 CoolingDeviceUnitGroup;
  2289. UINT16 CoolingDeviceNominalSpeed;
  2290. UINT32 CoolingDeviceOemDefined;
  2291. } EFI_MISC_COOLING_DEVICE_TEMP_LINK_DATA;
  2292. //
  2293. // Temperature Probe - SMBIOS Type 28
  2294. //
  2295. #define EFI_MISC_TEMPERATURE_PROBE_DESCRIPTION_RECORD_NUMBER 0x00000016
  2296. typedef struct {
  2297. UINT32 TemperatureProbeSite :5;
  2298. UINT32 TemperatureProbeStatus :3;
  2299. UINT32 Reserved :24;
  2300. } EFI_MISC_TEMPERATURE_PROBE_LOCATION;
  2301. typedef struct {
  2302. STRING_REF TemperatureProbeDescription;
  2303. EFI_MISC_TEMPERATURE_PROBE_LOCATION
  2304. TemperatureProbeLocation;
  2305. ///
  2306. /// Inconsistent with specification here:
  2307. /// MiscSubclass 0.9 specification defines the fields type as EFI_EXP_BASE10_DATA.
  2308. /// In fact, they should be UINT16 type because they refer to 16bit width data.
  2309. /// Keeping this inconsistency for backward compatibility.
  2310. ///
  2311. UINT16 TemperatureProbeMaximumValue;
  2312. UINT16 TemperatureProbeMinimumValue;
  2313. UINT16 TemperatureProbeResolution;
  2314. UINT16 TemperatureProbeTolerance;
  2315. UINT16 TemperatureProbeAccuracy;
  2316. UINT16 TemperatureProbeNominalValue;
  2317. UINT16 MDLowerNoncriticalThreshold;
  2318. UINT16 MDUpperNoncriticalThreshold;
  2319. UINT16 MDLowerCriticalThreshold;
  2320. UINT16 MDUpperCriticalThreshold;
  2321. UINT16 MDLowerNonrecoverableThreshold;
  2322. UINT16 MDUpperNonrecoverableThreshold;
  2323. UINT32 TemperatureProbeOemDefined;
  2324. } EFI_MISC_TEMPERATURE_PROBE_DESCRIPTION_DATA;
  2325. //
  2326. // Electrical Current Probe - SMBIOS Type 29
  2327. //
  2328. #define EFI_MISC_ELECTRICAL_CURRENT_PROBE_DESCRIPTION_RECORD_NUMBER 0x00000017
  2329. typedef struct {
  2330. UINT32 ElectricalCurrentProbeSite :5;
  2331. UINT32 ElectricalCurrentProbeStatus :3;
  2332. UINT32 Reserved :24;
  2333. } EFI_MISC_ELECTRICAL_CURRENT_PROBE_LOCATION;
  2334. typedef struct {
  2335. STRING_REF ElectricalCurrentProbeDescription;
  2336. EFI_MISC_ELECTRICAL_CURRENT_PROBE_LOCATION
  2337. ElectricalCurrentProbeLocation;
  2338. EFI_EXP_BASE10_DATA ElectricalCurrentProbeMaximumValue;
  2339. EFI_EXP_BASE10_DATA ElectricalCurrentProbeMinimumValue;
  2340. EFI_EXP_BASE10_DATA ElectricalCurrentProbeResolution;
  2341. EFI_EXP_BASE10_DATA ElectricalCurrentProbeTolerance;
  2342. EFI_EXP_BASE10_DATA ElectricalCurrentProbeAccuracy;
  2343. EFI_EXP_BASE10_DATA ElectricalCurrentProbeNominalValue;
  2344. EFI_EXP_BASE10_DATA MDLowerNoncriticalThreshold;
  2345. EFI_EXP_BASE10_DATA MDUpperNoncriticalThreshold;
  2346. EFI_EXP_BASE10_DATA MDLowerCriticalThreshold;
  2347. EFI_EXP_BASE10_DATA MDUpperCriticalThreshold;
  2348. EFI_EXP_BASE10_DATA MDLowerNonrecoverableThreshold;
  2349. EFI_EXP_BASE10_DATA MDUpperNonrecoverableThreshold;
  2350. UINT32 ElectricalCurrentProbeOemDefined;
  2351. } EFI_MISC_ELECTRICAL_CURRENT_PROBE_DESCRIPTION_DATA;
  2352. //
  2353. // Out-of-Band Remote Access - SMBIOS Type 30
  2354. //
  2355. #define EFI_MISC_REMOTE_ACCESS_MANUFACTURER_DESCRIPTION_RECORD_NUMBER 0x00000018
  2356. typedef struct {
  2357. UINT32 InboundConnectionEnabled :1;
  2358. UINT32 OutboundConnectionEnabled :1;
  2359. UINT32 Reserved :30;
  2360. } EFI_MISC_REMOTE_ACCESS_CONNECTIONS;
  2361. typedef struct {
  2362. STRING_REF RemoteAccessManufacturerNameDescription;
  2363. EFI_MISC_REMOTE_ACCESS_CONNECTIONS RemoteAccessConnections;
  2364. } EFI_MISC_REMOTE_ACCESS_MANUFACTURER_DESCRIPTION_DATA;
  2365. //
  2366. // Misc. BIS Entry Point - SMBIOS Type 31
  2367. //
  2368. #define EFI_MISC_BIS_ENTRY_POINT_RECORD_NUMBER 0x00000019
  2369. typedef struct {
  2370. EFI_PHYSICAL_ADDRESS BisEntryPoint;
  2371. } EFI_MISC_BIS_ENTRY_POINT_DATA;
  2372. //
  2373. // Misc. Boot Information - SMBIOS Type 32
  2374. //
  2375. #define EFI_MISC_BOOT_INFORMATION_STATUS_RECORD_NUMBER 0x0000001A
  2376. ///
  2377. /// Inconsistent with specification here:
  2378. /// In MiscSubclass specification 0.9, the structure name is EFI_MISC_BOOT_INFORMATION_STATUS_TYPE.
  2379. /// Keep it unchanged for backward compatibilty.
  2380. ///
  2381. typedef enum {
  2382. EfiBootInformationStatusNoError = 0x00,
  2383. EfiBootInformationStatusNoBootableMedia = 0x01,
  2384. EfiBootInformationStatusNormalOSFailedLoading = 0x02,
  2385. EfiBootInformationStatusFirmwareDetectedFailure = 0x03,
  2386. EfiBootInformationStatusOSDetectedFailure = 0x04,
  2387. EfiBootInformationStatusUserRequestedBoot = 0x05,
  2388. EfiBootInformationStatusSystemSecurityViolation = 0x06,
  2389. EfiBootInformationStatusPreviousRequestedImage = 0x07,
  2390. EfiBootInformationStatusWatchdogTimerExpired = 0x08,
  2391. EfiBootInformationStatusStartReserved = 0x09,
  2392. EfiBootInformationStatusStartOemSpecific = 0x80,
  2393. EfiBootInformationStatusStartProductSpecific = 0xC0
  2394. } EFI_MISC_BOOT_INFORMATION_STATUS_DATA_TYPE;
  2395. typedef struct {
  2396. ///
  2397. /// Inconsistent with specification here:
  2398. /// In MiscSubclass specification 0.9, the field name is EFI_MISC_BOOT_INFORMATION_STATUS_TYPE.
  2399. /// Keep it unchanged for backward compatibilty.
  2400. ///
  2401. EFI_MISC_BOOT_INFORMATION_STATUS_DATA_TYPE BootInformationStatus;
  2402. UINT8 BootInformationData[9];
  2403. } EFI_MISC_BOOT_INFORMATION_STATUS_DATA;
  2404. //
  2405. // Management Device - SMBIOS Type 34
  2406. //
  2407. #define EFI_MISC_MANAGEMENT_DEVICE_DESCRIPTION_RECORD_NUMBER 0x0000001B
  2408. typedef enum {
  2409. EfiManagementDeviceTypeOther = 0x01,
  2410. EfiManagementDeviceTypeUnknown = 0x02,
  2411. EfiManagementDeviceTypeLm75 = 0x03,
  2412. EfiManagementDeviceTypeLm78 = 0x04,
  2413. EfiManagementDeviceTypeLm79 = 0x05,
  2414. EfiManagementDeviceTypeLm80 = 0x06,
  2415. EfiManagementDeviceTypeLm81 = 0x07,
  2416. EfiManagementDeviceTypeAdm9240 = 0x08,
  2417. EfiManagementDeviceTypeDs1780 = 0x09,
  2418. EfiManagementDeviceTypeMaxim1617 = 0x0A,
  2419. EfiManagementDeviceTypeGl518Sm = 0x0B,
  2420. EfiManagementDeviceTypeW83781D = 0x0C,
  2421. EfiManagementDeviceTypeHt82H791 = 0x0D
  2422. } EFI_MISC_MANAGEMENT_DEVICE_TYPE;
  2423. typedef enum {
  2424. EfiManagementDeviceAddressTypeOther = 1,
  2425. EfiManagementDeviceAddressTypeUnknown = 2,
  2426. EfiManagementDeviceAddressTypeIOPort = 3,
  2427. EfiManagementDeviceAddressTypeMemory = 4,
  2428. EfiManagementDeviceAddressTypeSmbus = 5
  2429. } EFI_MISC_MANAGEMENT_DEVICE_ADDRESS_TYPE;
  2430. typedef struct {
  2431. STRING_REF ManagementDeviceDescription;
  2432. EFI_MISC_MANAGEMENT_DEVICE_TYPE ManagementDeviceType;
  2433. UINTN ManagementDeviceAddress;
  2434. EFI_MISC_MANAGEMENT_DEVICE_ADDRESS_TYPE
  2435. ManagementDeviceAddressType;
  2436. } EFI_MISC_MANAGEMENT_DEVICE_DESCRIPTION_DATA;
  2437. //
  2438. // Management Device Component - SMBIOS Type 35
  2439. //
  2440. #define EFI_MISC_MANAGEMENT_DEVICE_COMPONENT_DESCRIPTION_RECORD_NUMBER 0x0000001C
  2441. typedef struct {
  2442. STRING_REF ManagementDeviceComponentDescription;
  2443. EFI_INTER_LINK_DATA ManagementDeviceLink;
  2444. EFI_INTER_LINK_DATA ManagementDeviceComponentLink;
  2445. ///
  2446. /// Inconsistent with specification here:
  2447. /// In MiscSubclass specification 0.9, this field is NOT defined.
  2448. /// It's introduced for SmBios 2.6 specification type 35.
  2449. ///
  2450. EFI_INTER_LINK_DATA ManagementDeviceThresholdLink;
  2451. ///
  2452. /// Inconsistent with specification here:
  2453. /// In MiscSubclass specification 0.9, this field is NOT defined.
  2454. /// It's implementation-specific to simplify the code logic.
  2455. ///
  2456. UINT8 ComponentType;
  2457. } EFI_MISC_MANAGEMENT_DEVICE_COMPONENT_DESCRIPTION_DATA;
  2458. //
  2459. // IPMI Data Record - SMBIOS Type 38
  2460. //
  2461. typedef enum {
  2462. EfiIpmiOther = 0,
  2463. EfiIpmiKcs = 1,
  2464. EfiIpmiSmic = 2,
  2465. EfiIpmiBt = 3
  2466. } EFI_MISC_IPMI_INTERFACE_TYPE;
  2467. typedef struct {
  2468. UINT16 IpmiSpecLeastSignificantDigit:4;
  2469. UINT16 IpmiSpecMostSignificantDigit: 4;
  2470. UINT16 Reserved: 8;
  2471. } EFI_MISC_IPMI_SPECIFICATION_REVISION;
  2472. typedef struct {
  2473. EFI_MISC_IPMI_INTERFACE_TYPE IpmiInterfaceType;
  2474. EFI_MISC_IPMI_SPECIFICATION_REVISION
  2475. IpmiSpecificationRevision;
  2476. UINT16 IpmiI2CSlaveAddress;
  2477. UINT16 IpmiNvDeviceAddress;
  2478. UINT64 IpmiBaseAddress;
  2479. EFI_DEVICE_PATH_PROTOCOL IpmiDevicePath;
  2480. } EFI_MISC_IPMI_INTERFACE_TYPE_DATA;
  2481. #define EFI_MISC_IPMI_INTERFACE_TYPE_RECORD_NUMBER 0x0000001D
  2482. ///
  2483. /// The definition above is *NOT* defined in MiscSubclass specifications 0.9.
  2484. /// It's defined for backward compatibility.
  2485. ///
  2486. #define EFI_MISC_IPMI_INTERFACE_TYPE_DATA_RECORD_NUMBER EFI_MISC_IPMI_INTERFACE_TYPE_RECORD_NUMBER
  2487. ///
  2488. /// System Power supply Record - SMBIOS Type 39
  2489. ///
  2490. /// Inconsistent with specification here:
  2491. /// In MiscSubclass specification 0.9, the type of all fields are UINT32.
  2492. /// Keep it unchanged for backward compatibilty.
  2493. ///
  2494. typedef struct {
  2495. UINT16 PowerSupplyHotReplaceable:1;
  2496. UINT16 PowerSupplyPresent :1;
  2497. UINT16 PowerSupplyUnplugged :1;
  2498. UINT16 InputVoltageRangeSwitch :4;
  2499. UINT16 PowerSupplyStatus :3;
  2500. UINT16 PowerSupplyType :4;
  2501. UINT16 Reserved :2;
  2502. } EFI_MISC_POWER_SUPPLY_CHARACTERISTICS;
  2503. ///
  2504. /// Inconsistent with specification here:
  2505. /// In MiscSubclass specification 0.9, the structure name is EFI_MISC_POWER_SUPPLY_UNIT_GROUP_DATA.
  2506. /// Keep it unchanged for backward compatibilty.
  2507. ///
  2508. typedef struct {
  2509. UINT16 PowerUnitGroup;
  2510. STRING_REF PowerSupplyLocation;
  2511. STRING_REF PowerSupplyDeviceName;
  2512. STRING_REF PowerSupplyManufacturer;
  2513. STRING_REF PowerSupplySerialNumber;
  2514. STRING_REF PowerSupplyAssetTagNumber;
  2515. STRING_REF PowerSupplyModelPartNumber;
  2516. STRING_REF PowerSupplyRevisionLevel;
  2517. UINT16 PowerSupplyMaxPowerCapacity;
  2518. EFI_MISC_POWER_SUPPLY_CHARACTERISTICS PowerSupplyCharacteristics;
  2519. EFI_INTER_LINK_DATA PowerSupplyInputVoltageProbeLink;
  2520. EFI_INTER_LINK_DATA PowerSupplyCoolingDeviceLink;
  2521. EFI_INTER_LINK_DATA PowerSupplyInputCurrentProbeLink;
  2522. } EFI_MISC_SYSTEM_POWER_SUPPLY_DATA;
  2523. #define EFI_MISC_SYSTEM_POWER_SUPPLY_RECORD_NUMBER 0x0000001E
  2524. ///
  2525. /// OEM Data Record - SMBIOS Type 0x80-0xFF
  2526. ///
  2527. /// Inconsistent with specification here:
  2528. /// In MiscSubclass specification 0.9, the structure name is EFI_SMBIOS_STRUCTURE_HDR.
  2529. /// Due to this, the structure is commonly used by vendors to construct SmBios type 0x80~0xFF table,
  2530. /// Keep it unchanged for backward compatibilty.
  2531. ///
  2532. typedef struct {
  2533. UINT8 Type;
  2534. UINT8 Length;
  2535. UINT16 Handle;
  2536. } SMBIOS_STRUCTURE_HDR;
  2537. typedef struct {
  2538. ///
  2539. /// Inconsistent with specification here:
  2540. /// In MiscSubclass specification 0.9, the field name is EFI_SMBIOS_STRUCTURE_HDR.
  2541. /// Keep it unchanged for backward compatibilty.
  2542. ///
  2543. SMBIOS_STRUCTURE_HDR Header;
  2544. UINT8 RawData[1];
  2545. } EFI_MISC_SMBIOS_STRUCT_ENCAPSULATION_DATA;
  2546. #define EFI_MISC_SMBIOS_STRUCT_ENCAP_RECORD_NUMBER 0x0000001F
  2547. ///
  2548. /// Misc. System Event Log - SMBIOS Type 15
  2549. ///
  2550. /// Inconsistent with specification here:
  2551. /// In MiscSubclass specification 0.9, the following data structures are NOT defined.
  2552. /// It's introduced for SmBios 2.6 specification type 15.
  2553. ///
  2554. #define EFI_MISC_SYSTEM_EVENT_LOG_RECORD_NUMBER 0x00000020
  2555. ///
  2556. /// Inconsistent with specification here:
  2557. /// In MiscSubclass specification 0.9, the following data structures are NOT defined.
  2558. /// It's introduced for SmBios 2.6 specification type 15.
  2559. ///
  2560. typedef struct {
  2561. UINT16 LogAreaLength;
  2562. UINT16 LogHeaderStartOffset;
  2563. UINT16 LogDataStartOffset;
  2564. UINT8 AccessMethod;
  2565. UINT8 LogStatus;
  2566. UINT32 LogChangeToken;
  2567. UINT32 AccessMethodAddress;
  2568. UINT8 LogHeaderFormat;
  2569. UINT8 NumberOfSupportedLogType;
  2570. UINT8 LengthOfLogDescriptor;
  2571. } EFI_MISC_SYSTEM_EVENT_LOG_DATA;
  2572. //
  2573. // Access Method.
  2574. // 0x00~0x04: as following definition
  2575. // 0x05~0x7f: Available for future assignment.
  2576. // 0x80~0xff: BIOS Vendor/OEM-specific.
  2577. //
  2578. #define ACCESS_INDEXIO_1INDEX8BIT_DATA8BIT 0x00
  2579. #define ACCESS_INDEXIO_2INDEX8BIT_DATA8BIT 0X01
  2580. #define ACCESS_INDEXIO_1INDEX16BIT_DATA8BIT 0X02
  2581. #define ACCESS_MEMORY_MAPPED 0x03
  2582. #define ACCESS_GPNV 0x04
  2583. ///
  2584. /// Management Device Threshold Data Record - SMBIOS Type 36
  2585. ///
  2586. /// Inconsistent with specification here:
  2587. /// In MiscSubclass specification 0.9, the following data structures are NOT defined.
  2588. /// It's introduced for SmBios 2.6 specification type 36.
  2589. ///
  2590. #define EFI_MISC_MANAGEMENT_DEVICE_THRESHOLD_RECORD_NUMBER 0x00000021
  2591. ///
  2592. /// Inconsistent with specification here:
  2593. /// In MiscSubclass specification 0.9, the following data structures are NOT defined.
  2594. /// It's introduced for SmBios 2.6 specification type 36.
  2595. ///
  2596. typedef struct {
  2597. UINT16 LowerThresNonCritical;
  2598. UINT16 UpperThresNonCritical;
  2599. UINT16 LowerThresCritical;
  2600. UINT16 UpperThresCritical;
  2601. UINT16 LowerThresNonRecover;
  2602. UINT16 UpperThresNonRecover;
  2603. } EFI_MISC_MANAGEMENT_DEVICE_THRESHOLD;
  2604. //
  2605. // Declare the following strutures alias to use them more conviniently.
  2606. //
  2607. typedef EFI_MISC_LAST_PCI_BUS_DATA EFI_MISC_LAST_PCI_BUS;
  2608. typedef EFI_MISC_BIOS_VENDOR_DATA EFI_MISC_BIOS_VENDOR;
  2609. typedef EFI_MISC_SYSTEM_MANUFACTURER_DATA EFI_MISC_SYSTEM_MANUFACTURER;
  2610. typedef EFI_MISC_BASE_BOARD_MANUFACTURER_DATA EFI_MISC_BASE_BOARD_MANUFACTURER;
  2611. typedef EFI_MISC_CHASSIS_MANUFACTURER_DATA EFI_MISC_CHASSIS_MANUFACTURER;
  2612. typedef EFI_MISC_PORT_INTERNAL_CONNECTOR_DESIGNATOR_DATA EFI_MISC_PORT_INTERNAL_CONNECTOR_DESIGNATOR;
  2613. typedef EFI_MISC_SYSTEM_SLOT_DESIGNATION_DATA EFI_MISC_SYSTEM_SLOT_DESIGNATION;
  2614. typedef EFI_MISC_ONBOARD_DEVICE_DATA EFI_MISC_ONBOARD_DEVICE;
  2615. typedef EFI_MISC_POINTING_DEVICE_TYPE_DATA EFI_MISC_ONBOARD_DEVICE_TYPE_DATA;
  2616. typedef EFI_MISC_OEM_STRING_DATA EFI_MISC_OEM_STRING;
  2617. typedef EFI_MISC_SYSTEM_OPTION_STRING_DATA EFI_MISC_SYSTEM_OPTION_STRING;
  2618. typedef EFI_MISC_NUMBER_OF_INSTALLABLE_LANGUAGES_DATA EFI_MISC_NUMBER_OF_INSTALLABLE_LANGUAGES;
  2619. typedef EFI_MISC_SYSTEM_LANGUAGE_STRING_DATA EFI_MISC_SYSTEM_LANGUAGE_STRING;
  2620. typedef EFI_MISC_SYSTEM_EVENT_LOG_DATA EFI_MISC_SYSTEM_EVENT_LOG;
  2621. typedef EFI_MISC_BIS_ENTRY_POINT_DATA EFI_MISC_BIS_ENTRY_POINT;
  2622. typedef EFI_MISC_BOOT_INFORMATION_STATUS_DATA EFI_MISC_BOOT_INFORMATION_STATUS;
  2623. typedef EFI_MISC_SYSTEM_POWER_SUPPLY_DATA EFI_MISC_SYSTEM_POWER_SUPPLY;
  2624. typedef EFI_MISC_SMBIOS_STRUCT_ENCAPSULATION_DATA EFI_MISC_SMBIOS_STRUCT_ENCAPSULATION;
  2625. typedef EFI_MISC_SCHEDULED_POWER_ON_MONTH_DATA EFI_MISC_SCHEDULED_POWER_ON_MONTH;
  2626. typedef EFI_MISC_VOLTAGE_PROBE_DESCRIPTION_DATA EFI_MISC_VOLTAGE_PROBE_DESCRIPTION;
  2627. typedef EFI_MISC_COOLING_DEVICE_TEMP_LINK_DATA EFI_MISC_COOLING_DEVICE_TEMP_LINK;
  2628. typedef EFI_MISC_TEMPERATURE_PROBE_DESCRIPTION_DATA EFI_MISC_TEMPERATURE_PROBE_DESCRIPTION;
  2629. typedef EFI_MISC_REMOTE_ACCESS_MANUFACTURER_DESCRIPTION_DATA
  2630. EFI_MISC_REMOTE_ACCESS_MANUFACTURER_DESCRIPTION;
  2631. typedef EFI_MISC_MANAGEMENT_DEVICE_DESCRIPTION_DATA EFI_MISC_MANAGEMENT_DEVICE_DESCRIPTION;
  2632. typedef EFI_MISC_ELECTRICAL_CURRENT_PROBE_DESCRIPTION_DATA EFI_MISC_ELECTRICAL_CURRENT_PROBE_DESCRIPTION;
  2633. typedef EFI_MISC_MANAGEMENT_DEVICE_COMPONENT_DESCRIPTION_DATA
  2634. EFI_MISC_MANAGEMENT_DEVICE_COMPONENT_DESCRIPTION;
  2635. ///
  2636. /// Inconsistent with specification here:
  2637. /// In MemSubclass specification 0.9, the following data structures are NOT defined.
  2638. /// It is implementation-specific to simplify the code logic.
  2639. ///
  2640. typedef union {
  2641. EFI_MISC_LAST_PCI_BUS_DATA LastPciBus;
  2642. EFI_MISC_BIOS_VENDOR_DATA MiscBiosVendor;
  2643. EFI_MISC_SYSTEM_MANUFACTURER_DATA MiscSystemManufacturer;
  2644. EFI_MISC_BASE_BOARD_MANUFACTURER_DATA MiscBaseBoardManufacturer;
  2645. EFI_MISC_CHASSIS_MANUFACTURER_DATA MiscChassisManufacturer;
  2646. EFI_MISC_PORT_INTERNAL_CONNECTOR_DESIGNATOR_DATA MiscPortInternalConnectorDesignator;
  2647. EFI_MISC_SYSTEM_SLOT_DESIGNATION_DATA MiscSystemSlotDesignation;
  2648. EFI_MISC_ONBOARD_DEVICE_DATA MiscOnboardDevice;
  2649. EFI_MISC_OEM_STRING_DATA MiscOemString;
  2650. EFI_MISC_SYSTEM_OPTION_STRING_DATA MiscOptionString;
  2651. EFI_MISC_NUMBER_OF_INSTALLABLE_LANGUAGES_DATA NumberOfInstallableLanguages;
  2652. EFI_MISC_SYSTEM_LANGUAGE_STRING_DATA MiscSystemLanguageString;
  2653. EFI_MISC_SYSTEM_EVENT_LOG_DATA MiscSystemEventLog;
  2654. EFI_MISC_GROUP_NAME_DATA MiscGroupNameData;
  2655. EFI_MISC_GROUP_ITEM_SET_DATA MiscGroupItemSetData;
  2656. EFI_MISC_POINTING_DEVICE_TYPE_DATA MiscPointingDeviceTypeData;
  2657. EFI_MISC_RESET_CAPABILITIES_DATA MiscResetCapablilitiesData;
  2658. EFI_MISC_HARDWARE_SECURITY_SETTINGS_DATA MiscHardwareSecuritySettingsData;
  2659. EFI_MISC_SCHEDULED_POWER_ON_MONTH_DATA MiscScheduledPowerOnMonthData;
  2660. EFI_MISC_VOLTAGE_PROBE_DESCRIPTION_DATA MiscVoltagePorbeDescriptionData;
  2661. EFI_MISC_COOLING_DEVICE_TEMP_LINK_DATA MiscCoolingDeviceTempLinkData;
  2662. EFI_MISC_TEMPERATURE_PROBE_DESCRIPTION_DATA MiscTemperatureProbeDescriptionData;
  2663. EFI_MISC_ELECTRICAL_CURRENT_PROBE_DESCRIPTION_DATA MiscElectricalCurrentProbeDescriptionData;
  2664. EFI_MISC_REMOTE_ACCESS_MANUFACTURER_DESCRIPTION_DATA
  2665. MiscRemoteAccessManufacturerDescriptionData;
  2666. EFI_MISC_BIS_ENTRY_POINT_DATA MiscBisEntryPoint;
  2667. EFI_MISC_BOOT_INFORMATION_STATUS_DATA MiscBootInformationStatus;
  2668. EFI_MISC_MANAGEMENT_DEVICE_DESCRIPTION_DATA MiscMangementDeviceDescriptionData;
  2669. EFI_MISC_MANAGEMENT_DEVICE_COMPONENT_DESCRIPTION_DATA
  2670. MiscmangementDeviceComponentDescriptionData;
  2671. EFI_MISC_IPMI_INTERFACE_TYPE_DATA MiscIpmiInterfaceTypeData;
  2672. EFI_MISC_SYSTEM_POWER_SUPPLY_DATA MiscPowerSupplyInfo;
  2673. EFI_MISC_SMBIOS_STRUCT_ENCAPSULATION_DATA MiscSmbiosStructEncapsulation;
  2674. EFI_MISC_MANAGEMENT_DEVICE_THRESHOLD MiscManagementDeviceThreshold;
  2675. } EFI_MISC_SUBCLASS_RECORDS;
  2676. ///
  2677. /// Inconsistent with specification here:
  2678. /// In MemSubclass specification 0.9, the following data structures are NOT defined.
  2679. /// It is implementation-specific to simplify the code logic.
  2680. ///
  2681. typedef struct {
  2682. EFI_SUBCLASS_TYPE1_HEADER Header;
  2683. EFI_MISC_SUBCLASS_RECORDS Record;
  2684. } EFI_MISC_SUBCLASS_DRIVER_DATA;
  2685. #pragma pack()
  2686. ///
  2687. /// Inconsistent with specification here:
  2688. /// In DataHubSubclass specification 0.9 page 16, the following symbol is NOT defined.
  2689. /// But value is meaningful, 0 means Reserved.
  2690. ///
  2691. #define EFI_SUBCLASS_INSTANCE_RESERVED 0
  2692. ///
  2693. /// Inconsistent with specification here:
  2694. /// In DataHubSubclass specification 0.9 page 16, the following symbol is NOT defined.
  2695. /// But value is meaningful, -1 means Not Applicable.
  2696. ///
  2697. #define EFI_SUBCLASS_INSTANCE_NON_APPLICABLE 0xFFFF
  2698. #endif