actbl1.h 20 KB

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