actbl1.h 33 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211
  1. /******************************************************************************
  2. *
  3. * Name: actbl1.h - Additional ACPI table definitions
  4. *
  5. *****************************************************************************/
  6. /*
  7. * Copyright (C) 2000 - 2015, Intel Corp.
  8. * All rights reserved.
  9. *
  10. * Redistribution and use in source and binary forms, with or without
  11. * modification, are permitted provided that the following conditions
  12. * are met:
  13. * 1. Redistributions of source code must retain the above copyright
  14. * notice, this list of conditions, and the following disclaimer,
  15. * without modification.
  16. * 2. Redistributions in binary form must reproduce at minimum a disclaimer
  17. * substantially similar to the "NO WARRANTY" disclaimer below
  18. * ("Disclaimer") and any redistribution must be conditioned upon
  19. * including a substantially similar Disclaimer requirement for further
  20. * binary redistribution.
  21. * 3. Neither the names of the above-listed copyright holders nor the names
  22. * of any contributors may be used to endorse or promote products derived
  23. * from this software without specific prior written permission.
  24. *
  25. * Alternatively, this software may be distributed under the terms of the
  26. * GNU General Public License ("GPL") version 2 as published by the Free
  27. * Software Foundation.
  28. *
  29. * NO WARRANTY
  30. * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  31. * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  32. * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR
  33. * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  34. * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  35. * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  36. * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  37. * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
  38. * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
  39. * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  40. * POSSIBILITY OF SUCH DAMAGES.
  41. */
  42. #ifndef __ACTBL1_H__
  43. #define __ACTBL1_H__
  44. /*******************************************************************************
  45. *
  46. * Additional ACPI Tables (1)
  47. *
  48. * These tables are not consumed directly by the ACPICA subsystem, but are
  49. * included here to support device drivers and the AML disassembler.
  50. *
  51. * The tables in this file are fully defined within the ACPI specification.
  52. *
  53. ******************************************************************************/
  54. /*
  55. * Values for description table header signatures for tables defined in this
  56. * file. Useful because they make it more difficult to inadvertently type in
  57. * the wrong signature.
  58. */
  59. #define ACPI_SIG_BERT "BERT" /* Boot Error Record Table */
  60. #define ACPI_SIG_CPEP "CPEP" /* Corrected Platform Error Polling table */
  61. #define ACPI_SIG_ECDT "ECDT" /* Embedded Controller Boot Resources Table */
  62. #define ACPI_SIG_EINJ "EINJ" /* Error Injection table */
  63. #define ACPI_SIG_ERST "ERST" /* Error Record Serialization Table */
  64. #define ACPI_SIG_HEST "HEST" /* Hardware Error Source Table */
  65. #define ACPI_SIG_MADT "APIC" /* Multiple APIC Description Table */
  66. #define ACPI_SIG_MSCT "MSCT" /* Maximum System Characteristics Table */
  67. #define ACPI_SIG_SBST "SBST" /* Smart Battery Specification Table */
  68. #define ACPI_SIG_SLIT "SLIT" /* System Locality Distance Information Table */
  69. #define ACPI_SIG_SRAT "SRAT" /* System Resource Affinity Table */
  70. #define ACPI_SIG_NFIT "NFIT" /* NVDIMM Firmware Interface Table */
  71. /*
  72. * All tables must be byte-packed to match the ACPI specification, since
  73. * the tables are provided by the system BIOS.
  74. */
  75. #pragma pack(1)
  76. /*
  77. * Note: C bitfields are not used for this reason:
  78. *
  79. * "Bitfields are great and easy to read, but unfortunately the C language
  80. * does not specify the layout of bitfields in memory, which means they are
  81. * essentially useless for dealing with packed data in on-disk formats or
  82. * binary wire protocols." (Or ACPI tables and buffers.) "If you ask me,
  83. * this decision was a design error in C. Ritchie could have picked an order
  84. * and stuck with it." Norman Ramsey.
  85. * See http://stackoverflow.com/a/1053662/41661
  86. */
  87. /*******************************************************************************
  88. *
  89. * Common subtable headers
  90. *
  91. ******************************************************************************/
  92. /* Generic subtable header (used in MADT, SRAT, etc.) */
  93. struct acpi_subtable_header {
  94. u8 type;
  95. u8 length;
  96. };
  97. /* Subtable header for WHEA tables (EINJ, ERST, WDAT) */
  98. struct acpi_whea_header {
  99. u8 action;
  100. u8 instruction;
  101. u8 flags;
  102. u8 reserved;
  103. struct acpi_generic_address register_region;
  104. u64 value; /* Value used with Read/Write register */
  105. u64 mask; /* Bitmask required for this register instruction */
  106. };
  107. /*******************************************************************************
  108. *
  109. * BERT - Boot Error Record Table (ACPI 4.0)
  110. * Version 1
  111. *
  112. ******************************************************************************/
  113. struct acpi_table_bert {
  114. struct acpi_table_header header; /* Common ACPI table header */
  115. u32 region_length; /* Length of the boot error region */
  116. u64 address; /* Physical address of the error region */
  117. };
  118. /* Boot Error Region (not a subtable, pointed to by Address field above) */
  119. struct acpi_bert_region {
  120. u32 block_status; /* Type of error information */
  121. u32 raw_data_offset; /* Offset to raw error data */
  122. u32 raw_data_length; /* Length of raw error data */
  123. u32 data_length; /* Length of generic error data */
  124. u32 error_severity; /* Severity code */
  125. };
  126. /* Values for block_status flags above */
  127. #define ACPI_BERT_UNCORRECTABLE (1)
  128. #define ACPI_BERT_CORRECTABLE (1<<1)
  129. #define ACPI_BERT_MULTIPLE_UNCORRECTABLE (1<<2)
  130. #define ACPI_BERT_MULTIPLE_CORRECTABLE (1<<3)
  131. #define ACPI_BERT_ERROR_ENTRY_COUNT (0xFF<<4) /* 8 bits, error count */
  132. /* Values for error_severity above */
  133. enum acpi_bert_error_severity {
  134. ACPI_BERT_ERROR_CORRECTABLE = 0,
  135. ACPI_BERT_ERROR_FATAL = 1,
  136. ACPI_BERT_ERROR_CORRECTED = 2,
  137. ACPI_BERT_ERROR_NONE = 3,
  138. ACPI_BERT_ERROR_RESERVED = 4 /* 4 and greater are reserved */
  139. };
  140. /*
  141. * Note: The generic error data that follows the error_severity field above
  142. * uses the struct acpi_hest_generic_data defined under the HEST table below
  143. */
  144. /*******************************************************************************
  145. *
  146. * CPEP - Corrected Platform Error Polling table (ACPI 4.0)
  147. * Version 1
  148. *
  149. ******************************************************************************/
  150. struct acpi_table_cpep {
  151. struct acpi_table_header header; /* Common ACPI table header */
  152. u64 reserved;
  153. };
  154. /* Subtable */
  155. struct acpi_cpep_polling {
  156. struct acpi_subtable_header header;
  157. u8 id; /* Processor ID */
  158. u8 eid; /* Processor EID */
  159. u32 interval; /* Polling interval (msec) */
  160. };
  161. /*******************************************************************************
  162. *
  163. * ECDT - Embedded Controller Boot Resources Table
  164. * Version 1
  165. *
  166. ******************************************************************************/
  167. struct acpi_table_ecdt {
  168. struct acpi_table_header header; /* Common ACPI table header */
  169. struct acpi_generic_address control; /* Address of EC command/status register */
  170. struct acpi_generic_address data; /* Address of EC data register */
  171. u32 uid; /* Unique ID - must be same as the EC _UID method */
  172. u8 gpe; /* The GPE for the EC */
  173. u8 id[1]; /* Full namepath of the EC in the ACPI namespace */
  174. };
  175. /*******************************************************************************
  176. *
  177. * EINJ - Error Injection Table (ACPI 4.0)
  178. * Version 1
  179. *
  180. ******************************************************************************/
  181. struct acpi_table_einj {
  182. struct acpi_table_header header; /* Common ACPI table header */
  183. u32 header_length;
  184. u8 flags;
  185. u8 reserved[3];
  186. u32 entries;
  187. };
  188. /* EINJ Injection Instruction Entries (actions) */
  189. struct acpi_einj_entry {
  190. struct acpi_whea_header whea_header; /* Common header for WHEA tables */
  191. };
  192. /* Masks for Flags field above */
  193. #define ACPI_EINJ_PRESERVE (1)
  194. /* Values for Action field above */
  195. enum acpi_einj_actions {
  196. ACPI_EINJ_BEGIN_OPERATION = 0,
  197. ACPI_EINJ_GET_TRIGGER_TABLE = 1,
  198. ACPI_EINJ_SET_ERROR_TYPE = 2,
  199. ACPI_EINJ_GET_ERROR_TYPE = 3,
  200. ACPI_EINJ_END_OPERATION = 4,
  201. ACPI_EINJ_EXECUTE_OPERATION = 5,
  202. ACPI_EINJ_CHECK_BUSY_STATUS = 6,
  203. ACPI_EINJ_GET_COMMAND_STATUS = 7,
  204. ACPI_EINJ_SET_ERROR_TYPE_WITH_ADDRESS = 8,
  205. ACPI_EINJ_ACTION_RESERVED = 9, /* 9 and greater are reserved */
  206. ACPI_EINJ_TRIGGER_ERROR = 0xFF /* Except for this value */
  207. };
  208. /* Values for Instruction field above */
  209. enum acpi_einj_instructions {
  210. ACPI_EINJ_READ_REGISTER = 0,
  211. ACPI_EINJ_READ_REGISTER_VALUE = 1,
  212. ACPI_EINJ_WRITE_REGISTER = 2,
  213. ACPI_EINJ_WRITE_REGISTER_VALUE = 3,
  214. ACPI_EINJ_NOOP = 4,
  215. ACPI_EINJ_FLUSH_CACHELINE = 5,
  216. ACPI_EINJ_INSTRUCTION_RESERVED = 6 /* 6 and greater are reserved */
  217. };
  218. struct acpi_einj_error_type_with_addr {
  219. u32 error_type;
  220. u32 vendor_struct_offset;
  221. u32 flags;
  222. u32 apic_id;
  223. u64 address;
  224. u64 range;
  225. u32 pcie_id;
  226. };
  227. struct acpi_einj_vendor {
  228. u32 length;
  229. u32 pcie_id;
  230. u16 vendor_id;
  231. u16 device_id;
  232. u8 revision_id;
  233. u8 reserved[3];
  234. };
  235. /* EINJ Trigger Error Action Table */
  236. struct acpi_einj_trigger {
  237. u32 header_size;
  238. u32 revision;
  239. u32 table_size;
  240. u32 entry_count;
  241. };
  242. /* Command status return values */
  243. enum acpi_einj_command_status {
  244. ACPI_EINJ_SUCCESS = 0,
  245. ACPI_EINJ_FAILURE = 1,
  246. ACPI_EINJ_INVALID_ACCESS = 2,
  247. ACPI_EINJ_STATUS_RESERVED = 3 /* 3 and greater are reserved */
  248. };
  249. /* Error types returned from ACPI_EINJ_GET_ERROR_TYPE (bitfield) */
  250. #define ACPI_EINJ_PROCESSOR_CORRECTABLE (1)
  251. #define ACPI_EINJ_PROCESSOR_UNCORRECTABLE (1<<1)
  252. #define ACPI_EINJ_PROCESSOR_FATAL (1<<2)
  253. #define ACPI_EINJ_MEMORY_CORRECTABLE (1<<3)
  254. #define ACPI_EINJ_MEMORY_UNCORRECTABLE (1<<4)
  255. #define ACPI_EINJ_MEMORY_FATAL (1<<5)
  256. #define ACPI_EINJ_PCIX_CORRECTABLE (1<<6)
  257. #define ACPI_EINJ_PCIX_UNCORRECTABLE (1<<7)
  258. #define ACPI_EINJ_PCIX_FATAL (1<<8)
  259. #define ACPI_EINJ_PLATFORM_CORRECTABLE (1<<9)
  260. #define ACPI_EINJ_PLATFORM_UNCORRECTABLE (1<<10)
  261. #define ACPI_EINJ_PLATFORM_FATAL (1<<11)
  262. #define ACPI_EINJ_VENDOR_DEFINED (1<<31)
  263. /*******************************************************************************
  264. *
  265. * ERST - Error Record Serialization Table (ACPI 4.0)
  266. * Version 1
  267. *
  268. ******************************************************************************/
  269. struct acpi_table_erst {
  270. struct acpi_table_header header; /* Common ACPI table header */
  271. u32 header_length;
  272. u32 reserved;
  273. u32 entries;
  274. };
  275. /* ERST Serialization Entries (actions) */
  276. struct acpi_erst_entry {
  277. struct acpi_whea_header whea_header; /* Common header for WHEA tables */
  278. };
  279. /* Masks for Flags field above */
  280. #define ACPI_ERST_PRESERVE (1)
  281. /* Values for Action field above */
  282. enum acpi_erst_actions {
  283. ACPI_ERST_BEGIN_WRITE = 0,
  284. ACPI_ERST_BEGIN_READ = 1,
  285. ACPI_ERST_BEGIN_CLEAR = 2,
  286. ACPI_ERST_END = 3,
  287. ACPI_ERST_SET_RECORD_OFFSET = 4,
  288. ACPI_ERST_EXECUTE_OPERATION = 5,
  289. ACPI_ERST_CHECK_BUSY_STATUS = 6,
  290. ACPI_ERST_GET_COMMAND_STATUS = 7,
  291. ACPI_ERST_GET_RECORD_ID = 8,
  292. ACPI_ERST_SET_RECORD_ID = 9,
  293. ACPI_ERST_GET_RECORD_COUNT = 10,
  294. ACPI_ERST_BEGIN_DUMMY_WRIITE = 11,
  295. ACPI_ERST_NOT_USED = 12,
  296. ACPI_ERST_GET_ERROR_RANGE = 13,
  297. ACPI_ERST_GET_ERROR_LENGTH = 14,
  298. ACPI_ERST_GET_ERROR_ATTRIBUTES = 15,
  299. ACPI_ERST_ACTION_RESERVED = 16 /* 16 and greater are reserved */
  300. };
  301. /* Values for Instruction field above */
  302. enum acpi_erst_instructions {
  303. ACPI_ERST_READ_REGISTER = 0,
  304. ACPI_ERST_READ_REGISTER_VALUE = 1,
  305. ACPI_ERST_WRITE_REGISTER = 2,
  306. ACPI_ERST_WRITE_REGISTER_VALUE = 3,
  307. ACPI_ERST_NOOP = 4,
  308. ACPI_ERST_LOAD_VAR1 = 5,
  309. ACPI_ERST_LOAD_VAR2 = 6,
  310. ACPI_ERST_STORE_VAR1 = 7,
  311. ACPI_ERST_ADD = 8,
  312. ACPI_ERST_SUBTRACT = 9,
  313. ACPI_ERST_ADD_VALUE = 10,
  314. ACPI_ERST_SUBTRACT_VALUE = 11,
  315. ACPI_ERST_STALL = 12,
  316. ACPI_ERST_STALL_WHILE_TRUE = 13,
  317. ACPI_ERST_SKIP_NEXT_IF_TRUE = 14,
  318. ACPI_ERST_GOTO = 15,
  319. ACPI_ERST_SET_SRC_ADDRESS_BASE = 16,
  320. ACPI_ERST_SET_DST_ADDRESS_BASE = 17,
  321. ACPI_ERST_MOVE_DATA = 18,
  322. ACPI_ERST_INSTRUCTION_RESERVED = 19 /* 19 and greater are reserved */
  323. };
  324. /* Command status return values */
  325. enum acpi_erst_command_status {
  326. ACPI_ERST_SUCESS = 0,
  327. ACPI_ERST_NO_SPACE = 1,
  328. ACPI_ERST_NOT_AVAILABLE = 2,
  329. ACPI_ERST_FAILURE = 3,
  330. ACPI_ERST_RECORD_EMPTY = 4,
  331. ACPI_ERST_NOT_FOUND = 5,
  332. ACPI_ERST_STATUS_RESERVED = 6 /* 6 and greater are reserved */
  333. };
  334. /* Error Record Serialization Information */
  335. struct acpi_erst_info {
  336. u16 signature; /* Should be "ER" */
  337. u8 data[48];
  338. };
  339. /*******************************************************************************
  340. *
  341. * HEST - Hardware Error Source Table (ACPI 4.0)
  342. * Version 1
  343. *
  344. ******************************************************************************/
  345. struct acpi_table_hest {
  346. struct acpi_table_header header; /* Common ACPI table header */
  347. u32 error_source_count;
  348. };
  349. /* HEST subtable header */
  350. struct acpi_hest_header {
  351. u16 type;
  352. u16 source_id;
  353. };
  354. /* Values for Type field above for subtables */
  355. enum acpi_hest_types {
  356. ACPI_HEST_TYPE_IA32_CHECK = 0,
  357. ACPI_HEST_TYPE_IA32_CORRECTED_CHECK = 1,
  358. ACPI_HEST_TYPE_IA32_NMI = 2,
  359. ACPI_HEST_TYPE_NOT_USED3 = 3,
  360. ACPI_HEST_TYPE_NOT_USED4 = 4,
  361. ACPI_HEST_TYPE_NOT_USED5 = 5,
  362. ACPI_HEST_TYPE_AER_ROOT_PORT = 6,
  363. ACPI_HEST_TYPE_AER_ENDPOINT = 7,
  364. ACPI_HEST_TYPE_AER_BRIDGE = 8,
  365. ACPI_HEST_TYPE_GENERIC_ERROR = 9,
  366. ACPI_HEST_TYPE_RESERVED = 10 /* 10 and greater are reserved */
  367. };
  368. /*
  369. * HEST substructures contained in subtables
  370. */
  371. /*
  372. * IA32 Error Bank(s) - Follows the struct acpi_hest_ia_machine_check and
  373. * struct acpi_hest_ia_corrected structures.
  374. */
  375. struct acpi_hest_ia_error_bank {
  376. u8 bank_number;
  377. u8 clear_status_on_init;
  378. u8 status_format;
  379. u8 reserved;
  380. u32 control_register;
  381. u64 control_data;
  382. u32 status_register;
  383. u32 address_register;
  384. u32 misc_register;
  385. };
  386. /* Common HEST sub-structure for PCI/AER structures below (6,7,8) */
  387. struct acpi_hest_aer_common {
  388. u16 reserved1;
  389. u8 flags;
  390. u8 enabled;
  391. u32 records_to_preallocate;
  392. u32 max_sections_per_record;
  393. u32 bus; /* Bus and Segment numbers */
  394. u16 device;
  395. u16 function;
  396. u16 device_control;
  397. u16 reserved2;
  398. u32 uncorrectable_mask;
  399. u32 uncorrectable_severity;
  400. u32 correctable_mask;
  401. u32 advanced_capabilities;
  402. };
  403. /* Masks for HEST Flags fields */
  404. #define ACPI_HEST_FIRMWARE_FIRST (1)
  405. #define ACPI_HEST_GLOBAL (1<<1)
  406. /*
  407. * Macros to access the bus/segment numbers in Bus field above:
  408. * Bus number is encoded in bits 7:0
  409. * Segment number is encoded in bits 23:8
  410. */
  411. #define ACPI_HEST_BUS(bus) ((bus) & 0xFF)
  412. #define ACPI_HEST_SEGMENT(bus) (((bus) >> 8) & 0xFFFF)
  413. /* Hardware Error Notification */
  414. struct acpi_hest_notify {
  415. u8 type;
  416. u8 length;
  417. u16 config_write_enable;
  418. u32 poll_interval;
  419. u32 vector;
  420. u32 polling_threshold_value;
  421. u32 polling_threshold_window;
  422. u32 error_threshold_value;
  423. u32 error_threshold_window;
  424. };
  425. /* Values for Notify Type field above */
  426. enum acpi_hest_notify_types {
  427. ACPI_HEST_NOTIFY_POLLED = 0,
  428. ACPI_HEST_NOTIFY_EXTERNAL = 1,
  429. ACPI_HEST_NOTIFY_LOCAL = 2,
  430. ACPI_HEST_NOTIFY_SCI = 3,
  431. ACPI_HEST_NOTIFY_NMI = 4,
  432. ACPI_HEST_NOTIFY_CMCI = 5, /* ACPI 5.0 */
  433. ACPI_HEST_NOTIFY_MCE = 6, /* ACPI 5.0 */
  434. ACPI_HEST_NOTIFY_RESERVED = 7 /* 7 and greater are reserved */
  435. };
  436. /* Values for config_write_enable bitfield above */
  437. #define ACPI_HEST_TYPE (1)
  438. #define ACPI_HEST_POLL_INTERVAL (1<<1)
  439. #define ACPI_HEST_POLL_THRESHOLD_VALUE (1<<2)
  440. #define ACPI_HEST_POLL_THRESHOLD_WINDOW (1<<3)
  441. #define ACPI_HEST_ERR_THRESHOLD_VALUE (1<<4)
  442. #define ACPI_HEST_ERR_THRESHOLD_WINDOW (1<<5)
  443. /*
  444. * HEST subtables
  445. */
  446. /* 0: IA32 Machine Check Exception */
  447. struct acpi_hest_ia_machine_check {
  448. struct acpi_hest_header header;
  449. u16 reserved1;
  450. u8 flags;
  451. u8 enabled;
  452. u32 records_to_preallocate;
  453. u32 max_sections_per_record;
  454. u64 global_capability_data;
  455. u64 global_control_data;
  456. u8 num_hardware_banks;
  457. u8 reserved3[7];
  458. };
  459. /* 1: IA32 Corrected Machine Check */
  460. struct acpi_hest_ia_corrected {
  461. struct acpi_hest_header header;
  462. u16 reserved1;
  463. u8 flags;
  464. u8 enabled;
  465. u32 records_to_preallocate;
  466. u32 max_sections_per_record;
  467. struct acpi_hest_notify notify;
  468. u8 num_hardware_banks;
  469. u8 reserved2[3];
  470. };
  471. /* 2: IA32 Non-Maskable Interrupt */
  472. struct acpi_hest_ia_nmi {
  473. struct acpi_hest_header header;
  474. u32 reserved;
  475. u32 records_to_preallocate;
  476. u32 max_sections_per_record;
  477. u32 max_raw_data_length;
  478. };
  479. /* 3,4,5: Not used */
  480. /* 6: PCI Express Root Port AER */
  481. struct acpi_hest_aer_root {
  482. struct acpi_hest_header header;
  483. struct acpi_hest_aer_common aer;
  484. u32 root_error_command;
  485. };
  486. /* 7: PCI Express AER (AER Endpoint) */
  487. struct acpi_hest_aer {
  488. struct acpi_hest_header header;
  489. struct acpi_hest_aer_common aer;
  490. };
  491. /* 8: PCI Express/PCI-X Bridge AER */
  492. struct acpi_hest_aer_bridge {
  493. struct acpi_hest_header header;
  494. struct acpi_hest_aer_common aer;
  495. u32 uncorrectable_mask2;
  496. u32 uncorrectable_severity2;
  497. u32 advanced_capabilities2;
  498. };
  499. /* 9: Generic Hardware Error Source */
  500. struct acpi_hest_generic {
  501. struct acpi_hest_header header;
  502. u16 related_source_id;
  503. u8 reserved;
  504. u8 enabled;
  505. u32 records_to_preallocate;
  506. u32 max_sections_per_record;
  507. u32 max_raw_data_length;
  508. struct acpi_generic_address error_status_address;
  509. struct acpi_hest_notify notify;
  510. u32 error_block_length;
  511. };
  512. /* Generic Error Status block */
  513. struct acpi_hest_generic_status {
  514. u32 block_status;
  515. u32 raw_data_offset;
  516. u32 raw_data_length;
  517. u32 data_length;
  518. u32 error_severity;
  519. };
  520. /* Values for block_status flags above */
  521. #define ACPI_HEST_UNCORRECTABLE (1)
  522. #define ACPI_HEST_CORRECTABLE (1<<1)
  523. #define ACPI_HEST_MULTIPLE_UNCORRECTABLE (1<<2)
  524. #define ACPI_HEST_MULTIPLE_CORRECTABLE (1<<3)
  525. #define ACPI_HEST_ERROR_ENTRY_COUNT (0xFF<<4) /* 8 bits, error count */
  526. /* Generic Error Data entry */
  527. struct acpi_hest_generic_data {
  528. u8 section_type[16];
  529. u32 error_severity;
  530. u16 revision;
  531. u8 validation_bits;
  532. u8 flags;
  533. u32 error_data_length;
  534. u8 fru_id[16];
  535. u8 fru_text[20];
  536. };
  537. /*******************************************************************************
  538. *
  539. * MADT - Multiple APIC Description Table
  540. * Version 3
  541. *
  542. ******************************************************************************/
  543. struct acpi_table_madt {
  544. struct acpi_table_header header; /* Common ACPI table header */
  545. u32 address; /* Physical address of local APIC */
  546. u32 flags;
  547. };
  548. /* Masks for Flags field above */
  549. #define ACPI_MADT_PCAT_COMPAT (1) /* 00: System also has dual 8259s */
  550. /* Values for PCATCompat flag */
  551. #define ACPI_MADT_DUAL_PIC 0
  552. #define ACPI_MADT_MULTIPLE_APIC 1
  553. /* Values for MADT subtable type in struct acpi_subtable_header */
  554. enum acpi_madt_type {
  555. ACPI_MADT_TYPE_LOCAL_APIC = 0,
  556. ACPI_MADT_TYPE_IO_APIC = 1,
  557. ACPI_MADT_TYPE_INTERRUPT_OVERRIDE = 2,
  558. ACPI_MADT_TYPE_NMI_SOURCE = 3,
  559. ACPI_MADT_TYPE_LOCAL_APIC_NMI = 4,
  560. ACPI_MADT_TYPE_LOCAL_APIC_OVERRIDE = 5,
  561. ACPI_MADT_TYPE_IO_SAPIC = 6,
  562. ACPI_MADT_TYPE_LOCAL_SAPIC = 7,
  563. ACPI_MADT_TYPE_INTERRUPT_SOURCE = 8,
  564. ACPI_MADT_TYPE_LOCAL_X2APIC = 9,
  565. ACPI_MADT_TYPE_LOCAL_X2APIC_NMI = 10,
  566. ACPI_MADT_TYPE_GENERIC_INTERRUPT = 11,
  567. ACPI_MADT_TYPE_GENERIC_DISTRIBUTOR = 12,
  568. ACPI_MADT_TYPE_GENERIC_MSI_FRAME = 13,
  569. ACPI_MADT_TYPE_GENERIC_REDISTRIBUTOR = 14,
  570. ACPI_MADT_TYPE_GENERIC_TRANSLATOR = 15,
  571. ACPI_MADT_TYPE_RESERVED = 16 /* 16 and greater are reserved */
  572. };
  573. /*
  574. * MADT Subtables, correspond to Type in struct acpi_subtable_header
  575. */
  576. /* 0: Processor Local APIC */
  577. struct acpi_madt_local_apic {
  578. struct acpi_subtable_header header;
  579. u8 processor_id; /* ACPI processor id */
  580. u8 id; /* Processor's local APIC id */
  581. u32 lapic_flags;
  582. };
  583. /* 1: IO APIC */
  584. struct acpi_madt_io_apic {
  585. struct acpi_subtable_header header;
  586. u8 id; /* I/O APIC ID */
  587. u8 reserved; /* reserved - must be zero */
  588. u32 address; /* APIC physical address */
  589. u32 global_irq_base; /* Global system interrupt where INTI lines start */
  590. };
  591. /* 2: Interrupt Override */
  592. struct acpi_madt_interrupt_override {
  593. struct acpi_subtable_header header;
  594. u8 bus; /* 0 - ISA */
  595. u8 source_irq; /* Interrupt source (IRQ) */
  596. u32 global_irq; /* Global system interrupt */
  597. u16 inti_flags;
  598. };
  599. /* 3: NMI Source */
  600. struct acpi_madt_nmi_source {
  601. struct acpi_subtable_header header;
  602. u16 inti_flags;
  603. u32 global_irq; /* Global system interrupt */
  604. };
  605. /* 4: Local APIC NMI */
  606. struct acpi_madt_local_apic_nmi {
  607. struct acpi_subtable_header header;
  608. u8 processor_id; /* ACPI processor id */
  609. u16 inti_flags;
  610. u8 lint; /* LINTn to which NMI is connected */
  611. };
  612. /* 5: Address Override */
  613. struct acpi_madt_local_apic_override {
  614. struct acpi_subtable_header header;
  615. u16 reserved; /* Reserved, must be zero */
  616. u64 address; /* APIC physical address */
  617. };
  618. /* 6: I/O Sapic */
  619. struct acpi_madt_io_sapic {
  620. struct acpi_subtable_header header;
  621. u8 id; /* I/O SAPIC ID */
  622. u8 reserved; /* Reserved, must be zero */
  623. u32 global_irq_base; /* Global interrupt for SAPIC start */
  624. u64 address; /* SAPIC physical address */
  625. };
  626. /* 7: Local Sapic */
  627. struct acpi_madt_local_sapic {
  628. struct acpi_subtable_header header;
  629. u8 processor_id; /* ACPI processor id */
  630. u8 id; /* SAPIC ID */
  631. u8 eid; /* SAPIC EID */
  632. u8 reserved[3]; /* Reserved, must be zero */
  633. u32 lapic_flags;
  634. u32 uid; /* Numeric UID - ACPI 3.0 */
  635. char uid_string[1]; /* String UID - ACPI 3.0 */
  636. };
  637. /* 8: Platform Interrupt Source */
  638. struct acpi_madt_interrupt_source {
  639. struct acpi_subtable_header header;
  640. u16 inti_flags;
  641. u8 type; /* 1=PMI, 2=INIT, 3=corrected */
  642. u8 id; /* Processor ID */
  643. u8 eid; /* Processor EID */
  644. u8 io_sapic_vector; /* Vector value for PMI interrupts */
  645. u32 global_irq; /* Global system interrupt */
  646. u32 flags; /* Interrupt Source Flags */
  647. };
  648. /* Masks for Flags field above */
  649. #define ACPI_MADT_CPEI_OVERRIDE (1)
  650. /* 9: Processor Local X2APIC (ACPI 4.0) */
  651. struct acpi_madt_local_x2apic {
  652. struct acpi_subtable_header header;
  653. u16 reserved; /* reserved - must be zero */
  654. u32 local_apic_id; /* Processor x2APIC ID */
  655. u32 lapic_flags;
  656. u32 uid; /* ACPI processor UID */
  657. };
  658. /* 10: Local X2APIC NMI (ACPI 4.0) */
  659. struct acpi_madt_local_x2apic_nmi {
  660. struct acpi_subtable_header header;
  661. u16 inti_flags;
  662. u32 uid; /* ACPI processor UID */
  663. u8 lint; /* LINTn to which NMI is connected */
  664. u8 reserved[3]; /* reserved - must be zero */
  665. };
  666. /* 11: Generic Interrupt (ACPI 5.0 + ACPI 6.0 changes) */
  667. struct acpi_madt_generic_interrupt {
  668. struct acpi_subtable_header header;
  669. u16 reserved; /* reserved - must be zero */
  670. u32 cpu_interface_number;
  671. u32 uid;
  672. u32 flags;
  673. u32 parking_version;
  674. u32 performance_interrupt;
  675. u64 parked_address;
  676. u64 base_address;
  677. u64 gicv_base_address;
  678. u64 gich_base_address;
  679. u32 vgic_interrupt;
  680. u64 gicr_base_address;
  681. u64 arm_mpidr;
  682. u8 efficiency_class;
  683. u8 reserved2[3];
  684. };
  685. /* Masks for Flags field above */
  686. /* ACPI_MADT_ENABLED (1) Processor is usable if set */
  687. #define ACPI_MADT_PERFORMANCE_IRQ_MODE (1<<1) /* 01: Performance Interrupt Mode */
  688. #define ACPI_MADT_VGIC_IRQ_MODE (1<<2) /* 02: VGIC Maintenance Interrupt mode */
  689. /* 12: Generic Distributor (ACPI 5.0 + ACPI 6.0 changes) */
  690. struct acpi_madt_generic_distributor {
  691. struct acpi_subtable_header header;
  692. u16 reserved; /* reserved - must be zero */
  693. u32 gic_id;
  694. u64 base_address;
  695. u32 global_irq_base;
  696. u8 version;
  697. u8 reserved2[3]; /* reserved - must be zero */
  698. };
  699. /* Values for Version field above */
  700. enum acpi_madt_gic_version {
  701. ACPI_MADT_GIC_VERSION_NONE = 0,
  702. ACPI_MADT_GIC_VERSION_V1 = 1,
  703. ACPI_MADT_GIC_VERSION_V2 = 2,
  704. ACPI_MADT_GIC_VERSION_V3 = 3,
  705. ACPI_MADT_GIC_VERSION_V4 = 4,
  706. ACPI_MADT_GIC_VERSION_RESERVED = 5 /* 5 and greater are reserved */
  707. };
  708. /* 13: Generic MSI Frame (ACPI 5.1) */
  709. struct acpi_madt_generic_msi_frame {
  710. struct acpi_subtable_header header;
  711. u16 reserved; /* reserved - must be zero */
  712. u32 msi_frame_id;
  713. u64 base_address;
  714. u32 flags;
  715. u16 spi_count;
  716. u16 spi_base;
  717. };
  718. /* Masks for Flags field above */
  719. #define ACPI_MADT_OVERRIDE_SPI_VALUES (1)
  720. /* 14: Generic Redistributor (ACPI 5.1) */
  721. struct acpi_madt_generic_redistributor {
  722. struct acpi_subtable_header header;
  723. u16 reserved; /* reserved - must be zero */
  724. u64 base_address;
  725. u32 length;
  726. };
  727. /* 15: Generic Translator (ACPI 6.0) */
  728. struct acpi_madt_generic_translator {
  729. struct acpi_subtable_header header;
  730. u16 reserved; /* reserved - must be zero */
  731. u32 translation_id;
  732. u64 base_address;
  733. u32 reserved2;
  734. };
  735. /*
  736. * Common flags fields for MADT subtables
  737. */
  738. /* MADT Local APIC flags */
  739. #define ACPI_MADT_ENABLED (1) /* 00: Processor is usable if set */
  740. /* MADT MPS INTI flags (inti_flags) */
  741. #define ACPI_MADT_POLARITY_MASK (3) /* 00-01: Polarity of APIC I/O input signals */
  742. #define ACPI_MADT_TRIGGER_MASK (3<<2) /* 02-03: Trigger mode of APIC input signals */
  743. /* Values for MPS INTI flags */
  744. #define ACPI_MADT_POLARITY_CONFORMS 0
  745. #define ACPI_MADT_POLARITY_ACTIVE_HIGH 1
  746. #define ACPI_MADT_POLARITY_RESERVED 2
  747. #define ACPI_MADT_POLARITY_ACTIVE_LOW 3
  748. #define ACPI_MADT_TRIGGER_CONFORMS (0)
  749. #define ACPI_MADT_TRIGGER_EDGE (1<<2)
  750. #define ACPI_MADT_TRIGGER_RESERVED (2<<2)
  751. #define ACPI_MADT_TRIGGER_LEVEL (3<<2)
  752. /*******************************************************************************
  753. *
  754. * MSCT - Maximum System Characteristics Table (ACPI 4.0)
  755. * Version 1
  756. *
  757. ******************************************************************************/
  758. struct acpi_table_msct {
  759. struct acpi_table_header header; /* Common ACPI table header */
  760. u32 proximity_offset; /* Location of proximity info struct(s) */
  761. u32 max_proximity_domains; /* Max number of proximity domains */
  762. u32 max_clock_domains; /* Max number of clock domains */
  763. u64 max_address; /* Max physical address in system */
  764. };
  765. /* subtable - Maximum Proximity Domain Information. Version 1 */
  766. struct acpi_msct_proximity {
  767. u8 revision;
  768. u8 length;
  769. u32 range_start; /* Start of domain range */
  770. u32 range_end; /* End of domain range */
  771. u32 processor_capacity;
  772. u64 memory_capacity; /* In bytes */
  773. };
  774. /*******************************************************************************
  775. *
  776. * NFIT - NVDIMM Interface Table (ACPI 6.0)
  777. * Version 1
  778. *
  779. ******************************************************************************/
  780. struct acpi_table_nfit {
  781. struct acpi_table_header header; /* Common ACPI table header */
  782. u32 reserved; /* Reserved, must be zero */
  783. };
  784. /* Subtable header for NFIT */
  785. struct acpi_nfit_header {
  786. u16 type;
  787. u16 length;
  788. };
  789. /* Values for subtable type in struct acpi_nfit_header */
  790. enum acpi_nfit_type {
  791. ACPI_NFIT_TYPE_SYSTEM_ADDRESS = 0,
  792. ACPI_NFIT_TYPE_MEMORY_MAP = 1,
  793. ACPI_NFIT_TYPE_INTERLEAVE = 2,
  794. ACPI_NFIT_TYPE_SMBIOS = 3,
  795. ACPI_NFIT_TYPE_CONTROL_REGION = 4,
  796. ACPI_NFIT_TYPE_DATA_REGION = 5,
  797. ACPI_NFIT_TYPE_FLUSH_ADDRESS = 6,
  798. ACPI_NFIT_TYPE_RESERVED = 7 /* 7 and greater are reserved */
  799. };
  800. /*
  801. * NFIT Subtables
  802. */
  803. /* 0: System Physical Address Range Structure */
  804. struct acpi_nfit_system_address {
  805. struct acpi_nfit_header header;
  806. u16 range_index;
  807. u16 flags;
  808. u32 reserved; /* Reseved, must be zero */
  809. u32 proximity_domain;
  810. u8 range_guid[16];
  811. u64 address;
  812. u64 length;
  813. u64 memory_mapping;
  814. };
  815. /* Flags */
  816. #define ACPI_NFIT_ADD_ONLINE_ONLY (1) /* 00: Add/Online Operation Only */
  817. #define ACPI_NFIT_PROXIMITY_VALID (1<<1) /* 01: Proximity Domain Valid */
  818. /* Range Type GUIDs appear in the include/acuuid.h file */
  819. /* 1: Memory Device to System Address Range Map Structure */
  820. struct acpi_nfit_memory_map {
  821. struct acpi_nfit_header header;
  822. u32 device_handle;
  823. u16 physical_id;
  824. u16 region_id;
  825. u16 range_index;
  826. u16 region_index;
  827. u64 region_size;
  828. u64 region_offset;
  829. u64 address;
  830. u16 interleave_index;
  831. u16 interleave_ways;
  832. u16 flags;
  833. u16 reserved; /* Reserved, must be zero */
  834. };
  835. /* Flags */
  836. #define ACPI_NFIT_MEM_SAVE_FAILED (1) /* 00: Last SAVE to Memory Device failed */
  837. #define ACPI_NFIT_MEM_RESTORE_FAILED (1<<1) /* 01: Last RESTORE from Memory Device failed */
  838. #define ACPI_NFIT_MEM_FLUSH_FAILED (1<<2) /* 02: Platform flush failed */
  839. #define ACPI_NFIT_MEM_NOT_ARMED (1<<3) /* 03: Memory Device is not armed */
  840. #define ACPI_NFIT_MEM_HEALTH_OBSERVED (1<<4) /* 04: Memory Device observed SMART/health events */
  841. #define ACPI_NFIT_MEM_HEALTH_ENABLED (1<<5) /* 05: SMART/health events enabled */
  842. /* 2: Interleave Structure */
  843. struct acpi_nfit_interleave {
  844. struct acpi_nfit_header header;
  845. u16 interleave_index;
  846. u16 reserved; /* Reserved, must be zero */
  847. u32 line_count;
  848. u32 line_size;
  849. u32 line_offset[1]; /* Variable length */
  850. };
  851. /* 3: SMBIOS Management Information Structure */
  852. struct acpi_nfit_smbios {
  853. struct acpi_nfit_header header;
  854. u32 reserved; /* Reserved, must be zero */
  855. u8 data[1]; /* Variable length */
  856. };
  857. /* 4: NVDIMM Control Region Structure */
  858. struct acpi_nfit_control_region {
  859. struct acpi_nfit_header header;
  860. u16 region_index;
  861. u16 vendor_id;
  862. u16 device_id;
  863. u16 revision_id;
  864. u16 subsystem_vendor_id;
  865. u16 subsystem_device_id;
  866. u16 subsystem_revision_id;
  867. u8 reserved[6]; /* Reserved, must be zero */
  868. u32 serial_number;
  869. u16 code;
  870. u16 windows;
  871. u64 window_size;
  872. u64 command_offset;
  873. u64 command_size;
  874. u64 status_offset;
  875. u64 status_size;
  876. u16 flags;
  877. u8 reserved1[6]; /* Reserved, must be zero */
  878. };
  879. /* Flags */
  880. #define ACPI_NFIT_CONTROL_BUFFERED (1) /* Block Data Windows implementation is buffered */
  881. /* 5: NVDIMM Block Data Window Region Structure */
  882. struct acpi_nfit_data_region {
  883. struct acpi_nfit_header header;
  884. u16 region_index;
  885. u16 windows;
  886. u64 offset;
  887. u64 size;
  888. u64 capacity;
  889. u64 start_address;
  890. };
  891. /* 6: Flush Hint Address Structure */
  892. struct acpi_nfit_flush_address {
  893. struct acpi_nfit_header header;
  894. u32 device_handle;
  895. u16 hint_count;
  896. u8 reserved[6]; /* Reserved, must be zero */
  897. u64 hint_address[1]; /* Variable length */
  898. };
  899. /*******************************************************************************
  900. *
  901. * SBST - Smart Battery Specification Table
  902. * Version 1
  903. *
  904. ******************************************************************************/
  905. struct acpi_table_sbst {
  906. struct acpi_table_header header; /* Common ACPI table header */
  907. u32 warning_level;
  908. u32 low_level;
  909. u32 critical_level;
  910. };
  911. /*******************************************************************************
  912. *
  913. * SLIT - System Locality Distance Information Table
  914. * Version 1
  915. *
  916. ******************************************************************************/
  917. struct acpi_table_slit {
  918. struct acpi_table_header header; /* Common ACPI table header */
  919. u64 locality_count;
  920. u8 entry[1]; /* Real size = localities^2 */
  921. };
  922. /*******************************************************************************
  923. *
  924. * SRAT - System Resource Affinity Table
  925. * Version 3
  926. *
  927. ******************************************************************************/
  928. struct acpi_table_srat {
  929. struct acpi_table_header header; /* Common ACPI table header */
  930. u32 table_revision; /* Must be value '1' */
  931. u64 reserved; /* Reserved, must be zero */
  932. };
  933. /* Values for subtable type in struct acpi_subtable_header */
  934. enum acpi_srat_type {
  935. ACPI_SRAT_TYPE_CPU_AFFINITY = 0,
  936. ACPI_SRAT_TYPE_MEMORY_AFFINITY = 1,
  937. ACPI_SRAT_TYPE_X2APIC_CPU_AFFINITY = 2,
  938. ACPI_SRAT_TYPE_GICC_AFFINITY = 3,
  939. ACPI_SRAT_TYPE_RESERVED = 4 /* 4 and greater are reserved */
  940. };
  941. /*
  942. * SRAT Subtables, correspond to Type in struct acpi_subtable_header
  943. */
  944. /* 0: Processor Local APIC/SAPIC Affinity */
  945. struct acpi_srat_cpu_affinity {
  946. struct acpi_subtable_header header;
  947. u8 proximity_domain_lo;
  948. u8 apic_id;
  949. u32 flags;
  950. u8 local_sapic_eid;
  951. u8 proximity_domain_hi[3];
  952. u32 clock_domain;
  953. };
  954. /* Flags */
  955. #define ACPI_SRAT_CPU_USE_AFFINITY (1) /* 00: Use affinity structure */
  956. /* 1: Memory Affinity */
  957. struct acpi_srat_mem_affinity {
  958. struct acpi_subtable_header header;
  959. u32 proximity_domain;
  960. u16 reserved; /* Reserved, must be zero */
  961. u64 base_address;
  962. u64 length;
  963. u32 reserved1;
  964. u32 flags;
  965. u64 reserved2; /* Reserved, must be zero */
  966. };
  967. /* Flags */
  968. #define ACPI_SRAT_MEM_ENABLED (1) /* 00: Use affinity structure */
  969. #define ACPI_SRAT_MEM_HOT_PLUGGABLE (1<<1) /* 01: Memory region is hot pluggable */
  970. #define ACPI_SRAT_MEM_NON_VOLATILE (1<<2) /* 02: Memory region is non-volatile */
  971. /* 2: Processor Local X2_APIC Affinity (ACPI 4.0) */
  972. struct acpi_srat_x2apic_cpu_affinity {
  973. struct acpi_subtable_header header;
  974. u16 reserved; /* Reserved, must be zero */
  975. u32 proximity_domain;
  976. u32 apic_id;
  977. u32 flags;
  978. u32 clock_domain;
  979. u32 reserved2;
  980. };
  981. /* Flags for struct acpi_srat_cpu_affinity and struct acpi_srat_x2apic_cpu_affinity */
  982. #define ACPI_SRAT_CPU_ENABLED (1) /* 00: Use affinity structure */
  983. /* 3: GICC Affinity (ACPI 5.1) */
  984. struct acpi_srat_gicc_affinity {
  985. struct acpi_subtable_header header;
  986. u32 proximity_domain;
  987. u32 acpi_processor_uid;
  988. u32 flags;
  989. u32 clock_domain;
  990. };
  991. /* Flags for struct acpi_srat_gicc_affinity */
  992. #define ACPI_SRAT_GICC_ENABLED (1) /* 00: Use affinity structure */
  993. /* Reset to default packing */
  994. #pragma pack()
  995. #endif /* __ACTBL1_H__ */