actbl1.h 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705
  1. /******************************************************************************
  2. *
  3. * Name: actbl1.h - Additional ACPI table definitions
  4. *
  5. *****************************************************************************/
  6. /*
  7. * Copyright (C) 2000 - 2006, R. Byron Moore
  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
  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. ******************************************************************************/
  52. /*
  53. * Values for description table header signatures. Useful because they make
  54. * it more difficult to inadvertently type in the wrong signature.
  55. */
  56. #define ACPI_SIG_ASF "ASF!" /* Alert Standard Format table */
  57. #define ACPI_SIG_BOOT "BOOT" /* Simple Boot Flag Table */
  58. #define ACPI_SIG_CPEP "CPEP" /* Corrected Platform Error Polling table */
  59. #define ACPI_SIG_DBGP "DBGP" /* Debug Port table */
  60. #define ACPI_SIG_DMAR "DMAR" /* DMA Remapping table */
  61. #define ACPI_SIG_ECDT "ECDT" /* Embedded Controller Boot Resources Table */
  62. #define ACPI_SIG_HPET "HPET" /* High Precision Event Timer table */
  63. #define ACPI_SIG_MADT "APIC" /* Multiple APIC Description Table */
  64. #define ACPI_SIG_MCFG "MCFG" /* PCI Memory Mapped Configuration table */
  65. #define ACPI_SIG_SBST "SBST" /* Smart Battery Specification Table */
  66. #define ACPI_SIG_SLIT "SLIT" /* System Locality Distance Information Table */
  67. #define ACPI_SIG_SPCR "SPCR" /* Serial Port Console Redirection table */
  68. #define ACPI_SIG_SPMI "SPMI" /* Server Platform Management Interface table */
  69. #define ACPI_SIG_SRAT "SRAT" /* System Resource Affinity Table */
  70. #define ACPI_SIG_TCPA "TCPA" /* Trusted Computing Platform Alliance table */
  71. #define ACPI_SIG_WDRT "WDRT" /* Watchdog Resource Table */
  72. /*
  73. * All tables must be byte-packed to match the ACPI specification, since
  74. * the tables are provided by the system BIOS.
  75. */
  76. #pragma pack(1)
  77. /*
  78. * Note about bitfields: The u8 type is used for bitfields in ACPI tables.
  79. * This is the only type that is even remotely portable. Anything else is not
  80. * portable, so do not use any other bitfield types.
  81. */
  82. /* Common Sub-table header (used in MADT, SRAT, etc.) */
  83. struct acpi_subtable_header {
  84. u8 type;
  85. u8 length;
  86. };
  87. /*******************************************************************************
  88. *
  89. * ASF - Alert Standard Format table (Signature "ASF!")
  90. *
  91. * Conforms to the Alert Standard Format Specification V2.0, 23 April 2003
  92. *
  93. ******************************************************************************/
  94. struct acpi_table_asf {
  95. struct acpi_table_header header; /* Common ACPI table header */
  96. };
  97. /* ASF subtable header */
  98. struct acpi_asf_header {
  99. u8 type;
  100. u8 reserved;
  101. u16 length;
  102. };
  103. /* Values for Type field above */
  104. enum acpi_asf_type {
  105. ACPI_ASF_TYPE_INFO = 0,
  106. ACPI_ASF_TYPE_ALERT = 1,
  107. ACPI_ASF_TYPE_CONTROL = 2,
  108. ACPI_ASF_TYPE_BOOT = 3,
  109. ACPI_ASF_TYPE_ADDRESS = 4,
  110. ACPI_ASF_TYPE_RESERVED = 5
  111. };
  112. /*
  113. * ASF subtables
  114. */
  115. /* 0: ASF Information */
  116. struct acpi_asf_info {
  117. struct acpi_asf_header header;
  118. u8 min_reset_value;
  119. u8 min_poll_interval;
  120. u16 system_id;
  121. u32 mfg_id;
  122. u8 flags;
  123. u8 reserved2[3];
  124. };
  125. /* 1: ASF Alerts */
  126. struct acpi_asf_alert {
  127. struct acpi_asf_header header;
  128. u8 assert_mask;
  129. u8 deassert_mask;
  130. u8 alerts;
  131. u8 data_length;
  132. u8 array[1];
  133. };
  134. /* 2: ASF Remote Control */
  135. struct acpi_asf_remote {
  136. struct acpi_asf_header header;
  137. u8 controls;
  138. u8 data_length;
  139. u16 reserved2;
  140. u8 array[1];
  141. };
  142. /* 3: ASF RMCP Boot Options */
  143. struct acpi_asf_rmcp {
  144. struct acpi_asf_header header;
  145. u8 capabilities[7];
  146. u8 completion_code;
  147. u32 enterprise_id;
  148. u8 command;
  149. u16 parameter;
  150. u16 boot_options;
  151. u16 oem_parameters;
  152. };
  153. /* 4: ASF Address */
  154. struct acpi_asf_address {
  155. struct acpi_asf_header header;
  156. u8 eprom_address;
  157. u8 devices;
  158. u8 smbus_addresses[1];
  159. };
  160. /*******************************************************************************
  161. *
  162. * BOOT - Simple Boot Flag Table
  163. *
  164. ******************************************************************************/
  165. struct acpi_table_boot {
  166. struct acpi_table_header header; /* Common ACPI table header */
  167. u8 cmos_index; /* Index in CMOS RAM for the boot register */
  168. u8 reserved[3];
  169. };
  170. /*******************************************************************************
  171. *
  172. * CPEP - Corrected Platform Error Polling table
  173. *
  174. ******************************************************************************/
  175. struct acpi_table_cpep {
  176. struct acpi_table_header header; /* Common ACPI table header */
  177. u64 reserved;
  178. };
  179. /* Subtable */
  180. struct acpi_cpep_polling {
  181. u8 type;
  182. u8 length;
  183. u8 id; /* Processor ID */
  184. u8 eid; /* Processor EID */
  185. u32 interval; /* Polling interval (msec) */
  186. };
  187. /*******************************************************************************
  188. *
  189. * DBGP - Debug Port table
  190. *
  191. ******************************************************************************/
  192. struct acpi_table_dbgp {
  193. struct acpi_table_header header; /* Common ACPI table header */
  194. u8 type; /* 0=full 16550, 1=subset of 16550 */
  195. u8 reserved[3];
  196. struct acpi_generic_address debug_port;
  197. };
  198. /*******************************************************************************
  199. *
  200. * DMAR - DMA Remapping table
  201. *
  202. ******************************************************************************/
  203. struct acpi_table_dmar {
  204. struct acpi_table_header header; /* Common ACPI table header */
  205. u8 width; /* Host Address Width */
  206. u8 reserved[11];
  207. };
  208. /* DMAR subtable header */
  209. struct acpi_dmar_header {
  210. u16 type;
  211. u16 length;
  212. u8 flags;
  213. u8 reserved[3];
  214. };
  215. /* Values for subtable type in struct acpi_dmar_header */
  216. enum acpi_dmar_type {
  217. ACPI_DMAR_TYPE_HARDWARE_UNIT = 0,
  218. ACPI_DMAR_TYPE_RESERVED_MEMORY = 1,
  219. ACPI_DMAR_TYPE_RESERVED = 2 /* 2 and greater are reserved */
  220. };
  221. struct acpi_dmar_device_scope {
  222. u8 entry_type;
  223. u8 length;
  224. u8 segment;
  225. u8 bus;
  226. };
  227. /* Values for entry_type in struct acpi_dmar_device_scope */
  228. enum acpi_dmar_scope_type {
  229. ACPI_DMAR_SCOPE_TYPE_NOT_USED = 0,
  230. ACPI_DMAR_SCOPE_TYPE_ENDPOINT = 1,
  231. ACPI_DMAR_SCOPE_TYPE_BRIDGE = 2,
  232. ACPI_DMAR_SCOPE_TYPE_RESERVED = 3 /* 3 and greater are reserved */
  233. };
  234. /*
  235. * DMAR Sub-tables, correspond to Type in struct acpi_dmar_header
  236. */
  237. /* 0: Hardware Unit Definition */
  238. struct acpi_dmar_hardware_unit {
  239. struct acpi_dmar_header header;
  240. u64 address; /* Register Base Address */
  241. };
  242. /* Flags */
  243. #define ACPI_DMAR_INCLUDE_ALL (1)
  244. /* 1: Reserved Memory Defininition */
  245. struct acpi_dmar_reserved_memory {
  246. struct acpi_dmar_header header;
  247. u64 address; /* 4_k aligned base address */
  248. u64 end_address; /* 4_k aligned limit address */
  249. };
  250. /* Flags */
  251. #define ACPI_DMAR_ALLOW_ALL (1)
  252. /*******************************************************************************
  253. *
  254. * ECDT - Embedded Controller Boot Resources Table
  255. *
  256. ******************************************************************************/
  257. struct acpi_table_ecdt {
  258. struct acpi_table_header header; /* Common ACPI table header */
  259. struct acpi_generic_address control; /* Address of EC command/status register */
  260. struct acpi_generic_address data; /* Address of EC data register */
  261. u32 uid; /* Unique ID - must be same as the EC _UID method */
  262. u8 gpe; /* The GPE for the EC */
  263. u8 id[1]; /* Full namepath of the EC in the ACPI namespace */
  264. };
  265. /*******************************************************************************
  266. *
  267. * HPET - High Precision Event Timer table
  268. *
  269. ******************************************************************************/
  270. struct acpi_table_hpet {
  271. struct acpi_table_header header; /* Common ACPI table header */
  272. u32 id; /* Hardware ID of event timer block */
  273. struct acpi_generic_address address; /* Address of event timer block */
  274. u8 sequence; /* HPET sequence number */
  275. u16 minimum_tick; /* Main counter min tick, periodic mode */
  276. u8 flags;
  277. };
  278. /*! Flags */
  279. #define ACPI_HPET_PAGE_PROTECT (1) /* 00: No page protection */
  280. #define ACPI_HPET_PAGE_PROTECT_4 (1<<1) /* 01: 4KB page protected */
  281. #define ACPI_HPET_PAGE_PROTECT_64 (1<<2) /* 02: 64KB page protected */
  282. /*! [End] no source code translation !*/
  283. /*******************************************************************************
  284. *
  285. * MADT - Multiple APIC Description Table
  286. *
  287. ******************************************************************************/
  288. struct acpi_table_madt {
  289. struct acpi_table_header header; /* Common ACPI table header */
  290. u32 address; /* Physical address of local APIC */
  291. u32 flags;
  292. };
  293. /* Flags */
  294. #define ACPI_MADT_PCAT_COMPAT (1) /* 00: System also has dual 8259s */
  295. /* Values for PCATCompat flag */
  296. #define ACPI_MADT_DUAL_PIC 0
  297. #define ACPI_MADT_MULTIPLE_APIC 1
  298. /* Values for subtable type in struct acpi_subtable_header */
  299. enum acpi_madt_type {
  300. ACPI_MADT_TYPE_LOCAL_APIC = 0,
  301. ACPI_MADT_TYPE_IO_APIC = 1,
  302. ACPI_MADT_TYPE_INTERRUPT_OVERRIDE = 2,
  303. ACPI_MADT_TYPE_NMI_SOURCE = 3,
  304. ACPI_MADT_TYPE_LOCAL_APIC_NMI = 4,
  305. ACPI_MADT_TYPE_LOCAL_APIC_OVERRIDE = 5,
  306. ACPI_MADT_TYPE_IO_SAPIC = 6,
  307. ACPI_MADT_TYPE_LOCAL_SAPIC = 7,
  308. ACPI_MADT_TYPE_INTERRUPT_SOURCE = 8,
  309. ACPI_MADT_TYPE_RESERVED = 9 /* 9 and greater are reserved */
  310. };
  311. /*
  312. * MADT Sub-tables, correspond to Type in struct acpi_subtable_header
  313. */
  314. /* 0: Processor Local APIC */
  315. struct acpi_madt_local_apic {
  316. struct acpi_subtable_header header;
  317. u8 processor_id; /* ACPI processor id */
  318. u8 id; /* Processor's local APIC id */
  319. u32 lapic_flags;
  320. };
  321. /* 1: IO APIC */
  322. struct acpi_madt_io_apic {
  323. struct acpi_subtable_header header;
  324. u8 id; /* I/O APIC ID */
  325. u8 reserved; /* Reserved - must be zero */
  326. u32 address; /* APIC physical address */
  327. u32 global_irq_base; /* Global system interrupt where INTI lines start */
  328. };
  329. /* 2: Interrupt Override */
  330. struct acpi_madt_interrupt_override {
  331. struct acpi_subtable_header header;
  332. u8 bus; /* 0 - ISA */
  333. u8 source_irq; /* Interrupt source (IRQ) */
  334. u32 global_irq; /* Global system interrupt */
  335. u16 inti_flags;
  336. };
  337. /* 3: NMI Source */
  338. struct acpi_madt_nmi_source {
  339. struct acpi_subtable_header header;
  340. u16 inti_flags;
  341. u32 global_irq; /* Global system interrupt */
  342. };
  343. /* 4: Local APIC NMI */
  344. struct acpi_madt_local_apic_nmi {
  345. struct acpi_subtable_header header;
  346. u8 processor_id; /* ACPI processor id */
  347. u16 inti_flags;
  348. u8 lint; /* LINTn to which NMI is connected */
  349. };
  350. /* 5: Address Override */
  351. struct acpi_madt_local_apic_override {
  352. struct acpi_subtable_header header;
  353. u16 reserved; /* Reserved, must be zero */
  354. u64 address; /* APIC physical address */
  355. };
  356. /* 6: I/O Sapic */
  357. struct acpi_madt_io_sapic {
  358. struct acpi_subtable_header header;
  359. u8 id; /* I/O SAPIC ID */
  360. u8 reserved; /* Reserved, must be zero */
  361. u32 global_irq_base; /* Global interrupt for SAPIC start */
  362. u64 address; /* SAPIC physical address */
  363. };
  364. /* 7: Local Sapic */
  365. struct acpi_madt_local_sapic {
  366. struct acpi_subtable_header header;
  367. u8 processor_id; /* ACPI processor id */
  368. u8 id; /* SAPIC ID */
  369. u8 eid; /* SAPIC EID */
  370. u8 reserved[3]; /* Reserved, must be zero */
  371. u32 lapic_flags;
  372. u32 uid; /* Numeric UID - ACPI 3.0 */
  373. char uid_string[1]; /* String UID - ACPI 3.0 */
  374. };
  375. /* 8: Platform Interrupt Source */
  376. struct acpi_madt_interrupt_source {
  377. struct acpi_subtable_header header;
  378. u16 inti_flags;
  379. u8 type; /* 1=PMI, 2=INIT, 3=corrected */
  380. u8 id; /* Processor ID */
  381. u8 eid; /* Processor EID */
  382. u8 io_sapic_vector; /* Vector value for PMI interrupts */
  383. u32 global_irq; /* Global system interrupt */
  384. u32 flags; /* Interrupt Source Flags */
  385. };
  386. /* Flags field above */
  387. #define ACPI_MADT_CPEI_OVERRIDE (1)
  388. /*
  389. * Common flags fields for MADT subtables
  390. */
  391. /* MADT Local APIC flags (lapic_flags) */
  392. #define ACPI_MADT_ENABLED (1) /* 00: Processor is usable if set */
  393. /* MADT MPS INTI flags (inti_flags) */
  394. #define ACPI_MADT_POLARITY_MASK (3) /* 00-01: Polarity of APIC I/O input signals */
  395. #define ACPI_MADT_TRIGGER_MASK (3<<2) /* 02-03: Trigger mode of APIC input signals */
  396. /* Values for MPS INTI flags */
  397. #define ACPI_MADT_POLARITY_CONFORMS 0
  398. #define ACPI_MADT_POLARITY_ACTIVE_HIGH 1
  399. #define ACPI_MADT_POLARITY_RESERVED 2
  400. #define ACPI_MADT_POLARITY_ACTIVE_LOW 3
  401. #define ACPI_MADT_TRIGGER_CONFORMS (0)
  402. #define ACPI_MADT_TRIGGER_EDGE (1<<2)
  403. #define ACPI_MADT_TRIGGER_RESERVED (2<<2)
  404. #define ACPI_MADT_TRIGGER_LEVEL (3<<2)
  405. /*******************************************************************************
  406. *
  407. * MCFG - PCI Memory Mapped Configuration table and sub-table
  408. *
  409. ******************************************************************************/
  410. struct acpi_table_mcfg {
  411. struct acpi_table_header header; /* Common ACPI table header */
  412. u8 reserved[8];
  413. };
  414. /* Subtable */
  415. struct acpi_mcfg_allocation {
  416. u64 address; /* Base address, processor-relative */
  417. u16 pci_segment; /* PCI segment group number */
  418. u8 start_bus_number; /* Starting PCI Bus number */
  419. u8 end_bus_number; /* Final PCI Bus number */
  420. u32 reserved;
  421. };
  422. /*******************************************************************************
  423. *
  424. * SBST - Smart Battery Specification Table
  425. *
  426. ******************************************************************************/
  427. struct acpi_table_sbst {
  428. struct acpi_table_header header; /* Common ACPI table header */
  429. u32 warning_level;
  430. u32 low_level;
  431. u32 critical_level;
  432. };
  433. /*******************************************************************************
  434. *
  435. * SLIT - System Locality Distance Information Table
  436. *
  437. ******************************************************************************/
  438. struct acpi_table_slit {
  439. struct acpi_table_header header; /* Common ACPI table header */
  440. u64 locality_count;
  441. u8 entry[1]; /* Real size = localities^2 */
  442. };
  443. /*******************************************************************************
  444. *
  445. * SPCR - Serial Port Console Redirection table
  446. *
  447. ******************************************************************************/
  448. struct acpi_table_spcr {
  449. struct acpi_table_header header; /* Common ACPI table header */
  450. u8 interface_type; /* 0=full 16550, 1=subset of 16550 */
  451. u8 reserved[3];
  452. struct acpi_generic_address serial_port;
  453. u8 interrupt_type;
  454. u8 pc_interrupt;
  455. u32 interrupt;
  456. u8 baud_rate;
  457. u8 parity;
  458. u8 stop_bits;
  459. u8 flow_control;
  460. u8 terminal_type;
  461. u8 reserved1;
  462. u16 pci_device_id;
  463. u16 pci_vendor_id;
  464. u8 pci_bus;
  465. u8 pci_device;
  466. u8 pci_function;
  467. u32 pci_flags;
  468. u8 pci_segment;
  469. u32 reserved2;
  470. };
  471. /*******************************************************************************
  472. *
  473. * SPMI - Server Platform Management Interface table
  474. *
  475. ******************************************************************************/
  476. struct acpi_table_spmi {
  477. struct acpi_table_header header; /* Common ACPI table header */
  478. u8 reserved;
  479. u8 interface_type;
  480. u16 spec_revision; /* Version of IPMI */
  481. u8 interrupt_type;
  482. u8 gpe_number; /* GPE assigned */
  483. u8 reserved1;
  484. u8 pci_device_flag;
  485. u32 interrupt;
  486. struct acpi_generic_address ipmi_register;
  487. u8 pci_segment;
  488. u8 pci_bus;
  489. u8 pci_device;
  490. u8 pci_function;
  491. };
  492. /*******************************************************************************
  493. *
  494. * SRAT - System Resource Affinity Table
  495. *
  496. ******************************************************************************/
  497. struct acpi_table_srat {
  498. struct acpi_table_header header; /* Common ACPI table header */
  499. u32 table_revision; /* Must be value '1' */
  500. u64 reserved; /* Reserved, must be zero */
  501. };
  502. /* Values for subtable type in struct acpi_subtable_header */
  503. enum acpi_srat_type {
  504. ACPI_SRAT_TYPE_CPU_AFFINITY = 0,
  505. ACPI_SRAT_TYPE_MEMORY_AFFINITY = 1,
  506. ACPI_SRAT_TYPE_RESERVED = 2
  507. };
  508. /* SRAT sub-tables */
  509. struct acpi_srat_cpu_affinity {
  510. struct acpi_subtable_header header;
  511. u8 proximity_domain_lo;
  512. u8 apic_id;
  513. u32 flags;
  514. u8 local_sapic_eid;
  515. u8 proximity_domain_hi[3];
  516. u32 reserved; /* Reserved, must be zero */
  517. };
  518. /* Flags */
  519. #define ACPI_SRAT_CPU_ENABLED (1) /* 00: Use affinity structure */
  520. struct acpi_srat_mem_affinity {
  521. struct acpi_subtable_header header;
  522. u32 proximity_domain;
  523. u16 reserved; /* Reserved, must be zero */
  524. u64 base_address;
  525. u64 length;
  526. u32 memory_type; /* See acpi_address_range_id */
  527. u32 flags;
  528. u64 reserved1; /* Reserved, must be zero */
  529. };
  530. /* Flags */
  531. #define ACPI_SRAT_MEM_ENABLED (1) /* 00: Use affinity structure */
  532. #define ACPI_SRAT_MEM_HOT_PLUGGABLE (1<<1) /* 01: Memory region is hot pluggable */
  533. #define ACPI_SRAT_MEM_NON_VOLATILE (1<<2) /* 02: Memory region is non-volatile */
  534. /* Memory types */
  535. enum acpi_address_range_id {
  536. ACPI_ADDRESS_RANGE_MEMORY = 1,
  537. ACPI_ADDRESS_RANGE_RESERVED = 2,
  538. ACPI_ADDRESS_RANGE_ACPI = 3,
  539. ACPI_ADDRESS_RANGE_NVS = 4,
  540. ACPI_ADDRESS_RANGE_COUNT = 5
  541. };
  542. /*******************************************************************************
  543. *
  544. * TCPA - Trusted Computing Platform Alliance table
  545. *
  546. ******************************************************************************/
  547. struct acpi_table_tcpa {
  548. struct acpi_table_header header; /* Common ACPI table header */
  549. u16 reserved;
  550. u32 max_log_length; /* Maximum length for the event log area */
  551. u64 log_address; /* Address of the event log area */
  552. };
  553. /*******************************************************************************
  554. *
  555. * WDRT - Watchdog Resource Table
  556. *
  557. ******************************************************************************/
  558. struct acpi_table_wdrt {
  559. struct acpi_table_header header; /* Common ACPI table header */
  560. u32 header_length; /* Watchdog Header Length */
  561. u8 pci_segment; /* PCI Segment number */
  562. u8 pci_bus; /* PCI Bus number */
  563. u8 pci_device; /* PCI Device number */
  564. u8 pci_function; /* PCI Function number */
  565. u32 timer_period; /* Period of one timer count (msec) */
  566. u32 max_count; /* Maximum counter value supported */
  567. u32 min_count; /* Minimum counter value */
  568. u8 flags;
  569. u8 reserved[3];
  570. u32 entries; /* Number of watchdog entries that follow */
  571. };
  572. /* Flags */
  573. #define ACPI_WDRT_TIMER_ENABLED (1) /* 00: Timer enabled */
  574. /* Reset to default packing */
  575. #pragma pack()
  576. #endif /* __ACTBL1_H__ */