You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Acpi51.h 70KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141
  1. /** @file
  2. ACPI 5.1 definitions from the ACPI Specification Revision 5.1 Errata B January, 2016.
  3. Copyright (c) 2014 Hewlett-Packard Development Company, L.P.<BR>
  4. Copyright (c) 2014 - 2016, Intel Corporation. All rights reserved.<BR>
  5. (C) Copyright 2015 Hewlett Packard Enterprise Development LP<BR>
  6. This program and the accompanying materials
  7. are licensed and made available under the terms and conditions of the BSD License
  8. which accompanies this distribution. The full text of the license may be found at
  9. http://opensource.org/licenses/bsd-license.php
  10. THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
  11. WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
  12. **/
  13. #ifndef _ACPI_5_1_H_
  14. #define _ACPI_5_1_H_
  15. FILE_LICENCE ( BSD3 );
  16. #include <ipxe/efi/IndustryStandard/Acpi50.h>
  17. //
  18. // Ensure proper structure formats
  19. //
  20. #pragma pack(1)
  21. ///
  22. /// ACPI 5.1 Generic Address Space definition
  23. ///
  24. typedef struct {
  25. UINT8 AddressSpaceId;
  26. UINT8 RegisterBitWidth;
  27. UINT8 RegisterBitOffset;
  28. UINT8 AccessSize;
  29. UINT64 Address;
  30. } EFI_ACPI_5_1_GENERIC_ADDRESS_STRUCTURE;
  31. //
  32. // Generic Address Space Address IDs
  33. //
  34. #define EFI_ACPI_5_1_SYSTEM_MEMORY 0
  35. #define EFI_ACPI_5_1_SYSTEM_IO 1
  36. #define EFI_ACPI_5_1_PCI_CONFIGURATION_SPACE 2
  37. #define EFI_ACPI_5_1_EMBEDDED_CONTROLLER 3
  38. #define EFI_ACPI_5_1_SMBUS 4
  39. #define EFI_ACPI_5_1_PLATFORM_COMMUNICATION_CHANNEL 0x0A
  40. #define EFI_ACPI_5_1_FUNCTIONAL_FIXED_HARDWARE 0x7F
  41. //
  42. // Generic Address Space Access Sizes
  43. //
  44. #define EFI_ACPI_5_1_UNDEFINED 0
  45. #define EFI_ACPI_5_1_BYTE 1
  46. #define EFI_ACPI_5_1_WORD 2
  47. #define EFI_ACPI_5_1_DWORD 3
  48. #define EFI_ACPI_5_1_QWORD 4
  49. //
  50. // ACPI 5.1 table structures
  51. //
  52. ///
  53. /// Root System Description Pointer Structure
  54. ///
  55. typedef struct {
  56. UINT64 Signature;
  57. UINT8 Checksum;
  58. UINT8 OemId[6];
  59. UINT8 Revision;
  60. UINT32 RsdtAddress;
  61. UINT32 Length;
  62. UINT64 XsdtAddress;
  63. UINT8 ExtendedChecksum;
  64. UINT8 Reserved[3];
  65. } EFI_ACPI_5_1_ROOT_SYSTEM_DESCRIPTION_POINTER;
  66. ///
  67. /// RSD_PTR Revision (as defined in ACPI 5.1 spec.)
  68. ///
  69. #define EFI_ACPI_5_1_ROOT_SYSTEM_DESCRIPTION_POINTER_REVISION 0x02 ///< ACPISpec (Revision 5.1) says current value is 2
  70. ///
  71. /// Common table header, this prefaces all ACPI tables, including FACS, but
  72. /// excluding the RSD PTR structure
  73. ///
  74. typedef struct {
  75. UINT32 Signature;
  76. UINT32 Length;
  77. } EFI_ACPI_5_1_COMMON_HEADER;
  78. //
  79. // Root System Description Table
  80. // No definition needed as it is a common description table header, the same with
  81. // EFI_ACPI_DESCRIPTION_HEADER, followed by a variable number of UINT32 table pointers.
  82. //
  83. ///
  84. /// RSDT Revision (as defined in ACPI 5.1 spec.)
  85. ///
  86. #define EFI_ACPI_5_1_ROOT_SYSTEM_DESCRIPTION_TABLE_REVISION 0x01
  87. //
  88. // Extended System Description Table
  89. // No definition needed as it is a common description table header, the same with
  90. // EFI_ACPI_DESCRIPTION_HEADER, followed by a variable number of UINT64 table pointers.
  91. //
  92. ///
  93. /// XSDT Revision (as defined in ACPI 5.1 spec.)
  94. ///
  95. #define EFI_ACPI_5_1_EXTENDED_SYSTEM_DESCRIPTION_TABLE_REVISION 0x01
  96. ///
  97. /// Fixed ACPI Description Table Structure (FADT)
  98. ///
  99. typedef struct {
  100. EFI_ACPI_DESCRIPTION_HEADER Header;
  101. UINT32 FirmwareCtrl;
  102. UINT32 Dsdt;
  103. UINT8 Reserved0;
  104. UINT8 PreferredPmProfile;
  105. UINT16 SciInt;
  106. UINT32 SmiCmd;
  107. UINT8 AcpiEnable;
  108. UINT8 AcpiDisable;
  109. UINT8 S4BiosReq;
  110. UINT8 PstateCnt;
  111. UINT32 Pm1aEvtBlk;
  112. UINT32 Pm1bEvtBlk;
  113. UINT32 Pm1aCntBlk;
  114. UINT32 Pm1bCntBlk;
  115. UINT32 Pm2CntBlk;
  116. UINT32 PmTmrBlk;
  117. UINT32 Gpe0Blk;
  118. UINT32 Gpe1Blk;
  119. UINT8 Pm1EvtLen;
  120. UINT8 Pm1CntLen;
  121. UINT8 Pm2CntLen;
  122. UINT8 PmTmrLen;
  123. UINT8 Gpe0BlkLen;
  124. UINT8 Gpe1BlkLen;
  125. UINT8 Gpe1Base;
  126. UINT8 CstCnt;
  127. UINT16 PLvl2Lat;
  128. UINT16 PLvl3Lat;
  129. UINT16 FlushSize;
  130. UINT16 FlushStride;
  131. UINT8 DutyOffset;
  132. UINT8 DutyWidth;
  133. UINT8 DayAlrm;
  134. UINT8 MonAlrm;
  135. UINT8 Century;
  136. UINT16 IaPcBootArch;
  137. UINT8 Reserved1;
  138. UINT32 Flags;
  139. EFI_ACPI_5_1_GENERIC_ADDRESS_STRUCTURE ResetReg;
  140. UINT8 ResetValue;
  141. UINT16 ArmBootArch;
  142. UINT8 MinorVersion;
  143. UINT64 XFirmwareCtrl;
  144. UINT64 XDsdt;
  145. EFI_ACPI_5_1_GENERIC_ADDRESS_STRUCTURE XPm1aEvtBlk;
  146. EFI_ACPI_5_1_GENERIC_ADDRESS_STRUCTURE XPm1bEvtBlk;
  147. EFI_ACPI_5_1_GENERIC_ADDRESS_STRUCTURE XPm1aCntBlk;
  148. EFI_ACPI_5_1_GENERIC_ADDRESS_STRUCTURE XPm1bCntBlk;
  149. EFI_ACPI_5_1_GENERIC_ADDRESS_STRUCTURE XPm2CntBlk;
  150. EFI_ACPI_5_1_GENERIC_ADDRESS_STRUCTURE XPmTmrBlk;
  151. EFI_ACPI_5_1_GENERIC_ADDRESS_STRUCTURE XGpe0Blk;
  152. EFI_ACPI_5_1_GENERIC_ADDRESS_STRUCTURE XGpe1Blk;
  153. EFI_ACPI_5_1_GENERIC_ADDRESS_STRUCTURE SleepControlReg;
  154. EFI_ACPI_5_1_GENERIC_ADDRESS_STRUCTURE SleepStatusReg;
  155. } EFI_ACPI_5_1_FIXED_ACPI_DESCRIPTION_TABLE;
  156. ///
  157. /// FADT Version (as defined in ACPI 5.1 spec.)
  158. ///
  159. #define EFI_ACPI_5_1_FIXED_ACPI_DESCRIPTION_TABLE_REVISION 0x05
  160. #define EFI_ACPI_5_1_FIXED_ACPI_DESCRIPTION_TABLE_MINOR_REVISION 0x01
  161. //
  162. // Fixed ACPI Description Table Preferred Power Management Profile
  163. //
  164. #define EFI_ACPI_5_1_PM_PROFILE_UNSPECIFIED 0
  165. #define EFI_ACPI_5_1_PM_PROFILE_DESKTOP 1
  166. #define EFI_ACPI_5_1_PM_PROFILE_MOBILE 2
  167. #define EFI_ACPI_5_1_PM_PROFILE_WORKSTATION 3
  168. #define EFI_ACPI_5_1_PM_PROFILE_ENTERPRISE_SERVER 4
  169. #define EFI_ACPI_5_1_PM_PROFILE_SOHO_SERVER 5
  170. #define EFI_ACPI_5_1_PM_PROFILE_APPLIANCE_PC 6
  171. #define EFI_ACPI_5_1_PM_PROFILE_PERFORMANCE_SERVER 7
  172. #define EFI_ACPI_5_1_PM_PROFILE_TABLET 8
  173. //
  174. // Fixed ACPI Description Table Boot Architecture Flags
  175. // All other bits are reserved and must be set to 0.
  176. //
  177. #define EFI_ACPI_5_1_LEGACY_DEVICES BIT0
  178. #define EFI_ACPI_5_1_8042 BIT1
  179. #define EFI_ACPI_5_1_VGA_NOT_PRESENT BIT2
  180. #define EFI_ACPI_5_1_MSI_NOT_SUPPORTED BIT3
  181. #define EFI_ACPI_5_1_PCIE_ASPM_CONTROLS BIT4
  182. #define EFI_ACPI_5_1_CMOS_RTC_NOT_PRESENT BIT5
  183. //
  184. // Fixed ACPI Description Table Arm Boot Architecture Flags
  185. // All other bits are reserved and must be set to 0.
  186. //
  187. #define EFI_ACPI_5_1_ARM_PSCI_COMPLIANT BIT0
  188. #define EFI_ACPI_5_1_ARM_PSCI_USE_HVC BIT1
  189. //
  190. // Fixed ACPI Description Table Fixed Feature Flags
  191. // All other bits are reserved and must be set to 0.
  192. //
  193. #define EFI_ACPI_5_1_WBINVD BIT0
  194. #define EFI_ACPI_5_1_WBINVD_FLUSH BIT1
  195. #define EFI_ACPI_5_1_PROC_C1 BIT2
  196. #define EFI_ACPI_5_1_P_LVL2_UP BIT3
  197. #define EFI_ACPI_5_1_PWR_BUTTON BIT4
  198. #define EFI_ACPI_5_1_SLP_BUTTON BIT5
  199. #define EFI_ACPI_5_1_FIX_RTC BIT6
  200. #define EFI_ACPI_5_1_RTC_S4 BIT7
  201. #define EFI_ACPI_5_1_TMR_VAL_EXT BIT8
  202. #define EFI_ACPI_5_1_DCK_CAP BIT9
  203. #define EFI_ACPI_5_1_RESET_REG_SUP BIT10
  204. #define EFI_ACPI_5_1_SEALED_CASE BIT11
  205. #define EFI_ACPI_5_1_HEADLESS BIT12
  206. #define EFI_ACPI_5_1_CPU_SW_SLP BIT13
  207. #define EFI_ACPI_5_1_PCI_EXP_WAK BIT14
  208. #define EFI_ACPI_5_1_USE_PLATFORM_CLOCK BIT15
  209. #define EFI_ACPI_5_1_S4_RTC_STS_VALID BIT16
  210. #define EFI_ACPI_5_1_REMOTE_POWER_ON_CAPABLE BIT17
  211. #define EFI_ACPI_5_1_FORCE_APIC_CLUSTER_MODEL BIT18
  212. #define EFI_ACPI_5_1_FORCE_APIC_PHYSICAL_DESTINATION_MODE BIT19
  213. #define EFI_ACPI_5_1_HW_REDUCED_ACPI BIT20
  214. #define EFI_ACPI_5_1_LOW_POWER_S0_IDLE_CAPABLE BIT21
  215. ///
  216. /// Firmware ACPI Control Structure
  217. ///
  218. typedef struct {
  219. UINT32 Signature;
  220. UINT32 Length;
  221. UINT32 HardwareSignature;
  222. UINT32 FirmwareWakingVector;
  223. UINT32 GlobalLock;
  224. UINT32 Flags;
  225. UINT64 XFirmwareWakingVector;
  226. UINT8 Version;
  227. UINT8 Reserved0[3];
  228. UINT32 OspmFlags;
  229. UINT8 Reserved1[24];
  230. } EFI_ACPI_5_1_FIRMWARE_ACPI_CONTROL_STRUCTURE;
  231. ///
  232. /// FACS Version (as defined in ACPI 5.1 spec.)
  233. ///
  234. #define EFI_ACPI_5_1_FIRMWARE_ACPI_CONTROL_STRUCTURE_VERSION 0x02
  235. ///
  236. /// Firmware Control Structure Feature Flags
  237. /// All other bits are reserved and must be set to 0.
  238. ///
  239. #define EFI_ACPI_5_1_S4BIOS_F BIT0
  240. #define EFI_ACPI_5_1_64BIT_WAKE_SUPPORTED_F BIT1
  241. ///
  242. /// OSPM Enabled Firmware Control Structure Flags
  243. /// All other bits are reserved and must be set to 0.
  244. ///
  245. #define EFI_ACPI_5_1_OSPM_64BIT_WAKE_F BIT0
  246. //
  247. // Differentiated System Description Table,
  248. // Secondary System Description Table
  249. // and Persistent System Description Table,
  250. // no definition needed as they are common description table header, the same with
  251. // EFI_ACPI_DESCRIPTION_HEADER, followed by a definition block.
  252. //
  253. #define EFI_ACPI_5_1_DIFFERENTIATED_SYSTEM_DESCRIPTION_TABLE_REVISION 0x02
  254. #define EFI_ACPI_5_1_SECONDARY_SYSTEM_DESCRIPTION_TABLE_REVISION 0x02
  255. ///
  256. /// Multiple APIC Description Table header definition. The rest of the table
  257. /// must be defined in a platform specific manner.
  258. ///
  259. typedef struct {
  260. EFI_ACPI_DESCRIPTION_HEADER Header;
  261. UINT32 LocalApicAddress;
  262. UINT32 Flags;
  263. } EFI_ACPI_5_1_MULTIPLE_APIC_DESCRIPTION_TABLE_HEADER;
  264. ///
  265. /// MADT Revision (as defined in ACPI 5.1 spec.)
  266. ///
  267. #define EFI_ACPI_5_1_MULTIPLE_APIC_DESCRIPTION_TABLE_REVISION 0x03
  268. ///
  269. /// Multiple APIC Flags
  270. /// All other bits are reserved and must be set to 0.
  271. ///
  272. #define EFI_ACPI_5_1_PCAT_COMPAT BIT0
  273. //
  274. // Multiple APIC Description Table APIC structure types
  275. // All other values between 0x0D and 0x7F are reserved and
  276. // will be ignored by OSPM. 0x80 ~ 0xFF are reserved for OEM.
  277. //
  278. #define EFI_ACPI_5_1_PROCESSOR_LOCAL_APIC 0x00
  279. #define EFI_ACPI_5_1_IO_APIC 0x01
  280. #define EFI_ACPI_5_1_INTERRUPT_SOURCE_OVERRIDE 0x02
  281. #define EFI_ACPI_5_1_NON_MASKABLE_INTERRUPT_SOURCE 0x03
  282. #define EFI_ACPI_5_1_LOCAL_APIC_NMI 0x04
  283. #define EFI_ACPI_5_1_LOCAL_APIC_ADDRESS_OVERRIDE 0x05
  284. #define EFI_ACPI_5_1_IO_SAPIC 0x06
  285. #define EFI_ACPI_5_1_LOCAL_SAPIC 0x07
  286. #define EFI_ACPI_5_1_PLATFORM_INTERRUPT_SOURCES 0x08
  287. #define EFI_ACPI_5_1_PROCESSOR_LOCAL_X2APIC 0x09
  288. #define EFI_ACPI_5_1_LOCAL_X2APIC_NMI 0x0A
  289. #define EFI_ACPI_5_1_GIC 0x0B
  290. #define EFI_ACPI_5_1_GICD 0x0C
  291. #define EFI_ACPI_5_1_GIC_MSI_FRAME 0x0D
  292. #define EFI_ACPI_5_1_GICR 0x0E
  293. //
  294. // APIC Structure Definitions
  295. //
  296. ///
  297. /// Processor Local APIC Structure Definition
  298. ///
  299. typedef struct {
  300. UINT8 Type;
  301. UINT8 Length;
  302. UINT8 AcpiProcessorId;
  303. UINT8 ApicId;
  304. UINT32 Flags;
  305. } EFI_ACPI_5_1_PROCESSOR_LOCAL_APIC_STRUCTURE;
  306. ///
  307. /// Local APIC Flags. All other bits are reserved and must be 0.
  308. ///
  309. #define EFI_ACPI_5_1_LOCAL_APIC_ENABLED BIT0
  310. ///
  311. /// IO APIC Structure
  312. ///
  313. typedef struct {
  314. UINT8 Type;
  315. UINT8 Length;
  316. UINT8 IoApicId;
  317. UINT8 Reserved;
  318. UINT32 IoApicAddress;
  319. UINT32 GlobalSystemInterruptBase;
  320. } EFI_ACPI_5_1_IO_APIC_STRUCTURE;
  321. ///
  322. /// Interrupt Source Override Structure
  323. ///
  324. typedef struct {
  325. UINT8 Type;
  326. UINT8 Length;
  327. UINT8 Bus;
  328. UINT8 Source;
  329. UINT32 GlobalSystemInterrupt;
  330. UINT16 Flags;
  331. } EFI_ACPI_5_1_INTERRUPT_SOURCE_OVERRIDE_STRUCTURE;
  332. ///
  333. /// Platform Interrupt Sources Structure Definition
  334. ///
  335. typedef struct {
  336. UINT8 Type;
  337. UINT8 Length;
  338. UINT16 Flags;
  339. UINT8 InterruptType;
  340. UINT8 ProcessorId;
  341. UINT8 ProcessorEid;
  342. UINT8 IoSapicVector;
  343. UINT32 GlobalSystemInterrupt;
  344. UINT32 PlatformInterruptSourceFlags;
  345. UINT8 CpeiProcessorOverride;
  346. UINT8 Reserved[31];
  347. } EFI_ACPI_5_1_PLATFORM_INTERRUPT_APIC_STRUCTURE;
  348. //
  349. // MPS INTI flags.
  350. // All other bits are reserved and must be set to 0.
  351. //
  352. #define EFI_ACPI_5_1_POLARITY (3 << 0)
  353. #define EFI_ACPI_5_1_TRIGGER_MODE (3 << 2)
  354. ///
  355. /// Non-Maskable Interrupt Source Structure
  356. ///
  357. typedef struct {
  358. UINT8 Type;
  359. UINT8 Length;
  360. UINT16 Flags;
  361. UINT32 GlobalSystemInterrupt;
  362. } EFI_ACPI_5_1_NON_MASKABLE_INTERRUPT_SOURCE_STRUCTURE;
  363. ///
  364. /// Local APIC NMI Structure
  365. ///
  366. typedef struct {
  367. UINT8 Type;
  368. UINT8 Length;
  369. UINT8 AcpiProcessorId;
  370. UINT16 Flags;
  371. UINT8 LocalApicLint;
  372. } EFI_ACPI_5_1_LOCAL_APIC_NMI_STRUCTURE;
  373. ///
  374. /// Local APIC Address Override Structure
  375. ///
  376. typedef struct {
  377. UINT8 Type;
  378. UINT8 Length;
  379. UINT16 Reserved;
  380. UINT64 LocalApicAddress;
  381. } EFI_ACPI_5_1_LOCAL_APIC_ADDRESS_OVERRIDE_STRUCTURE;
  382. ///
  383. /// IO SAPIC Structure
  384. ///
  385. typedef struct {
  386. UINT8 Type;
  387. UINT8 Length;
  388. UINT8 IoApicId;
  389. UINT8 Reserved;
  390. UINT32 GlobalSystemInterruptBase;
  391. UINT64 IoSapicAddress;
  392. } EFI_ACPI_5_1_IO_SAPIC_STRUCTURE;
  393. ///
  394. /// Local SAPIC Structure
  395. /// This struct followed by a null-terminated ASCII string - ACPI Processor UID String
  396. ///
  397. typedef struct {
  398. UINT8 Type;
  399. UINT8 Length;
  400. UINT8 AcpiProcessorId;
  401. UINT8 LocalSapicId;
  402. UINT8 LocalSapicEid;
  403. UINT8 Reserved[3];
  404. UINT32 Flags;
  405. UINT32 ACPIProcessorUIDValue;
  406. } EFI_ACPI_5_1_PROCESSOR_LOCAL_SAPIC_STRUCTURE;
  407. ///
  408. /// Platform Interrupt Sources Structure
  409. ///
  410. typedef struct {
  411. UINT8 Type;
  412. UINT8 Length;
  413. UINT16 Flags;
  414. UINT8 InterruptType;
  415. UINT8 ProcessorId;
  416. UINT8 ProcessorEid;
  417. UINT8 IoSapicVector;
  418. UINT32 GlobalSystemInterrupt;
  419. UINT32 PlatformInterruptSourceFlags;
  420. } EFI_ACPI_5_1_PLATFORM_INTERRUPT_SOURCES_STRUCTURE;
  421. ///
  422. /// Platform Interrupt Source Flags.
  423. /// All other bits are reserved and must be set to 0.
  424. ///
  425. #define EFI_ACPI_5_1_CPEI_PROCESSOR_OVERRIDE BIT0
  426. ///
  427. /// Processor Local x2APIC Structure Definition
  428. ///
  429. typedef struct {
  430. UINT8 Type;
  431. UINT8 Length;
  432. UINT8 Reserved[2];
  433. UINT32 X2ApicId;
  434. UINT32 Flags;
  435. UINT32 AcpiProcessorUid;
  436. } EFI_ACPI_5_1_PROCESSOR_LOCAL_X2APIC_STRUCTURE;
  437. ///
  438. /// Local x2APIC NMI Structure
  439. ///
  440. typedef struct {
  441. UINT8 Type;
  442. UINT8 Length;
  443. UINT16 Flags;
  444. UINT32 AcpiProcessorUid;
  445. UINT8 LocalX2ApicLint;
  446. UINT8 Reserved[3];
  447. } EFI_ACPI_5_1_LOCAL_X2APIC_NMI_STRUCTURE;
  448. ///
  449. /// GIC Structure
  450. ///
  451. typedef struct {
  452. UINT8 Type;
  453. UINT8 Length;
  454. UINT16 Reserved;
  455. UINT32 CPUInterfaceNumber;
  456. UINT32 AcpiProcessorUid;
  457. UINT32 Flags;
  458. UINT32 ParkingProtocolVersion;
  459. UINT32 PerformanceInterruptGsiv;
  460. UINT64 ParkedAddress;
  461. UINT64 PhysicalBaseAddress;
  462. UINT64 GICV;
  463. UINT64 GICH;
  464. UINT32 VGICMaintenanceInterrupt;
  465. UINT64 GICRBaseAddress;
  466. UINT64 MPIDR;
  467. } EFI_ACPI_5_1_GIC_STRUCTURE;
  468. ///
  469. /// GIC Flags. All other bits are reserved and must be 0.
  470. ///
  471. #define EFI_ACPI_5_1_GIC_ENABLED BIT0
  472. #define EFI_ACPI_5_1_PERFORMANCE_INTERRUPT_MODEL BIT1
  473. #define EFI_ACPI_5_1_VGIC_MAINTENANCE_INTERRUPT_MODE_FLAGS BIT2
  474. ///
  475. /// GIC Distributor Structure
  476. ///
  477. typedef struct {
  478. UINT8 Type;
  479. UINT8 Length;
  480. UINT16 Reserved1;
  481. UINT32 GicId;
  482. UINT64 PhysicalBaseAddress;
  483. UINT32 SystemVectorBase;
  484. UINT8 GicVersion;
  485. UINT8 Reserved2[3];
  486. } EFI_ACPI_5_1_GIC_DISTRIBUTOR_STRUCTURE;
  487. ///
  488. /// GIC Version
  489. ///
  490. #define EFI_ACPI_5_1_GIC_V1 0x01
  491. #define EFI_ACPI_5_1_GIC_V2 0x02
  492. #define EFI_ACPI_5_1_GIC_V3 0x03
  493. #define EFI_ACPI_5_1_GIC_V4 0x04
  494. ///
  495. /// GIC MSI Frame Structure
  496. ///
  497. typedef struct {
  498. UINT8 Type;
  499. UINT8 Length;
  500. UINT16 Reserved1;
  501. UINT32 GicMsiFrameId;
  502. UINT64 PhysicalBaseAddress;
  503. UINT32 Flags;
  504. UINT16 SPICount;
  505. UINT16 SPIBase;
  506. } EFI_ACPI_5_1_GIC_MSI_FRAME_STRUCTURE;
  507. ///
  508. /// GIC MSI Frame Flags. All other bits are reserved and must be 0.
  509. ///
  510. #define EFI_ACPI_5_1_SPI_COUNT_BASE_SELECT BIT0
  511. ///
  512. /// GICR Structure
  513. ///
  514. typedef struct {
  515. UINT8 Type;
  516. UINT8 Length;
  517. UINT16 Reserved;
  518. UINT64 DiscoveryRangeBaseAddress;
  519. UINT32 DiscoveryRangeLength;
  520. } EFI_ACPI_5_1_GICR_STRUCTURE;
  521. ///
  522. /// Smart Battery Description Table (SBST)
  523. ///
  524. typedef struct {
  525. EFI_ACPI_DESCRIPTION_HEADER Header;
  526. UINT32 WarningEnergyLevel;
  527. UINT32 LowEnergyLevel;
  528. UINT32 CriticalEnergyLevel;
  529. } EFI_ACPI_5_1_SMART_BATTERY_DESCRIPTION_TABLE;
  530. ///
  531. /// SBST Version (as defined in ACPI 5.1 spec.)
  532. ///
  533. #define EFI_ACPI_5_1_SMART_BATTERY_DESCRIPTION_TABLE_REVISION 0x01
  534. ///
  535. /// Embedded Controller Boot Resources Table (ECDT)
  536. /// The table is followed by a null terminated ASCII string that contains
  537. /// a fully qualified reference to the name space object.
  538. ///
  539. typedef struct {
  540. EFI_ACPI_DESCRIPTION_HEADER Header;
  541. EFI_ACPI_5_1_GENERIC_ADDRESS_STRUCTURE EcControl;
  542. EFI_ACPI_5_1_GENERIC_ADDRESS_STRUCTURE EcData;
  543. UINT32 Uid;
  544. UINT8 GpeBit;
  545. } EFI_ACPI_5_1_EMBEDDED_CONTROLLER_BOOT_RESOURCES_TABLE;
  546. ///
  547. /// ECDT Version (as defined in ACPI 5.1 spec.)
  548. ///
  549. #define EFI_ACPI_5_1_EMBEDDED_CONTROLLER_BOOT_RESOURCES_TABLE_REVISION 0x01
  550. ///
  551. /// System Resource Affinity Table (SRAT). The rest of the table
  552. /// must be defined in a platform specific manner.
  553. ///
  554. typedef struct {
  555. EFI_ACPI_DESCRIPTION_HEADER Header;
  556. UINT32 Reserved1; ///< Must be set to 1
  557. UINT64 Reserved2;
  558. } EFI_ACPI_5_1_SYSTEM_RESOURCE_AFFINITY_TABLE_HEADER;
  559. ///
  560. /// SRAT Version (as defined in ACPI 5.1 spec.)
  561. ///
  562. #define EFI_ACPI_5_1_SYSTEM_RESOURCE_AFFINITY_TABLE_REVISION 0x03
  563. //
  564. // SRAT structure types.
  565. // All other values between 0x04 an 0xFF are reserved and
  566. // will be ignored by OSPM.
  567. //
  568. #define EFI_ACPI_5_1_PROCESSOR_LOCAL_APIC_SAPIC_AFFINITY 0x00
  569. #define EFI_ACPI_5_1_MEMORY_AFFINITY 0x01
  570. #define EFI_ACPI_5_1_PROCESSOR_LOCAL_X2APIC_AFFINITY 0x02
  571. #define EFI_ACPI_5_1_GICC_AFFINITY 0x03
  572. ///
  573. /// Processor Local APIC/SAPIC Affinity Structure Definition
  574. ///
  575. typedef struct {
  576. UINT8 Type;
  577. UINT8 Length;
  578. UINT8 ProximityDomain7To0;
  579. UINT8 ApicId;
  580. UINT32 Flags;
  581. UINT8 LocalSapicEid;
  582. UINT8 ProximityDomain31To8[3];
  583. UINT32 ClockDomain;
  584. } EFI_ACPI_5_1_PROCESSOR_LOCAL_APIC_SAPIC_AFFINITY_STRUCTURE;
  585. ///
  586. /// Local APIC/SAPIC Flags. All other bits are reserved and must be 0.
  587. ///
  588. #define EFI_ACPI_5_1_PROCESSOR_LOCAL_APIC_SAPIC_ENABLED (1 << 0)
  589. ///
  590. /// Memory Affinity Structure Definition
  591. ///
  592. typedef struct {
  593. UINT8 Type;
  594. UINT8 Length;
  595. UINT32 ProximityDomain;
  596. UINT16 Reserved1;
  597. UINT32 AddressBaseLow;
  598. UINT32 AddressBaseHigh;
  599. UINT32 LengthLow;
  600. UINT32 LengthHigh;
  601. UINT32 Reserved2;
  602. UINT32 Flags;
  603. UINT64 Reserved3;
  604. } EFI_ACPI_5_1_MEMORY_AFFINITY_STRUCTURE;
  605. //
  606. // Memory Flags. All other bits are reserved and must be 0.
  607. //
  608. #define EFI_ACPI_5_1_MEMORY_ENABLED (1 << 0)
  609. #define EFI_ACPI_5_1_MEMORY_HOT_PLUGGABLE (1 << 1)
  610. #define EFI_ACPI_5_1_MEMORY_NONVOLATILE (1 << 2)
  611. ///
  612. /// Processor Local x2APIC Affinity Structure Definition
  613. ///
  614. typedef struct {
  615. UINT8 Type;
  616. UINT8 Length;
  617. UINT8 Reserved1[2];
  618. UINT32 ProximityDomain;
  619. UINT32 X2ApicId;
  620. UINT32 Flags;
  621. UINT32 ClockDomain;
  622. UINT8 Reserved2[4];
  623. } EFI_ACPI_5_1_PROCESSOR_LOCAL_X2APIC_AFFINITY_STRUCTURE;
  624. ///
  625. /// GICC Affinity Structure Definition
  626. ///
  627. typedef struct {
  628. UINT8 Type;
  629. UINT8 Length;
  630. UINT32 ProximityDomain;
  631. UINT32 AcpiProcessorUid;
  632. UINT32 Flags;
  633. UINT32 ClockDomain;
  634. } EFI_ACPI_5_1_GICC_AFFINITY_STRUCTURE;
  635. ///
  636. /// GICC Flags. All other bits are reserved and must be 0.
  637. ///
  638. #define EFI_ACPI_5_1_GICC_ENABLED (1 << 0)
  639. ///
  640. /// System Locality Distance Information Table (SLIT).
  641. /// The rest of the table is a matrix.
  642. ///
  643. typedef struct {
  644. EFI_ACPI_DESCRIPTION_HEADER Header;
  645. UINT64 NumberOfSystemLocalities;
  646. } EFI_ACPI_5_1_SYSTEM_LOCALITY_DISTANCE_INFORMATION_TABLE_HEADER;
  647. ///
  648. /// SLIT Version (as defined in ACPI 5.1 spec.)
  649. ///
  650. #define EFI_ACPI_5_1_SYSTEM_LOCALITY_DISTANCE_INFORMATION_TABLE_REVISION 0x01
  651. ///
  652. /// Corrected Platform Error Polling Table (CPEP)
  653. ///
  654. typedef struct {
  655. EFI_ACPI_DESCRIPTION_HEADER Header;
  656. UINT8 Reserved[8];
  657. } EFI_ACPI_5_1_CORRECTED_PLATFORM_ERROR_POLLING_TABLE_HEADER;
  658. ///
  659. /// CPEP Version (as defined in ACPI 5.1 spec.)
  660. ///
  661. #define EFI_ACPI_5_1_CORRECTED_PLATFORM_ERROR_POLLING_TABLE_REVISION 0x01
  662. //
  663. // CPEP processor structure types.
  664. //
  665. #define EFI_ACPI_5_1_CPEP_PROCESSOR_APIC_SAPIC 0x00
  666. ///
  667. /// Corrected Platform Error Polling Processor Structure Definition
  668. ///
  669. typedef struct {
  670. UINT8 Type;
  671. UINT8 Length;
  672. UINT8 ProcessorId;
  673. UINT8 ProcessorEid;
  674. UINT32 PollingInterval;
  675. } EFI_ACPI_5_1_CPEP_PROCESSOR_APIC_SAPIC_STRUCTURE;
  676. ///
  677. /// Maximum System Characteristics Table (MSCT)
  678. ///
  679. typedef struct {
  680. EFI_ACPI_DESCRIPTION_HEADER Header;
  681. UINT32 OffsetProxDomInfo;
  682. UINT32 MaximumNumberOfProximityDomains;
  683. UINT32 MaximumNumberOfClockDomains;
  684. UINT64 MaximumPhysicalAddress;
  685. } EFI_ACPI_5_1_MAXIMUM_SYSTEM_CHARACTERISTICS_TABLE_HEADER;
  686. ///
  687. /// MSCT Version (as defined in ACPI 5.1 spec.)
  688. ///
  689. #define EFI_ACPI_5_1_MAXIMUM_SYSTEM_CHARACTERISTICS_TABLE_REVISION 0x01
  690. ///
  691. /// Maximum Proximity Domain Information Structure Definition
  692. ///
  693. typedef struct {
  694. UINT8 Revision;
  695. UINT8 Length;
  696. UINT32 ProximityDomainRangeLow;
  697. UINT32 ProximityDomainRangeHigh;
  698. UINT32 MaximumProcessorCapacity;
  699. UINT64 MaximumMemoryCapacity;
  700. } EFI_ACPI_5_1_MAXIMUM_PROXIMITY_DOMAIN_INFORMATION_STRUCTURE;
  701. ///
  702. /// ACPI RAS Feature Table definition.
  703. ///
  704. typedef struct {
  705. EFI_ACPI_DESCRIPTION_HEADER Header;
  706. UINT8 PlatformCommunicationChannelIdentifier[12];
  707. } EFI_ACPI_5_1_RAS_FEATURE_TABLE;
  708. ///
  709. /// RASF Version (as defined in ACPI 5.1 spec.)
  710. ///
  711. #define EFI_ACPI_5_1_RAS_FEATURE_TABLE_REVISION 0x01
  712. ///
  713. /// ACPI RASF Platform Communication Channel Shared Memory Region definition.
  714. ///
  715. typedef struct {
  716. UINT32 Signature;
  717. UINT16 Command;
  718. UINT16 Status;
  719. UINT16 Version;
  720. UINT8 RASCapabilities[16];
  721. UINT8 SetRASCapabilities[16];
  722. UINT16 NumberOfRASFParameterBlocks;
  723. UINT32 SetRASCapabilitiesStatus;
  724. } EFI_ACPI_5_1_RASF_PLATFORM_COMMUNICATION_CHANNEL_SHARED_MEMORY_REGION;
  725. ///
  726. /// ACPI RASF PCC command code
  727. ///
  728. #define EFI_ACPI_5_1_RASF_PCC_COMMAND_CODE_EXECUTE_RASF_COMMAND 0x01
  729. ///
  730. /// ACPI RASF Platform RAS Capabilities
  731. ///
  732. #define EFI_ACPI_5_1_RASF_PLATFORM_RAS_CAPABILITY_HARDWARE_BASED_PATROL_SCRUB_SUPPOTED 0x01
  733. #define EFI_ACPI_5_1_RASF_PLATFORM_RAS_CAPABILITY_HARDWARE_BASED_PATROL_SCRUB_SUPPOTED_AND_EXPOSED_TO_SOFTWARE 0x02
  734. ///
  735. /// ACPI RASF Parameter Block structure for PATROL_SCRUB
  736. ///
  737. typedef struct {
  738. UINT16 Type;
  739. UINT16 Version;
  740. UINT16 Length;
  741. UINT16 PatrolScrubCommand;
  742. UINT64 RequestedAddressRange[2];
  743. UINT64 ActualAddressRange[2];
  744. UINT16 Flags;
  745. UINT8 RequestedSpeed;
  746. } EFI_ACPI_5_1_RASF_PATROL_SCRUB_PLATFORM_BLOCK_STRUCTURE;
  747. ///
  748. /// ACPI RASF Patrol Scrub command
  749. ///
  750. #define EFI_ACPI_5_1_RASF_PATROL_SCRUB_COMMAND_GET_PATROL_PARAMETERS 0x01
  751. #define EFI_ACPI_5_1_RASF_PATROL_SCRUB_COMMAND_START_PATROL_SCRUBBER 0x02
  752. #define EFI_ACPI_5_1_RASF_PATROL_SCRUB_COMMAND_STOP_PATROL_SCRUBBER 0x03
  753. ///
  754. /// Memory Power State Table definition.
  755. ///
  756. typedef struct {
  757. EFI_ACPI_DESCRIPTION_HEADER Header;
  758. UINT8 PlatformCommunicationChannelIdentifier;
  759. UINT8 Reserved[3];
  760. // Memory Power Node Structure
  761. // Memory Power State Characteristics
  762. } EFI_ACPI_5_1_MEMORY_POWER_STATUS_TABLE;
  763. ///
  764. /// MPST Version (as defined in ACPI 5.1 spec.)
  765. ///
  766. #define EFI_ACPI_5_1_MEMORY_POWER_STATE_TABLE_REVISION 0x01
  767. ///
  768. /// MPST Platform Communication Channel Shared Memory Region definition.
  769. ///
  770. typedef struct {
  771. UINT32 Signature;
  772. UINT16 Command;
  773. UINT16 Status;
  774. UINT32 MemoryPowerCommandRegister;
  775. UINT32 MemoryPowerStatusRegister;
  776. UINT32 PowerStateId;
  777. UINT32 MemoryPowerNodeId;
  778. UINT64 MemoryEnergyConsumed;
  779. UINT64 ExpectedAveragePowerComsuned;
  780. } EFI_ACPI_5_1_MPST_PLATFORM_COMMUNICATION_CHANNEL_SHARED_MEMORY_REGION;
  781. ///
  782. /// ACPI MPST PCC command code
  783. ///
  784. #define EFI_ACPI_5_1_MPST_PCC_COMMAND_CODE_EXECUTE_MPST_COMMAND 0x03
  785. ///
  786. /// ACPI MPST Memory Power command
  787. ///
  788. #define EFI_ACPI_5_1_MPST_MEMORY_POWER_COMMAND_GET_MEMORY_POWER_STATE 0x01
  789. #define EFI_ACPI_5_1_MPST_MEMORY_POWER_COMMAND_SET_MEMORY_POWER_STATE 0x02
  790. #define EFI_ACPI_5_1_MPST_MEMORY_POWER_COMMAND_GET_AVERAGE_POWER_CONSUMED 0x03
  791. #define EFI_ACPI_5_1_MPST_MEMORY_POWER_COMMAND_GET_MEMORY_ENERGY_CONSUMED 0x04
  792. ///
  793. /// MPST Memory Power Node Table
  794. ///
  795. typedef struct {
  796. UINT8 PowerStateValue;
  797. UINT8 PowerStateInformationIndex;
  798. } EFI_ACPI_5_1_MPST_MEMORY_POWER_STATE;
  799. typedef struct {
  800. UINT8 Flag;
  801. UINT8 Reserved;
  802. UINT16 MemoryPowerNodeId;
  803. UINT32 Length;
  804. UINT64 AddressBase;
  805. UINT64 AddressLength;
  806. UINT32 NumberOfPowerStates;
  807. UINT32 NumberOfPhysicalComponents;
  808. //EFI_ACPI_5_1_MPST_MEMORY_POWER_STATE MemoryPowerState[NumberOfPowerStates];
  809. //UINT16 PhysicalComponentIdentifier[NumberOfPhysicalComponents];
  810. } EFI_ACPI_5_1_MPST_MEMORY_POWER_STRUCTURE;
  811. #define EFI_ACPI_5_1_MPST_MEMORY_POWER_STRUCTURE_FLAG_ENABLE 0x01
  812. #define EFI_ACPI_5_1_MPST_MEMORY_POWER_STRUCTURE_FLAG_POWER_MANAGED 0x02
  813. #define EFI_ACPI_5_1_MPST_MEMORY_POWER_STRUCTURE_FLAG_HOT_PLUGGABLE 0x04
  814. typedef struct {
  815. UINT16 MemoryPowerNodeCount;
  816. UINT8 Reserved[2];
  817. } EFI_ACPI_5_1_MPST_MEMORY_POWER_NODE_TABLE;
  818. ///
  819. /// MPST Memory Power State Characteristics Table
  820. ///
  821. typedef struct {
  822. UINT8 PowerStateStructureID;
  823. UINT8 Flag;
  824. UINT16 Reserved;
  825. UINT32 AveragePowerConsumedInMPS0;
  826. UINT32 RelativePowerSavingToMPS0;
  827. UINT64 ExitLatencyToMPS0;
  828. } EFI_ACPI_5_1_MPST_MEMORY_POWER_STATE_CHARACTERISTICS_STRUCTURE;
  829. #define EFI_ACPI_5_1_MPST_MEMORY_POWER_STATE_CHARACTERISTICS_STRUCTURE_FLAG_MEMORY_CONTENT_PRESERVED 0x01
  830. #define EFI_ACPI_5_1_MPST_MEMORY_POWER_STATE_CHARACTERISTICS_STRUCTURE_FLAG_AUTONOMOUS_MEMORY_POWER_STATE_ENTRY 0x02
  831. #define EFI_ACPI_5_1_MPST_MEMORY_POWER_STATE_CHARACTERISTICS_STRUCTURE_FLAG_AUTONOMOUS_MEMORY_POWER_STATE_EXIT 0x04
  832. typedef struct {
  833. UINT16 MemoryPowerStateCharacteristicsCount;
  834. UINT8 Reserved[2];
  835. } EFI_ACPI_5_1_MPST_MEMORY_POWER_STATE_CHARACTERISTICS_TABLE;
  836. ///
  837. /// Memory Topology Table definition.
  838. ///
  839. typedef struct {
  840. EFI_ACPI_DESCRIPTION_HEADER Header;
  841. UINT32 Reserved;
  842. } EFI_ACPI_5_1_MEMORY_TOPOLOGY_TABLE;
  843. ///
  844. /// PMTT Version (as defined in ACPI 5.1 spec.)
  845. ///
  846. #define EFI_ACPI_5_1_MEMORY_TOPOLOGY_TABLE_REVISION 0x01
  847. ///
  848. /// Common Memory Aggregator Device Structure.
  849. ///
  850. typedef struct {
  851. UINT8 Type;
  852. UINT8 Reserved;
  853. UINT16 Length;
  854. UINT16 Flags;
  855. UINT16 Reserved1;
  856. } EFI_ACPI_5_1_PMMT_COMMON_MEMORY_AGGREGATOR_DEVICE_STRUCTURE;
  857. ///
  858. /// Memory Aggregator Device Type
  859. ///
  860. #define EFI_ACPI_5_1_PMMT_MEMORY_AGGREGATOR_DEVICE_TYPE_SOCKET 0x1
  861. #define EFI_ACPI_5_1_PMMT_MEMORY_AGGREGATOR_DEVICE_TYPE_MEMORY_CONTROLLER 0x2
  862. #define EFI_ACPI_5_1_PMMT_MEMORY_AGGREGATOR_DEVICE_TYPE_DIMM 0x3
  863. ///
  864. /// Socket Memory Aggregator Device Structure.
  865. ///
  866. typedef struct {
  867. EFI_ACPI_5_1_PMMT_COMMON_MEMORY_AGGREGATOR_DEVICE_STRUCTURE Header;
  868. UINT16 SocketIdentifier;
  869. UINT16 Reserved;
  870. //EFI_ACPI_5_1_PMMT_MEMORY_CONTROLLER_MEMORY_AGGREGATOR_DEVICE_STRUCTURE MemoryController[];
  871. } EFI_ACPI_5_1_PMMT_SOCKET_MEMORY_AGGREGATOR_DEVICE_STRUCTURE;
  872. ///
  873. /// MemoryController Memory Aggregator Device Structure.
  874. ///
  875. typedef struct {
  876. EFI_ACPI_5_1_PMMT_COMMON_MEMORY_AGGREGATOR_DEVICE_STRUCTURE Header;
  877. UINT32 ReadLatency;
  878. UINT32 WriteLatency;
  879. UINT32 ReadBandwidth;
  880. UINT32 WriteBandwidth;
  881. UINT16 OptimalAccessUnit;
  882. UINT16 OptimalAccessAlignment;
  883. UINT16 Reserved;
  884. UINT16 NumberOfProximityDomains;
  885. //UINT32 ProximityDomain[NumberOfProximityDomains];
  886. //EFI_ACPI_5_1_PMMT_DIMM_MEMORY_AGGREGATOR_DEVICE_STRUCTURE PhysicalComponent[];
  887. } EFI_ACPI_5_1_PMMT_MEMORY_CONTROLLER_MEMORY_AGGREGATOR_DEVICE_STRUCTURE;
  888. ///
  889. /// DIMM Memory Aggregator Device Structure.
  890. ///
  891. typedef struct {
  892. EFI_ACPI_5_1_PMMT_COMMON_MEMORY_AGGREGATOR_DEVICE_STRUCTURE Header;
  893. UINT16 PhysicalComponentIdentifier;
  894. UINT16 Reserved;
  895. UINT32 SizeOfDimm;
  896. UINT32 SmbiosHandle;
  897. } EFI_ACPI_5_1_PMMT_DIMM_MEMORY_AGGREGATOR_DEVICE_STRUCTURE;
  898. ///
  899. /// Boot Graphics Resource Table definition.
  900. ///
  901. typedef struct {
  902. EFI_ACPI_DESCRIPTION_HEADER Header;
  903. ///
  904. /// 2-bytes (16 bit) version ID. This value must be 1.
  905. ///
  906. UINT16 Version;
  907. ///
  908. /// 1-byte status field indicating current status about the table.
  909. /// Bits[7:1] = Reserved (must be zero)
  910. /// Bit [0] = Valid. A one indicates the boot image graphic is valid.
  911. ///
  912. UINT8 Status;
  913. ///
  914. /// 1-byte enumerated type field indicating format of the image.
  915. /// 0 = Bitmap
  916. /// 1 - 255 Reserved (for future use)
  917. ///
  918. UINT8 ImageType;
  919. ///
  920. /// 8-byte (64 bit) physical address pointing to the firmware's in-memory copy
  921. /// of the image bitmap.
  922. ///
  923. UINT64 ImageAddress;
  924. ///
  925. /// A 4-byte (32-bit) unsigned long describing the display X-offset of the boot image.
  926. /// (X, Y) display offset of the top left corner of the boot image.
  927. /// The top left corner of the display is at offset (0, 0).
  928. ///
  929. UINT32 ImageOffsetX;
  930. ///
  931. /// A 4-byte (32-bit) unsigned long describing the display Y-offset of the boot image.
  932. /// (X, Y) display offset of the top left corner of the boot image.
  933. /// The top left corner of the display is at offset (0, 0).
  934. ///
  935. UINT32 ImageOffsetY;
  936. } EFI_ACPI_5_1_BOOT_GRAPHICS_RESOURCE_TABLE;
  937. ///
  938. /// BGRT Revision
  939. ///
  940. #define EFI_ACPI_5_1_BOOT_GRAPHICS_RESOURCE_TABLE_REVISION 1
  941. ///
  942. /// BGRT Version
  943. ///
  944. #define EFI_ACPI_5_1_BGRT_VERSION 0x01
  945. ///
  946. /// BGRT Status
  947. ///
  948. #define EFI_ACPI_5_1_BGRT_STATUS_NOT_DISPLAYED 0x00
  949. #define EFI_ACPI_5_1_BGRT_STATUS_DISPLAYED 0x01
  950. ///
  951. /// BGRT Image Type
  952. ///
  953. #define EFI_ACPI_5_1_BGRT_IMAGE_TYPE_BMP 0x00
  954. ///
  955. /// FPDT Version (as defined in ACPI 5.1 spec.)
  956. ///
  957. #define EFI_ACPI_5_1_FIRMWARE_PERFORMANCE_DATA_TABLE_REVISION 0x01
  958. ///
  959. /// FPDT Performance Record Types
  960. ///
  961. #define EFI_ACPI_5_1_FPDT_RECORD_TYPE_FIRMWARE_BASIC_BOOT_POINTER 0x0000
  962. #define EFI_ACPI_5_1_FPDT_RECORD_TYPE_S3_PERFORMANCE_TABLE_POINTER 0x0001
  963. ///
  964. /// FPDT Performance Record Revision
  965. ///
  966. #define EFI_ACPI_5_1_FPDT_RECORD_REVISION_FIRMWARE_BASIC_BOOT_POINTER 0x01
  967. #define EFI_ACPI_5_1_FPDT_RECORD_REVISION_S3_PERFORMANCE_TABLE_POINTER 0x01
  968. ///
  969. /// FPDT Runtime Performance Record Types
  970. ///
  971. #define EFI_ACPI_5_1_FPDT_RUNTIME_RECORD_TYPE_S3_RESUME 0x0000
  972. #define EFI_ACPI_5_1_FPDT_RUNTIME_RECORD_TYPE_S3_SUSPEND 0x0001
  973. #define EFI_ACPI_5_1_FPDT_RUNTIME_RECORD_TYPE_FIRMWARE_BASIC_BOOT 0x0002
  974. ///
  975. /// FPDT Runtime Performance Record Revision
  976. ///
  977. #define EFI_ACPI_5_1_FPDT_RUNTIME_RECORD_REVISION_S3_RESUME 0x01
  978. #define EFI_ACPI_5_1_FPDT_RUNTIME_RECORD_REVISION_S3_SUSPEND 0x01
  979. #define EFI_ACPI_5_1_FPDT_RUNTIME_RECORD_REVISION_FIRMWARE_BASIC_BOOT 0x02
  980. ///
  981. /// FPDT Performance Record header
  982. ///
  983. typedef struct {
  984. UINT16 Type;
  985. UINT8 Length;
  986. UINT8 Revision;
  987. } EFI_ACPI_5_1_FPDT_PERFORMANCE_RECORD_HEADER;
  988. ///
  989. /// FPDT Performance Table header
  990. ///
  991. typedef struct {
  992. UINT32 Signature;
  993. UINT32 Length;
  994. } EFI_ACPI_5_1_FPDT_PERFORMANCE_TABLE_HEADER;
  995. ///
  996. /// FPDT Firmware Basic Boot Performance Pointer Record Structure
  997. ///
  998. typedef struct {
  999. EFI_ACPI_5_1_FPDT_PERFORMANCE_RECORD_HEADER Header;
  1000. UINT32 Reserved;
  1001. ///
  1002. /// 64-bit processor-relative physical address of the Basic Boot Performance Table.
  1003. ///
  1004. UINT64 BootPerformanceTablePointer;
  1005. } EFI_ACPI_5_1_FPDT_BOOT_PERFORMANCE_TABLE_POINTER_RECORD;
  1006. ///
  1007. /// FPDT S3 Performance Table Pointer Record Structure
  1008. ///
  1009. typedef struct {
  1010. EFI_ACPI_5_1_FPDT_PERFORMANCE_RECORD_HEADER Header;
  1011. UINT32 Reserved;
  1012. ///
  1013. /// 64-bit processor-relative physical address of the S3 Performance Table.
  1014. ///
  1015. UINT64 S3PerformanceTablePointer;
  1016. } EFI_ACPI_5_1_FPDT_S3_PERFORMANCE_TABLE_POINTER_RECORD;
  1017. ///
  1018. /// FPDT Firmware Basic Boot Performance Record Structure
  1019. ///
  1020. typedef struct {
  1021. EFI_ACPI_5_1_FPDT_PERFORMANCE_RECORD_HEADER Header;
  1022. UINT32 Reserved;
  1023. ///
  1024. /// Timer value logged at the beginning of firmware image execution.
  1025. /// This may not always be zero or near zero.
  1026. ///
  1027. UINT64 ResetEnd;
  1028. ///
  1029. /// Timer value logged just prior to loading the OS boot loader into memory.
  1030. /// For non-UEFI compatible boots, this field must be zero.
  1031. ///
  1032. UINT64 OsLoaderLoadImageStart;
  1033. ///
  1034. /// Timer value logged just prior to launching the previously loaded OS boot loader image.
  1035. /// For non-UEFI compatible boots, the timer value logged will be just prior
  1036. /// to the INT 19h handler invocation.
  1037. ///
  1038. UINT64 OsLoaderStartImageStart;
  1039. ///
  1040. /// Timer value logged at the point when the OS loader calls the
  1041. /// ExitBootServices function for UEFI compatible firmware.
  1042. /// For non-UEFI compatible boots, this field must be zero.
  1043. ///
  1044. UINT64 ExitBootServicesEntry;
  1045. ///
  1046. /// Timer value logged at the point just prior towhen the OS loader gaining
  1047. /// control back from calls the ExitBootServices function for UEFI compatible firmware.
  1048. /// For non-UEFI compatible boots, this field must be zero.
  1049. ///
  1050. UINT64 ExitBootServicesExit;
  1051. } EFI_ACPI_5_1_FPDT_FIRMWARE_BASIC_BOOT_RECORD;
  1052. ///
  1053. /// FPDT Firmware Basic Boot Performance Table signature
  1054. ///
  1055. #define EFI_ACPI_5_1_FPDT_BOOT_PERFORMANCE_TABLE_SIGNATURE SIGNATURE_32('F', 'B', 'P', 'T')
  1056. //
  1057. // FPDT Firmware Basic Boot Performance Table
  1058. //
  1059. typedef struct {
  1060. EFI_ACPI_5_1_FPDT_PERFORMANCE_TABLE_HEADER Header;
  1061. //
  1062. // one or more Performance Records.
  1063. //
  1064. } EFI_ACPI_5_1_FPDT_FIRMWARE_BASIC_BOOT_TABLE;
  1065. ///
  1066. /// FPDT "S3PT" S3 Performance Table
  1067. ///
  1068. #define EFI_ACPI_5_1_FPDT_S3_PERFORMANCE_TABLE_SIGNATURE SIGNATURE_32('S', '3', 'P', 'T')
  1069. //
  1070. // FPDT Firmware S3 Boot Performance Table
  1071. //
  1072. typedef struct {
  1073. EFI_ACPI_5_1_FPDT_PERFORMANCE_TABLE_HEADER Header;
  1074. //
  1075. // one or more Performance Records.
  1076. //
  1077. } EFI_ACPI_5_1_FPDT_FIRMWARE_S3_BOOT_TABLE;
  1078. ///
  1079. /// FPDT Basic S3 Resume Performance Record
  1080. ///
  1081. typedef struct {
  1082. EFI_ACPI_5_1_FPDT_PERFORMANCE_RECORD_HEADER Header;
  1083. ///
  1084. /// A count of the number of S3 resume cycles since the last full boot sequence.
  1085. ///
  1086. UINT32 ResumeCount;
  1087. ///
  1088. /// Timer recorded at the end of BIOS S3 resume, just prior to handoff to the
  1089. /// OS waking vector. Only the most recent resume cycle's time is retained.
  1090. ///
  1091. UINT64 FullResume;
  1092. ///
  1093. /// Average timer value of all resume cycles logged since the last full boot
  1094. /// sequence, including the most recent resume. Note that the entire log of
  1095. /// timer values does not need to be retained in order to calculate this average.
  1096. ///
  1097. UINT64 AverageResume;
  1098. } EFI_ACPI_5_1_FPDT_S3_RESUME_RECORD;
  1099. ///
  1100. /// FPDT Basic S3 Suspend Performance Record
  1101. ///
  1102. typedef struct {
  1103. EFI_ACPI_5_1_FPDT_PERFORMANCE_RECORD_HEADER Header;
  1104. ///
  1105. /// Timer value recorded at the OS write to SLP_TYP upon entry to S3.
  1106. /// Only the most recent suspend cycle's timer value is retained.
  1107. ///
  1108. UINT64 SuspendStart;
  1109. ///
  1110. /// Timer value recorded at the final firmware write to SLP_TYP (or other
  1111. /// mechanism) used to trigger hardware entry to S3.
  1112. /// Only the most recent suspend cycle's timer value is retained.
  1113. ///
  1114. UINT64 SuspendEnd;
  1115. } EFI_ACPI_5_1_FPDT_S3_SUSPEND_RECORD;
  1116. ///
  1117. /// Firmware Performance Record Table definition.
  1118. ///
  1119. typedef struct {
  1120. EFI_ACPI_DESCRIPTION_HEADER Header;
  1121. } EFI_ACPI_5_1_FIRMWARE_PERFORMANCE_RECORD_TABLE;
  1122. ///
  1123. /// Generic Timer Description Table definition.
  1124. ///
  1125. typedef struct {
  1126. EFI_ACPI_DESCRIPTION_HEADER Header;
  1127. UINT64 CntControlBasePhysicalAddress;
  1128. UINT32 Reserved;
  1129. UINT32 SecurePL1TimerGSIV;
  1130. UINT32 SecurePL1TimerFlags;
  1131. UINT32 NonSecurePL1TimerGSIV;
  1132. UINT32 NonSecurePL1TimerFlags;
  1133. UINT32 VirtualTimerGSIV;
  1134. UINT32 VirtualTimerFlags;
  1135. UINT32 NonSecurePL2TimerGSIV;
  1136. UINT32 NonSecurePL2TimerFlags;
  1137. UINT64 CntReadBasePhysicalAddress;
  1138. UINT32 PlatformTimerCount;
  1139. UINT32 PlatformTimerOffset;
  1140. } EFI_ACPI_5_1_GENERIC_TIMER_DESCRIPTION_TABLE;
  1141. ///
  1142. /// GTDT Version (as defined in ACPI 5.1 spec.)
  1143. ///
  1144. #define EFI_ACPI_5_1_GENERIC_TIMER_DESCRIPTION_TABLE_REVISION 0x02
  1145. ///
  1146. /// Timer Flags. All other bits are reserved and must be 0.
  1147. ///
  1148. #define EFI_ACPI_5_1_GTDT_TIMER_FLAG_TIMER_INTERRUPT_MODE BIT0
  1149. #define EFI_ACPI_5_1_GTDT_TIMER_FLAG_TIMER_INTERRUPT_POLARITY BIT1
  1150. #define EFI_ACPI_5_1_GTDT_TIMER_FLAG_ALWAYS_ON_CAPABILITY BIT2
  1151. ///
  1152. /// Platform Timer Type
  1153. ///
  1154. #define EFI_ACPI_5_1_GTDT_GT_BLOCK 0
  1155. #define EFI_ACPI_5_1_GTDT_SBSA_GENERIC_WATCHDOG 1
  1156. ///
  1157. /// GT Block Structure
  1158. ///
  1159. typedef struct {
  1160. UINT8 Type;
  1161. UINT16 Length;
  1162. UINT8 Reserved;
  1163. UINT64 CntCtlBase;
  1164. UINT32 GTBlockTimerCount;
  1165. UINT32 GTBlockTimerOffset;
  1166. } EFI_ACPI_5_1_GTDT_GT_BLOCK_STRUCTURE;
  1167. ///
  1168. /// GT Block Timer Structure
  1169. ///
  1170. typedef struct {
  1171. UINT8 GTFrameNumber;
  1172. UINT8 Reserved[3];
  1173. UINT64 CntBaseX;
  1174. UINT64 CntEL0BaseX;
  1175. UINT32 GTxPhysicalTimerGSIV;
  1176. UINT32 GTxPhysicalTimerFlags;
  1177. UINT32 GTxVirtualTimerGSIV;
  1178. UINT32 GTxVirtualTimerFlags;
  1179. UINT32 GTxCommonFlags;
  1180. } EFI_ACPI_5_1_GTDT_GT_BLOCK_TIMER_STRUCTURE;
  1181. ///
  1182. /// GT Block Physical Timers and Virtual Timers Flags. All other bits are reserved and must be 0.
  1183. ///
  1184. #define EFI_ACPI_5_1_GTDT_GT_BLOCK_TIMER_FLAG_TIMER_INTERRUPT_MODE BIT0
  1185. #define EFI_ACPI_5_1_GTDT_GT_BLOCK_TIMER_FLAG_TIMER_INTERRUPT_POLARITY BIT1
  1186. ///
  1187. /// Common Flags Flags. All other bits are reserved and must be 0.
  1188. ///
  1189. #define EFI_ACPI_5_1_GTDT_GT_BLOCK_COMMON_FLAG_SECURE_TIMER BIT0
  1190. #define EFI_ACPI_5_1_GTDT_GT_BLOCK_COMMON_FLAG_ALWAYS_ON_CAPABILITY BIT1
  1191. ///
  1192. /// SBSA Generic Watchdog Structure
  1193. ///
  1194. typedef struct {
  1195. UINT8 Type;
  1196. UINT16 Length;
  1197. UINT8 Reserved;
  1198. UINT64 RefreshFramePhysicalAddress;
  1199. UINT64 WatchdogControlFramePhysicalAddress;
  1200. UINT32 WatchdogTimerGSIV;
  1201. UINT32 WatchdogTimerFlags;
  1202. } EFI_ACPI_5_1_GTDT_SBSA_GENERIC_WATCHDOG_STRUCTURE;
  1203. ///
  1204. /// SBSA Generic Watchdog Timer Flags. All other bits are reserved and must be 0.
  1205. ///
  1206. #define EFI_ACPI_5_1_GTDT_SBSA_GENERIC_WATCHDOG_FLAG_TIMER_INTERRUPT_MODE BIT0
  1207. #define EFI_ACPI_5_1_GTDT_SBSA_GENERIC_WATCHDOG_FLAG_TIMER_INTERRUPT_POLARITY BIT1
  1208. #define EFI_ACPI_5_1_GTDT_SBSA_GENERIC_WATCHDOG_FLAG_SECURE_TIMER BIT2
  1209. ///
  1210. /// Boot Error Record Table (BERT)
  1211. ///
  1212. typedef struct {
  1213. EFI_ACPI_DESCRIPTION_HEADER Header;
  1214. UINT32 BootErrorRegionLength;
  1215. UINT64 BootErrorRegion;
  1216. } EFI_ACPI_5_1_BOOT_ERROR_RECORD_TABLE_HEADER;
  1217. ///
  1218. /// BERT Version (as defined in ACPI 5.1 spec.)
  1219. ///
  1220. #define EFI_ACPI_5_1_BOOT_ERROR_RECORD_TABLE_REVISION 0x01
  1221. ///
  1222. /// Boot Error Region Block Status Definition
  1223. ///
  1224. typedef struct {
  1225. UINT32 UncorrectableErrorValid:1;
  1226. UINT32 CorrectableErrorValid:1;
  1227. UINT32 MultipleUncorrectableErrors:1;
  1228. UINT32 MultipleCorrectableErrors:1;
  1229. UINT32 ErrorDataEntryCount:10;
  1230. UINT32 Reserved:18;
  1231. } EFI_ACPI_5_1_ERROR_BLOCK_STATUS;
  1232. ///
  1233. /// Boot Error Region Definition
  1234. ///
  1235. typedef struct {
  1236. EFI_ACPI_5_1_ERROR_BLOCK_STATUS BlockStatus;
  1237. UINT32 RawDataOffset;
  1238. UINT32 RawDataLength;
  1239. UINT32 DataLength;
  1240. UINT32 ErrorSeverity;
  1241. } EFI_ACPI_5_1_BOOT_ERROR_REGION_STRUCTURE;
  1242. //
  1243. // Boot Error Severity types
  1244. //
  1245. #define EFI_ACPI_5_1_ERROR_SEVERITY_CORRECTABLE 0x00
  1246. #define EFI_ACPI_5_1_ERROR_SEVERITY_FATAL 0x01
  1247. #define EFI_ACPI_5_1_ERROR_SEVERITY_CORRECTED 0x02
  1248. #define EFI_ACPI_5_1_ERROR_SEVERITY_NONE 0x03
  1249. ///
  1250. /// Generic Error Data Entry Definition
  1251. ///
  1252. typedef struct {
  1253. UINT8 SectionType[16];
  1254. UINT32 ErrorSeverity;
  1255. UINT16 Revision;
  1256. UINT8 ValidationBits;
  1257. UINT8 Flags;
  1258. UINT32 ErrorDataLength;
  1259. UINT8 FruId[16];
  1260. UINT8 FruText[20];
  1261. } EFI_ACPI_5_1_GENERIC_ERROR_DATA_ENTRY_STRUCTURE;
  1262. ///
  1263. /// Generic Error Data Entry Version (as defined in ACPI 5.1 spec.)
  1264. ///
  1265. #define EFI_ACPI_5_1_GENERIC_ERROR_DATA_ENTRY_REVISION 0x0201
  1266. ///
  1267. /// HEST - Hardware Error Source Table
  1268. ///
  1269. typedef struct {
  1270. EFI_ACPI_DESCRIPTION_HEADER Header;
  1271. UINT32 ErrorSourceCount;
  1272. } EFI_ACPI_5_1_HARDWARE_ERROR_SOURCE_TABLE_HEADER;
  1273. ///
  1274. /// HEST Version (as defined in ACPI 5.1 spec.)
  1275. ///
  1276. #define EFI_ACPI_5_1_HARDWARE_ERROR_SOURCE_TABLE_REVISION 0x01
  1277. //
  1278. // Error Source structure types.
  1279. //
  1280. #define EFI_ACPI_5_1_IA32_ARCHITECTURE_MACHINE_CHECK_EXCEPTION 0x00
  1281. #define EFI_ACPI_5_1_IA32_ARCHITECTURE_CORRECTED_MACHINE_CHECK 0x01
  1282. #define EFI_ACPI_5_1_IA32_ARCHITECTURE_NMI_ERROR 0x02
  1283. #define EFI_ACPI_5_1_PCI_EXPRESS_ROOT_PORT_AER 0x06
  1284. #define EFI_ACPI_5_1_PCI_EXPRESS_DEVICE_AER 0x07
  1285. #define EFI_ACPI_5_1_PCI_EXPRESS_BRIDGE_AER 0x08
  1286. #define EFI_ACPI_5_1_GENERIC_HARDWARE_ERROR 0x09
  1287. //
  1288. // Error Source structure flags.
  1289. //
  1290. #define EFI_ACPI_5_1_ERROR_SOURCE_FLAG_FIRMWARE_FIRST (1 << 0)
  1291. #define EFI_ACPI_5_1_ERROR_SOURCE_FLAG_GLOBAL (1 << 1)
  1292. ///
  1293. /// IA-32 Architecture Machine Check Exception Structure Definition
  1294. ///
  1295. typedef struct {
  1296. UINT16 Type;
  1297. UINT16 SourceId;
  1298. UINT8 Reserved0[2];
  1299. UINT8 Flags;
  1300. UINT8 Enabled;
  1301. UINT32 NumberOfRecordsToPreAllocate;
  1302. UINT32 MaxSectionsPerRecord;
  1303. UINT64 GlobalCapabilityInitData;
  1304. UINT64 GlobalControlInitData;
  1305. UINT8 NumberOfHardwareBanks;
  1306. UINT8 Reserved1[7];
  1307. } EFI_ACPI_5_1_IA32_ARCHITECTURE_MACHINE_CHECK_EXCEPTION_STRUCTURE;
  1308. ///
  1309. /// IA-32 Architecture Machine Check Bank Structure Definition
  1310. ///
  1311. typedef struct {
  1312. UINT8 BankNumber;
  1313. UINT8 ClearStatusOnInitialization;
  1314. UINT8 StatusDataFormat;
  1315. UINT8 Reserved0;
  1316. UINT32 ControlRegisterMsrAddress;
  1317. UINT64 ControlInitData;
  1318. UINT32 StatusRegisterMsrAddress;
  1319. UINT32 AddressRegisterMsrAddress;
  1320. UINT32 MiscRegisterMsrAddress;
  1321. } EFI_ACPI_5_1_IA32_ARCHITECTURE_MACHINE_CHECK_ERROR_BANK_STRUCTURE;
  1322. ///
  1323. /// IA-32 Architecture Machine Check Bank Structure MCA data format
  1324. ///
  1325. #define EFI_ACPI_5_1_IA32_ARCHITECTURE_MACHINE_CHECK_ERROR_DATA_FORMAT_IA32 0x00
  1326. #define EFI_ACPI_5_1_IA32_ARCHITECTURE_MACHINE_CHECK_ERROR_DATA_FORMAT_INTEL64 0x01
  1327. #define EFI_ACPI_5_1_IA32_ARCHITECTURE_MACHINE_CHECK_ERROR_DATA_FORMAT_AMD64 0x02
  1328. //
  1329. // Hardware Error Notification types. All other values are reserved
  1330. //
  1331. #define EFI_ACPI_5_1_HARDWARE_ERROR_NOTIFICATION_POLLED 0x00
  1332. #define EFI_ACPI_5_1_HARDWARE_ERROR_NOTIFICATION_EXTERNAL_INTERRUPT 0x01
  1333. #define EFI_ACPI_5_1_HARDWARE_ERROR_NOTIFICATION_LOCAL_INTERRUPT 0x02
  1334. #define EFI_ACPI_5_1_HARDWARE_ERROR_NOTIFICATION_SCI 0x03
  1335. #define EFI_ACPI_5_1_HARDWARE_ERROR_NOTIFICATION_NMI 0x04
  1336. ///
  1337. /// Hardware Error Notification Configuration Write Enable Structure Definition
  1338. ///
  1339. typedef struct {
  1340. UINT16 Type:1;
  1341. UINT16 PollInterval:1;
  1342. UINT16 SwitchToPollingThresholdValue:1;
  1343. UINT16 SwitchToPollingThresholdWindow:1;
  1344. UINT16 ErrorThresholdValue:1;
  1345. UINT16 ErrorThresholdWindow:1;
  1346. UINT16 Reserved:10;
  1347. } EFI_ACPI_5_1_HARDWARE_ERROR_NOTIFICATION_CONFIGURATION_WRITE_ENABLE_STRUCTURE;
  1348. ///
  1349. /// Hardware Error Notification Structure Definition
  1350. ///
  1351. typedef struct {
  1352. UINT8 Type;
  1353. UINT8 Length;
  1354. EFI_ACPI_5_1_HARDWARE_ERROR_NOTIFICATION_CONFIGURATION_WRITE_ENABLE_STRUCTURE ConfigurationWriteEnable;
  1355. UINT32 PollInterval;
  1356. UINT32 Vector;
  1357. UINT32 SwitchToPollingThresholdValue;
  1358. UINT32 SwitchToPollingThresholdWindow;
  1359. UINT32 ErrorThresholdValue;
  1360. UINT32 ErrorThresholdWindow;
  1361. } EFI_ACPI_5_1_HARDWARE_ERROR_NOTIFICATION_STRUCTURE;
  1362. ///
  1363. /// IA-32 Architecture Corrected Machine Check Structure Definition
  1364. ///
  1365. typedef struct {
  1366. UINT16 Type;
  1367. UINT16 SourceId;
  1368. UINT8 Reserved0[2];
  1369. UINT8 Flags;
  1370. UINT8 Enabled;
  1371. UINT32 NumberOfRecordsToPreAllocate;
  1372. UINT32 MaxSectionsPerRecord;
  1373. EFI_ACPI_5_1_HARDWARE_ERROR_NOTIFICATION_STRUCTURE NotificationStructure;
  1374. UINT8 NumberOfHardwareBanks;
  1375. UINT8 Reserved1[3];
  1376. } EFI_ACPI_5_1_IA32_ARCHITECTURE_CORRECTED_MACHINE_CHECK_STRUCTURE;
  1377. ///
  1378. /// IA-32 Architecture NMI Error Structure Definition
  1379. ///
  1380. typedef struct {
  1381. UINT16 Type;
  1382. UINT16 SourceId;
  1383. UINT8 Reserved0[2];
  1384. UINT32 NumberOfRecordsToPreAllocate;
  1385. UINT32 MaxSectionsPerRecord;
  1386. UINT32 MaxRawDataLength;
  1387. } EFI_ACPI_5_1_IA32_ARCHITECTURE_NMI_ERROR_STRUCTURE;
  1388. ///
  1389. /// PCI Express Root Port AER Structure Definition
  1390. ///
  1391. typedef struct {
  1392. UINT16 Type;
  1393. UINT16 SourceId;
  1394. UINT8 Reserved0[2];
  1395. UINT8 Flags;
  1396. UINT8 Enabled;
  1397. UINT32 NumberOfRecordsToPreAllocate;
  1398. UINT32 MaxSectionsPerRecord;
  1399. UINT32 Bus;
  1400. UINT16 Device;
  1401. UINT16 Function;
  1402. UINT16 DeviceControl;
  1403. UINT8 Reserved1[2];
  1404. UINT32 UncorrectableErrorMask;
  1405. UINT32 UncorrectableErrorSeverity;
  1406. UINT32 CorrectableErrorMask;
  1407. UINT32 AdvancedErrorCapabilitiesAndControl;
  1408. UINT32 RootErrorCommand;
  1409. } EFI_ACPI_5_1_PCI_EXPRESS_ROOT_PORT_AER_STRUCTURE;
  1410. ///
  1411. /// PCI Express Device AER Structure Definition
  1412. ///
  1413. typedef struct {
  1414. UINT16 Type;
  1415. UINT16 SourceId;
  1416. UINT8 Reserved0[2];
  1417. UINT8 Flags;
  1418. UINT8 Enabled;
  1419. UINT32 NumberOfRecordsToPreAllocate;
  1420. UINT32 MaxSectionsPerRecord;
  1421. UINT32 Bus;
  1422. UINT16 Device;
  1423. UINT16 Function;
  1424. UINT16 DeviceControl;
  1425. UINT8 Reserved1[2];
  1426. UINT32 UncorrectableErrorMask;
  1427. UINT32 UncorrectableErrorSeverity;
  1428. UINT32 CorrectableErrorMask;
  1429. UINT32 AdvancedErrorCapabilitiesAndControl;
  1430. } EFI_ACPI_5_1_PCI_EXPRESS_DEVICE_AER_STRUCTURE;
  1431. ///
  1432. /// PCI Express Bridge AER Structure Definition
  1433. ///
  1434. typedef struct {
  1435. UINT16 Type;
  1436. UINT16 SourceId;
  1437. UINT8 Reserved0[2];
  1438. UINT8 Flags;
  1439. UINT8 Enabled;
  1440. UINT32 NumberOfRecordsToPreAllocate;
  1441. UINT32 MaxSectionsPerRecord;
  1442. UINT32 Bus;
  1443. UINT16 Device;
  1444. UINT16 Function;
  1445. UINT16 DeviceControl;
  1446. UINT8 Reserved1[2];
  1447. UINT32 UncorrectableErrorMask;
  1448. UINT32 UncorrectableErrorSeverity;
  1449. UINT32 CorrectableErrorMask;
  1450. UINT32 AdvancedErrorCapabilitiesAndControl;
  1451. UINT32 SecondaryUncorrectableErrorMask;
  1452. UINT32 SecondaryUncorrectableErrorSeverity;
  1453. UINT32 SecondaryAdvancedErrorCapabilitiesAndControl;
  1454. } EFI_ACPI_5_1_PCI_EXPRESS_BRIDGE_AER_STRUCTURE;
  1455. ///
  1456. /// Generic Hardware Error Source Structure Definition
  1457. ///
  1458. typedef struct {
  1459. UINT16 Type;
  1460. UINT16 SourceId;
  1461. UINT16 RelatedSourceId;
  1462. UINT8 Flags;
  1463. UINT8 Enabled;
  1464. UINT32 NumberOfRecordsToPreAllocate;
  1465. UINT32 MaxSectionsPerRecord;
  1466. UINT32 MaxRawDataLength;
  1467. EFI_ACPI_5_1_GENERIC_ADDRESS_STRUCTURE ErrorStatusAddress;
  1468. EFI_ACPI_5_1_HARDWARE_ERROR_NOTIFICATION_STRUCTURE NotificationStructure;
  1469. UINT32 ErrorStatusBlockLength;
  1470. } EFI_ACPI_5_1_GENERIC_HARDWARE_ERROR_SOURCE_STRUCTURE;
  1471. ///
  1472. /// Generic Error Status Definition
  1473. ///
  1474. typedef struct {
  1475. EFI_ACPI_5_1_ERROR_BLOCK_STATUS BlockStatus;
  1476. UINT32 RawDataOffset;
  1477. UINT32 RawDataLength;
  1478. UINT32 DataLength;
  1479. UINT32 ErrorSeverity;
  1480. } EFI_ACPI_5_1_GENERIC_ERROR_STATUS_STRUCTURE;
  1481. ///
  1482. /// ERST - Error Record Serialization Table
  1483. ///
  1484. typedef struct {
  1485. EFI_ACPI_DESCRIPTION_HEADER Header;
  1486. UINT32 SerializationHeaderSize;
  1487. UINT8 Reserved0[4];
  1488. UINT32 InstructionEntryCount;
  1489. } EFI_ACPI_5_1_ERROR_RECORD_SERIALIZATION_TABLE_HEADER;
  1490. ///
  1491. /// ERST Version (as defined in ACPI 5.1 spec.)
  1492. ///
  1493. #define EFI_ACPI_5_1_ERROR_RECORD_SERIALIZATION_TABLE_REVISION 0x01
  1494. ///
  1495. /// ERST Serialization Actions
  1496. ///
  1497. #define EFI_ACPI_5_1_ERST_BEGIN_WRITE_OPERATION 0x00
  1498. #define EFI_ACPI_5_1_ERST_BEGIN_READ_OPERATION 0x01
  1499. #define EFI_ACPI_5_1_ERST_BEGIN_CLEAR_OPERATION 0x02
  1500. #define EFI_ACPI_5_1_ERST_END_OPERATION 0x03
  1501. #define EFI_ACPI_5_1_ERST_SET_RECORD_OFFSET 0x04
  1502. #define EFI_ACPI_5_1_ERST_EXECUTE_OPERATION 0x05
  1503. #define EFI_ACPI_5_1_ERST_CHECK_BUSY_STATUS 0x06
  1504. #define EFI_ACPI_5_1_ERST_GET_COMMAND_STATUS 0x07
  1505. #define EFI_ACPI_5_1_ERST_GET_RECORD_IDENTIFIER 0x08
  1506. #define EFI_ACPI_5_1_ERST_SET_RECORD_IDENTIFIER 0x09
  1507. #define EFI_ACPI_5_1_ERST_GET_RECORD_COUNT 0x0A
  1508. #define EFI_ACPI_5_1_ERST_BEGIN_DUMMY_WRITE_OPERATION 0x0B
  1509. #define EFI_ACPI_5_1_ERST_GET_ERROR_LOG_ADDRESS_RANGE 0x0D
  1510. #define EFI_ACPI_5_1_ERST_GET_ERROR_LOG_ADDRESS_RANGE_LENGTH 0x0E
  1511. #define EFI_ACPI_5_1_ERST_GET_ERROR_LOG_ADDRESS_RANGE_ATTRIBUTES 0x0F
  1512. ///
  1513. /// ERST Action Command Status
  1514. ///
  1515. #define EFI_ACPI_5_1_ERST_STATUS_SUCCESS 0x00
  1516. #define EFI_ACPI_5_1_ERST_STATUS_NOT_ENOUGH_SPACE 0x01
  1517. #define EFI_ACPI_5_1_ERST_STATUS_HARDWARE_NOT_AVAILABLE 0x02
  1518. #define EFI_ACPI_5_1_ERST_STATUS_FAILED 0x03
  1519. #define EFI_ACPI_5_1_ERST_STATUS_RECORD_STORE_EMPTY 0x04
  1520. #define EFI_ACPI_5_1_ERST_STATUS_RECORD_NOT_FOUND 0x05
  1521. ///
  1522. /// ERST Serialization Instructions
  1523. ///
  1524. #define EFI_ACPI_5_1_ERST_READ_REGISTER 0x00
  1525. #define EFI_ACPI_5_1_ERST_READ_REGISTER_VALUE 0x01
  1526. #define EFI_ACPI_5_1_ERST_WRITE_REGISTER 0x02
  1527. #define EFI_ACPI_5_1_ERST_WRITE_REGISTER_VALUE 0x03
  1528. #define EFI_ACPI_5_1_ERST_NOOP 0x04
  1529. #define EFI_ACPI_5_1_ERST_LOAD_VAR1 0x05
  1530. #define EFI_ACPI_5_1_ERST_LOAD_VAR2 0x06
  1531. #define EFI_ACPI_5_1_ERST_STORE_VAR1 0x07
  1532. #define EFI_ACPI_5_1_ERST_ADD 0x08
  1533. #define EFI_ACPI_5_1_ERST_SUBTRACT 0x09
  1534. #define EFI_ACPI_5_1_ERST_ADD_VALUE 0x0A
  1535. #define EFI_ACPI_5_1_ERST_SUBTRACT_VALUE 0x0B
  1536. #define EFI_ACPI_5_1_ERST_STALL 0x0C
  1537. #define EFI_ACPI_5_1_ERST_STALL_WHILE_TRUE 0x0D
  1538. #define EFI_ACPI_5_1_ERST_SKIP_NEXT_INSTRUCTION_IF_TRUE 0x0E
  1539. #define EFI_ACPI_5_1_ERST_GOTO 0x0F
  1540. #define EFI_ACPI_5_1_ERST_SET_SRC_ADDRESS_BASE 0x10
  1541. #define EFI_ACPI_5_1_ERST_SET_DST_ADDRESS_BASE 0x11
  1542. #define EFI_ACPI_5_1_ERST_MOVE_DATA 0x12
  1543. ///
  1544. /// ERST Instruction Flags
  1545. ///
  1546. #define EFI_ACPI_5_1_ERST_PRESERVE_REGISTER 0x01
  1547. ///
  1548. /// ERST Serialization Instruction Entry
  1549. ///
  1550. typedef struct {
  1551. UINT8 SerializationAction;
  1552. UINT8 Instruction;
  1553. UINT8 Flags;
  1554. UINT8 Reserved0;
  1555. EFI_ACPI_5_1_GENERIC_ADDRESS_STRUCTURE RegisterRegion;
  1556. UINT64 Value;
  1557. UINT64 Mask;
  1558. } EFI_ACPI_5_1_ERST_SERIALIZATION_INSTRUCTION_ENTRY;
  1559. ///
  1560. /// EINJ - Error Injection Table
  1561. ///
  1562. typedef struct {
  1563. EFI_ACPI_DESCRIPTION_HEADER Header;
  1564. UINT32 InjectionHeaderSize;
  1565. UINT8 InjectionFlags;
  1566. UINT8 Reserved0[3];
  1567. UINT32 InjectionEntryCount;
  1568. } EFI_ACPI_5_1_ERROR_INJECTION_TABLE_HEADER;
  1569. ///
  1570. /// EINJ Version (as defined in ACPI 5.1 spec.)
  1571. ///
  1572. #define EFI_ACPI_5_1_ERROR_INJECTION_TABLE_REVISION 0x01
  1573. ///
  1574. /// EINJ Error Injection Actions
  1575. ///
  1576. #define EFI_ACPI_5_1_EINJ_BEGIN_INJECTION_OPERATION 0x00
  1577. #define EFI_ACPI_5_1_EINJ_GET_TRIGGER_ERROR_ACTION_TABLE 0x01
  1578. #define EFI_ACPI_5_1_EINJ_SET_ERROR_TYPE 0x02
  1579. #define EFI_ACPI_5_1_EINJ_GET_ERROR_TYPE 0x03
  1580. #define EFI_ACPI_5_1_EINJ_END_OPERATION 0x04
  1581. #define EFI_ACPI_5_1_EINJ_EXECUTE_OPERATION 0x05
  1582. #define EFI_ACPI_5_1_EINJ_CHECK_BUSY_STATUS 0x06
  1583. #define EFI_ACPI_5_1_EINJ_GET_COMMAND_STATUS 0x07
  1584. #define EFI_ACPI_5_1_EINJ_TRIGGER_ERROR 0xFF
  1585. ///
  1586. /// EINJ Action Command Status
  1587. ///
  1588. #define EFI_ACPI_5_1_EINJ_STATUS_SUCCESS 0x00
  1589. #define EFI_ACPI_5_1_EINJ_STATUS_UNKNOWN_FAILURE 0x01
  1590. #define EFI_ACPI_5_1_EINJ_STATUS_INVALID_ACCESS 0x02
  1591. ///
  1592. /// EINJ Error Type Definition
  1593. ///
  1594. #define EFI_ACPI_5_1_EINJ_ERROR_PROCESSOR_CORRECTABLE (1 << 0)
  1595. #define EFI_ACPI_5_1_EINJ_ERROR_PROCESSOR_UNCORRECTABLE_NONFATAL (1 << 1)
  1596. #define EFI_ACPI_5_1_EINJ_ERROR_PROCESSOR_UNCORRECTABLE_FATAL (1 << 2)
  1597. #define EFI_ACPI_5_1_EINJ_ERROR_MEMORY_CORRECTABLE (1 << 3)
  1598. #define EFI_ACPI_5_1_EINJ_ERROR_MEMORY_UNCORRECTABLE_NONFATAL (1 << 4)
  1599. #define EFI_ACPI_5_1_EINJ_ERROR_MEMORY_UNCORRECTABLE_FATAL (1 << 5)
  1600. #define EFI_ACPI_5_1_EINJ_ERROR_PCI_EXPRESS_CORRECTABLE (1 << 6)
  1601. #define EFI_ACPI_5_1_EINJ_ERROR_PCI_EXPRESS_UNCORRECTABLE_NONFATAL (1 << 7)
  1602. #define EFI_ACPI_5_1_EINJ_ERROR_PCI_EXPRESS_UNCORRECTABLE_FATAL (1 << 8)
  1603. #define EFI_ACPI_5_1_EINJ_ERROR_PLATFORM_CORRECTABLE (1 << 9)
  1604. #define EFI_ACPI_5_1_EINJ_ERROR_PLATFORM_UNCORRECTABLE_NONFATAL (1 << 10)
  1605. #define EFI_ACPI_5_1_EINJ_ERROR_PLATFORM_UNCORRECTABLE_FATAL (1 << 11)
  1606. ///
  1607. /// EINJ Injection Instructions
  1608. ///
  1609. #define EFI_ACPI_5_1_EINJ_READ_REGISTER 0x00
  1610. #define EFI_ACPI_5_1_EINJ_READ_REGISTER_VALUE 0x01
  1611. #define EFI_ACPI_5_1_EINJ_WRITE_REGISTER 0x02
  1612. #define EFI_ACPI_5_1_EINJ_WRITE_REGISTER_VALUE 0x03
  1613. #define EFI_ACPI_5_1_EINJ_NOOP 0x04
  1614. ///
  1615. /// EINJ Instruction Flags
  1616. ///
  1617. #define EFI_ACPI_5_1_EINJ_PRESERVE_REGISTER 0x01
  1618. ///
  1619. /// EINJ Injection Instruction Entry
  1620. ///
  1621. typedef struct {
  1622. UINT8 InjectionAction;
  1623. UINT8 Instruction;
  1624. UINT8 Flags;
  1625. UINT8 Reserved0;
  1626. EFI_ACPI_5_1_GENERIC_ADDRESS_STRUCTURE RegisterRegion;
  1627. UINT64 Value;
  1628. UINT64 Mask;
  1629. } EFI_ACPI_5_1_EINJ_INJECTION_INSTRUCTION_ENTRY;
  1630. ///
  1631. /// EINJ Trigger Action Table
  1632. ///
  1633. typedef struct {
  1634. UINT32 HeaderSize;
  1635. UINT32 Revision;
  1636. UINT32 TableSize;
  1637. UINT32 EntryCount;
  1638. } EFI_ACPI_5_1_EINJ_TRIGGER_ACTION_TABLE;
  1639. ///
  1640. /// Platform Communications Channel Table (PCCT)
  1641. ///
  1642. typedef struct {
  1643. EFI_ACPI_DESCRIPTION_HEADER Header;
  1644. UINT32 Flags;
  1645. UINT64 Reserved;
  1646. } EFI_ACPI_5_1_PLATFORM_COMMUNICATION_CHANNEL_TABLE_HEADER;
  1647. ///
  1648. /// PCCT Version (as defined in ACPI 5.1 spec.)
  1649. ///
  1650. #define EFI_ACPI_5_1_PLATFORM_COMMUNICATION_CHANNEL_TABLE_REVISION 0x01
  1651. ///
  1652. /// PCCT Global Flags
  1653. ///
  1654. #define EFI_ACPI_5_1_PCCT_FLAGS_SCI_DOORBELL BIT0
  1655. //
  1656. // PCCT Subspace type
  1657. //
  1658. #define EFI_ACPI_5_1_PCCT_SUBSPACE_TYPE_GENERIC 0x00
  1659. ///
  1660. /// PCC Subspace Structure Header
  1661. ///
  1662. typedef struct {
  1663. UINT8 Type;
  1664. UINT8 Length;
  1665. } EFI_ACPI_5_1_PCCT_SUBSPACE_HEADER;
  1666. ///
  1667. /// Generic Communications Subspace Structure
  1668. ///
  1669. typedef struct {
  1670. UINT8 Type;
  1671. UINT8 Length;
  1672. UINT8 Reserved[6];
  1673. UINT64 BaseAddress;
  1674. UINT64 AddressLength;
  1675. EFI_ACPI_5_1_GENERIC_ADDRESS_STRUCTURE DoorbellRegister;
  1676. UINT64 DoorbellPreserve;
  1677. UINT64 DoorbellWrite;
  1678. UINT32 NominalLatency;
  1679. UINT32 MaximumPeriodicAccessRate;
  1680. UINT16 MinimumRequestTurnaroundTime;
  1681. } EFI_ACPI_5_1_PCCT_SUBSPACE_GENERIC;
  1682. ///
  1683. /// Generic Communications Channel Shared Memory Region
  1684. ///
  1685. typedef struct {
  1686. UINT8 Command;
  1687. UINT8 Reserved:7;
  1688. UINT8 GenerateSci:1;
  1689. } EFI_ACPI_5_1_PCCT_GENERIC_SHARED_MEMORY_REGION_COMMAND;
  1690. typedef struct {
  1691. UINT8 CommandComplete:1;
  1692. UINT8 SciDoorbell:1;
  1693. UINT8 Error:1;
  1694. UINT8 PlatformNotification:1;
  1695. UINT8 Reserved:4;
  1696. UINT8 Reserved1;
  1697. } EFI_ACPI_5_1_PCCT_GENERIC_SHARED_MEMORY_REGION_STATUS;
  1698. typedef struct {
  1699. UINT32 Signature;
  1700. EFI_ACPI_5_1_PCCT_GENERIC_SHARED_MEMORY_REGION_COMMAND Command;
  1701. EFI_ACPI_5_1_PCCT_GENERIC_SHARED_MEMORY_REGION_STATUS Status;
  1702. } EFI_ACPI_5_1_PCCT_GENERIC_SHARED_MEMORY_REGION_HEADER;
  1703. //
  1704. // Known table signatures
  1705. //
  1706. ///
  1707. /// "RSD PTR " Root System Description Pointer
  1708. ///
  1709. #define EFI_ACPI_5_1_ROOT_SYSTEM_DESCRIPTION_POINTER_SIGNATURE SIGNATURE_64('R', 'S', 'D', ' ', 'P', 'T', 'R', ' ')
  1710. ///
  1711. /// "APIC" Multiple APIC Description Table
  1712. ///
  1713. #define EFI_ACPI_5_1_MULTIPLE_APIC_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_32('A', 'P', 'I', 'C')
  1714. ///
  1715. /// "BERT" Boot Error Record Table
  1716. ///
  1717. #define EFI_ACPI_5_1_BOOT_ERROR_RECORD_TABLE_SIGNATURE SIGNATURE_32('B', 'E', 'R', 'T')
  1718. ///
  1719. /// "BGRT" Boot Graphics Resource Table
  1720. ///
  1721. #define EFI_ACPI_5_1_BOOT_GRAPHICS_RESOURCE_TABLE_SIGNATURE SIGNATURE_32('B', 'G', 'R', 'T')
  1722. ///
  1723. /// "CPEP" Corrected Platform Error Polling Table
  1724. ///
  1725. #define EFI_ACPI_5_1_CORRECTED_PLATFORM_ERROR_POLLING_TABLE_SIGNATURE SIGNATURE_32('C', 'P', 'E', 'P')
  1726. ///
  1727. /// "DSDT" Differentiated System Description Table
  1728. ///
  1729. #define EFI_ACPI_5_1_DIFFERENTIATED_SYSTEM_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_32('D', 'S', 'D', 'T')
  1730. ///
  1731. /// "ECDT" Embedded Controller Boot Resources Table
  1732. ///
  1733. #define EFI_ACPI_5_1_EMBEDDED_CONTROLLER_BOOT_RESOURCES_TABLE_SIGNATURE SIGNATURE_32('E', 'C', 'D', 'T')
  1734. ///
  1735. /// "EINJ" Error Injection Table
  1736. ///
  1737. #define EFI_ACPI_5_1_ERROR_INJECTION_TABLE_SIGNATURE SIGNATURE_32('E', 'I', 'N', 'J')
  1738. ///
  1739. /// "ERST" Error Record Serialization Table
  1740. ///
  1741. #define EFI_ACPI_5_1_ERROR_RECORD_SERIALIZATION_TABLE_SIGNATURE SIGNATURE_32('E', 'R', 'S', 'T')
  1742. ///
  1743. /// "FACP" Fixed ACPI Description Table
  1744. ///
  1745. #define EFI_ACPI_5_1_FIXED_ACPI_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_32('F', 'A', 'C', 'P')
  1746. ///
  1747. /// "FACS" Firmware ACPI Control Structure
  1748. ///
  1749. #define EFI_ACPI_5_1_FIRMWARE_ACPI_CONTROL_STRUCTURE_SIGNATURE SIGNATURE_32('F', 'A', 'C', 'S')
  1750. ///
  1751. /// "FPDT" Firmware Performance Data Table
  1752. ///
  1753. #define EFI_ACPI_5_1_FIRMWARE_PERFORMANCE_DATA_TABLE_SIGNATURE SIGNATURE_32('F', 'P', 'D', 'T')
  1754. ///
  1755. /// "GTDT" Generic Timer Description Table
  1756. ///
  1757. #define EFI_ACPI_5_1_GENERIC_TIMER_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_32('G', 'T', 'D', 'T')
  1758. ///
  1759. /// "HEST" Hardware Error Source Table
  1760. ///
  1761. #define EFI_ACPI_5_1_HARDWARE_ERROR_SOURCE_TABLE_SIGNATURE SIGNATURE_32('H', 'E', 'S', 'T')
  1762. ///
  1763. /// "MPST" Memory Power State Table
  1764. ///
  1765. #define EFI_ACPI_5_1_MEMORY_POWER_STATE_TABLE_SIGNATURE SIGNATURE_32('M', 'P', 'S', 'T')
  1766. ///
  1767. /// "MSCT" Maximum System Characteristics Table
  1768. ///
  1769. #define EFI_ACPI_5_1_MAXIMUM_SYSTEM_CHARACTERISTICS_TABLE_SIGNATURE SIGNATURE_32('M', 'S', 'C', 'T')
  1770. ///
  1771. /// "PMTT" Platform Memory Topology Table
  1772. ///
  1773. #define EFI_ACPI_5_1_PLATFORM_MEMORY_TOPOLOGY_TABLE_SIGNATURE SIGNATURE_32('P', 'M', 'T', 'T')
  1774. ///
  1775. /// "PSDT" Persistent System Description Table
  1776. ///
  1777. #define EFI_ACPI_5_1_PERSISTENT_SYSTEM_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_32('P', 'S', 'D', 'T')
  1778. ///
  1779. /// "RASF" ACPI RAS Feature Table
  1780. ///
  1781. #define EFI_ACPI_5_1_ACPI_RAS_FEATURE_TABLE_SIGNATURE SIGNATURE_32('R', 'A', 'S', 'F')
  1782. ///
  1783. /// "RSDT" Root System Description Table
  1784. ///
  1785. #define EFI_ACPI_5_1_ROOT_SYSTEM_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_32('R', 'S', 'D', 'T')
  1786. ///
  1787. /// "SBST" Smart Battery Specification Table
  1788. ///
  1789. #define EFI_ACPI_5_1_SMART_BATTERY_SPECIFICATION_TABLE_SIGNATURE SIGNATURE_32('S', 'B', 'S', 'T')
  1790. ///
  1791. /// "SLIT" System Locality Information Table
  1792. ///
  1793. #define EFI_ACPI_5_1_SYSTEM_LOCALITY_INFORMATION_TABLE_SIGNATURE SIGNATURE_32('S', 'L', 'I', 'T')
  1794. ///
  1795. /// "SRAT" System Resource Affinity Table
  1796. ///
  1797. #define EFI_ACPI_5_1_SYSTEM_RESOURCE_AFFINITY_TABLE_SIGNATURE SIGNATURE_32('S', 'R', 'A', 'T')
  1798. ///
  1799. /// "SSDT" Secondary System Description Table
  1800. ///
  1801. #define EFI_ACPI_5_1_SECONDARY_SYSTEM_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_32('S', 'S', 'D', 'T')
  1802. ///
  1803. /// "XSDT" Extended System Description Table
  1804. ///
  1805. #define EFI_ACPI_5_1_EXTENDED_SYSTEM_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_32('X', 'S', 'D', 'T')
  1806. ///
  1807. /// "BOOT" MS Simple Boot Spec
  1808. ///
  1809. #define EFI_ACPI_5_1_SIMPLE_BOOT_FLAG_TABLE_SIGNATURE SIGNATURE_32('B', 'O', 'O', 'T')
  1810. ///
  1811. /// "CSRT" MS Core System Resource Table
  1812. ///
  1813. #define EFI_ACPI_5_1_CORE_SYSTEM_RESOURCE_TABLE_SIGNATURE SIGNATURE_32('C', 'S', 'R', 'T')
  1814. ///
  1815. /// "DBG2" MS Debug Port 2 Spec
  1816. ///
  1817. #define EFI_ACPI_5_1_DEBUG_PORT_2_TABLE_SIGNATURE SIGNATURE_32('D', 'B', 'G', '2')
  1818. ///
  1819. /// "DBGP" MS Debug Port Spec
  1820. ///
  1821. #define EFI_ACPI_5_1_DEBUG_PORT_TABLE_SIGNATURE SIGNATURE_32('D', 'B', 'G', 'P')
  1822. ///
  1823. /// "DMAR" DMA Remapping Table
  1824. ///
  1825. #define EFI_ACPI_5_1_DMA_REMAPPING_TABLE_SIGNATURE SIGNATURE_32('D', 'M', 'A', 'R')
  1826. ///
  1827. /// "DRTM" Dynamic Root of Trust for Measurement Table
  1828. ///
  1829. #define EFI_ACPI_5_1_DYNAMIC_ROOT_OF_TRUST_FOR_MEASUREMENT_TABLE_SIGNATURE SIGNATURE_32('D', 'R', 'T', 'M')
  1830. ///
  1831. /// "ETDT" Event Timer Description Table
  1832. ///
  1833. #define EFI_ACPI_5_1_EVENT_TIMER_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_32('E', 'T', 'D', 'T')
  1834. ///
  1835. /// "HPET" IA-PC High Precision Event Timer Table
  1836. ///
  1837. #define EFI_ACPI_5_1_HIGH_PRECISION_EVENT_TIMER_TABLE_SIGNATURE SIGNATURE_32('H', 'P', 'E', 'T')
  1838. ///
  1839. /// "iBFT" iSCSI Boot Firmware Table
  1840. ///
  1841. #define EFI_ACPI_5_1_ISCSI_BOOT_FIRMWARE_TABLE_SIGNATURE SIGNATURE_32('i', 'B', 'F', 'T')
  1842. ///
  1843. /// "IVRS" I/O Virtualization Reporting Structure
  1844. ///
  1845. #define EFI_ACPI_5_1_IO_VIRTUALIZATION_REPORTING_STRUCTURE_SIGNATURE SIGNATURE_32('I', 'V', 'R', 'S')
  1846. ///
  1847. /// "LPIT" Low Power Idle Table
  1848. ///
  1849. #define EFI_ACPI_5_1_IO_LOW_POWER_IDLE_TABLE_STRUCTURE_SIGNATURE SIGNATURE_32('L', 'P', 'I', 'T')
  1850. ///
  1851. /// "MCFG" PCI Express Memory Mapped Configuration Space Base Address Description Table
  1852. ///
  1853. #define EFI_ACPI_5_1_PCI_EXPRESS_MEMORY_MAPPED_CONFIGURATION_SPACE_BASE_ADDRESS_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_32('M', 'C', 'F', 'G')
  1854. ///
  1855. /// "MCHI" Management Controller Host Interface Table
  1856. ///
  1857. #define EFI_ACPI_5_1_MANAGEMENT_CONTROLLER_HOST_INTERFACE_TABLE_SIGNATURE SIGNATURE_32('M', 'C', 'H', 'I')
  1858. ///
  1859. /// "MSDM" MS Data Management Table
  1860. ///
  1861. #define EFI_ACPI_5_1_DATA_MANAGEMENT_TABLE_SIGNATURE SIGNATURE_32('M', 'S', 'D', 'M')
  1862. ///
  1863. /// "SLIC" MS Software Licensing Table Specification
  1864. ///
  1865. #define EFI_ACPI_5_1_SOFTWARE_LICENSING_TABLE_SIGNATURE SIGNATURE_32('S', 'L', 'I', 'C')
  1866. ///
  1867. /// "SPCR" Serial Port Concole Redirection Table
  1868. ///
  1869. #define EFI_ACPI_5_1_SERIAL_PORT_CONSOLE_REDIRECTION_TABLE_SIGNATURE SIGNATURE_32('S', 'P', 'C', 'R')
  1870. ///
  1871. /// "SPMI" Server Platform Management Interface Table
  1872. ///
  1873. #define EFI_ACPI_5_1_SERVER_PLATFORM_MANAGEMENT_INTERFACE_TABLE_SIGNATURE SIGNATURE_32('S', 'P', 'M', 'I')
  1874. ///
  1875. /// "TCPA" Trusted Computing Platform Alliance Capabilities Table
  1876. ///
  1877. #define EFI_ACPI_5_1_TRUSTED_COMPUTING_PLATFORM_ALLIANCE_CAPABILITIES_TABLE_SIGNATURE SIGNATURE_32('T', 'C', 'P', 'A')
  1878. ///
  1879. /// "TPM2" Trusted Computing Platform 1 Table
  1880. ///
  1881. #define EFI_ACPI_5_1_TRUSTED_COMPUTING_PLATFORM_2_TABLE_SIGNATURE SIGNATURE_32('T', 'P', 'M', '2')
  1882. ///
  1883. /// "UEFI" UEFI ACPI Data Table
  1884. ///
  1885. #define EFI_ACPI_5_1_UEFI_ACPI_DATA_TABLE_SIGNATURE SIGNATURE_32('U', 'E', 'F', 'I')
  1886. ///
  1887. /// "WAET" Windows ACPI Emulated Devices Table
  1888. ///
  1889. #define EFI_ACPI_5_1_WINDOWS_ACPI_EMULATED_DEVICES_TABLE_SIGNATURE SIGNATURE_32('W', 'A', 'E', 'T')
  1890. ///
  1891. /// "WDAT" Watchdog Action Table
  1892. ///
  1893. #define EFI_ACPI_5_1_WATCHDOG_ACTION_TABLE_SIGNATURE SIGNATURE_32('W', 'D', 'A', 'T')
  1894. ///
  1895. /// "WDRT" Watchdog Resource Table
  1896. ///
  1897. #define EFI_ACPI_5_1_WATCHDOG_RESOURCE_TABLE_SIGNATURE SIGNATURE_32('W', 'D', 'R', 'T')
  1898. ///
  1899. /// "WPBT" MS Platform Binary Table
  1900. ///
  1901. #define EFI_ACPI_5_1_PLATFORM_BINARY_TABLE_SIGNATURE SIGNATURE_32('W', 'P', 'B', 'T')
  1902. #pragma pack()
  1903. #endif