actbl3.h 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715
  1. /******************************************************************************
  2. *
  3. * Name: actbl3.h - ACPI Table Definitions
  4. *
  5. *****************************************************************************/
  6. /*
  7. * Copyright (C) 2000 - 2014, 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: common_flags above */
  264. #define ACPI_GTDT_GT_IS_SECURE_TIMER (1)
  265. #define ACPI_GTDT_GT_ALWAYS_ON (1<<1)
  266. /* 1: SBSA Generic Watchdog Structure */
  267. struct acpi_gtdt_watchdog {
  268. struct acpi_gtdt_header header;
  269. u8 reserved;
  270. u64 refresh_frame_address;
  271. u64 control_frame_address;
  272. u32 timer_interrupt;
  273. u32 timer_flags;
  274. };
  275. /* Flag Definitions: timer_flags above */
  276. #define ACPI_GTDT_WATCHDOG_IRQ_MODE (1)
  277. #define ACPI_GTDT_WATCHDOG_IRQ_POLARITY (1<<1)
  278. #define ACPI_GTDT_WATCHDOG_SECURE (1<<2)
  279. /*******************************************************************************
  280. *
  281. * MPST - Memory Power State Table (ACPI 5.0)
  282. * Version 1
  283. *
  284. ******************************************************************************/
  285. #define ACPI_MPST_CHANNEL_INFO \
  286. u8 channel_id; \
  287. u8 reserved1[3]; \
  288. u16 power_node_count; \
  289. u16 reserved2;
  290. /* Main table */
  291. struct acpi_table_mpst {
  292. struct acpi_table_header header; /* Common ACPI table header */
  293. ACPI_MPST_CHANNEL_INFO /* Platform Communication Channel */
  294. };
  295. /* Memory Platform Communication Channel Info */
  296. struct acpi_mpst_channel {
  297. ACPI_MPST_CHANNEL_INFO /* Platform Communication Channel */
  298. };
  299. /* Memory Power Node Structure */
  300. struct acpi_mpst_power_node {
  301. u8 flags;
  302. u8 reserved1;
  303. u16 node_id;
  304. u32 length;
  305. u64 range_address;
  306. u64 range_length;
  307. u32 num_power_states;
  308. u32 num_physical_components;
  309. };
  310. /* Values for Flags field above */
  311. #define ACPI_MPST_ENABLED 1
  312. #define ACPI_MPST_POWER_MANAGED 2
  313. #define ACPI_MPST_HOT_PLUG_CAPABLE 4
  314. /* Memory Power State Structure (follows POWER_NODE above) */
  315. struct acpi_mpst_power_state {
  316. u8 power_state;
  317. u8 info_index;
  318. };
  319. /* Physical Component ID Structure (follows POWER_STATE above) */
  320. struct acpi_mpst_component {
  321. u16 component_id;
  322. };
  323. /* Memory Power State Characteristics Structure (follows all POWER_NODEs) */
  324. struct acpi_mpst_data_hdr {
  325. u16 characteristics_count;
  326. u16 reserved;
  327. };
  328. struct acpi_mpst_power_data {
  329. u8 structure_id;
  330. u8 flags;
  331. u16 reserved1;
  332. u32 average_power;
  333. u32 power_saving;
  334. u64 exit_latency;
  335. u64 reserved2;
  336. };
  337. /* Values for Flags field above */
  338. #define ACPI_MPST_PRESERVE 1
  339. #define ACPI_MPST_AUTOENTRY 2
  340. #define ACPI_MPST_AUTOEXIT 4
  341. /* Shared Memory Region (not part of an ACPI table) */
  342. struct acpi_mpst_shared {
  343. u32 signature;
  344. u16 pcc_command;
  345. u16 pcc_status;
  346. u32 command_register;
  347. u32 status_register;
  348. u32 power_state_id;
  349. u32 power_node_id;
  350. u64 energy_consumed;
  351. u64 average_power;
  352. };
  353. /*******************************************************************************
  354. *
  355. * PCCT - Platform Communications Channel Table (ACPI 5.0)
  356. * Version 1
  357. *
  358. ******************************************************************************/
  359. struct acpi_table_pcct {
  360. struct acpi_table_header header; /* Common ACPI table header */
  361. u32 flags;
  362. u64 reserved;
  363. };
  364. /* Values for Flags field above */
  365. #define ACPI_PCCT_DOORBELL 1
  366. /* Values for subtable type in struct acpi_subtable_header */
  367. enum acpi_pcct_type {
  368. ACPI_PCCT_TYPE_GENERIC_SUBSPACE = 0,
  369. ACPI_PCCT_TYPE_HW_REDUCED_SUBSPACE = 1,
  370. ACPI_PCCT_TYPE_RESERVED = 2 /* 2 and greater are reserved */
  371. };
  372. /*
  373. * PCCT Subtables, correspond to Type in struct acpi_subtable_header
  374. */
  375. /* 0: Generic Communications Subspace */
  376. struct acpi_pcct_subspace {
  377. struct acpi_subtable_header header;
  378. u8 reserved[6];
  379. u64 base_address;
  380. u64 length;
  381. struct acpi_generic_address doorbell_register;
  382. u64 preserve_mask;
  383. u64 write_mask;
  384. u32 latency;
  385. u32 max_access_rate;
  386. u16 min_turnaround_time;
  387. };
  388. /* 1: HW-reduced Communications Subspace (ACPI 5.1) */
  389. struct acpi_pcct_hw_reduced {
  390. struct acpi_subtable_header header;
  391. u32 doorbell_interrupt;
  392. u8 flags;
  393. u8 reserved;
  394. u64 base_address;
  395. u64 length;
  396. struct acpi_generic_address doorbell_register;
  397. u64 preserve_mask;
  398. u64 write_mask;
  399. u32 latency;
  400. u32 max_access_rate;
  401. u16 min_turnaround_time;
  402. };
  403. /* Values for doorbell flags above */
  404. #define ACPI_PCCT_INTERRUPT_POLARITY (1)
  405. #define ACPI_PCCT_INTERRUPT_MODE (1<<1)
  406. /*
  407. * PCC memory structures (not part of the ACPI table)
  408. */
  409. /* Shared Memory Region */
  410. struct acpi_pcct_shared_memory {
  411. u32 signature;
  412. u16 command;
  413. u16 status;
  414. };
  415. /*******************************************************************************
  416. *
  417. * PMTT - Platform Memory Topology Table (ACPI 5.0)
  418. * Version 1
  419. *
  420. ******************************************************************************/
  421. struct acpi_table_pmtt {
  422. struct acpi_table_header header; /* Common ACPI table header */
  423. u32 reserved;
  424. };
  425. /* Common header for PMTT subtables that follow main table */
  426. struct acpi_pmtt_header {
  427. u8 type;
  428. u8 reserved1;
  429. u16 length;
  430. u16 flags;
  431. u16 reserved2;
  432. };
  433. /* Values for Type field above */
  434. #define ACPI_PMTT_TYPE_SOCKET 0
  435. #define ACPI_PMTT_TYPE_CONTROLLER 1
  436. #define ACPI_PMTT_TYPE_DIMM 2
  437. #define ACPI_PMTT_TYPE_RESERVED 3 /* 0x03-0xFF are reserved */
  438. /* Values for Flags field above */
  439. #define ACPI_PMTT_TOP_LEVEL 0x0001
  440. #define ACPI_PMTT_PHYSICAL 0x0002
  441. #define ACPI_PMTT_MEMORY_TYPE 0x000C
  442. /*
  443. * PMTT subtables, correspond to Type in struct acpi_pmtt_header
  444. */
  445. /* 0: Socket Structure */
  446. struct acpi_pmtt_socket {
  447. struct acpi_pmtt_header header;
  448. u16 socket_id;
  449. u16 reserved;
  450. };
  451. /* 1: Memory Controller subtable */
  452. struct acpi_pmtt_controller {
  453. struct acpi_pmtt_header header;
  454. u32 read_latency;
  455. u32 write_latency;
  456. u32 read_bandwidth;
  457. u32 write_bandwidth;
  458. u16 access_width;
  459. u16 alignment;
  460. u16 reserved;
  461. u16 domain_count;
  462. };
  463. /* 1a: Proximity Domain substructure */
  464. struct acpi_pmtt_domain {
  465. u32 proximity_domain;
  466. };
  467. /* 2: Physical Component Identifier (DIMM) */
  468. struct acpi_pmtt_physical_component {
  469. struct acpi_pmtt_header header;
  470. u16 component_id;
  471. u16 reserved;
  472. u32 memory_size;
  473. u32 bios_handle;
  474. };
  475. /*******************************************************************************
  476. *
  477. * RASF - RAS Feature Table (ACPI 5.0)
  478. * Version 1
  479. *
  480. ******************************************************************************/
  481. struct acpi_table_rasf {
  482. struct acpi_table_header header; /* Common ACPI table header */
  483. u8 channel_id[12];
  484. };
  485. /* RASF Platform Communication Channel Shared Memory Region */
  486. struct acpi_rasf_shared_memory {
  487. u32 signature;
  488. u16 command;
  489. u16 status;
  490. u16 version;
  491. u8 capabilities[16];
  492. u8 set_capabilities[16];
  493. u16 num_parameter_blocks;
  494. u32 set_capabilities_status;
  495. };
  496. /* RASF Parameter Block Structure Header */
  497. struct acpi_rasf_parameter_block {
  498. u16 type;
  499. u16 version;
  500. u16 length;
  501. };
  502. /* RASF Parameter Block Structure for PATROL_SCRUB */
  503. struct acpi_rasf_patrol_scrub_parameter {
  504. struct acpi_rasf_parameter_block header;
  505. u16 patrol_scrub_command;
  506. u64 requested_address_range[2];
  507. u64 actual_address_range[2];
  508. u16 flags;
  509. u8 requested_speed;
  510. };
  511. /* Masks for Flags and Speed fields above */
  512. #define ACPI_RASF_SCRUBBER_RUNNING 1
  513. #define ACPI_RASF_SPEED (7<<1)
  514. #define ACPI_RASF_SPEED_SLOW (0<<1)
  515. #define ACPI_RASF_SPEED_MEDIUM (4<<1)
  516. #define ACPI_RASF_SPEED_FAST (7<<1)
  517. /* Channel Commands */
  518. enum acpi_rasf_commands {
  519. ACPI_RASF_EXECUTE_RASF_COMMAND = 1
  520. };
  521. /* Platform RAS Capabilities */
  522. enum acpi_rasf_capabiliities {
  523. ACPI_HW_PATROL_SCRUB_SUPPORTED = 0,
  524. ACPI_SW_PATROL_SCRUB_EXPOSED = 1
  525. };
  526. /* Patrol Scrub Commands */
  527. enum acpi_rasf_patrol_scrub_commands {
  528. ACPI_RASF_GET_PATROL_PARAMETERS = 1,
  529. ACPI_RASF_START_PATROL_SCRUBBER = 2,
  530. ACPI_RASF_STOP_PATROL_SCRUBBER = 3
  531. };
  532. /* Channel Command flags */
  533. #define ACPI_RASF_GENERATE_SCI (1<<15)
  534. /* Status values */
  535. enum acpi_rasf_status {
  536. ACPI_RASF_SUCCESS = 0,
  537. ACPI_RASF_NOT_VALID = 1,
  538. ACPI_RASF_NOT_SUPPORTED = 2,
  539. ACPI_RASF_BUSY = 3,
  540. ACPI_RASF_FAILED = 4,
  541. ACPI_RASF_ABORTED = 5,
  542. ACPI_RASF_INVALID_DATA = 6
  543. };
  544. /* Status flags */
  545. #define ACPI_RASF_COMMAND_COMPLETE (1)
  546. #define ACPI_RASF_SCI_DOORBELL (1<<1)
  547. #define ACPI_RASF_ERROR (1<<2)
  548. #define ACPI_RASF_STATUS (0x1F<<3)
  549. /*******************************************************************************
  550. *
  551. * TPM2 - Trusted Platform Module (TPM) 2.0 Hardware Interface Table
  552. * Version 3
  553. *
  554. * Conforms to "TPM 2.0 Hardware Interface Table (TPM2)" 29 November 2011
  555. *
  556. ******************************************************************************/
  557. struct acpi_table_tpm2 {
  558. struct acpi_table_header header; /* Common ACPI table header */
  559. u32 flags;
  560. u64 control_address;
  561. u32 start_method;
  562. };
  563. /* Control area structure (not part of table, pointed to by control_address) */
  564. struct acpi_tpm2_control {
  565. u32 reserved;
  566. u32 error;
  567. u32 cancel;
  568. u32 start;
  569. u64 interrupt_control;
  570. u32 command_size;
  571. u64 command_address;
  572. u32 response_size;
  573. u64 response_address;
  574. };
  575. /* Reset to default packing */
  576. #pragma pack()
  577. #endif /* __ACTBL3_H__ */