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.

Acpi60.h 80KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348
  1. /** @file
  2. ACPI 6.0 definitions from the ACPI Specification Revision 6.0 Errata A January, 2016.
  3. Copyright (c) 2015 - 2017, Intel Corporation. All rights reserved.<BR>
  4. (C) Copyright 2015-2016 Hewlett Packard Enterprise Development LP<BR>
  5. This program and the accompanying materials
  6. are licensed and made available under the terms and conditions of the BSD License
  7. which accompanies this distribution. The full text of the license may be found at
  8. http://opensource.org/licenses/bsd-license.php
  9. THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
  10. WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
  11. **/
  12. #ifndef _ACPI_6_0_H_
  13. #define _ACPI_6_0_H_
  14. FILE_LICENCE ( BSD3 );
  15. #include <ipxe/efi/IndustryStandard/Acpi51.h>
  16. //
  17. // Ensure proper structure formats
  18. //
  19. #pragma pack(1)
  20. ///
  21. /// ACPI 6.0 Generic Address Space definition
  22. ///
  23. typedef struct {
  24. UINT8 AddressSpaceId;
  25. UINT8 RegisterBitWidth;
  26. UINT8 RegisterBitOffset;
  27. UINT8 AccessSize;
  28. UINT64 Address;
  29. } EFI_ACPI_6_0_GENERIC_ADDRESS_STRUCTURE;
  30. //
  31. // Generic Address Space Address IDs
  32. //
  33. #define EFI_ACPI_6_0_SYSTEM_MEMORY 0
  34. #define EFI_ACPI_6_0_SYSTEM_IO 1
  35. #define EFI_ACPI_6_0_PCI_CONFIGURATION_SPACE 2
  36. #define EFI_ACPI_6_0_EMBEDDED_CONTROLLER 3
  37. #define EFI_ACPI_6_0_SMBUS 4
  38. #define EFI_ACPI_6_0_PLATFORM_COMMUNICATION_CHANNEL 0x0A
  39. #define EFI_ACPI_6_0_FUNCTIONAL_FIXED_HARDWARE 0x7F
  40. //
  41. // Generic Address Space Access Sizes
  42. //
  43. #define EFI_ACPI_6_0_UNDEFINED 0
  44. #define EFI_ACPI_6_0_BYTE 1
  45. #define EFI_ACPI_6_0_WORD 2
  46. #define EFI_ACPI_6_0_DWORD 3
  47. #define EFI_ACPI_6_0_QWORD 4
  48. //
  49. // ACPI 6.0 table structures
  50. //
  51. ///
  52. /// Root System Description Pointer Structure
  53. ///
  54. typedef struct {
  55. UINT64 Signature;
  56. UINT8 Checksum;
  57. UINT8 OemId[6];
  58. UINT8 Revision;
  59. UINT32 RsdtAddress;
  60. UINT32 Length;
  61. UINT64 XsdtAddress;
  62. UINT8 ExtendedChecksum;
  63. UINT8 Reserved[3];
  64. } EFI_ACPI_6_0_ROOT_SYSTEM_DESCRIPTION_POINTER;
  65. ///
  66. /// RSD_PTR Revision (as defined in ACPI 6.0 spec.)
  67. ///
  68. #define EFI_ACPI_6_0_ROOT_SYSTEM_DESCRIPTION_POINTER_REVISION 0x02 ///< ACPISpec (Revision 6.0) says current value is 2
  69. ///
  70. /// Common table header, this prefaces all ACPI tables, including FACS, but
  71. /// excluding the RSD PTR structure
  72. ///
  73. typedef struct {
  74. UINT32 Signature;
  75. UINT32 Length;
  76. } EFI_ACPI_6_0_COMMON_HEADER;
  77. //
  78. // Root System Description Table
  79. // No definition needed as it is a common description table header, the same with
  80. // EFI_ACPI_DESCRIPTION_HEADER, followed by a variable number of UINT32 table pointers.
  81. //
  82. ///
  83. /// RSDT Revision (as defined in ACPI 6.0 spec.)
  84. ///
  85. #define EFI_ACPI_6_0_ROOT_SYSTEM_DESCRIPTION_TABLE_REVISION 0x01
  86. //
  87. // Extended System Description Table
  88. // No definition needed as it is a common description table header, the same with
  89. // EFI_ACPI_DESCRIPTION_HEADER, followed by a variable number of UINT64 table pointers.
  90. //
  91. ///
  92. /// XSDT Revision (as defined in ACPI 6.0 spec.)
  93. ///
  94. #define EFI_ACPI_6_0_EXTENDED_SYSTEM_DESCRIPTION_TABLE_REVISION 0x01
  95. ///
  96. /// Fixed ACPI Description Table Structure (FADT)
  97. ///
  98. typedef struct {
  99. EFI_ACPI_DESCRIPTION_HEADER Header;
  100. UINT32 FirmwareCtrl;
  101. UINT32 Dsdt;
  102. UINT8 Reserved0;
  103. UINT8 PreferredPmProfile;
  104. UINT16 SciInt;
  105. UINT32 SmiCmd;
  106. UINT8 AcpiEnable;
  107. UINT8 AcpiDisable;
  108. UINT8 S4BiosReq;
  109. UINT8 PstateCnt;
  110. UINT32 Pm1aEvtBlk;
  111. UINT32 Pm1bEvtBlk;
  112. UINT32 Pm1aCntBlk;
  113. UINT32 Pm1bCntBlk;
  114. UINT32 Pm2CntBlk;
  115. UINT32 PmTmrBlk;
  116. UINT32 Gpe0Blk;
  117. UINT32 Gpe1Blk;
  118. UINT8 Pm1EvtLen;
  119. UINT8 Pm1CntLen;
  120. UINT8 Pm2CntLen;
  121. UINT8 PmTmrLen;
  122. UINT8 Gpe0BlkLen;
  123. UINT8 Gpe1BlkLen;
  124. UINT8 Gpe1Base;
  125. UINT8 CstCnt;
  126. UINT16 PLvl2Lat;
  127. UINT16 PLvl3Lat;
  128. UINT16 FlushSize;
  129. UINT16 FlushStride;
  130. UINT8 DutyOffset;
  131. UINT8 DutyWidth;
  132. UINT8 DayAlrm;
  133. UINT8 MonAlrm;
  134. UINT8 Century;
  135. UINT16 IaPcBootArch;
  136. UINT8 Reserved1;
  137. UINT32 Flags;
  138. EFI_ACPI_6_0_GENERIC_ADDRESS_STRUCTURE ResetReg;
  139. UINT8 ResetValue;
  140. UINT16 ArmBootArch;
  141. UINT8 MinorVersion;
  142. UINT64 XFirmwareCtrl;
  143. UINT64 XDsdt;
  144. EFI_ACPI_6_0_GENERIC_ADDRESS_STRUCTURE XPm1aEvtBlk;
  145. EFI_ACPI_6_0_GENERIC_ADDRESS_STRUCTURE XPm1bEvtBlk;
  146. EFI_ACPI_6_0_GENERIC_ADDRESS_STRUCTURE XPm1aCntBlk;
  147. EFI_ACPI_6_0_GENERIC_ADDRESS_STRUCTURE XPm1bCntBlk;
  148. EFI_ACPI_6_0_GENERIC_ADDRESS_STRUCTURE XPm2CntBlk;
  149. EFI_ACPI_6_0_GENERIC_ADDRESS_STRUCTURE XPmTmrBlk;
  150. EFI_ACPI_6_0_GENERIC_ADDRESS_STRUCTURE XGpe0Blk;
  151. EFI_ACPI_6_0_GENERIC_ADDRESS_STRUCTURE XGpe1Blk;
  152. EFI_ACPI_6_0_GENERIC_ADDRESS_STRUCTURE SleepControlReg;
  153. EFI_ACPI_6_0_GENERIC_ADDRESS_STRUCTURE SleepStatusReg;
  154. UINT64 HypervisorVendorIdentity;
  155. } EFI_ACPI_6_0_FIXED_ACPI_DESCRIPTION_TABLE;
  156. ///
  157. /// FADT Version (as defined in ACPI 6.0 spec.)
  158. ///
  159. #define EFI_ACPI_6_0_FIXED_ACPI_DESCRIPTION_TABLE_REVISION 0x06
  160. #define EFI_ACPI_6_0_FIXED_ACPI_DESCRIPTION_TABLE_MINOR_REVISION 0x00
  161. //
  162. // Fixed ACPI Description Table Preferred Power Management Profile
  163. //
  164. #define EFI_ACPI_6_0_PM_PROFILE_UNSPECIFIED 0
  165. #define EFI_ACPI_6_0_PM_PROFILE_DESKTOP 1
  166. #define EFI_ACPI_6_0_PM_PROFILE_MOBILE 2
  167. #define EFI_ACPI_6_0_PM_PROFILE_WORKSTATION 3
  168. #define EFI_ACPI_6_0_PM_PROFILE_ENTERPRISE_SERVER 4
  169. #define EFI_ACPI_6_0_PM_PROFILE_SOHO_SERVER 5
  170. #define EFI_ACPI_6_0_PM_PROFILE_APPLIANCE_PC 6
  171. #define EFI_ACPI_6_0_PM_PROFILE_PERFORMANCE_SERVER 7
  172. #define EFI_ACPI_6_0_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_6_0_LEGACY_DEVICES BIT0
  178. #define EFI_ACPI_6_0_8042 BIT1
  179. #define EFI_ACPI_6_0_VGA_NOT_PRESENT BIT2
  180. #define EFI_ACPI_6_0_MSI_NOT_SUPPORTED BIT3
  181. #define EFI_ACPI_6_0_PCIE_ASPM_CONTROLS BIT4
  182. #define EFI_ACPI_6_0_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_6_0_ARM_PSCI_COMPLIANT BIT0
  188. #define EFI_ACPI_6_0_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_6_0_WBINVD BIT0
  194. #define EFI_ACPI_6_0_WBINVD_FLUSH BIT1
  195. #define EFI_ACPI_6_0_PROC_C1 BIT2
  196. #define EFI_ACPI_6_0_P_LVL2_UP BIT3
  197. #define EFI_ACPI_6_0_PWR_BUTTON BIT4
  198. #define EFI_ACPI_6_0_SLP_BUTTON BIT5
  199. #define EFI_ACPI_6_0_FIX_RTC BIT6
  200. #define EFI_ACPI_6_0_RTC_S4 BIT7
  201. #define EFI_ACPI_6_0_TMR_VAL_EXT BIT8
  202. #define EFI_ACPI_6_0_DCK_CAP BIT9
  203. #define EFI_ACPI_6_0_RESET_REG_SUP BIT10
  204. #define EFI_ACPI_6_0_SEALED_CASE BIT11
  205. #define EFI_ACPI_6_0_HEADLESS BIT12
  206. #define EFI_ACPI_6_0_CPU_SW_SLP BIT13
  207. #define EFI_ACPI_6_0_PCI_EXP_WAK BIT14
  208. #define EFI_ACPI_6_0_USE_PLATFORM_CLOCK BIT15
  209. #define EFI_ACPI_6_0_S4_RTC_STS_VALID BIT16
  210. #define EFI_ACPI_6_0_REMOTE_POWER_ON_CAPABLE BIT17
  211. #define EFI_ACPI_6_0_FORCE_APIC_CLUSTER_MODEL BIT18
  212. #define EFI_ACPI_6_0_FORCE_APIC_PHYSICAL_DESTINATION_MODE BIT19
  213. #define EFI_ACPI_6_0_HW_REDUCED_ACPI BIT20
  214. #define EFI_ACPI_6_0_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_6_0_FIRMWARE_ACPI_CONTROL_STRUCTURE;
  231. ///
  232. /// FACS Version (as defined in ACPI 6.0 spec.)
  233. ///
  234. #define EFI_ACPI_6_0_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_6_0_S4BIOS_F BIT0
  240. #define EFI_ACPI_6_0_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_6_0_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_6_0_DIFFERENTIATED_SYSTEM_DESCRIPTION_TABLE_REVISION 0x02
  254. #define EFI_ACPI_6_0_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_6_0_MULTIPLE_APIC_DESCRIPTION_TABLE_HEADER;
  264. ///
  265. /// MADT Revision (as defined in ACPI 6.0 Errata A spec.)
  266. ///
  267. #define EFI_ACPI_6_0_MULTIPLE_APIC_DESCRIPTION_TABLE_REVISION 0x04
  268. ///
  269. /// Multiple APIC Flags
  270. /// All other bits are reserved and must be set to 0.
  271. ///
  272. #define EFI_ACPI_6_0_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_6_0_PROCESSOR_LOCAL_APIC 0x00
  279. #define EFI_ACPI_6_0_IO_APIC 0x01
  280. #define EFI_ACPI_6_0_INTERRUPT_SOURCE_OVERRIDE 0x02
  281. #define EFI_ACPI_6_0_NON_MASKABLE_INTERRUPT_SOURCE 0x03
  282. #define EFI_ACPI_6_0_LOCAL_APIC_NMI 0x04
  283. #define EFI_ACPI_6_0_LOCAL_APIC_ADDRESS_OVERRIDE 0x05
  284. #define EFI_ACPI_6_0_IO_SAPIC 0x06
  285. #define EFI_ACPI_6_0_LOCAL_SAPIC 0x07
  286. #define EFI_ACPI_6_0_PLATFORM_INTERRUPT_SOURCES 0x08
  287. #define EFI_ACPI_6_0_PROCESSOR_LOCAL_X2APIC 0x09
  288. #define EFI_ACPI_6_0_LOCAL_X2APIC_NMI 0x0A
  289. #define EFI_ACPI_6_0_GIC 0x0B
  290. #define EFI_ACPI_6_0_GICD 0x0C
  291. #define EFI_ACPI_6_0_GIC_MSI_FRAME 0x0D
  292. #define EFI_ACPI_6_0_GICR 0x0E
  293. #define EFI_ACPI_6_0_GIC_ITS 0x0F
  294. //
  295. // APIC Structure Definitions
  296. //
  297. ///
  298. /// Processor Local APIC Structure Definition
  299. ///
  300. typedef struct {
  301. UINT8 Type;
  302. UINT8 Length;
  303. UINT8 AcpiProcessorUid;
  304. UINT8 ApicId;
  305. UINT32 Flags;
  306. } EFI_ACPI_6_0_PROCESSOR_LOCAL_APIC_STRUCTURE;
  307. ///
  308. /// Local APIC Flags. All other bits are reserved and must be 0.
  309. ///
  310. #define EFI_ACPI_6_0_LOCAL_APIC_ENABLED BIT0
  311. ///
  312. /// IO APIC Structure
  313. ///
  314. typedef struct {
  315. UINT8 Type;
  316. UINT8 Length;
  317. UINT8 IoApicId;
  318. UINT8 Reserved;
  319. UINT32 IoApicAddress;
  320. UINT32 GlobalSystemInterruptBase;
  321. } EFI_ACPI_6_0_IO_APIC_STRUCTURE;
  322. ///
  323. /// Interrupt Source Override Structure
  324. ///
  325. typedef struct {
  326. UINT8 Type;
  327. UINT8 Length;
  328. UINT8 Bus;
  329. UINT8 Source;
  330. UINT32 GlobalSystemInterrupt;
  331. UINT16 Flags;
  332. } EFI_ACPI_6_0_INTERRUPT_SOURCE_OVERRIDE_STRUCTURE;
  333. ///
  334. /// Platform Interrupt Sources Structure Definition
  335. ///
  336. typedef struct {
  337. UINT8 Type;
  338. UINT8 Length;
  339. UINT16 Flags;
  340. UINT8 InterruptType;
  341. UINT8 ProcessorId;
  342. UINT8 ProcessorEid;
  343. UINT8 IoSapicVector;
  344. UINT32 GlobalSystemInterrupt;
  345. UINT32 PlatformInterruptSourceFlags;
  346. UINT8 CpeiProcessorOverride;
  347. UINT8 Reserved[31];
  348. } EFI_ACPI_6_0_PLATFORM_INTERRUPT_APIC_STRUCTURE;
  349. //
  350. // MPS INTI flags.
  351. // All other bits are reserved and must be set to 0.
  352. //
  353. #define EFI_ACPI_6_0_POLARITY (3 << 0)
  354. #define EFI_ACPI_6_0_TRIGGER_MODE (3 << 2)
  355. ///
  356. /// Non-Maskable Interrupt Source Structure
  357. ///
  358. typedef struct {
  359. UINT8 Type;
  360. UINT8 Length;
  361. UINT16 Flags;
  362. UINT32 GlobalSystemInterrupt;
  363. } EFI_ACPI_6_0_NON_MASKABLE_INTERRUPT_SOURCE_STRUCTURE;
  364. ///
  365. /// Local APIC NMI Structure
  366. ///
  367. typedef struct {
  368. UINT8 Type;
  369. UINT8 Length;
  370. UINT8 AcpiProcessorUid;
  371. UINT16 Flags;
  372. UINT8 LocalApicLint;
  373. } EFI_ACPI_6_0_LOCAL_APIC_NMI_STRUCTURE;
  374. ///
  375. /// Local APIC Address Override Structure
  376. ///
  377. typedef struct {
  378. UINT8 Type;
  379. UINT8 Length;
  380. UINT16 Reserved;
  381. UINT64 LocalApicAddress;
  382. } EFI_ACPI_6_0_LOCAL_APIC_ADDRESS_OVERRIDE_STRUCTURE;
  383. ///
  384. /// IO SAPIC Structure
  385. ///
  386. typedef struct {
  387. UINT8 Type;
  388. UINT8 Length;
  389. UINT8 IoApicId;
  390. UINT8 Reserved;
  391. UINT32 GlobalSystemInterruptBase;
  392. UINT64 IoSapicAddress;
  393. } EFI_ACPI_6_0_IO_SAPIC_STRUCTURE;
  394. ///
  395. /// Local SAPIC Structure
  396. /// This struct followed by a null-terminated ASCII string - ACPI Processor UID String
  397. ///
  398. typedef struct {
  399. UINT8 Type;
  400. UINT8 Length;
  401. UINT8 AcpiProcessorId;
  402. UINT8 LocalSapicId;
  403. UINT8 LocalSapicEid;
  404. UINT8 Reserved[3];
  405. UINT32 Flags;
  406. UINT32 ACPIProcessorUIDValue;
  407. } EFI_ACPI_6_0_PROCESSOR_LOCAL_SAPIC_STRUCTURE;
  408. ///
  409. /// Platform Interrupt Sources Structure
  410. ///
  411. typedef struct {
  412. UINT8 Type;
  413. UINT8 Length;
  414. UINT16 Flags;
  415. UINT8 InterruptType;
  416. UINT8 ProcessorId;
  417. UINT8 ProcessorEid;
  418. UINT8 IoSapicVector;
  419. UINT32 GlobalSystemInterrupt;
  420. UINT32 PlatformInterruptSourceFlags;
  421. } EFI_ACPI_6_0_PLATFORM_INTERRUPT_SOURCES_STRUCTURE;
  422. ///
  423. /// Platform Interrupt Source Flags.
  424. /// All other bits are reserved and must be set to 0.
  425. ///
  426. #define EFI_ACPI_6_0_CPEI_PROCESSOR_OVERRIDE BIT0
  427. ///
  428. /// Processor Local x2APIC Structure Definition
  429. ///
  430. typedef struct {
  431. UINT8 Type;
  432. UINT8 Length;
  433. UINT8 Reserved[2];
  434. UINT32 X2ApicId;
  435. UINT32 Flags;
  436. UINT32 AcpiProcessorUid;
  437. } EFI_ACPI_6_0_PROCESSOR_LOCAL_X2APIC_STRUCTURE;
  438. ///
  439. /// Local x2APIC NMI Structure
  440. ///
  441. typedef struct {
  442. UINT8 Type;
  443. UINT8 Length;
  444. UINT16 Flags;
  445. UINT32 AcpiProcessorUid;
  446. UINT8 LocalX2ApicLint;
  447. UINT8 Reserved[3];
  448. } EFI_ACPI_6_0_LOCAL_X2APIC_NMI_STRUCTURE;
  449. ///
  450. /// GIC Structure
  451. ///
  452. typedef struct {
  453. UINT8 Type;
  454. UINT8 Length;
  455. UINT16 Reserved;
  456. UINT32 CPUInterfaceNumber;
  457. UINT32 AcpiProcessorUid;
  458. UINT32 Flags;
  459. UINT32 ParkingProtocolVersion;
  460. UINT32 PerformanceInterruptGsiv;
  461. UINT64 ParkedAddress;
  462. UINT64 PhysicalBaseAddress;
  463. UINT64 GICV;
  464. UINT64 GICH;
  465. UINT32 VGICMaintenanceInterrupt;
  466. UINT64 GICRBaseAddress;
  467. UINT64 MPIDR;
  468. UINT8 ProcessorPowerEfficiencyClass;
  469. UINT8 Reserved2[3];
  470. } EFI_ACPI_6_0_GIC_STRUCTURE;
  471. ///
  472. /// GIC Flags. All other bits are reserved and must be 0.
  473. ///
  474. #define EFI_ACPI_6_0_GIC_ENABLED BIT0
  475. #define EFI_ACPI_6_0_PERFORMANCE_INTERRUPT_MODEL BIT1
  476. #define EFI_ACPI_6_0_VGIC_MAINTENANCE_INTERRUPT_MODE_FLAGS BIT2
  477. ///
  478. /// GIC Distributor Structure
  479. ///
  480. typedef struct {
  481. UINT8 Type;
  482. UINT8 Length;
  483. UINT16 Reserved1;
  484. UINT32 GicId;
  485. UINT64 PhysicalBaseAddress;
  486. UINT32 SystemVectorBase;
  487. UINT8 GicVersion;
  488. UINT8 Reserved2[3];
  489. } EFI_ACPI_6_0_GIC_DISTRIBUTOR_STRUCTURE;
  490. ///
  491. /// GIC Version
  492. ///
  493. #define EFI_ACPI_6_0_GIC_V1 0x01
  494. #define EFI_ACPI_6_0_GIC_V2 0x02
  495. #define EFI_ACPI_6_0_GIC_V3 0x03
  496. #define EFI_ACPI_6_0_GIC_V4 0x04
  497. ///
  498. /// GIC MSI Frame Structure
  499. ///
  500. typedef struct {
  501. UINT8 Type;
  502. UINT8 Length;
  503. UINT16 Reserved1;
  504. UINT32 GicMsiFrameId;
  505. UINT64 PhysicalBaseAddress;
  506. UINT32 Flags;
  507. UINT16 SPICount;
  508. UINT16 SPIBase;
  509. } EFI_ACPI_6_0_GIC_MSI_FRAME_STRUCTURE;
  510. ///
  511. /// GIC MSI Frame Flags. All other bits are reserved and must be 0.
  512. ///
  513. #define EFI_ACPI_6_0_SPI_COUNT_BASE_SELECT BIT0
  514. ///
  515. /// GICR Structure
  516. ///
  517. typedef struct {
  518. UINT8 Type;
  519. UINT8 Length;
  520. UINT16 Reserved;
  521. UINT64 DiscoveryRangeBaseAddress;
  522. UINT32 DiscoveryRangeLength;
  523. } EFI_ACPI_6_0_GICR_STRUCTURE;
  524. ///
  525. /// GIC Interrupt Translation Service Structure
  526. ///
  527. typedef struct {
  528. UINT8 Type;
  529. UINT8 Length;
  530. UINT16 Reserved;
  531. UINT32 GicItsId;
  532. UINT64 PhysicalBaseAddress;
  533. UINT32 Reserved2;
  534. } EFI_ACPI_6_0_GIC_ITS_STRUCTURE;
  535. ///
  536. /// Smart Battery Description Table (SBST)
  537. ///
  538. typedef struct {
  539. EFI_ACPI_DESCRIPTION_HEADER Header;
  540. UINT32 WarningEnergyLevel;
  541. UINT32 LowEnergyLevel;
  542. UINT32 CriticalEnergyLevel;
  543. } EFI_ACPI_6_0_SMART_BATTERY_DESCRIPTION_TABLE;
  544. ///
  545. /// SBST Version (as defined in ACPI 6.0 spec.)
  546. ///
  547. #define EFI_ACPI_6_0_SMART_BATTERY_DESCRIPTION_TABLE_REVISION 0x01
  548. ///
  549. /// Embedded Controller Boot Resources Table (ECDT)
  550. /// The table is followed by a null terminated ASCII string that contains
  551. /// a fully qualified reference to the name space object.
  552. ///
  553. typedef struct {
  554. EFI_ACPI_DESCRIPTION_HEADER Header;
  555. EFI_ACPI_6_0_GENERIC_ADDRESS_STRUCTURE EcControl;
  556. EFI_ACPI_6_0_GENERIC_ADDRESS_STRUCTURE EcData;
  557. UINT32 Uid;
  558. UINT8 GpeBit;
  559. } EFI_ACPI_6_0_EMBEDDED_CONTROLLER_BOOT_RESOURCES_TABLE;
  560. ///
  561. /// ECDT Version (as defined in ACPI 6.0 spec.)
  562. ///
  563. #define EFI_ACPI_6_0_EMBEDDED_CONTROLLER_BOOT_RESOURCES_TABLE_REVISION 0x01
  564. ///
  565. /// System Resource Affinity Table (SRAT). The rest of the table
  566. /// must be defined in a platform specific manner.
  567. ///
  568. typedef struct {
  569. EFI_ACPI_DESCRIPTION_HEADER Header;
  570. UINT32 Reserved1; ///< Must be set to 1
  571. UINT64 Reserved2;
  572. } EFI_ACPI_6_0_SYSTEM_RESOURCE_AFFINITY_TABLE_HEADER;
  573. ///
  574. /// SRAT Version (as defined in ACPI 6.0 spec.)
  575. ///
  576. #define EFI_ACPI_6_0_SYSTEM_RESOURCE_AFFINITY_TABLE_REVISION 0x03
  577. //
  578. // SRAT structure types.
  579. // All other values between 0x04 an 0xFF are reserved and
  580. // will be ignored by OSPM.
  581. //
  582. #define EFI_ACPI_6_0_PROCESSOR_LOCAL_APIC_SAPIC_AFFINITY 0x00
  583. #define EFI_ACPI_6_0_MEMORY_AFFINITY 0x01
  584. #define EFI_ACPI_6_0_PROCESSOR_LOCAL_X2APIC_AFFINITY 0x02
  585. #define EFI_ACPI_6_0_GICC_AFFINITY 0x03
  586. ///
  587. /// Processor Local APIC/SAPIC Affinity Structure Definition
  588. ///
  589. typedef struct {
  590. UINT8 Type;
  591. UINT8 Length;
  592. UINT8 ProximityDomain7To0;
  593. UINT8 ApicId;
  594. UINT32 Flags;
  595. UINT8 LocalSapicEid;
  596. UINT8 ProximityDomain31To8[3];
  597. UINT32 ClockDomain;
  598. } EFI_ACPI_6_0_PROCESSOR_LOCAL_APIC_SAPIC_AFFINITY_STRUCTURE;
  599. ///
  600. /// Local APIC/SAPIC Flags. All other bits are reserved and must be 0.
  601. ///
  602. #define EFI_ACPI_6_0_PROCESSOR_LOCAL_APIC_SAPIC_ENABLED (1 << 0)
  603. ///
  604. /// Memory Affinity Structure Definition
  605. ///
  606. typedef struct {
  607. UINT8 Type;
  608. UINT8 Length;
  609. UINT32 ProximityDomain;
  610. UINT16 Reserved1;
  611. UINT32 AddressBaseLow;
  612. UINT32 AddressBaseHigh;
  613. UINT32 LengthLow;
  614. UINT32 LengthHigh;
  615. UINT32 Reserved2;
  616. UINT32 Flags;
  617. UINT64 Reserved3;
  618. } EFI_ACPI_6_0_MEMORY_AFFINITY_STRUCTURE;
  619. //
  620. // Memory Flags. All other bits are reserved and must be 0.
  621. //
  622. #define EFI_ACPI_6_0_MEMORY_ENABLED (1 << 0)
  623. #define EFI_ACPI_6_0_MEMORY_HOT_PLUGGABLE (1 << 1)
  624. #define EFI_ACPI_6_0_MEMORY_NONVOLATILE (1 << 2)
  625. ///
  626. /// Processor Local x2APIC Affinity Structure Definition
  627. ///
  628. typedef struct {
  629. UINT8 Type;
  630. UINT8 Length;
  631. UINT8 Reserved1[2];
  632. UINT32 ProximityDomain;
  633. UINT32 X2ApicId;
  634. UINT32 Flags;
  635. UINT32 ClockDomain;
  636. UINT8 Reserved2[4];
  637. } EFI_ACPI_6_0_PROCESSOR_LOCAL_X2APIC_AFFINITY_STRUCTURE;
  638. ///
  639. /// GICC Affinity Structure Definition
  640. ///
  641. typedef struct {
  642. UINT8 Type;
  643. UINT8 Length;
  644. UINT32 ProximityDomain;
  645. UINT32 AcpiProcessorUid;
  646. UINT32 Flags;
  647. UINT32 ClockDomain;
  648. } EFI_ACPI_6_0_GICC_AFFINITY_STRUCTURE;
  649. ///
  650. /// GICC Flags. All other bits are reserved and must be 0.
  651. ///
  652. #define EFI_ACPI_6_0_GICC_ENABLED (1 << 0)
  653. ///
  654. /// System Locality Distance Information Table (SLIT).
  655. /// The rest of the table is a matrix.
  656. ///
  657. typedef struct {
  658. EFI_ACPI_DESCRIPTION_HEADER Header;
  659. UINT64 NumberOfSystemLocalities;
  660. } EFI_ACPI_6_0_SYSTEM_LOCALITY_DISTANCE_INFORMATION_TABLE_HEADER;
  661. ///
  662. /// SLIT Version (as defined in ACPI 6.0 spec.)
  663. ///
  664. #define EFI_ACPI_6_0_SYSTEM_LOCALITY_DISTANCE_INFORMATION_TABLE_REVISION 0x01
  665. ///
  666. /// Corrected Platform Error Polling Table (CPEP)
  667. ///
  668. typedef struct {
  669. EFI_ACPI_DESCRIPTION_HEADER Header;
  670. UINT8 Reserved[8];
  671. } EFI_ACPI_6_0_CORRECTED_PLATFORM_ERROR_POLLING_TABLE_HEADER;
  672. ///
  673. /// CPEP Version (as defined in ACPI 6.0 spec.)
  674. ///
  675. #define EFI_ACPI_6_0_CORRECTED_PLATFORM_ERROR_POLLING_TABLE_REVISION 0x01
  676. //
  677. // CPEP processor structure types.
  678. //
  679. #define EFI_ACPI_6_0_CPEP_PROCESSOR_APIC_SAPIC 0x00
  680. ///
  681. /// Corrected Platform Error Polling Processor Structure Definition
  682. ///
  683. typedef struct {
  684. UINT8 Type;
  685. UINT8 Length;
  686. UINT8 ProcessorId;
  687. UINT8 ProcessorEid;
  688. UINT32 PollingInterval;
  689. } EFI_ACPI_6_0_CPEP_PROCESSOR_APIC_SAPIC_STRUCTURE;
  690. ///
  691. /// Maximum System Characteristics Table (MSCT)
  692. ///
  693. typedef struct {
  694. EFI_ACPI_DESCRIPTION_HEADER Header;
  695. UINT32 OffsetProxDomInfo;
  696. UINT32 MaximumNumberOfProximityDomains;
  697. UINT32 MaximumNumberOfClockDomains;
  698. UINT64 MaximumPhysicalAddress;
  699. } EFI_ACPI_6_0_MAXIMUM_SYSTEM_CHARACTERISTICS_TABLE_HEADER;
  700. ///
  701. /// MSCT Version (as defined in ACPI 6.0 spec.)
  702. ///
  703. #define EFI_ACPI_6_0_MAXIMUM_SYSTEM_CHARACTERISTICS_TABLE_REVISION 0x01
  704. ///
  705. /// Maximum Proximity Domain Information Structure Definition
  706. ///
  707. typedef struct {
  708. UINT8 Revision;
  709. UINT8 Length;
  710. UINT32 ProximityDomainRangeLow;
  711. UINT32 ProximityDomainRangeHigh;
  712. UINT32 MaximumProcessorCapacity;
  713. UINT64 MaximumMemoryCapacity;
  714. } EFI_ACPI_6_0_MAXIMUM_PROXIMITY_DOMAIN_INFORMATION_STRUCTURE;
  715. ///
  716. /// ACPI RAS Feature Table definition.
  717. ///
  718. typedef struct {
  719. EFI_ACPI_DESCRIPTION_HEADER Header;
  720. UINT8 PlatformCommunicationChannelIdentifier[12];
  721. } EFI_ACPI_6_0_RAS_FEATURE_TABLE;
  722. ///
  723. /// RASF Version (as defined in ACPI 6.0 spec.)
  724. ///
  725. #define EFI_ACPI_6_0_RAS_FEATURE_TABLE_REVISION 0x01
  726. ///
  727. /// ACPI RASF Platform Communication Channel Shared Memory Region definition.
  728. ///
  729. typedef struct {
  730. UINT32 Signature;
  731. UINT16 Command;
  732. UINT16 Status;
  733. UINT16 Version;
  734. UINT8 RASCapabilities[16];
  735. UINT8 SetRASCapabilities[16];
  736. UINT16 NumberOfRASFParameterBlocks;
  737. UINT32 SetRASCapabilitiesStatus;
  738. } EFI_ACPI_6_0_RASF_PLATFORM_COMMUNICATION_CHANNEL_SHARED_MEMORY_REGION;
  739. ///
  740. /// ACPI RASF PCC command code
  741. ///
  742. #define EFI_ACPI_6_0_RASF_PCC_COMMAND_CODE_EXECUTE_RASF_COMMAND 0x01
  743. ///
  744. /// ACPI RASF Platform RAS Capabilities
  745. ///
  746. #define EFI_ACPI_6_0_RASF_PLATFORM_RAS_CAPABILITY_HARDWARE_BASED_PATROL_SCRUB_SUPPOTED 0x01
  747. #define EFI_ACPI_6_0_RASF_PLATFORM_RAS_CAPABILITY_HARDWARE_BASED_PATROL_SCRUB_SUPPOTED_AND_EXPOSED_TO_SOFTWARE 0x02
  748. ///
  749. /// ACPI RASF Parameter Block structure for PATROL_SCRUB
  750. ///
  751. typedef struct {
  752. UINT16 Type;
  753. UINT16 Version;
  754. UINT16 Length;
  755. UINT16 PatrolScrubCommand;
  756. UINT64 RequestedAddressRange[2];
  757. UINT64 ActualAddressRange[2];
  758. UINT16 Flags;
  759. UINT8 RequestedSpeed;
  760. } EFI_ACPI_6_0_RASF_PATROL_SCRUB_PLATFORM_BLOCK_STRUCTURE;
  761. ///
  762. /// ACPI RASF Patrol Scrub command
  763. ///
  764. #define EFI_ACPI_6_0_RASF_PATROL_SCRUB_COMMAND_GET_PATROL_PARAMETERS 0x01
  765. #define EFI_ACPI_6_0_RASF_PATROL_SCRUB_COMMAND_START_PATROL_SCRUBBER 0x02
  766. #define EFI_ACPI_6_0_RASF_PATROL_SCRUB_COMMAND_STOP_PATROL_SCRUBBER 0x03
  767. ///
  768. /// Memory Power State Table definition.
  769. ///
  770. typedef struct {
  771. EFI_ACPI_DESCRIPTION_HEADER Header;
  772. UINT8 PlatformCommunicationChannelIdentifier;
  773. UINT8 Reserved[3];
  774. // Memory Power Node Structure
  775. // Memory Power State Characteristics
  776. } EFI_ACPI_6_0_MEMORY_POWER_STATUS_TABLE;
  777. ///
  778. /// MPST Version (as defined in ACPI 6.0 spec.)
  779. ///
  780. #define EFI_ACPI_6_0_MEMORY_POWER_STATE_TABLE_REVISION 0x01
  781. ///
  782. /// MPST Platform Communication Channel Shared Memory Region definition.
  783. ///
  784. typedef struct {
  785. UINT32 Signature;
  786. UINT16 Command;
  787. UINT16 Status;
  788. UINT32 MemoryPowerCommandRegister;
  789. UINT32 MemoryPowerStatusRegister;
  790. UINT32 PowerStateId;
  791. UINT32 MemoryPowerNodeId;
  792. UINT64 MemoryEnergyConsumed;
  793. UINT64 ExpectedAveragePowerComsuned;
  794. } EFI_ACPI_6_0_MPST_PLATFORM_COMMUNICATION_CHANNEL_SHARED_MEMORY_REGION;
  795. ///
  796. /// ACPI MPST PCC command code
  797. ///
  798. #define EFI_ACPI_6_0_MPST_PCC_COMMAND_CODE_EXECUTE_MPST_COMMAND 0x03
  799. ///
  800. /// ACPI MPST Memory Power command
  801. ///
  802. #define EFI_ACPI_6_0_MPST_MEMORY_POWER_COMMAND_GET_MEMORY_POWER_STATE 0x01
  803. #define EFI_ACPI_6_0_MPST_MEMORY_POWER_COMMAND_SET_MEMORY_POWER_STATE 0x02
  804. #define EFI_ACPI_6_0_MPST_MEMORY_POWER_COMMAND_GET_AVERAGE_POWER_CONSUMED 0x03
  805. #define EFI_ACPI_6_0_MPST_MEMORY_POWER_COMMAND_GET_MEMORY_ENERGY_CONSUMED 0x04
  806. ///
  807. /// MPST Memory Power Node Table
  808. ///
  809. typedef struct {
  810. UINT8 PowerStateValue;
  811. UINT8 PowerStateInformationIndex;
  812. } EFI_ACPI_6_0_MPST_MEMORY_POWER_STATE;
  813. typedef struct {
  814. UINT8 Flag;
  815. UINT8 Reserved;
  816. UINT16 MemoryPowerNodeId;
  817. UINT32 Length;
  818. UINT64 AddressBase;
  819. UINT64 AddressLength;
  820. UINT32 NumberOfPowerStates;
  821. UINT32 NumberOfPhysicalComponents;
  822. //EFI_ACPI_6_0_MPST_MEMORY_POWER_STATE MemoryPowerState[NumberOfPowerStates];
  823. //UINT16 PhysicalComponentIdentifier[NumberOfPhysicalComponents];
  824. } EFI_ACPI_6_0_MPST_MEMORY_POWER_STRUCTURE;
  825. #define EFI_ACPI_6_0_MPST_MEMORY_POWER_STRUCTURE_FLAG_ENABLE 0x01
  826. #define EFI_ACPI_6_0_MPST_MEMORY_POWER_STRUCTURE_FLAG_POWER_MANAGED 0x02
  827. #define EFI_ACPI_6_0_MPST_MEMORY_POWER_STRUCTURE_FLAG_HOT_PLUGGABLE 0x04
  828. typedef struct {
  829. UINT16 MemoryPowerNodeCount;
  830. UINT8 Reserved[2];
  831. } EFI_ACPI_6_0_MPST_MEMORY_POWER_NODE_TABLE;
  832. ///
  833. /// MPST Memory Power State Characteristics Table
  834. ///
  835. typedef struct {
  836. UINT8 PowerStateStructureID;
  837. UINT8 Flag;
  838. UINT16 Reserved;
  839. UINT32 AveragePowerConsumedInMPS0;
  840. UINT32 RelativePowerSavingToMPS0;
  841. UINT64 ExitLatencyToMPS0;
  842. } EFI_ACPI_6_0_MPST_MEMORY_POWER_STATE_CHARACTERISTICS_STRUCTURE;
  843. #define EFI_ACPI_6_0_MPST_MEMORY_POWER_STATE_CHARACTERISTICS_STRUCTURE_FLAG_MEMORY_CONTENT_PRESERVED 0x01
  844. #define EFI_ACPI_6_0_MPST_MEMORY_POWER_STATE_CHARACTERISTICS_STRUCTURE_FLAG_AUTONOMOUS_MEMORY_POWER_STATE_ENTRY 0x02
  845. #define EFI_ACPI_6_0_MPST_MEMORY_POWER_STATE_CHARACTERISTICS_STRUCTURE_FLAG_AUTONOMOUS_MEMORY_POWER_STATE_EXIT 0x04
  846. typedef struct {
  847. UINT16 MemoryPowerStateCharacteristicsCount;
  848. UINT8 Reserved[2];
  849. } EFI_ACPI_6_0_MPST_MEMORY_POWER_STATE_CHARACTERISTICS_TABLE;
  850. ///
  851. /// Memory Topology Table definition.
  852. ///
  853. typedef struct {
  854. EFI_ACPI_DESCRIPTION_HEADER Header;
  855. UINT32 Reserved;
  856. } EFI_ACPI_6_0_MEMORY_TOPOLOGY_TABLE;
  857. ///
  858. /// PMTT Version (as defined in ACPI 6.0 spec.)
  859. ///
  860. #define EFI_ACPI_6_0_MEMORY_TOPOLOGY_TABLE_REVISION 0x01
  861. ///
  862. /// Common Memory Aggregator Device Structure.
  863. ///
  864. typedef struct {
  865. UINT8 Type;
  866. UINT8 Reserved;
  867. UINT16 Length;
  868. UINT16 Flags;
  869. UINT16 Reserved1;
  870. } EFI_ACPI_6_0_PMMT_COMMON_MEMORY_AGGREGATOR_DEVICE_STRUCTURE;
  871. ///
  872. /// Memory Aggregator Device Type
  873. ///
  874. #define EFI_ACPI_6_0_PMMT_MEMORY_AGGREGATOR_DEVICE_TYPE_SOCKET 0x1
  875. #define EFI_ACPI_6_0_PMMT_MEMORY_AGGREGATOR_DEVICE_TYPE_MEMORY_CONTROLLER 0x2
  876. #define EFI_ACPI_6_0_PMMT_MEMORY_AGGREGATOR_DEVICE_TYPE_DIMM 0x3
  877. ///
  878. /// Socket Memory Aggregator Device Structure.
  879. ///
  880. typedef struct {
  881. EFI_ACPI_6_0_PMMT_COMMON_MEMORY_AGGREGATOR_DEVICE_STRUCTURE Header;
  882. UINT16 SocketIdentifier;
  883. UINT16 Reserved;
  884. //EFI_ACPI_6_0_PMMT_MEMORY_CONTROLLER_MEMORY_AGGREGATOR_DEVICE_STRUCTURE MemoryController[];
  885. } EFI_ACPI_6_0_PMMT_SOCKET_MEMORY_AGGREGATOR_DEVICE_STRUCTURE;
  886. ///
  887. /// MemoryController Memory Aggregator Device Structure.
  888. ///
  889. typedef struct {
  890. EFI_ACPI_6_0_PMMT_COMMON_MEMORY_AGGREGATOR_DEVICE_STRUCTURE Header;
  891. UINT32 ReadLatency;
  892. UINT32 WriteLatency;
  893. UINT32 ReadBandwidth;
  894. UINT32 WriteBandwidth;
  895. UINT16 OptimalAccessUnit;
  896. UINT16 OptimalAccessAlignment;
  897. UINT16 Reserved;
  898. UINT16 NumberOfProximityDomains;
  899. //UINT32 ProximityDomain[NumberOfProximityDomains];
  900. //EFI_ACPI_6_0_PMMT_DIMM_MEMORY_AGGREGATOR_DEVICE_STRUCTURE PhysicalComponent[];
  901. } EFI_ACPI_6_0_PMMT_MEMORY_CONTROLLER_MEMORY_AGGREGATOR_DEVICE_STRUCTURE;
  902. ///
  903. /// DIMM Memory Aggregator Device Structure.
  904. ///
  905. typedef struct {
  906. EFI_ACPI_6_0_PMMT_COMMON_MEMORY_AGGREGATOR_DEVICE_STRUCTURE Header;
  907. UINT16 PhysicalComponentIdentifier;
  908. UINT16 Reserved;
  909. UINT32 SizeOfDimm;
  910. UINT32 SmbiosHandle;
  911. } EFI_ACPI_6_0_PMMT_DIMM_MEMORY_AGGREGATOR_DEVICE_STRUCTURE;
  912. ///
  913. /// Boot Graphics Resource Table definition.
  914. ///
  915. typedef struct {
  916. EFI_ACPI_DESCRIPTION_HEADER Header;
  917. ///
  918. /// 2-bytes (16 bit) version ID. This value must be 1.
  919. ///
  920. UINT16 Version;
  921. ///
  922. /// 1-byte status field indicating current status about the table.
  923. /// Bits[7:1] = Reserved (must be zero)
  924. /// Bit [0] = Valid. A one indicates the boot image graphic is valid.
  925. ///
  926. UINT8 Status;
  927. ///
  928. /// 1-byte enumerated type field indicating format of the image.
  929. /// 0 = Bitmap
  930. /// 1 - 255 Reserved (for future use)
  931. ///
  932. UINT8 ImageType;
  933. ///
  934. /// 8-byte (64 bit) physical address pointing to the firmware's in-memory copy
  935. /// of the image bitmap.
  936. ///
  937. UINT64 ImageAddress;
  938. ///
  939. /// A 4-byte (32-bit) unsigned long describing the display X-offset of the boot image.
  940. /// (X, Y) display offset of the top left corner of the boot image.
  941. /// The top left corner of the display is at offset (0, 0).
  942. ///
  943. UINT32 ImageOffsetX;
  944. ///
  945. /// A 4-byte (32-bit) unsigned long describing the display Y-offset of the boot image.
  946. /// (X, Y) display offset of the top left corner of the boot image.
  947. /// The top left corner of the display is at offset (0, 0).
  948. ///
  949. UINT32 ImageOffsetY;
  950. } EFI_ACPI_6_0_BOOT_GRAPHICS_RESOURCE_TABLE;
  951. ///
  952. /// BGRT Revision
  953. ///
  954. #define EFI_ACPI_6_0_BOOT_GRAPHICS_RESOURCE_TABLE_REVISION 1
  955. ///
  956. /// BGRT Version
  957. ///
  958. #define EFI_ACPI_6_0_BGRT_VERSION 0x01
  959. ///
  960. /// BGRT Status
  961. ///
  962. #define EFI_ACPI_6_0_BGRT_STATUS_NOT_DISPLAYED 0x00
  963. #define EFI_ACPI_6_0_BGRT_STATUS_DISPLAYED 0x01
  964. ///
  965. /// BGRT Image Type
  966. ///
  967. #define EFI_ACPI_6_0_BGRT_IMAGE_TYPE_BMP 0x00
  968. ///
  969. /// FPDT Version (as defined in ACPI 6.0 spec.)
  970. ///
  971. #define EFI_ACPI_6_0_FIRMWARE_PERFORMANCE_DATA_TABLE_REVISION 0x01
  972. ///
  973. /// FPDT Performance Record Types
  974. ///
  975. #define EFI_ACPI_6_0_FPDT_RECORD_TYPE_FIRMWARE_BASIC_BOOT_POINTER 0x0000
  976. #define EFI_ACPI_6_0_FPDT_RECORD_TYPE_S3_PERFORMANCE_TABLE_POINTER 0x0001
  977. ///
  978. /// FPDT Performance Record Revision
  979. ///
  980. #define EFI_ACPI_6_0_FPDT_RECORD_REVISION_FIRMWARE_BASIC_BOOT_POINTER 0x01
  981. #define EFI_ACPI_6_0_FPDT_RECORD_REVISION_S3_PERFORMANCE_TABLE_POINTER 0x01
  982. ///
  983. /// FPDT Runtime Performance Record Types
  984. ///
  985. #define EFI_ACPI_6_0_FPDT_RUNTIME_RECORD_TYPE_S3_RESUME 0x0000
  986. #define EFI_ACPI_6_0_FPDT_RUNTIME_RECORD_TYPE_S3_SUSPEND 0x0001
  987. #define EFI_ACPI_6_0_FPDT_RUNTIME_RECORD_TYPE_FIRMWARE_BASIC_BOOT 0x0002
  988. ///
  989. /// FPDT Runtime Performance Record Revision
  990. ///
  991. #define EFI_ACPI_6_0_FPDT_RUNTIME_RECORD_REVISION_S3_RESUME 0x01
  992. #define EFI_ACPI_6_0_FPDT_RUNTIME_RECORD_REVISION_S3_SUSPEND 0x01
  993. #define EFI_ACPI_6_0_FPDT_RUNTIME_RECORD_REVISION_FIRMWARE_BASIC_BOOT 0x02
  994. ///
  995. /// FPDT Performance Record header
  996. ///
  997. typedef struct {
  998. UINT16 Type;
  999. UINT8 Length;
  1000. UINT8 Revision;
  1001. } EFI_ACPI_6_0_FPDT_PERFORMANCE_RECORD_HEADER;
  1002. ///
  1003. /// FPDT Performance Table header
  1004. ///
  1005. typedef struct {
  1006. UINT32 Signature;
  1007. UINT32 Length;
  1008. } EFI_ACPI_6_0_FPDT_PERFORMANCE_TABLE_HEADER;
  1009. ///
  1010. /// FPDT Firmware Basic Boot Performance Pointer Record Structure
  1011. ///
  1012. typedef struct {
  1013. EFI_ACPI_6_0_FPDT_PERFORMANCE_RECORD_HEADER Header;
  1014. UINT32 Reserved;
  1015. ///
  1016. /// 64-bit processor-relative physical address of the Basic Boot Performance Table.
  1017. ///
  1018. UINT64 BootPerformanceTablePointer;
  1019. } EFI_ACPI_6_0_FPDT_BOOT_PERFORMANCE_TABLE_POINTER_RECORD;
  1020. ///
  1021. /// FPDT S3 Performance Table Pointer Record Structure
  1022. ///
  1023. typedef struct {
  1024. EFI_ACPI_6_0_FPDT_PERFORMANCE_RECORD_HEADER Header;
  1025. UINT32 Reserved;
  1026. ///
  1027. /// 64-bit processor-relative physical address of the S3 Performance Table.
  1028. ///
  1029. UINT64 S3PerformanceTablePointer;
  1030. } EFI_ACPI_6_0_FPDT_S3_PERFORMANCE_TABLE_POINTER_RECORD;
  1031. ///
  1032. /// FPDT Firmware Basic Boot Performance Record Structure
  1033. ///
  1034. typedef struct {
  1035. EFI_ACPI_6_0_FPDT_PERFORMANCE_RECORD_HEADER Header;
  1036. UINT32 Reserved;
  1037. ///
  1038. /// Timer value logged at the beginning of firmware image execution.
  1039. /// This may not always be zero or near zero.
  1040. ///
  1041. UINT64 ResetEnd;
  1042. ///
  1043. /// Timer value logged just prior to loading the OS boot loader into memory.
  1044. /// For non-UEFI compatible boots, this field must be zero.
  1045. ///
  1046. UINT64 OsLoaderLoadImageStart;
  1047. ///
  1048. /// Timer value logged just prior to launching the previously loaded OS boot loader image.
  1049. /// For non-UEFI compatible boots, the timer value logged will be just prior
  1050. /// to the INT 19h handler invocation.
  1051. ///
  1052. UINT64 OsLoaderStartImageStart;
  1053. ///
  1054. /// Timer value logged at the point when the OS loader calls the
  1055. /// ExitBootServices function for UEFI compatible firmware.
  1056. /// For non-UEFI compatible boots, this field must be zero.
  1057. ///
  1058. UINT64 ExitBootServicesEntry;
  1059. ///
  1060. /// Timer value logged at the point just prior towhen the OS loader gaining
  1061. /// control back from calls the ExitBootServices function for UEFI compatible firmware.
  1062. /// For non-UEFI compatible boots, this field must be zero.
  1063. ///
  1064. UINT64 ExitBootServicesExit;
  1065. } EFI_ACPI_6_0_FPDT_FIRMWARE_BASIC_BOOT_RECORD;
  1066. ///
  1067. /// FPDT Firmware Basic Boot Performance Table signature
  1068. ///
  1069. #define EFI_ACPI_6_0_FPDT_BOOT_PERFORMANCE_TABLE_SIGNATURE SIGNATURE_32('F', 'B', 'P', 'T')
  1070. //
  1071. // FPDT Firmware Basic Boot Performance Table
  1072. //
  1073. typedef struct {
  1074. EFI_ACPI_6_0_FPDT_PERFORMANCE_TABLE_HEADER Header;
  1075. //
  1076. // one or more Performance Records.
  1077. //
  1078. } EFI_ACPI_6_0_FPDT_FIRMWARE_BASIC_BOOT_TABLE;
  1079. ///
  1080. /// FPDT "S3PT" S3 Performance Table
  1081. ///
  1082. #define EFI_ACPI_6_0_FPDT_S3_PERFORMANCE_TABLE_SIGNATURE SIGNATURE_32('S', '3', 'P', 'T')
  1083. //
  1084. // FPDT Firmware S3 Boot Performance Table
  1085. //
  1086. typedef struct {
  1087. EFI_ACPI_6_0_FPDT_PERFORMANCE_TABLE_HEADER Header;
  1088. //
  1089. // one or more Performance Records.
  1090. //
  1091. } EFI_ACPI_6_0_FPDT_FIRMWARE_S3_BOOT_TABLE;
  1092. ///
  1093. /// FPDT Basic S3 Resume Performance Record
  1094. ///
  1095. typedef struct {
  1096. EFI_ACPI_6_0_FPDT_PERFORMANCE_RECORD_HEADER Header;
  1097. ///
  1098. /// A count of the number of S3 resume cycles since the last full boot sequence.
  1099. ///
  1100. UINT32 ResumeCount;
  1101. ///
  1102. /// Timer recorded at the end of BIOS S3 resume, just prior to handoff to the
  1103. /// OS waking vector. Only the most recent resume cycle's time is retained.
  1104. ///
  1105. UINT64 FullResume;
  1106. ///
  1107. /// Average timer value of all resume cycles logged since the last full boot
  1108. /// sequence, including the most recent resume. Note that the entire log of
  1109. /// timer values does not need to be retained in order to calculate this average.
  1110. ///
  1111. UINT64 AverageResume;
  1112. } EFI_ACPI_6_0_FPDT_S3_RESUME_RECORD;
  1113. ///
  1114. /// FPDT Basic S3 Suspend Performance Record
  1115. ///
  1116. typedef struct {
  1117. EFI_ACPI_6_0_FPDT_PERFORMANCE_RECORD_HEADER Header;
  1118. ///
  1119. /// Timer value recorded at the OS write to SLP_TYP upon entry to S3.
  1120. /// Only the most recent suspend cycle's timer value is retained.
  1121. ///
  1122. UINT64 SuspendStart;
  1123. ///
  1124. /// Timer value recorded at the final firmware write to SLP_TYP (or other
  1125. /// mechanism) used to trigger hardware entry to S3.
  1126. /// Only the most recent suspend cycle's timer value is retained.
  1127. ///
  1128. UINT64 SuspendEnd;
  1129. } EFI_ACPI_6_0_FPDT_S3_SUSPEND_RECORD;
  1130. ///
  1131. /// Firmware Performance Record Table definition.
  1132. ///
  1133. typedef struct {
  1134. EFI_ACPI_DESCRIPTION_HEADER Header;
  1135. } EFI_ACPI_6_0_FIRMWARE_PERFORMANCE_RECORD_TABLE;
  1136. ///
  1137. /// Generic Timer Description Table definition.
  1138. ///
  1139. typedef struct {
  1140. EFI_ACPI_DESCRIPTION_HEADER Header;
  1141. UINT64 CntControlBasePhysicalAddress;
  1142. UINT32 Reserved;
  1143. UINT32 SecurePL1TimerGSIV;
  1144. UINT32 SecurePL1TimerFlags;
  1145. UINT32 NonSecurePL1TimerGSIV;
  1146. UINT32 NonSecurePL1TimerFlags;
  1147. UINT32 VirtualTimerGSIV;
  1148. UINT32 VirtualTimerFlags;
  1149. UINT32 NonSecurePL2TimerGSIV;
  1150. UINT32 NonSecurePL2TimerFlags;
  1151. UINT64 CntReadBasePhysicalAddress;
  1152. UINT32 PlatformTimerCount;
  1153. UINT32 PlatformTimerOffset;
  1154. } EFI_ACPI_6_0_GENERIC_TIMER_DESCRIPTION_TABLE;
  1155. ///
  1156. /// GTDT Version (as defined in ACPI 6.0 spec.)
  1157. ///
  1158. #define EFI_ACPI_6_0_GENERIC_TIMER_DESCRIPTION_TABLE_REVISION 0x02
  1159. ///
  1160. /// Timer Flags. All other bits are reserved and must be 0.
  1161. ///
  1162. #define EFI_ACPI_6_0_GTDT_TIMER_FLAG_TIMER_INTERRUPT_MODE BIT0
  1163. #define EFI_ACPI_6_0_GTDT_TIMER_FLAG_TIMER_INTERRUPT_POLARITY BIT1
  1164. #define EFI_ACPI_6_0_GTDT_TIMER_FLAG_ALWAYS_ON_CAPABILITY BIT2
  1165. ///
  1166. /// Platform Timer Type
  1167. ///
  1168. #define EFI_ACPI_6_0_GTDT_GT_BLOCK 0
  1169. #define EFI_ACPI_6_0_GTDT_SBSA_GENERIC_WATCHDOG 1
  1170. ///
  1171. /// GT Block Structure
  1172. ///
  1173. typedef struct {
  1174. UINT8 Type;
  1175. UINT16 Length;
  1176. UINT8 Reserved;
  1177. UINT64 CntCtlBase;
  1178. UINT32 GTBlockTimerCount;
  1179. UINT32 GTBlockTimerOffset;
  1180. } EFI_ACPI_6_0_GTDT_GT_BLOCK_STRUCTURE;
  1181. ///
  1182. /// GT Block Timer Structure
  1183. ///
  1184. typedef struct {
  1185. UINT8 GTFrameNumber;
  1186. UINT8 Reserved[3];
  1187. UINT64 CntBaseX;
  1188. UINT64 CntEL0BaseX;
  1189. UINT32 GTxPhysicalTimerGSIV;
  1190. UINT32 GTxPhysicalTimerFlags;
  1191. UINT32 GTxVirtualTimerGSIV;
  1192. UINT32 GTxVirtualTimerFlags;
  1193. UINT32 GTxCommonFlags;
  1194. } EFI_ACPI_6_0_GTDT_GT_BLOCK_TIMER_STRUCTURE;
  1195. ///
  1196. /// GT Block Physical Timers and Virtual Timers Flags. All other bits are reserved and must be 0.
  1197. ///
  1198. #define EFI_ACPI_6_0_GTDT_GT_BLOCK_TIMER_FLAG_TIMER_INTERRUPT_MODE BIT0
  1199. #define EFI_ACPI_6_0_GTDT_GT_BLOCK_TIMER_FLAG_TIMER_INTERRUPT_POLARITY BIT1
  1200. ///
  1201. /// Common Flags Flags. All other bits are reserved and must be 0.
  1202. ///
  1203. #define EFI_ACPI_6_0_GTDT_GT_BLOCK_COMMON_FLAG_SECURE_TIMER BIT0
  1204. #define EFI_ACPI_6_0_GTDT_GT_BLOCK_COMMON_FLAG_ALWAYS_ON_CAPABILITY BIT1
  1205. ///
  1206. /// SBSA Generic Watchdog Structure
  1207. ///
  1208. typedef struct {
  1209. UINT8 Type;
  1210. UINT16 Length;
  1211. UINT8 Reserved;
  1212. UINT64 RefreshFramePhysicalAddress;
  1213. UINT64 WatchdogControlFramePhysicalAddress;
  1214. UINT32 WatchdogTimerGSIV;
  1215. UINT32 WatchdogTimerFlags;
  1216. } EFI_ACPI_6_0_GTDT_SBSA_GENERIC_WATCHDOG_STRUCTURE;
  1217. ///
  1218. /// SBSA Generic Watchdog Timer Flags. All other bits are reserved and must be 0.
  1219. ///
  1220. #define EFI_ACPI_6_0_GTDT_SBSA_GENERIC_WATCHDOG_FLAG_TIMER_INTERRUPT_MODE BIT0
  1221. #define EFI_ACPI_6_0_GTDT_SBSA_GENERIC_WATCHDOG_FLAG_TIMER_INTERRUPT_POLARITY BIT1
  1222. #define EFI_ACPI_6_0_GTDT_SBSA_GENERIC_WATCHDOG_FLAG_SECURE_TIMER BIT2
  1223. //
  1224. // NVDIMM Firmware Interface Table definition.
  1225. //
  1226. typedef struct {
  1227. EFI_ACPI_DESCRIPTION_HEADER Header;
  1228. UINT32 Reserved;
  1229. } EFI_ACPI_6_0_NVDIMM_FIRMWARE_INTERFACE_TABLE;
  1230. //
  1231. // NFIT Version (as defined in ACPI 6.0 spec.)
  1232. //
  1233. #define EFI_ACPI_6_0_NVDIMM_FIRMWARE_INTERFACE_TABLE_REVISION 0x1
  1234. //
  1235. // Definition for NFIT Table Structure Types
  1236. //
  1237. #define EFI_ACPI_6_0_NFIT_SYSTEM_PHYSICAL_ADDRESS_RANGE_STRUCTURE_TYPE 0
  1238. #define EFI_ACPI_6_0_NFIT_MEMORY_DEVICE_TO_SYSTEM_ADDRESS_RANGE_MAP_STRUCTURE_TYPE 1
  1239. #define EFI_ACPI_6_0_NFIT_INTERLEAVE_STRUCTURE_TYPE 2
  1240. #define EFI_ACPI_6_0_NFIT_SMBIOS_MANAGEMENT_INFORMATION_STRUCTURE_TYPE 3
  1241. #define EFI_ACPI_6_0_NFIT_NVDIMM_CONTROL_REGION_STRUCTURE_TYPE 4
  1242. #define EFI_ACPI_6_0_NFIT_NVDIMM_BLOCK_DATA_WINDOW_REGION_STRUCTURE_TYPE 5
  1243. #define EFI_ACPI_6_0_NFIT_FLUSH_HINT_ADDRESS_STRUCTURE_TYPE 6
  1244. //
  1245. // Definition for NFIT Structure Header
  1246. //
  1247. typedef struct {
  1248. UINT16 Type;
  1249. UINT16 Length;
  1250. } EFI_ACPI_6_0_NFIT_STRUCTURE_HEADER;
  1251. //
  1252. // Definition for System Physical Address Range Structure
  1253. //
  1254. #define EFI_ACPI_6_0_NFIT_SYSTEM_PHYSICAL_ADDRESS_RANGE_FLAGS_CONTROL_REGION_FOR_MANAGEMENT BIT0
  1255. #define EFI_ACPI_6_0_NFIT_SYSTEM_PHYSICAL_ADDRESS_RANGE_FLAGS_PROXIMITY_DOMAIN_VALID BIT1
  1256. #define EFI_ACPI_6_0_NFIT_GUID_VOLATILE_MEMORY_REGION { 0x7305944F, 0xFDDA, 0x44E3, { 0xB1, 0x6C, 0x3F, 0x22, 0xD2, 0x52, 0xE5, 0xD0 }}
  1257. #define EFI_ACPI_6_0_NFIT_GUID_BYTE_ADDRESSABLE_PERSISTENT_MEMORY_REGION { 0x66F0D379, 0xB4F3, 0x4074, { 0xAC, 0x43, 0x0D, 0x33, 0x18, 0xB7, 0x8C, 0xDB }}
  1258. #define EFI_ACPI_6_0_NFIT_GUID_NVDIMM_CONTROL_REGION { 0x92F701F6, 0x13B4, 0x405D, { 0x91, 0x0B, 0x29, 0x93, 0x67, 0xE8, 0x23, 0x4C }}
  1259. #define EFI_ACPI_6_0_NFIT_GUID_NVDIMM_BLOCK_DATA_WINDOW_REGION { 0x91AF0530, 0x5D86, 0x470E, { 0xA6, 0xB0, 0x0A, 0x2D, 0xB9, 0x40, 0x82, 0x49 }}
  1260. #define EFI_ACPI_6_0_NFIT_GUID_RAM_DISK_SUPPORTING_VIRTUAL_DISK_REGION_VOLATILE { 0x77AB535A, 0x45FC, 0x624B, { 0x55, 0x60, 0xF7, 0xB2, 0x81, 0xD1, 0xF9, 0x6E }}
  1261. #define EFI_ACPI_6_0_NFIT_GUID_RAM_DISK_SUPPORTING_VIRTUAL_CD_REGION_VOLATILE { 0x3D5ABD30, 0x4175, 0x87CE, { 0x6D, 0x64, 0xD2, 0xAD, 0xE5, 0x23, 0xC4, 0xBB }}
  1262. #define EFI_ACPI_6_0_NFIT_GUID_RAM_DISK_SUPPORTING_VIRTUAL_DISK_REGION_PERSISTENT { 0x5CEA02C9, 0x4D07, 0x69D3, { 0x26, 0x9F ,0x44, 0x96, 0xFB, 0xE0, 0x96, 0xF9 }}
  1263. #define EFI_ACPI_6_0_NFIT_GUID_RAM_DISK_SUPPORTING_VIRTUAL_CD_REGION_PERSISTENT { 0x08018188, 0x42CD, 0xBB48, { 0x10, 0x0F, 0x53, 0x87, 0xD5, 0x3D, 0xED, 0x3D }}
  1264. typedef struct {
  1265. UINT16 Type;
  1266. UINT16 Length;
  1267. UINT16 SPARangeStructureIndex;
  1268. UINT16 Flags;
  1269. UINT32 Reserved_8;
  1270. UINT32 ProximityDomain;
  1271. GUID AddressRangeTypeGUID;
  1272. UINT64 SystemPhysicalAddressRangeBase;
  1273. UINT64 SystemPhysicalAddressRangeLength;
  1274. UINT64 AddressRangeMemoryMappingAttribute;
  1275. } EFI_ACPI_6_0_NFIT_SYSTEM_PHYSICAL_ADDRESS_RANGE_STRUCTURE;
  1276. //
  1277. // Definition for Memory Device to System Physical Address Range Mapping Structure
  1278. //
  1279. typedef struct {
  1280. UINT32 DIMMNumber:4;
  1281. UINT32 MemoryChannelNumber:4;
  1282. UINT32 MemoryControllerID:4;
  1283. UINT32 SocketID:4;
  1284. UINT32 NodeControllerID:12;
  1285. UINT32 Reserved_28:4;
  1286. } EFI_ACPI_6_0_NFIT_DEVICE_HANDLE;
  1287. #define EFI_ACPI_6_0_NFIT_MEMORY_DEVICE_STATE_FLAGS_PREVIOUS_SAVE_FAIL BIT0
  1288. #define EFI_ACPI_6_0_NFIT_MEMORY_DEVICE_STATE_FLAGS_LAST_RESTORE_FAIL BIT1
  1289. #define EFI_ACPI_6_0_NFIT_MEMORY_DEVICE_STATE_FLAGS_PLATFORM_FLUSH_FAIL BIT2
  1290. #define EFI_ACPI_6_0_NFIT_MEMORY_DEVICE_STATE_FLAGS_NOT_ARMED_PRIOR_TO_OSPM_HAND_OFF BIT3
  1291. #define EFI_ACPI_6_0_NFIT_MEMORY_DEVICE_STATE_FLAGS_SMART_HEALTH_EVENTS_PRIOR_OSPM_HAND_OFF BIT4
  1292. #define EFI_ACPI_6_0_NFIT_MEMORY_DEVICE_STATE_FLAGS_FIRMWARE_ENABLED_TO_NOTIFY_OSPM_ON_SMART_HEALTH_EVENTS BIT5
  1293. typedef struct {
  1294. UINT16 Type;
  1295. UINT16 Length;
  1296. EFI_ACPI_6_0_NFIT_DEVICE_HANDLE NFITDeviceHandle;
  1297. UINT16 MemoryDevicePhysicalID;
  1298. UINT16 MemoryDeviceRegionID;
  1299. UINT16 SPARangeStructureIndex ;
  1300. UINT16 NVDIMMControlRegionStructureIndex;
  1301. UINT64 MemoryDeviceRegionSize;
  1302. UINT64 RegionOffset;
  1303. UINT64 MemoryDevicePhysicalAddressRegionBase;
  1304. UINT16 InterleaveStructureIndex;
  1305. UINT16 InterleaveWays;
  1306. UINT16 MemoryDeviceStateFlags;
  1307. UINT16 Reserved_46;
  1308. } EFI_ACPI_6_0_NFIT_MEMORY_DEVICE_TO_SYSTEM_ADDRESS_RANGE_MAP_STRUCTURE;
  1309. //
  1310. // Definition for Interleave Structure
  1311. //
  1312. typedef struct {
  1313. UINT16 Type;
  1314. UINT16 Length;
  1315. UINT16 InterleaveStructureIndex;
  1316. UINT16 Reserved_6;
  1317. UINT32 NumberOfLines;
  1318. UINT32 LineSize;
  1319. //UINT32 LineOffset[NumberOfLines];
  1320. } EFI_ACPI_6_0_NFIT_INTERLEAVE_STRUCTURE;
  1321. //
  1322. // Definition for SMBIOS Management Information Structure
  1323. //
  1324. typedef struct {
  1325. UINT16 Type;
  1326. UINT16 Length;
  1327. UINT32 Reserved_4;
  1328. //UINT8 Data[];
  1329. } EFI_ACPI_6_0_NFIT_SMBIOS_MANAGEMENT_INFORMATION_STRUCTURE;
  1330. //
  1331. // Definition for NVDIMM Control Region Structure
  1332. //
  1333. #define EFI_ACPI_6_0_NFIT_NVDIMM_CONTROL_REGION_FLAGS_BLOCK_DATA_WINDOWS_BUFFERED BIT0
  1334. typedef struct {
  1335. UINT16 Type;
  1336. UINT16 Length;
  1337. UINT16 NVDIMMControlRegionStructureIndex;
  1338. UINT16 VendorID;
  1339. UINT16 DeviceID;
  1340. UINT16 RevisionID;
  1341. UINT16 SubsystemVendorID;
  1342. UINT16 SubsystemDeviceID;
  1343. UINT16 SubsystemRevisionID;
  1344. UINT8 Reserved_18[6];
  1345. UINT32 SerialNumber;
  1346. UINT16 RegionFormatInterfaceCode;
  1347. UINT16 NumberOfBlockControlWindows;
  1348. UINT64 SizeOfBlockControlWindow;
  1349. UINT64 CommandRegisterOffsetInBlockControlWindow;
  1350. UINT64 SizeOfCommandRegisterInBlockControlWindows;
  1351. UINT64 StatusRegisterOffsetInBlockControlWindow;
  1352. UINT64 SizeOfStatusRegisterInBlockControlWindows;
  1353. UINT16 NVDIMMControlRegionFlag;
  1354. UINT8 Reserved_74[6];
  1355. } EFI_ACPI_6_0_NFIT_NVDIMM_CONTROL_REGION_STRUCTURE;
  1356. //
  1357. // Definition for NVDIMM Block Data Window Region Structure
  1358. //
  1359. typedef struct {
  1360. UINT16 Type;
  1361. UINT16 Length;
  1362. UINT16 NVDIMMControlRegionStructureIndex;
  1363. UINT16 NumberOfBlockDataWindows;
  1364. UINT64 BlockDataWindowStartOffset;
  1365. UINT64 SizeOfBlockDataWindow;
  1366. UINT64 BlockAccessibleMemoryCapacity;
  1367. UINT64 BeginningAddressOfFirstBlockInBlockAccessibleMemory;
  1368. } EFI_ACPI_6_0_NFIT_NVDIMM_BLOCK_DATA_WINDOW_REGION_STRUCTURE;
  1369. //
  1370. // Definition for Flush Hint Address Structure
  1371. //
  1372. typedef struct {
  1373. UINT16 Type;
  1374. UINT16 Length;
  1375. EFI_ACPI_6_0_NFIT_DEVICE_HANDLE NFITDeviceHandle;
  1376. UINT16 NumberOfFlushHintAddresses;
  1377. UINT8 Reserved_10[6];
  1378. //UINT64 FlushHintAddress[NumberOfFlushHintAddresses];
  1379. } EFI_ACPI_6_0_NFIT_FLUSH_HINT_ADDRESS_STRUCTURE;
  1380. ///
  1381. /// Boot Error Record Table (BERT)
  1382. ///
  1383. typedef struct {
  1384. EFI_ACPI_DESCRIPTION_HEADER Header;
  1385. UINT32 BootErrorRegionLength;
  1386. UINT64 BootErrorRegion;
  1387. } EFI_ACPI_6_0_BOOT_ERROR_RECORD_TABLE_HEADER;
  1388. ///
  1389. /// BERT Version (as defined in ACPI 6.0 spec.)
  1390. ///
  1391. #define EFI_ACPI_6_0_BOOT_ERROR_RECORD_TABLE_REVISION 0x01
  1392. ///
  1393. /// Boot Error Region Block Status Definition
  1394. ///
  1395. typedef struct {
  1396. UINT32 UncorrectableErrorValid:1;
  1397. UINT32 CorrectableErrorValid:1;
  1398. UINT32 MultipleUncorrectableErrors:1;
  1399. UINT32 MultipleCorrectableErrors:1;
  1400. UINT32 ErrorDataEntryCount:10;
  1401. UINT32 Reserved:18;
  1402. } EFI_ACPI_6_0_ERROR_BLOCK_STATUS;
  1403. ///
  1404. /// Boot Error Region Definition
  1405. ///
  1406. typedef struct {
  1407. EFI_ACPI_6_0_ERROR_BLOCK_STATUS BlockStatus;
  1408. UINT32 RawDataOffset;
  1409. UINT32 RawDataLength;
  1410. UINT32 DataLength;
  1411. UINT32 ErrorSeverity;
  1412. } EFI_ACPI_6_0_BOOT_ERROR_REGION_STRUCTURE;
  1413. //
  1414. // Boot Error Severity types
  1415. //
  1416. #define EFI_ACPI_6_0_ERROR_SEVERITY_CORRECTABLE 0x00
  1417. #define EFI_ACPI_6_0_ERROR_SEVERITY_FATAL 0x01
  1418. #define EFI_ACPI_6_0_ERROR_SEVERITY_CORRECTED 0x02
  1419. #define EFI_ACPI_6_0_ERROR_SEVERITY_NONE 0x03
  1420. ///
  1421. /// Generic Error Data Entry Definition
  1422. ///
  1423. typedef struct {
  1424. UINT8 SectionType[16];
  1425. UINT32 ErrorSeverity;
  1426. UINT16 Revision;
  1427. UINT8 ValidationBits;
  1428. UINT8 Flags;
  1429. UINT32 ErrorDataLength;
  1430. UINT8 FruId[16];
  1431. UINT8 FruText[20];
  1432. } EFI_ACPI_6_0_GENERIC_ERROR_DATA_ENTRY_STRUCTURE;
  1433. ///
  1434. /// Generic Error Data Entry Version (as defined in ACPI 6.0 spec.)
  1435. ///
  1436. #define EFI_ACPI_6_0_GENERIC_ERROR_DATA_ENTRY_REVISION 0x0201
  1437. ///
  1438. /// HEST - Hardware Error Source Table
  1439. ///
  1440. typedef struct {
  1441. EFI_ACPI_DESCRIPTION_HEADER Header;
  1442. UINT32 ErrorSourceCount;
  1443. } EFI_ACPI_6_0_HARDWARE_ERROR_SOURCE_TABLE_HEADER;
  1444. ///
  1445. /// HEST Version (as defined in ACPI 6.0 spec.)
  1446. ///
  1447. #define EFI_ACPI_6_0_HARDWARE_ERROR_SOURCE_TABLE_REVISION 0x01
  1448. //
  1449. // Error Source structure types.
  1450. //
  1451. #define EFI_ACPI_6_0_IA32_ARCHITECTURE_MACHINE_CHECK_EXCEPTION 0x00
  1452. #define EFI_ACPI_6_0_IA32_ARCHITECTURE_CORRECTED_MACHINE_CHECK 0x01
  1453. #define EFI_ACPI_6_0_IA32_ARCHITECTURE_NMI_ERROR 0x02
  1454. #define EFI_ACPI_6_0_PCI_EXPRESS_ROOT_PORT_AER 0x06
  1455. #define EFI_ACPI_6_0_PCI_EXPRESS_DEVICE_AER 0x07
  1456. #define EFI_ACPI_6_0_PCI_EXPRESS_BRIDGE_AER 0x08
  1457. #define EFI_ACPI_6_0_GENERIC_HARDWARE_ERROR 0x09
  1458. //
  1459. // Error Source structure flags.
  1460. //
  1461. #define EFI_ACPI_6_0_ERROR_SOURCE_FLAG_FIRMWARE_FIRST (1 << 0)
  1462. #define EFI_ACPI_6_0_ERROR_SOURCE_FLAG_GLOBAL (1 << 1)
  1463. ///
  1464. /// IA-32 Architecture Machine Check Exception Structure Definition
  1465. ///
  1466. typedef struct {
  1467. UINT16 Type;
  1468. UINT16 SourceId;
  1469. UINT8 Reserved0[2];
  1470. UINT8 Flags;
  1471. UINT8 Enabled;
  1472. UINT32 NumberOfRecordsToPreAllocate;
  1473. UINT32 MaxSectionsPerRecord;
  1474. UINT64 GlobalCapabilityInitData;
  1475. UINT64 GlobalControlInitData;
  1476. UINT8 NumberOfHardwareBanks;
  1477. UINT8 Reserved1[7];
  1478. } EFI_ACPI_6_0_IA32_ARCHITECTURE_MACHINE_CHECK_EXCEPTION_STRUCTURE;
  1479. ///
  1480. /// IA-32 Architecture Machine Check Bank Structure Definition
  1481. ///
  1482. typedef struct {
  1483. UINT8 BankNumber;
  1484. UINT8 ClearStatusOnInitialization;
  1485. UINT8 StatusDataFormat;
  1486. UINT8 Reserved0;
  1487. UINT32 ControlRegisterMsrAddress;
  1488. UINT64 ControlInitData;
  1489. UINT32 StatusRegisterMsrAddress;
  1490. UINT32 AddressRegisterMsrAddress;
  1491. UINT32 MiscRegisterMsrAddress;
  1492. } EFI_ACPI_6_0_IA32_ARCHITECTURE_MACHINE_CHECK_ERROR_BANK_STRUCTURE;
  1493. ///
  1494. /// IA-32 Architecture Machine Check Bank Structure MCA data format
  1495. ///
  1496. #define EFI_ACPI_6_0_IA32_ARCHITECTURE_MACHINE_CHECK_ERROR_DATA_FORMAT_IA32 0x00
  1497. #define EFI_ACPI_6_0_IA32_ARCHITECTURE_MACHINE_CHECK_ERROR_DATA_FORMAT_INTEL64 0x01
  1498. #define EFI_ACPI_6_0_IA32_ARCHITECTURE_MACHINE_CHECK_ERROR_DATA_FORMAT_AMD64 0x02
  1499. //
  1500. // Hardware Error Notification types. All other values are reserved
  1501. //
  1502. #define EFI_ACPI_6_0_HARDWARE_ERROR_NOTIFICATION_POLLED 0x00
  1503. #define EFI_ACPI_6_0_HARDWARE_ERROR_NOTIFICATION_EXTERNAL_INTERRUPT 0x01
  1504. #define EFI_ACPI_6_0_HARDWARE_ERROR_NOTIFICATION_LOCAL_INTERRUPT 0x02
  1505. #define EFI_ACPI_6_0_HARDWARE_ERROR_NOTIFICATION_SCI 0x03
  1506. #define EFI_ACPI_6_0_HARDWARE_ERROR_NOTIFICATION_NMI 0x04
  1507. #define EFI_ACPI_6_0_HARDWARE_ERROR_NOTIFICATION_CMCI 0x05
  1508. #define EFI_ACPI_6_0_HARDWARE_ERROR_NOTIFICATION_MCE 0x06
  1509. #define EFI_ACPI_6_0_HARDWARE_ERROR_NOTIFICATION_GPIO_SIGNAL 0x07
  1510. ///
  1511. /// Hardware Error Notification Configuration Write Enable Structure Definition
  1512. ///
  1513. typedef struct {
  1514. UINT16 Type:1;
  1515. UINT16 PollInterval:1;
  1516. UINT16 SwitchToPollingThresholdValue:1;
  1517. UINT16 SwitchToPollingThresholdWindow:1;
  1518. UINT16 ErrorThresholdValue:1;
  1519. UINT16 ErrorThresholdWindow:1;
  1520. UINT16 Reserved:10;
  1521. } EFI_ACPI_6_0_HARDWARE_ERROR_NOTIFICATION_CONFIGURATION_WRITE_ENABLE_STRUCTURE;
  1522. ///
  1523. /// Hardware Error Notification Structure Definition
  1524. ///
  1525. typedef struct {
  1526. UINT8 Type;
  1527. UINT8 Length;
  1528. EFI_ACPI_6_0_HARDWARE_ERROR_NOTIFICATION_CONFIGURATION_WRITE_ENABLE_STRUCTURE ConfigurationWriteEnable;
  1529. UINT32 PollInterval;
  1530. UINT32 Vector;
  1531. UINT32 SwitchToPollingThresholdValue;
  1532. UINT32 SwitchToPollingThresholdWindow;
  1533. UINT32 ErrorThresholdValue;
  1534. UINT32 ErrorThresholdWindow;
  1535. } EFI_ACPI_6_0_HARDWARE_ERROR_NOTIFICATION_STRUCTURE;
  1536. ///
  1537. /// IA-32 Architecture Corrected Machine Check Structure Definition
  1538. ///
  1539. typedef struct {
  1540. UINT16 Type;
  1541. UINT16 SourceId;
  1542. UINT8 Reserved0[2];
  1543. UINT8 Flags;
  1544. UINT8 Enabled;
  1545. UINT32 NumberOfRecordsToPreAllocate;
  1546. UINT32 MaxSectionsPerRecord;
  1547. EFI_ACPI_6_0_HARDWARE_ERROR_NOTIFICATION_STRUCTURE NotificationStructure;
  1548. UINT8 NumberOfHardwareBanks;
  1549. UINT8 Reserved1[3];
  1550. } EFI_ACPI_6_0_IA32_ARCHITECTURE_CORRECTED_MACHINE_CHECK_STRUCTURE;
  1551. ///
  1552. /// IA-32 Architecture NMI Error Structure Definition
  1553. ///
  1554. typedef struct {
  1555. UINT16 Type;
  1556. UINT16 SourceId;
  1557. UINT8 Reserved0[2];
  1558. UINT32 NumberOfRecordsToPreAllocate;
  1559. UINT32 MaxSectionsPerRecord;
  1560. UINT32 MaxRawDataLength;
  1561. } EFI_ACPI_6_0_IA32_ARCHITECTURE_NMI_ERROR_STRUCTURE;
  1562. ///
  1563. /// PCI Express Root Port AER Structure Definition
  1564. ///
  1565. typedef struct {
  1566. UINT16 Type;
  1567. UINT16 SourceId;
  1568. UINT8 Reserved0[2];
  1569. UINT8 Flags;
  1570. UINT8 Enabled;
  1571. UINT32 NumberOfRecordsToPreAllocate;
  1572. UINT32 MaxSectionsPerRecord;
  1573. UINT32 Bus;
  1574. UINT16 Device;
  1575. UINT16 Function;
  1576. UINT16 DeviceControl;
  1577. UINT8 Reserved1[2];
  1578. UINT32 UncorrectableErrorMask;
  1579. UINT32 UncorrectableErrorSeverity;
  1580. UINT32 CorrectableErrorMask;
  1581. UINT32 AdvancedErrorCapabilitiesAndControl;
  1582. UINT32 RootErrorCommand;
  1583. } EFI_ACPI_6_0_PCI_EXPRESS_ROOT_PORT_AER_STRUCTURE;
  1584. ///
  1585. /// PCI Express Device AER Structure Definition
  1586. ///
  1587. typedef struct {
  1588. UINT16 Type;
  1589. UINT16 SourceId;
  1590. UINT8 Reserved0[2];
  1591. UINT8 Flags;
  1592. UINT8 Enabled;
  1593. UINT32 NumberOfRecordsToPreAllocate;
  1594. UINT32 MaxSectionsPerRecord;
  1595. UINT32 Bus;
  1596. UINT16 Device;
  1597. UINT16 Function;
  1598. UINT16 DeviceControl;
  1599. UINT8 Reserved1[2];
  1600. UINT32 UncorrectableErrorMask;
  1601. UINT32 UncorrectableErrorSeverity;
  1602. UINT32 CorrectableErrorMask;
  1603. UINT32 AdvancedErrorCapabilitiesAndControl;
  1604. } EFI_ACPI_6_0_PCI_EXPRESS_DEVICE_AER_STRUCTURE;
  1605. ///
  1606. /// PCI Express Bridge AER Structure Definition
  1607. ///
  1608. typedef struct {
  1609. UINT16 Type;
  1610. UINT16 SourceId;
  1611. UINT8 Reserved0[2];
  1612. UINT8 Flags;
  1613. UINT8 Enabled;
  1614. UINT32 NumberOfRecordsToPreAllocate;
  1615. UINT32 MaxSectionsPerRecord;
  1616. UINT32 Bus;
  1617. UINT16 Device;
  1618. UINT16 Function;
  1619. UINT16 DeviceControl;
  1620. UINT8 Reserved1[2];
  1621. UINT32 UncorrectableErrorMask;
  1622. UINT32 UncorrectableErrorSeverity;
  1623. UINT32 CorrectableErrorMask;
  1624. UINT32 AdvancedErrorCapabilitiesAndControl;
  1625. UINT32 SecondaryUncorrectableErrorMask;
  1626. UINT32 SecondaryUncorrectableErrorSeverity;
  1627. UINT32 SecondaryAdvancedErrorCapabilitiesAndControl;
  1628. } EFI_ACPI_6_0_PCI_EXPRESS_BRIDGE_AER_STRUCTURE;
  1629. ///
  1630. /// Generic Hardware Error Source Structure Definition
  1631. ///
  1632. typedef struct {
  1633. UINT16 Type;
  1634. UINT16 SourceId;
  1635. UINT16 RelatedSourceId;
  1636. UINT8 Flags;
  1637. UINT8 Enabled;
  1638. UINT32 NumberOfRecordsToPreAllocate;
  1639. UINT32 MaxSectionsPerRecord;
  1640. UINT32 MaxRawDataLength;
  1641. EFI_ACPI_6_0_GENERIC_ADDRESS_STRUCTURE ErrorStatusAddress;
  1642. EFI_ACPI_6_0_HARDWARE_ERROR_NOTIFICATION_STRUCTURE NotificationStructure;
  1643. UINT32 ErrorStatusBlockLength;
  1644. } EFI_ACPI_6_0_GENERIC_HARDWARE_ERROR_SOURCE_STRUCTURE;
  1645. ///
  1646. /// Generic Error Status Definition
  1647. ///
  1648. typedef struct {
  1649. EFI_ACPI_6_0_ERROR_BLOCK_STATUS BlockStatus;
  1650. UINT32 RawDataOffset;
  1651. UINT32 RawDataLength;
  1652. UINT32 DataLength;
  1653. UINT32 ErrorSeverity;
  1654. } EFI_ACPI_6_0_GENERIC_ERROR_STATUS_STRUCTURE;
  1655. ///
  1656. /// ERST - Error Record Serialization Table
  1657. ///
  1658. typedef struct {
  1659. EFI_ACPI_DESCRIPTION_HEADER Header;
  1660. UINT32 SerializationHeaderSize;
  1661. UINT8 Reserved0[4];
  1662. UINT32 InstructionEntryCount;
  1663. } EFI_ACPI_6_0_ERROR_RECORD_SERIALIZATION_TABLE_HEADER;
  1664. ///
  1665. /// ERST Version (as defined in ACPI 6.0 spec.)
  1666. ///
  1667. #define EFI_ACPI_6_0_ERROR_RECORD_SERIALIZATION_TABLE_REVISION 0x01
  1668. ///
  1669. /// ERST Serialization Actions
  1670. ///
  1671. #define EFI_ACPI_6_0_ERST_BEGIN_WRITE_OPERATION 0x00
  1672. #define EFI_ACPI_6_0_ERST_BEGIN_READ_OPERATION 0x01
  1673. #define EFI_ACPI_6_0_ERST_BEGIN_CLEAR_OPERATION 0x02
  1674. #define EFI_ACPI_6_0_ERST_END_OPERATION 0x03
  1675. #define EFI_ACPI_6_0_ERST_SET_RECORD_OFFSET 0x04
  1676. #define EFI_ACPI_6_0_ERST_EXECUTE_OPERATION 0x05
  1677. #define EFI_ACPI_6_0_ERST_CHECK_BUSY_STATUS 0x06
  1678. #define EFI_ACPI_6_0_ERST_GET_COMMAND_STATUS 0x07
  1679. #define EFI_ACPI_6_0_ERST_GET_RECORD_IDENTIFIER 0x08
  1680. #define EFI_ACPI_6_0_ERST_SET_RECORD_IDENTIFIER 0x09
  1681. #define EFI_ACPI_6_0_ERST_GET_RECORD_COUNT 0x0A
  1682. #define EFI_ACPI_6_0_ERST_BEGIN_DUMMY_WRITE_OPERATION 0x0B
  1683. #define EFI_ACPI_6_0_ERST_GET_ERROR_LOG_ADDRESS_RANGE 0x0D
  1684. #define EFI_ACPI_6_0_ERST_GET_ERROR_LOG_ADDRESS_RANGE_LENGTH 0x0E
  1685. #define EFI_ACPI_6_0_ERST_GET_ERROR_LOG_ADDRESS_RANGE_ATTRIBUTES 0x0F
  1686. ///
  1687. /// ERST Action Command Status
  1688. ///
  1689. #define EFI_ACPI_6_0_ERST_STATUS_SUCCESS 0x00
  1690. #define EFI_ACPI_6_0_ERST_STATUS_NOT_ENOUGH_SPACE 0x01
  1691. #define EFI_ACPI_6_0_ERST_STATUS_HARDWARE_NOT_AVAILABLE 0x02
  1692. #define EFI_ACPI_6_0_ERST_STATUS_FAILED 0x03
  1693. #define EFI_ACPI_6_0_ERST_STATUS_RECORD_STORE_EMPTY 0x04
  1694. #define EFI_ACPI_6_0_ERST_STATUS_RECORD_NOT_FOUND 0x05
  1695. ///
  1696. /// ERST Serialization Instructions
  1697. ///
  1698. #define EFI_ACPI_6_0_ERST_READ_REGISTER 0x00
  1699. #define EFI_ACPI_6_0_ERST_READ_REGISTER_VALUE 0x01
  1700. #define EFI_ACPI_6_0_ERST_WRITE_REGISTER 0x02
  1701. #define EFI_ACPI_6_0_ERST_WRITE_REGISTER_VALUE 0x03
  1702. #define EFI_ACPI_6_0_ERST_NOOP 0x04
  1703. #define EFI_ACPI_6_0_ERST_LOAD_VAR1 0x05
  1704. #define EFI_ACPI_6_0_ERST_LOAD_VAR2 0x06
  1705. #define EFI_ACPI_6_0_ERST_STORE_VAR1 0x07
  1706. #define EFI_ACPI_6_0_ERST_ADD 0x08
  1707. #define EFI_ACPI_6_0_ERST_SUBTRACT 0x09
  1708. #define EFI_ACPI_6_0_ERST_ADD_VALUE 0x0A
  1709. #define EFI_ACPI_6_0_ERST_SUBTRACT_VALUE 0x0B
  1710. #define EFI_ACPI_6_0_ERST_STALL 0x0C
  1711. #define EFI_ACPI_6_0_ERST_STALL_WHILE_TRUE 0x0D
  1712. #define EFI_ACPI_6_0_ERST_SKIP_NEXT_INSTRUCTION_IF_TRUE 0x0E
  1713. #define EFI_ACPI_6_0_ERST_GOTO 0x0F
  1714. #define EFI_ACPI_6_0_ERST_SET_SRC_ADDRESS_BASE 0x10
  1715. #define EFI_ACPI_6_0_ERST_SET_DST_ADDRESS_BASE 0x11
  1716. #define EFI_ACPI_6_0_ERST_MOVE_DATA 0x12
  1717. ///
  1718. /// ERST Instruction Flags
  1719. ///
  1720. #define EFI_ACPI_6_0_ERST_PRESERVE_REGISTER 0x01
  1721. ///
  1722. /// ERST Serialization Instruction Entry
  1723. ///
  1724. typedef struct {
  1725. UINT8 SerializationAction;
  1726. UINT8 Instruction;
  1727. UINT8 Flags;
  1728. UINT8 Reserved0;
  1729. EFI_ACPI_6_0_GENERIC_ADDRESS_STRUCTURE RegisterRegion;
  1730. UINT64 Value;
  1731. UINT64 Mask;
  1732. } EFI_ACPI_6_0_ERST_SERIALIZATION_INSTRUCTION_ENTRY;
  1733. ///
  1734. /// EINJ - Error Injection Table
  1735. ///
  1736. typedef struct {
  1737. EFI_ACPI_DESCRIPTION_HEADER Header;
  1738. UINT32 InjectionHeaderSize;
  1739. UINT8 InjectionFlags;
  1740. UINT8 Reserved0[3];
  1741. UINT32 InjectionEntryCount;
  1742. } EFI_ACPI_6_0_ERROR_INJECTION_TABLE_HEADER;
  1743. ///
  1744. /// EINJ Version (as defined in ACPI 6.0 spec.)
  1745. ///
  1746. #define EFI_ACPI_6_0_ERROR_INJECTION_TABLE_REVISION 0x01
  1747. ///
  1748. /// EINJ Error Injection Actions
  1749. ///
  1750. #define EFI_ACPI_6_0_EINJ_BEGIN_INJECTION_OPERATION 0x00
  1751. #define EFI_ACPI_6_0_EINJ_GET_TRIGGER_ERROR_ACTION_TABLE 0x01
  1752. #define EFI_ACPI_6_0_EINJ_SET_ERROR_TYPE 0x02
  1753. #define EFI_ACPI_6_0_EINJ_GET_ERROR_TYPE 0x03
  1754. #define EFI_ACPI_6_0_EINJ_END_OPERATION 0x04
  1755. #define EFI_ACPI_6_0_EINJ_EXECUTE_OPERATION 0x05
  1756. #define EFI_ACPI_6_0_EINJ_CHECK_BUSY_STATUS 0x06
  1757. #define EFI_ACPI_6_0_EINJ_GET_COMMAND_STATUS 0x07
  1758. #define EFI_ACPI_6_0_EINJ_TRIGGER_ERROR 0xFF
  1759. ///
  1760. /// EINJ Action Command Status
  1761. ///
  1762. #define EFI_ACPI_6_0_EINJ_STATUS_SUCCESS 0x00
  1763. #define EFI_ACPI_6_0_EINJ_STATUS_UNKNOWN_FAILURE 0x01
  1764. #define EFI_ACPI_6_0_EINJ_STATUS_INVALID_ACCESS 0x02
  1765. ///
  1766. /// EINJ Error Type Definition
  1767. ///
  1768. #define EFI_ACPI_6_0_EINJ_ERROR_PROCESSOR_CORRECTABLE (1 << 0)
  1769. #define EFI_ACPI_6_0_EINJ_ERROR_PROCESSOR_UNCORRECTABLE_NONFATAL (1 << 1)
  1770. #define EFI_ACPI_6_0_EINJ_ERROR_PROCESSOR_UNCORRECTABLE_FATAL (1 << 2)
  1771. #define EFI_ACPI_6_0_EINJ_ERROR_MEMORY_CORRECTABLE (1 << 3)
  1772. #define EFI_ACPI_6_0_EINJ_ERROR_MEMORY_UNCORRECTABLE_NONFATAL (1 << 4)
  1773. #define EFI_ACPI_6_0_EINJ_ERROR_MEMORY_UNCORRECTABLE_FATAL (1 << 5)
  1774. #define EFI_ACPI_6_0_EINJ_ERROR_PCI_EXPRESS_CORRECTABLE (1 << 6)
  1775. #define EFI_ACPI_6_0_EINJ_ERROR_PCI_EXPRESS_UNCORRECTABLE_NONFATAL (1 << 7)
  1776. #define EFI_ACPI_6_0_EINJ_ERROR_PCI_EXPRESS_UNCORRECTABLE_FATAL (1 << 8)
  1777. #define EFI_ACPI_6_0_EINJ_ERROR_PLATFORM_CORRECTABLE (1 << 9)
  1778. #define EFI_ACPI_6_0_EINJ_ERROR_PLATFORM_UNCORRECTABLE_NONFATAL (1 << 10)
  1779. #define EFI_ACPI_6_0_EINJ_ERROR_PLATFORM_UNCORRECTABLE_FATAL (1 << 11)
  1780. ///
  1781. /// EINJ Injection Instructions
  1782. ///
  1783. #define EFI_ACPI_6_0_EINJ_READ_REGISTER 0x00
  1784. #define EFI_ACPI_6_0_EINJ_READ_REGISTER_VALUE 0x01
  1785. #define EFI_ACPI_6_0_EINJ_WRITE_REGISTER 0x02
  1786. #define EFI_ACPI_6_0_EINJ_WRITE_REGISTER_VALUE 0x03
  1787. #define EFI_ACPI_6_0_EINJ_NOOP 0x04
  1788. ///
  1789. /// EINJ Instruction Flags
  1790. ///
  1791. #define EFI_ACPI_6_0_EINJ_PRESERVE_REGISTER 0x01
  1792. ///
  1793. /// EINJ Injection Instruction Entry
  1794. ///
  1795. typedef struct {
  1796. UINT8 InjectionAction;
  1797. UINT8 Instruction;
  1798. UINT8 Flags;
  1799. UINT8 Reserved0;
  1800. EFI_ACPI_6_0_GENERIC_ADDRESS_STRUCTURE RegisterRegion;
  1801. UINT64 Value;
  1802. UINT64 Mask;
  1803. } EFI_ACPI_6_0_EINJ_INJECTION_INSTRUCTION_ENTRY;
  1804. ///
  1805. /// EINJ Trigger Action Table
  1806. ///
  1807. typedef struct {
  1808. UINT32 HeaderSize;
  1809. UINT32 Revision;
  1810. UINT32 TableSize;
  1811. UINT32 EntryCount;
  1812. } EFI_ACPI_6_0_EINJ_TRIGGER_ACTION_TABLE;
  1813. ///
  1814. /// Platform Communications Channel Table (PCCT)
  1815. ///
  1816. typedef struct {
  1817. EFI_ACPI_DESCRIPTION_HEADER Header;
  1818. UINT32 Flags;
  1819. UINT64 Reserved;
  1820. } EFI_ACPI_6_0_PLATFORM_COMMUNICATION_CHANNEL_TABLE_HEADER;
  1821. ///
  1822. /// PCCT Version (as defined in ACPI 6.0 spec.)
  1823. ///
  1824. #define EFI_ACPI_6_0_PLATFORM_COMMUNICATION_CHANNEL_TABLE_REVISION 0x01
  1825. ///
  1826. /// PCCT Global Flags
  1827. ///
  1828. #define EFI_ACPI_6_0_PCCT_FLAGS_SCI_DOORBELL BIT0
  1829. //
  1830. // PCCT Subspace type
  1831. //
  1832. #define EFI_ACPI_6_0_PCCT_SUBSPACE_TYPE_GENERIC 0x00
  1833. ///
  1834. /// PCC Subspace Structure Header
  1835. ///
  1836. typedef struct {
  1837. UINT8 Type;
  1838. UINT8 Length;
  1839. } EFI_ACPI_6_0_PCCT_SUBSPACE_HEADER;
  1840. ///
  1841. /// Generic Communications Subspace Structure
  1842. ///
  1843. typedef struct {
  1844. UINT8 Type;
  1845. UINT8 Length;
  1846. UINT8 Reserved[6];
  1847. UINT64 BaseAddress;
  1848. UINT64 AddressLength;
  1849. EFI_ACPI_6_0_GENERIC_ADDRESS_STRUCTURE DoorbellRegister;
  1850. UINT64 DoorbellPreserve;
  1851. UINT64 DoorbellWrite;
  1852. UINT32 NominalLatency;
  1853. UINT32 MaximumPeriodicAccessRate;
  1854. UINT16 MinimumRequestTurnaroundTime;
  1855. } EFI_ACPI_6_0_PCCT_SUBSPACE_GENERIC;
  1856. ///
  1857. /// Generic Communications Channel Shared Memory Region
  1858. ///
  1859. typedef struct {
  1860. UINT8 Command;
  1861. UINT8 Reserved:7;
  1862. UINT8 GenerateSci:1;
  1863. } EFI_ACPI_6_0_PCCT_GENERIC_SHARED_MEMORY_REGION_COMMAND;
  1864. typedef struct {
  1865. UINT8 CommandComplete:1;
  1866. UINT8 SciDoorbell:1;
  1867. UINT8 Error:1;
  1868. UINT8 PlatformNotification:1;
  1869. UINT8 Reserved:4;
  1870. UINT8 Reserved1;
  1871. } EFI_ACPI_6_0_PCCT_GENERIC_SHARED_MEMORY_REGION_STATUS;
  1872. typedef struct {
  1873. UINT32 Signature;
  1874. EFI_ACPI_6_0_PCCT_GENERIC_SHARED_MEMORY_REGION_COMMAND Command;
  1875. EFI_ACPI_6_0_PCCT_GENERIC_SHARED_MEMORY_REGION_STATUS Status;
  1876. } EFI_ACPI_6_0_PCCT_GENERIC_SHARED_MEMORY_REGION_HEADER;
  1877. //
  1878. // Known table signatures
  1879. //
  1880. ///
  1881. /// "RSD PTR " Root System Description Pointer
  1882. ///
  1883. #define EFI_ACPI_6_0_ROOT_SYSTEM_DESCRIPTION_POINTER_SIGNATURE SIGNATURE_64('R', 'S', 'D', ' ', 'P', 'T', 'R', ' ')
  1884. ///
  1885. /// "APIC" Multiple APIC Description Table
  1886. ///
  1887. #define EFI_ACPI_6_0_MULTIPLE_APIC_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_32('A', 'P', 'I', 'C')
  1888. ///
  1889. /// "BERT" Boot Error Record Table
  1890. ///
  1891. #define EFI_ACPI_6_0_BOOT_ERROR_RECORD_TABLE_SIGNATURE SIGNATURE_32('B', 'E', 'R', 'T')
  1892. ///
  1893. /// "BGRT" Boot Graphics Resource Table
  1894. ///
  1895. #define EFI_ACPI_6_0_BOOT_GRAPHICS_RESOURCE_TABLE_SIGNATURE SIGNATURE_32('B', 'G', 'R', 'T')
  1896. ///
  1897. /// "CPEP" Corrected Platform Error Polling Table
  1898. ///
  1899. #define EFI_ACPI_6_0_CORRECTED_PLATFORM_ERROR_POLLING_TABLE_SIGNATURE SIGNATURE_32('C', 'P', 'E', 'P')
  1900. ///
  1901. /// "DSDT" Differentiated System Description Table
  1902. ///
  1903. #define EFI_ACPI_6_0_DIFFERENTIATED_SYSTEM_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_32('D', 'S', 'D', 'T')
  1904. ///
  1905. /// "ECDT" Embedded Controller Boot Resources Table
  1906. ///
  1907. #define EFI_ACPI_6_0_EMBEDDED_CONTROLLER_BOOT_RESOURCES_TABLE_SIGNATURE SIGNATURE_32('E', 'C', 'D', 'T')
  1908. ///
  1909. /// "EINJ" Error Injection Table
  1910. ///
  1911. #define EFI_ACPI_6_0_ERROR_INJECTION_TABLE_SIGNATURE SIGNATURE_32('E', 'I', 'N', 'J')
  1912. ///
  1913. /// "ERST" Error Record Serialization Table
  1914. ///
  1915. #define EFI_ACPI_6_0_ERROR_RECORD_SERIALIZATION_TABLE_SIGNATURE SIGNATURE_32('E', 'R', 'S', 'T')
  1916. ///
  1917. /// "FACP" Fixed ACPI Description Table
  1918. ///
  1919. #define EFI_ACPI_6_0_FIXED_ACPI_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_32('F', 'A', 'C', 'P')
  1920. ///
  1921. /// "FACS" Firmware ACPI Control Structure
  1922. ///
  1923. #define EFI_ACPI_6_0_FIRMWARE_ACPI_CONTROL_STRUCTURE_SIGNATURE SIGNATURE_32('F', 'A', 'C', 'S')
  1924. ///
  1925. /// "FPDT" Firmware Performance Data Table
  1926. ///
  1927. #define EFI_ACPI_6_0_FIRMWARE_PERFORMANCE_DATA_TABLE_SIGNATURE SIGNATURE_32('F', 'P', 'D', 'T')
  1928. ///
  1929. /// "GTDT" Generic Timer Description Table
  1930. ///
  1931. #define EFI_ACPI_6_0_GENERIC_TIMER_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_32('G', 'T', 'D', 'T')
  1932. ///
  1933. /// "HEST" Hardware Error Source Table
  1934. ///
  1935. #define EFI_ACPI_6_0_HARDWARE_ERROR_SOURCE_TABLE_SIGNATURE SIGNATURE_32('H', 'E', 'S', 'T')
  1936. ///
  1937. /// "MPST" Memory Power State Table
  1938. ///
  1939. #define EFI_ACPI_6_0_MEMORY_POWER_STATE_TABLE_SIGNATURE SIGNATURE_32('M', 'P', 'S', 'T')
  1940. ///
  1941. /// "MSCT" Maximum System Characteristics Table
  1942. ///
  1943. #define EFI_ACPI_6_0_MAXIMUM_SYSTEM_CHARACTERISTICS_TABLE_SIGNATURE SIGNATURE_32('M', 'S', 'C', 'T')
  1944. ///
  1945. /// "NFIT" NVDIMM Firmware Interface Table
  1946. ///
  1947. #define EFI_ACPI_6_0_NVDIMM_FIRMWARE_INTERFACE_TABLE_STRUCTURE_SIGNATURE SIGNATURE_32('N', 'F', 'I', 'T')
  1948. ///
  1949. /// "PMTT" Platform Memory Topology Table
  1950. ///
  1951. #define EFI_ACPI_6_0_PLATFORM_MEMORY_TOPOLOGY_TABLE_SIGNATURE SIGNATURE_32('P', 'M', 'T', 'T')
  1952. ///
  1953. /// "PSDT" Persistent System Description Table
  1954. ///
  1955. #define EFI_ACPI_6_0_PERSISTENT_SYSTEM_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_32('P', 'S', 'D', 'T')
  1956. ///
  1957. /// "RASF" ACPI RAS Feature Table
  1958. ///
  1959. #define EFI_ACPI_6_0_ACPI_RAS_FEATURE_TABLE_SIGNATURE SIGNATURE_32('R', 'A', 'S', 'F')
  1960. ///
  1961. /// "RSDT" Root System Description Table
  1962. ///
  1963. #define EFI_ACPI_6_0_ROOT_SYSTEM_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_32('R', 'S', 'D', 'T')
  1964. ///
  1965. /// "SBST" Smart Battery Specification Table
  1966. ///
  1967. #define EFI_ACPI_6_0_SMART_BATTERY_SPECIFICATION_TABLE_SIGNATURE SIGNATURE_32('S', 'B', 'S', 'T')
  1968. ///
  1969. /// "SLIT" System Locality Information Table
  1970. ///
  1971. #define EFI_ACPI_6_0_SYSTEM_LOCALITY_INFORMATION_TABLE_SIGNATURE SIGNATURE_32('S', 'L', 'I', 'T')
  1972. ///
  1973. /// "SRAT" System Resource Affinity Table
  1974. ///
  1975. #define EFI_ACPI_6_0_SYSTEM_RESOURCE_AFFINITY_TABLE_SIGNATURE SIGNATURE_32('S', 'R', 'A', 'T')
  1976. ///
  1977. /// "SSDT" Secondary System Description Table
  1978. ///
  1979. #define EFI_ACPI_6_0_SECONDARY_SYSTEM_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_32('S', 'S', 'D', 'T')
  1980. ///
  1981. /// "XSDT" Extended System Description Table
  1982. ///
  1983. #define EFI_ACPI_6_0_EXTENDED_SYSTEM_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_32('X', 'S', 'D', 'T')
  1984. ///
  1985. /// "BOOT" MS Simple Boot Spec
  1986. ///
  1987. #define EFI_ACPI_6_0_SIMPLE_BOOT_FLAG_TABLE_SIGNATURE SIGNATURE_32('B', 'O', 'O', 'T')
  1988. ///
  1989. /// "CSRT" MS Core System Resource Table
  1990. ///
  1991. #define EFI_ACPI_6_0_CORE_SYSTEM_RESOURCE_TABLE_SIGNATURE SIGNATURE_32('C', 'S', 'R', 'T')
  1992. ///
  1993. /// "DBG2" MS Debug Port 2 Spec
  1994. ///
  1995. #define EFI_ACPI_6_0_DEBUG_PORT_2_TABLE_SIGNATURE SIGNATURE_32('D', 'B', 'G', '2')
  1996. ///
  1997. /// "DBGP" MS Debug Port Spec
  1998. ///
  1999. #define EFI_ACPI_6_0_DEBUG_PORT_TABLE_SIGNATURE SIGNATURE_32('D', 'B', 'G', 'P')
  2000. ///
  2001. /// "DMAR" DMA Remapping Table
  2002. ///
  2003. #define EFI_ACPI_6_0_DMA_REMAPPING_TABLE_SIGNATURE SIGNATURE_32('D', 'M', 'A', 'R')
  2004. ///
  2005. /// "DRTM" Dynamic Root of Trust for Measurement Table
  2006. ///
  2007. #define EFI_ACPI_6_0_DYNAMIC_ROOT_OF_TRUST_FOR_MEASUREMENT_TABLE_SIGNATURE SIGNATURE_32('D', 'R', 'T', 'M')
  2008. ///
  2009. /// "ETDT" Event Timer Description Table
  2010. ///
  2011. #define EFI_ACPI_6_0_EVENT_TIMER_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_32('E', 'T', 'D', 'T')
  2012. ///
  2013. /// "HPET" IA-PC High Precision Event Timer Table
  2014. ///
  2015. #define EFI_ACPI_6_0_HIGH_PRECISION_EVENT_TIMER_TABLE_SIGNATURE SIGNATURE_32('H', 'P', 'E', 'T')
  2016. ///
  2017. /// "iBFT" iSCSI Boot Firmware Table
  2018. ///
  2019. #define EFI_ACPI_6_0_ISCSI_BOOT_FIRMWARE_TABLE_SIGNATURE SIGNATURE_32('i', 'B', 'F', 'T')
  2020. ///
  2021. /// "IORT" I/O Remapping Table
  2022. ///
  2023. #define EFI_ACPI_6_0_IO_REMAPPING_TABLE_SIGNATURE SIGNATURE_32('I', 'O', 'R', 'T')
  2024. ///
  2025. /// "IVRS" I/O Virtualization Reporting Structure
  2026. ///
  2027. #define EFI_ACPI_6_0_IO_VIRTUALIZATION_REPORTING_STRUCTURE_SIGNATURE SIGNATURE_32('I', 'V', 'R', 'S')
  2028. ///
  2029. /// "LPIT" Low Power Idle Table
  2030. ///
  2031. #define EFI_ACPI_6_0_LOW_POWER_IDLE_TABLE_STRUCTURE_SIGNATURE SIGNATURE_32('L', 'P', 'I', 'T')
  2032. ///
  2033. /// "MCFG" PCI Express Memory Mapped Configuration Space Base Address Description Table
  2034. ///
  2035. #define EFI_ACPI_6_0_PCI_EXPRESS_MEMORY_MAPPED_CONFIGURATION_SPACE_BASE_ADDRESS_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_32('M', 'C', 'F', 'G')
  2036. ///
  2037. /// "MCHI" Management Controller Host Interface Table
  2038. ///
  2039. #define EFI_ACPI_6_0_MANAGEMENT_CONTROLLER_HOST_INTERFACE_TABLE_SIGNATURE SIGNATURE_32('M', 'C', 'H', 'I')
  2040. ///
  2041. /// "MSDM" MS Data Management Table
  2042. ///
  2043. #define EFI_ACPI_6_0_DATA_MANAGEMENT_TABLE_SIGNATURE SIGNATURE_32('M', 'S', 'D', 'M')
  2044. ///
  2045. /// "SLIC" MS Software Licensing Table Specification
  2046. ///
  2047. #define EFI_ACPI_6_0_SOFTWARE_LICENSING_TABLE_SIGNATURE SIGNATURE_32('S', 'L', 'I', 'C')
  2048. ///
  2049. /// "SPCR" Serial Port Concole Redirection Table
  2050. ///
  2051. #define EFI_ACPI_6_0_SERIAL_PORT_CONSOLE_REDIRECTION_TABLE_SIGNATURE SIGNATURE_32('S', 'P', 'C', 'R')
  2052. ///
  2053. /// "SPMI" Server Platform Management Interface Table
  2054. ///
  2055. #define EFI_ACPI_6_0_SERVER_PLATFORM_MANAGEMENT_INTERFACE_TABLE_SIGNATURE SIGNATURE_32('S', 'P', 'M', 'I')
  2056. ///
  2057. /// "STAO" _STA Override Table
  2058. ///
  2059. #define EFI_ACPI_6_0_STA_OVERRIDE_TABLE_SIGNATURE SIGNATURE_32('S', 'T', 'A', 'O')
  2060. ///
  2061. /// "TCPA" Trusted Computing Platform Alliance Capabilities Table
  2062. ///
  2063. #define EFI_ACPI_6_0_TRUSTED_COMPUTING_PLATFORM_ALLIANCE_CAPABILITIES_TABLE_SIGNATURE SIGNATURE_32('T', 'C', 'P', 'A')
  2064. ///
  2065. /// "TPM2" Trusted Computing Platform 1 Table
  2066. ///
  2067. #define EFI_ACPI_6_0_TRUSTED_COMPUTING_PLATFORM_2_TABLE_SIGNATURE SIGNATURE_32('T', 'P', 'M', '2')
  2068. ///
  2069. /// "UEFI" UEFI ACPI Data Table
  2070. ///
  2071. #define EFI_ACPI_6_0_UEFI_ACPI_DATA_TABLE_SIGNATURE SIGNATURE_32('U', 'E', 'F', 'I')
  2072. ///
  2073. /// "WAET" Windows ACPI Emulated Devices Table
  2074. ///
  2075. #define EFI_ACPI_6_0_WINDOWS_ACPI_EMULATED_DEVICES_TABLE_SIGNATURE SIGNATURE_32('W', 'A', 'E', 'T')
  2076. ///
  2077. /// "WDAT" Watchdog Action Table
  2078. ///
  2079. #define EFI_ACPI_6_0_WATCHDOG_ACTION_TABLE_SIGNATURE SIGNATURE_32('W', 'D', 'A', 'T')
  2080. ///
  2081. /// "WDRT" Watchdog Resource Table
  2082. ///
  2083. #define EFI_ACPI_6_0_WATCHDOG_RESOURCE_TABLE_SIGNATURE SIGNATURE_32('W', 'D', 'R', 'T')
  2084. ///
  2085. /// "WPBT" MS Platform Binary Table
  2086. ///
  2087. #define EFI_ACPI_6_0_PLATFORM_BINARY_TABLE_SIGNATURE SIGNATURE_32('W', 'P', 'B', 'T')
  2088. ///
  2089. /// "XENV" Xen Project Table
  2090. ///
  2091. #define EFI_ACPI_6_0_XEN_PROJECT_TABLE_SIGNATURE SIGNATURE_32('X', 'E', 'N', 'V')
  2092. #pragma pack()
  2093. #endif