actbl3.h 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720
  1. /******************************************************************************
  2. *
  3. * Name: actbl3.h - 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 __ACTBL3_H__
  43. #define __ACTBL3_H__
  44. /*******************************************************************************
  45. *
  46. * Additional ACPI Tables (3)
  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_BGRT "BGRT" /* Boot Graphics Resource Table */
  60. #define ACPI_SIG_DRTM "DRTM" /* Dynamic Root of Trust for Measurement table */
  61. #define ACPI_SIG_FPDT "FPDT" /* Firmware Performance Data Table */
  62. #define ACPI_SIG_GTDT "GTDT" /* Generic Timer Description Table */
  63. #define ACPI_SIG_MPST "MPST" /* Memory Power State Table */
  64. #define ACPI_SIG_PCCT "PCCT" /* Platform Communications Channel Table */
  65. #define ACPI_SIG_PMTT "PMTT" /* Platform Memory Topology Table */
  66. #define ACPI_SIG_RASF "RASF" /* RAS Feature table */
  67. #define ACPI_SIG_TPM2 "TPM2" /* Trusted Platform Module 2.0 H/W interface table */
  68. #define ACPI_SIG_S3PT "S3PT" /* S3 Performance (sub)Table */
  69. #define ACPI_SIG_PCCS "PCC" /* PCC Shared Memory Region */
  70. /* Reserved table signatures */
  71. #define ACPI_SIG_MATR "MATR" /* Memory Address Translation Table */
  72. #define ACPI_SIG_MSDM "MSDM" /* Microsoft Data Management Table */
  73. #define ACPI_SIG_WPBT "WPBT" /* Windows Platform Binary Table */
  74. /*
  75. * All tables must be byte-packed to match the ACPI specification, since
  76. * the tables are provided by the system BIOS.
  77. */
  78. #pragma pack(1)
  79. /*
  80. * Note: C bitfields are not used for this reason:
  81. *
  82. * "Bitfields are great and easy to read, but unfortunately the C language
  83. * does not specify the layout of bitfields in memory, which means they are
  84. * essentially useless for dealing with packed data in on-disk formats or
  85. * binary wire protocols." (Or ACPI tables and buffers.) "If you ask me,
  86. * this decision was a design error in C. Ritchie could have picked an order
  87. * and stuck with it." Norman Ramsey.
  88. * See http://stackoverflow.com/a/1053662/41661
  89. */
  90. /*******************************************************************************
  91. *
  92. * BGRT - Boot Graphics Resource Table (ACPI 5.0)
  93. * Version 1
  94. *
  95. ******************************************************************************/
  96. struct acpi_table_bgrt {
  97. struct acpi_table_header header; /* Common ACPI table header */
  98. u16 version;
  99. u8 status;
  100. u8 image_type;
  101. u64 image_address;
  102. u32 image_offset_x;
  103. u32 image_offset_y;
  104. };
  105. /*******************************************************************************
  106. *
  107. * DRTM - Dynamic Root of Trust for Measurement table
  108. *
  109. ******************************************************************************/
  110. struct acpi_table_drtm {
  111. struct acpi_table_header header; /* Common ACPI table header */
  112. u64 entry_base_address;
  113. u64 entry_length;
  114. u32 entry_address32;
  115. u64 entry_address64;
  116. u64 exit_address;
  117. u64 log_area_address;
  118. u32 log_area_length;
  119. u64 arch_dependent_address;
  120. u32 flags;
  121. };
  122. /* 1) Validated Tables List */
  123. struct acpi_drtm_vtl_list {
  124. u32 validated_table_list_count;
  125. };
  126. /* 2) Resources List */
  127. struct acpi_drtm_resource_list {
  128. u32 resource_list_count;
  129. };
  130. /* 3) Platform-specific Identifiers List */
  131. struct acpi_drtm_id_list {
  132. u32 id_list_count;
  133. };
  134. /*******************************************************************************
  135. *
  136. * FPDT - Firmware Performance Data Table (ACPI 5.0)
  137. * Version 1
  138. *
  139. ******************************************************************************/
  140. struct acpi_table_fpdt {
  141. struct acpi_table_header header; /* Common ACPI table header */
  142. };
  143. /* FPDT subtable header */
  144. struct acpi_fpdt_header {
  145. u16 type;
  146. u8 length;
  147. u8 revision;
  148. };
  149. /* Values for Type field above */
  150. enum acpi_fpdt_type {
  151. ACPI_FPDT_TYPE_BOOT = 0,
  152. ACPI_FPDT_TYPE_S3PERF = 1
  153. };
  154. /*
  155. * FPDT subtables
  156. */
  157. /* 0: Firmware Basic Boot Performance Record */
  158. struct acpi_fpdt_boot {
  159. struct acpi_fpdt_header header;
  160. u8 reserved[4];
  161. u64 reset_end;
  162. u64 load_start;
  163. u64 startup_start;
  164. u64 exit_services_entry;
  165. u64 exit_services_exit;
  166. };
  167. /* 1: S3 Performance Table Pointer Record */
  168. struct acpi_fpdt_s3pt_ptr {
  169. struct acpi_fpdt_header header;
  170. u8 reserved[4];
  171. u64 address;
  172. };
  173. /*
  174. * S3PT - S3 Performance Table. This table is pointed to by the
  175. * FPDT S3 Pointer Record above.
  176. */
  177. struct acpi_table_s3pt {
  178. u8 signature[4]; /* "S3PT" */
  179. u32 length;
  180. };
  181. /*
  182. * S3PT Subtables
  183. */
  184. struct acpi_s3pt_header {
  185. u16 type;
  186. u8 length;
  187. u8 revision;
  188. };
  189. /* Values for Type field above */
  190. enum acpi_s3pt_type {
  191. ACPI_S3PT_TYPE_RESUME = 0,
  192. ACPI_S3PT_TYPE_SUSPEND = 1
  193. };
  194. struct acpi_s3pt_resume {
  195. struct acpi_s3pt_header header;
  196. u32 resume_count;
  197. u64 full_resume;
  198. u64 average_resume;
  199. };
  200. struct acpi_s3pt_suspend {
  201. struct acpi_s3pt_header header;
  202. u64 suspend_start;
  203. u64 suspend_end;
  204. };
  205. /*******************************************************************************
  206. *
  207. * GTDT - Generic Timer Description Table (ACPI 5.1)
  208. * Version 2
  209. *
  210. ******************************************************************************/
  211. struct acpi_table_gtdt {
  212. struct acpi_table_header header; /* Common ACPI table header */
  213. u64 counter_block_addresss;
  214. u32 reserved;
  215. u32 secure_el1_interrupt;
  216. u32 secure_el1_flags;
  217. u32 non_secure_el1_interrupt;
  218. u32 non_secure_el1_flags;
  219. u32 virtual_timer_interrupt;
  220. u32 virtual_timer_flags;
  221. u32 non_secure_el2_interrupt;
  222. u32 non_secure_el2_flags;
  223. u64 counter_read_block_address;
  224. u32 platform_timer_count;
  225. u32 platform_timer_offset;
  226. };
  227. /* Flag Definitions: Timer Block Physical Timers and Virtual timers */
  228. #define ACPI_GTDT_INTERRUPT_MODE (1)
  229. #define ACPI_GTDT_INTERRUPT_POLARITY (1<<1)
  230. #define ACPI_GTDT_ALWAYS_ON (1<<2)
  231. /* Common GTDT subtable header */
  232. struct acpi_gtdt_header {
  233. u8 type;
  234. u16 length;
  235. };
  236. /* Values for GTDT subtable type above */
  237. enum acpi_gtdt_type {
  238. ACPI_GTDT_TYPE_TIMER_BLOCK = 0,
  239. ACPI_GTDT_TYPE_WATCHDOG = 1,
  240. ACPI_GTDT_TYPE_RESERVED = 2 /* 2 and greater are reserved */
  241. };
  242. /* GTDT Subtables, correspond to Type in struct acpi_gtdt_header */
  243. /* 0: Generic Timer Block */
  244. struct acpi_gtdt_timer_block {
  245. struct acpi_gtdt_header header;
  246. u8 reserved;
  247. u64 block_address;
  248. u32 timer_count;
  249. u32 timer_offset;
  250. };
  251. /* Timer Sub-Structure, one per timer */
  252. struct acpi_gtdt_timer_entry {
  253. u8 frame_number;
  254. u8 reserved[3];
  255. u64 base_address;
  256. u64 el0_base_address;
  257. u32 timer_interrupt;
  258. u32 timer_flags;
  259. u32 virtual_timer_interrupt;
  260. u32 virtual_timer_flags;
  261. u32 common_flags;
  262. };
  263. /* Flag Definitions: timer_flags and virtual_timer_flags above */
  264. #define ACPI_GTDT_GT_IRQ_MODE (1)
  265. #define ACPI_GTDT_GT_IRQ_POLARITY (1<<1)
  266. /* Flag Definitions: common_flags above */
  267. #define ACPI_GTDT_GT_IS_SECURE_TIMER (1)
  268. #define ACPI_GTDT_GT_ALWAYS_ON (1<<1)
  269. /* 1: SBSA Generic Watchdog Structure */
  270. struct acpi_gtdt_watchdog {
  271. struct acpi_gtdt_header header;
  272. u8 reserved;
  273. u64 refresh_frame_address;
  274. u64 control_frame_address;
  275. u32 timer_interrupt;
  276. u32 timer_flags;
  277. };
  278. /* Flag Definitions: timer_flags above */
  279. #define ACPI_GTDT_WATCHDOG_IRQ_MODE (1)
  280. #define ACPI_GTDT_WATCHDOG_IRQ_POLARITY (1<<1)
  281. #define ACPI_GTDT_WATCHDOG_SECURE (1<<2)
  282. /*******************************************************************************
  283. *
  284. * MPST - Memory Power State Table (ACPI 5.0)
  285. * Version 1
  286. *
  287. ******************************************************************************/
  288. #define ACPI_MPST_CHANNEL_INFO \
  289. u8 channel_id; \
  290. u8 reserved1[3]; \
  291. u16 power_node_count; \
  292. u16 reserved2;
  293. /* Main table */
  294. struct acpi_table_mpst {
  295. struct acpi_table_header header; /* Common ACPI table header */
  296. ACPI_MPST_CHANNEL_INFO /* Platform Communication Channel */
  297. };
  298. /* Memory Platform Communication Channel Info */
  299. struct acpi_mpst_channel {
  300. ACPI_MPST_CHANNEL_INFO /* Platform Communication Channel */
  301. };
  302. /* Memory Power Node Structure */
  303. struct acpi_mpst_power_node {
  304. u8 flags;
  305. u8 reserved1;
  306. u16 node_id;
  307. u32 length;
  308. u64 range_address;
  309. u64 range_length;
  310. u32 num_power_states;
  311. u32 num_physical_components;
  312. };
  313. /* Values for Flags field above */
  314. #define ACPI_MPST_ENABLED 1
  315. #define ACPI_MPST_POWER_MANAGED 2
  316. #define ACPI_MPST_HOT_PLUG_CAPABLE 4
  317. /* Memory Power State Structure (follows POWER_NODE above) */
  318. struct acpi_mpst_power_state {
  319. u8 power_state;
  320. u8 info_index;
  321. };
  322. /* Physical Component ID Structure (follows POWER_STATE above) */
  323. struct acpi_mpst_component {
  324. u16 component_id;
  325. };
  326. /* Memory Power State Characteristics Structure (follows all POWER_NODEs) */
  327. struct acpi_mpst_data_hdr {
  328. u16 characteristics_count;
  329. u16 reserved;
  330. };
  331. struct acpi_mpst_power_data {
  332. u8 structure_id;
  333. u8 flags;
  334. u16 reserved1;
  335. u32 average_power;
  336. u32 power_saving;
  337. u64 exit_latency;
  338. u64 reserved2;
  339. };
  340. /* Values for Flags field above */
  341. #define ACPI_MPST_PRESERVE 1
  342. #define ACPI_MPST_AUTOENTRY 2
  343. #define ACPI_MPST_AUTOEXIT 4
  344. /* Shared Memory Region (not part of an ACPI table) */
  345. struct acpi_mpst_shared {
  346. u32 signature;
  347. u16 pcc_command;
  348. u16 pcc_status;
  349. u32 command_register;
  350. u32 status_register;
  351. u32 power_state_id;
  352. u32 power_node_id;
  353. u64 energy_consumed;
  354. u64 average_power;
  355. };
  356. /*******************************************************************************
  357. *
  358. * PCCT - Platform Communications Channel Table (ACPI 5.0)
  359. * Version 1
  360. *
  361. ******************************************************************************/
  362. struct acpi_table_pcct {
  363. struct acpi_table_header header; /* Common ACPI table header */
  364. u32 flags;
  365. u64 reserved;
  366. };
  367. /* Values for Flags field above */
  368. #define ACPI_PCCT_DOORBELL 1
  369. /* Values for subtable type in struct acpi_subtable_header */
  370. enum acpi_pcct_type {
  371. ACPI_PCCT_TYPE_GENERIC_SUBSPACE = 0,
  372. ACPI_PCCT_TYPE_HW_REDUCED_SUBSPACE = 1,
  373. ACPI_PCCT_TYPE_RESERVED = 2 /* 2 and greater are reserved */
  374. };
  375. /*
  376. * PCCT Subtables, correspond to Type in struct acpi_subtable_header
  377. */
  378. /* 0: Generic Communications Subspace */
  379. struct acpi_pcct_subspace {
  380. struct acpi_subtable_header header;
  381. u8 reserved[6];
  382. u64 base_address;
  383. u64 length;
  384. struct acpi_generic_address doorbell_register;
  385. u64 preserve_mask;
  386. u64 write_mask;
  387. u32 latency;
  388. u32 max_access_rate;
  389. u16 min_turnaround_time;
  390. };
  391. /* 1: HW-reduced Communications Subspace (ACPI 5.1) */
  392. struct acpi_pcct_hw_reduced {
  393. struct acpi_subtable_header header;
  394. u32 doorbell_interrupt;
  395. u8 flags;
  396. u8 reserved;
  397. u64 base_address;
  398. u64 length;
  399. struct acpi_generic_address doorbell_register;
  400. u64 preserve_mask;
  401. u64 write_mask;
  402. u32 latency;
  403. u32 max_access_rate;
  404. u16 min_turnaround_time;
  405. };
  406. /* Values for doorbell flags above */
  407. #define ACPI_PCCT_INTERRUPT_POLARITY (1)
  408. #define ACPI_PCCT_INTERRUPT_MODE (1<<1)
  409. /*
  410. * PCC memory structures (not part of the ACPI table)
  411. */
  412. /* Shared Memory Region */
  413. struct acpi_pcct_shared_memory {
  414. u32 signature;
  415. u16 command;
  416. u16 status;
  417. };
  418. /*******************************************************************************
  419. *
  420. * PMTT - Platform Memory Topology Table (ACPI 5.0)
  421. * Version 1
  422. *
  423. ******************************************************************************/
  424. struct acpi_table_pmtt {
  425. struct acpi_table_header header; /* Common ACPI table header */
  426. u32 reserved;
  427. };
  428. /* Common header for PMTT subtables that follow main table */
  429. struct acpi_pmtt_header {
  430. u8 type;
  431. u8 reserved1;
  432. u16 length;
  433. u16 flags;
  434. u16 reserved2;
  435. };
  436. /* Values for Type field above */
  437. #define ACPI_PMTT_TYPE_SOCKET 0
  438. #define ACPI_PMTT_TYPE_CONTROLLER 1
  439. #define ACPI_PMTT_TYPE_DIMM 2
  440. #define ACPI_PMTT_TYPE_RESERVED 3 /* 0x03-0xFF are reserved */
  441. /* Values for Flags field above */
  442. #define ACPI_PMTT_TOP_LEVEL 0x0001
  443. #define ACPI_PMTT_PHYSICAL 0x0002
  444. #define ACPI_PMTT_MEMORY_TYPE 0x000C
  445. /*
  446. * PMTT subtables, correspond to Type in struct acpi_pmtt_header
  447. */
  448. /* 0: Socket Structure */
  449. struct acpi_pmtt_socket {
  450. struct acpi_pmtt_header header;
  451. u16 socket_id;
  452. u16 reserved;
  453. };
  454. /* 1: Memory Controller subtable */
  455. struct acpi_pmtt_controller {
  456. struct acpi_pmtt_header header;
  457. u32 read_latency;
  458. u32 write_latency;
  459. u32 read_bandwidth;
  460. u32 write_bandwidth;
  461. u16 access_width;
  462. u16 alignment;
  463. u16 reserved;
  464. u16 domain_count;
  465. };
  466. /* 1a: Proximity Domain substructure */
  467. struct acpi_pmtt_domain {
  468. u32 proximity_domain;
  469. };
  470. /* 2: Physical Component Identifier (DIMM) */
  471. struct acpi_pmtt_physical_component {
  472. struct acpi_pmtt_header header;
  473. u16 component_id;
  474. u16 reserved;
  475. u32 memory_size;
  476. u32 bios_handle;
  477. };
  478. /*******************************************************************************
  479. *
  480. * RASF - RAS Feature Table (ACPI 5.0)
  481. * Version 1
  482. *
  483. ******************************************************************************/
  484. struct acpi_table_rasf {
  485. struct acpi_table_header header; /* Common ACPI table header */
  486. u8 channel_id[12];
  487. };
  488. /* RASF Platform Communication Channel Shared Memory Region */
  489. struct acpi_rasf_shared_memory {
  490. u32 signature;
  491. u16 command;
  492. u16 status;
  493. u16 version;
  494. u8 capabilities[16];
  495. u8 set_capabilities[16];
  496. u16 num_parameter_blocks;
  497. u32 set_capabilities_status;
  498. };
  499. /* RASF Parameter Block Structure Header */
  500. struct acpi_rasf_parameter_block {
  501. u16 type;
  502. u16 version;
  503. u16 length;
  504. };
  505. /* RASF Parameter Block Structure for PATROL_SCRUB */
  506. struct acpi_rasf_patrol_scrub_parameter {
  507. struct acpi_rasf_parameter_block header;
  508. u16 patrol_scrub_command;
  509. u64 requested_address_range[2];
  510. u64 actual_address_range[2];
  511. u16 flags;
  512. u8 requested_speed;
  513. };
  514. /* Masks for Flags and Speed fields above */
  515. #define ACPI_RASF_SCRUBBER_RUNNING 1
  516. #define ACPI_RASF_SPEED (7<<1)
  517. #define ACPI_RASF_SPEED_SLOW (0<<1)
  518. #define ACPI_RASF_SPEED_MEDIUM (4<<1)
  519. #define ACPI_RASF_SPEED_FAST (7<<1)
  520. /* Channel Commands */
  521. enum acpi_rasf_commands {
  522. ACPI_RASF_EXECUTE_RASF_COMMAND = 1
  523. };
  524. /* Platform RAS Capabilities */
  525. enum acpi_rasf_capabiliities {
  526. ACPI_HW_PATROL_SCRUB_SUPPORTED = 0,
  527. ACPI_SW_PATROL_SCRUB_EXPOSED = 1
  528. };
  529. /* Patrol Scrub Commands */
  530. enum acpi_rasf_patrol_scrub_commands {
  531. ACPI_RASF_GET_PATROL_PARAMETERS = 1,
  532. ACPI_RASF_START_PATROL_SCRUBBER = 2,
  533. ACPI_RASF_STOP_PATROL_SCRUBBER = 3
  534. };
  535. /* Channel Command flags */
  536. #define ACPI_RASF_GENERATE_SCI (1<<15)
  537. /* Status values */
  538. enum acpi_rasf_status {
  539. ACPI_RASF_SUCCESS = 0,
  540. ACPI_RASF_NOT_VALID = 1,
  541. ACPI_RASF_NOT_SUPPORTED = 2,
  542. ACPI_RASF_BUSY = 3,
  543. ACPI_RASF_FAILED = 4,
  544. ACPI_RASF_ABORTED = 5,
  545. ACPI_RASF_INVALID_DATA = 6
  546. };
  547. /* Status flags */
  548. #define ACPI_RASF_COMMAND_COMPLETE (1)
  549. #define ACPI_RASF_SCI_DOORBELL (1<<1)
  550. #define ACPI_RASF_ERROR (1<<2)
  551. #define ACPI_RASF_STATUS (0x1F<<3)
  552. /*******************************************************************************
  553. *
  554. * TPM2 - Trusted Platform Module (TPM) 2.0 Hardware Interface Table
  555. * Version 3
  556. *
  557. * Conforms to "TPM 2.0 Hardware Interface Table (TPM2)" 29 November 2011
  558. *
  559. ******************************************************************************/
  560. struct acpi_table_tpm2 {
  561. struct acpi_table_header header; /* Common ACPI table header */
  562. u32 flags;
  563. u64 control_address;
  564. u32 start_method;
  565. };
  566. /* Control area structure (not part of table, pointed to by control_address) */
  567. struct acpi_tpm2_control {
  568. u32 reserved;
  569. u32 error;
  570. u32 cancel;
  571. u32 start;
  572. u64 interrupt_control;
  573. u32 command_size;
  574. u64 command_address;
  575. u32 response_size;
  576. u64 response_address;
  577. };
  578. /* Reset to default packing */
  579. #pragma pack()
  580. #endif /* __ACTBL3_H__ */