actbl3.h 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677
  1. /* SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 */
  2. /******************************************************************************
  3. *
  4. * Name: actbl3.h - ACPI Table Definitions
  5. *
  6. * Copyright (C) 2000 - 2018, Intel Corp.
  7. *
  8. *****************************************************************************/
  9. #ifndef __ACTBL3_H__
  10. #define __ACTBL3_H__
  11. /*******************************************************************************
  12. *
  13. * Additional ACPI Tables
  14. *
  15. * These tables are not consumed directly by the ACPICA subsystem, but are
  16. * included here to support device drivers and the AML disassembler.
  17. *
  18. ******************************************************************************/
  19. /*
  20. * Values for description table header signatures for tables defined in this
  21. * file. Useful because they make it more difficult to inadvertently type in
  22. * the wrong signature.
  23. */
  24. #define ACPI_SIG_SLIC "SLIC" /* Software Licensing Description Table */
  25. #define ACPI_SIG_SLIT "SLIT" /* System Locality Distance Information Table */
  26. #define ACPI_SIG_SPCR "SPCR" /* Serial Port Console Redirection table */
  27. #define ACPI_SIG_SPMI "SPMI" /* Server Platform Management Interface table */
  28. #define ACPI_SIG_SRAT "SRAT" /* System Resource Affinity Table */
  29. #define ACPI_SIG_STAO "STAO" /* Status Override table */
  30. #define ACPI_SIG_TCPA "TCPA" /* Trusted Computing Platform Alliance table */
  31. #define ACPI_SIG_TPM2 "TPM2" /* Trusted Platform Module 2.0 H/W interface table */
  32. #define ACPI_SIG_UEFI "UEFI" /* Uefi Boot Optimization Table */
  33. #define ACPI_SIG_VRTC "VRTC" /* Virtual Real Time Clock Table */
  34. #define ACPI_SIG_WAET "WAET" /* Windows ACPI Emulated devices Table */
  35. #define ACPI_SIG_WDAT "WDAT" /* Watchdog Action Table */
  36. #define ACPI_SIG_WDDT "WDDT" /* Watchdog Timer Description Table */
  37. #define ACPI_SIG_WDRT "WDRT" /* Watchdog Resource Table */
  38. #define ACPI_SIG_WPBT "WPBT" /* Windows Platform Binary Table */
  39. #define ACPI_SIG_WSMT "WSMT" /* Windows SMM Security Migrations Table */
  40. #define ACPI_SIG_XENV "XENV" /* Xen Environment table */
  41. #define ACPI_SIG_XXXX "XXXX" /* Intermediate AML header for ASL/ASL+ converter */
  42. /*
  43. * All tables must be byte-packed to match the ACPI specification, since
  44. * the tables are provided by the system BIOS.
  45. */
  46. #pragma pack(1)
  47. /*
  48. * Note: C bitfields are not used for this reason:
  49. *
  50. * "Bitfields are great and easy to read, but unfortunately the C language
  51. * does not specify the layout of bitfields in memory, which means they are
  52. * essentially useless for dealing with packed data in on-disk formats or
  53. * binary wire protocols." (Or ACPI tables and buffers.) "If you ask me,
  54. * this decision was a design error in C. Ritchie could have picked an order
  55. * and stuck with it." Norman Ramsey.
  56. * See http://stackoverflow.com/a/1053662/41661
  57. */
  58. /*******************************************************************************
  59. *
  60. * SLIC - Software Licensing Description Table
  61. *
  62. * Conforms to "Microsoft Software Licensing Tables (SLIC and MSDM)",
  63. * November 29, 2011. Copyright 2011 Microsoft
  64. *
  65. ******************************************************************************/
  66. /* Basic SLIC table is only the common ACPI header */
  67. struct acpi_table_slic {
  68. struct acpi_table_header header; /* Common ACPI table header */
  69. };
  70. /*******************************************************************************
  71. *
  72. * SLIT - System Locality Distance Information Table
  73. * Version 1
  74. *
  75. ******************************************************************************/
  76. struct acpi_table_slit {
  77. struct acpi_table_header header; /* Common ACPI table header */
  78. u64 locality_count;
  79. u8 entry[1]; /* Real size = localities^2 */
  80. };
  81. /*******************************************************************************
  82. *
  83. * SPCR - Serial Port Console Redirection table
  84. * Version 2
  85. *
  86. * Conforms to "Serial Port Console Redirection Table",
  87. * Version 1.03, August 10, 2015
  88. *
  89. ******************************************************************************/
  90. struct acpi_table_spcr {
  91. struct acpi_table_header header; /* Common ACPI table header */
  92. u8 interface_type; /* 0=full 16550, 1=subset of 16550 */
  93. u8 reserved[3];
  94. struct acpi_generic_address serial_port;
  95. u8 interrupt_type;
  96. u8 pc_interrupt;
  97. u32 interrupt;
  98. u8 baud_rate;
  99. u8 parity;
  100. u8 stop_bits;
  101. u8 flow_control;
  102. u8 terminal_type;
  103. u8 reserved1;
  104. u16 pci_device_id;
  105. u16 pci_vendor_id;
  106. u8 pci_bus;
  107. u8 pci_device;
  108. u8 pci_function;
  109. u32 pci_flags;
  110. u8 pci_segment;
  111. u32 reserved2;
  112. };
  113. /* Masks for pci_flags field above */
  114. #define ACPI_SPCR_DO_NOT_DISABLE (1)
  115. /* Values for Interface Type: See the definition of the DBG2 table */
  116. /*******************************************************************************
  117. *
  118. * SPMI - Server Platform Management Interface table
  119. * Version 5
  120. *
  121. * Conforms to "Intelligent Platform Management Interface Specification
  122. * Second Generation v2.0", Document Revision 1.0, February 12, 2004 with
  123. * June 12, 2009 markup.
  124. *
  125. ******************************************************************************/
  126. struct acpi_table_spmi {
  127. struct acpi_table_header header; /* Common ACPI table header */
  128. u8 interface_type;
  129. u8 reserved; /* Must be 1 */
  130. u16 spec_revision; /* Version of IPMI */
  131. u8 interrupt_type;
  132. u8 gpe_number; /* GPE assigned */
  133. u8 reserved1;
  134. u8 pci_device_flag;
  135. u32 interrupt;
  136. struct acpi_generic_address ipmi_register;
  137. u8 pci_segment;
  138. u8 pci_bus;
  139. u8 pci_device;
  140. u8 pci_function;
  141. u8 reserved2;
  142. };
  143. /* Values for interface_type above */
  144. enum acpi_spmi_interface_types {
  145. ACPI_SPMI_NOT_USED = 0,
  146. ACPI_SPMI_KEYBOARD = 1,
  147. ACPI_SPMI_SMI = 2,
  148. ACPI_SPMI_BLOCK_TRANSFER = 3,
  149. ACPI_SPMI_SMBUS = 4,
  150. ACPI_SPMI_RESERVED = 5 /* 5 and above are reserved */
  151. };
  152. /*******************************************************************************
  153. *
  154. * SRAT - System Resource Affinity Table
  155. * Version 3
  156. *
  157. ******************************************************************************/
  158. struct acpi_table_srat {
  159. struct acpi_table_header header; /* Common ACPI table header */
  160. u32 table_revision; /* Must be value '1' */
  161. u64 reserved; /* Reserved, must be zero */
  162. };
  163. /* Values for subtable type in struct acpi_subtable_header */
  164. enum acpi_srat_type {
  165. ACPI_SRAT_TYPE_CPU_AFFINITY = 0,
  166. ACPI_SRAT_TYPE_MEMORY_AFFINITY = 1,
  167. ACPI_SRAT_TYPE_X2APIC_CPU_AFFINITY = 2,
  168. ACPI_SRAT_TYPE_GICC_AFFINITY = 3,
  169. ACPI_SRAT_TYPE_GIC_ITS_AFFINITY = 4, /* ACPI 6.2 */
  170. ACPI_SRAT_TYPE_RESERVED = 5 /* 5 and greater are reserved */
  171. };
  172. /*
  173. * SRAT Subtables, correspond to Type in struct acpi_subtable_header
  174. */
  175. /* 0: Processor Local APIC/SAPIC Affinity */
  176. struct acpi_srat_cpu_affinity {
  177. struct acpi_subtable_header header;
  178. u8 proximity_domain_lo;
  179. u8 apic_id;
  180. u32 flags;
  181. u8 local_sapic_eid;
  182. u8 proximity_domain_hi[3];
  183. u32 clock_domain;
  184. };
  185. /* Flags */
  186. #define ACPI_SRAT_CPU_USE_AFFINITY (1) /* 00: Use affinity structure */
  187. /* 1: Memory Affinity */
  188. struct acpi_srat_mem_affinity {
  189. struct acpi_subtable_header header;
  190. u32 proximity_domain;
  191. u16 reserved; /* Reserved, must be zero */
  192. u64 base_address;
  193. u64 length;
  194. u32 reserved1;
  195. u32 flags;
  196. u64 reserved2; /* Reserved, must be zero */
  197. };
  198. /* Flags */
  199. #define ACPI_SRAT_MEM_ENABLED (1) /* 00: Use affinity structure */
  200. #define ACPI_SRAT_MEM_HOT_PLUGGABLE (1<<1) /* 01: Memory region is hot pluggable */
  201. #define ACPI_SRAT_MEM_NON_VOLATILE (1<<2) /* 02: Memory region is non-volatile */
  202. /* 2: Processor Local X2_APIC Affinity (ACPI 4.0) */
  203. struct acpi_srat_x2apic_cpu_affinity {
  204. struct acpi_subtable_header header;
  205. u16 reserved; /* Reserved, must be zero */
  206. u32 proximity_domain;
  207. u32 apic_id;
  208. u32 flags;
  209. u32 clock_domain;
  210. u32 reserved2;
  211. };
  212. /* Flags for struct acpi_srat_cpu_affinity and struct acpi_srat_x2apic_cpu_affinity */
  213. #define ACPI_SRAT_CPU_ENABLED (1) /* 00: Use affinity structure */
  214. /* 3: GICC Affinity (ACPI 5.1) */
  215. struct acpi_srat_gicc_affinity {
  216. struct acpi_subtable_header header;
  217. u32 proximity_domain;
  218. u32 acpi_processor_uid;
  219. u32 flags;
  220. u32 clock_domain;
  221. };
  222. /* Flags for struct acpi_srat_gicc_affinity */
  223. #define ACPI_SRAT_GICC_ENABLED (1) /* 00: Use affinity structure */
  224. /* 4: GCC ITS Affinity (ACPI 6.2) */
  225. struct acpi_srat_gic_its_affinity {
  226. struct acpi_subtable_header header;
  227. u32 proximity_domain;
  228. u16 reserved;
  229. u32 its_id;
  230. };
  231. /*******************************************************************************
  232. *
  233. * STAO - Status Override Table (_STA override) - ACPI 6.0
  234. * Version 1
  235. *
  236. * Conforms to "ACPI Specification for Status Override Table"
  237. * 6 January 2015
  238. *
  239. ******************************************************************************/
  240. struct acpi_table_stao {
  241. struct acpi_table_header header; /* Common ACPI table header */
  242. u8 ignore_uart;
  243. };
  244. /*******************************************************************************
  245. *
  246. * TCPA - Trusted Computing Platform Alliance table
  247. * Version 2
  248. *
  249. * TCG Hardware Interface Table for TPM 1.2 Clients and Servers
  250. *
  251. * Conforms to "TCG ACPI Specification, Family 1.2 and 2.0",
  252. * Version 1.2, Revision 8
  253. * February 27, 2017
  254. *
  255. * NOTE: There are two versions of the table with the same signature --
  256. * the client version and the server version. The common platform_class
  257. * field is used to differentiate the two types of tables.
  258. *
  259. ******************************************************************************/
  260. struct acpi_table_tcpa_hdr {
  261. struct acpi_table_header header; /* Common ACPI table header */
  262. u16 platform_class;
  263. };
  264. /*
  265. * Values for platform_class above.
  266. * This is how the client and server subtables are differentiated
  267. */
  268. #define ACPI_TCPA_CLIENT_TABLE 0
  269. #define ACPI_TCPA_SERVER_TABLE 1
  270. struct acpi_table_tcpa_client {
  271. u32 minimum_log_length; /* Minimum length for the event log area */
  272. u64 log_address; /* Address of the event log area */
  273. };
  274. struct acpi_table_tcpa_server {
  275. u16 reserved;
  276. u64 minimum_log_length; /* Minimum length for the event log area */
  277. u64 log_address; /* Address of the event log area */
  278. u16 spec_revision;
  279. u8 device_flags;
  280. u8 interrupt_flags;
  281. u8 gpe_number;
  282. u8 reserved2[3];
  283. u32 global_interrupt;
  284. struct acpi_generic_address address;
  285. u32 reserved3;
  286. struct acpi_generic_address config_address;
  287. u8 group;
  288. u8 bus; /* PCI Bus/Segment/Function numbers */
  289. u8 device;
  290. u8 function;
  291. };
  292. /* Values for device_flags above */
  293. #define ACPI_TCPA_PCI_DEVICE (1)
  294. #define ACPI_TCPA_BUS_PNP (1<<1)
  295. #define ACPI_TCPA_ADDRESS_VALID (1<<2)
  296. /* Values for interrupt_flags above */
  297. #define ACPI_TCPA_INTERRUPT_MODE (1)
  298. #define ACPI_TCPA_INTERRUPT_POLARITY (1<<1)
  299. #define ACPI_TCPA_SCI_VIA_GPE (1<<2)
  300. #define ACPI_TCPA_GLOBAL_INTERRUPT (1<<3)
  301. /*******************************************************************************
  302. *
  303. * TPM2 - Trusted Platform Module (TPM) 2.0 Hardware Interface Table
  304. * Version 4
  305. *
  306. * TCG Hardware Interface Table for TPM 2.0 Clients and Servers
  307. *
  308. * Conforms to "TCG ACPI Specification, Family 1.2 and 2.0",
  309. * Version 1.2, Revision 8
  310. * February 27, 2017
  311. *
  312. ******************************************************************************/
  313. struct acpi_table_tpm2 {
  314. struct acpi_table_header header; /* Common ACPI table header */
  315. u16 platform_class;
  316. u16 reserved;
  317. u64 control_address;
  318. u32 start_method;
  319. /* Platform-specific data follows */
  320. };
  321. /* Values for start_method above */
  322. #define ACPI_TPM2_NOT_ALLOWED 0
  323. #define ACPI_TPM2_RESERVED1 1
  324. #define ACPI_TPM2_START_METHOD 2
  325. #define ACPI_TPM2_RESERVED3 3
  326. #define ACPI_TPM2_RESERVED4 4
  327. #define ACPI_TPM2_RESERVED5 5
  328. #define ACPI_TPM2_MEMORY_MAPPED 6
  329. #define ACPI_TPM2_COMMAND_BUFFER 7
  330. #define ACPI_TPM2_COMMAND_BUFFER_WITH_START_METHOD 8
  331. #define ACPI_TPM2_RESERVED9 9
  332. #define ACPI_TPM2_RESERVED10 10
  333. #define ACPI_TPM2_COMMAND_BUFFER_WITH_ARM_SMC 11 /* V1.2 Rev 8 */
  334. #define ACPI_TPM2_RESERVED 12
  335. /* Optional trailer appears after any start_method subtables */
  336. struct acpi_tpm2_trailer {
  337. u8 method_parameters[12];
  338. u32 minimum_log_length; /* Minimum length for the event log area */
  339. u64 log_address; /* Address of the event log area */
  340. };
  341. /*
  342. * Subtables (start_method-specific)
  343. */
  344. /* 11: Start Method for ARM SMC (V1.2 Rev 8) */
  345. struct acpi_tpm2_arm_smc {
  346. u32 global_interrupt;
  347. u8 interrupt_flags;
  348. u8 operation_flags;
  349. u16 reserved;
  350. u32 function_id;
  351. };
  352. /* Values for interrupt_flags above */
  353. #define ACPI_TPM2_INTERRUPT_SUPPORT (1)
  354. /* Values for operation_flags above */
  355. #define ACPI_TPM2_IDLE_SUPPORT (1)
  356. /*******************************************************************************
  357. *
  358. * UEFI - UEFI Boot optimization Table
  359. * Version 1
  360. *
  361. * Conforms to "Unified Extensible Firmware Interface Specification",
  362. * Version 2.3, May 8, 2009
  363. *
  364. ******************************************************************************/
  365. struct acpi_table_uefi {
  366. struct acpi_table_header header; /* Common ACPI table header */
  367. u8 identifier[16]; /* UUID identifier */
  368. u16 data_offset; /* Offset of remaining data in table */
  369. };
  370. /*******************************************************************************
  371. *
  372. * VRTC - Virtual Real Time Clock Table
  373. * Version 1
  374. *
  375. * Conforms to "Simple Firmware Interface Specification",
  376. * Draft 0.8.2, Oct 19, 2010
  377. * NOTE: The ACPI VRTC is equivalent to The SFI MRTC table.
  378. *
  379. ******************************************************************************/
  380. struct acpi_table_vrtc {
  381. struct acpi_table_header header; /* Common ACPI table header */
  382. };
  383. /* VRTC entry */
  384. struct acpi_vrtc_entry {
  385. struct acpi_generic_address physical_address;
  386. u32 irq;
  387. };
  388. /*******************************************************************************
  389. *
  390. * WAET - Windows ACPI Emulated devices Table
  391. * Version 1
  392. *
  393. * Conforms to "Windows ACPI Emulated Devices Table", version 1.0, April 6, 2009
  394. *
  395. ******************************************************************************/
  396. struct acpi_table_waet {
  397. struct acpi_table_header header; /* Common ACPI table header */
  398. u32 flags;
  399. };
  400. /* Masks for Flags field above */
  401. #define ACPI_WAET_RTC_NO_ACK (1) /* RTC requires no int acknowledge */
  402. #define ACPI_WAET_TIMER_ONE_READ (1<<1) /* PM timer requires only one read */
  403. /*******************************************************************************
  404. *
  405. * WDAT - Watchdog Action Table
  406. * Version 1
  407. *
  408. * Conforms to "Hardware Watchdog Timers Design Specification",
  409. * Copyright 2006 Microsoft Corporation.
  410. *
  411. ******************************************************************************/
  412. struct acpi_table_wdat {
  413. struct acpi_table_header header; /* Common ACPI table header */
  414. u32 header_length; /* Watchdog Header Length */
  415. u16 pci_segment; /* PCI Segment number */
  416. u8 pci_bus; /* PCI Bus number */
  417. u8 pci_device; /* PCI Device number */
  418. u8 pci_function; /* PCI Function number */
  419. u8 reserved[3];
  420. u32 timer_period; /* Period of one timer count (msec) */
  421. u32 max_count; /* Maximum counter value supported */
  422. u32 min_count; /* Minimum counter value */
  423. u8 flags;
  424. u8 reserved2[3];
  425. u32 entries; /* Number of watchdog entries that follow */
  426. };
  427. /* Masks for Flags field above */
  428. #define ACPI_WDAT_ENABLED (1)
  429. #define ACPI_WDAT_STOPPED 0x80
  430. /* WDAT Instruction Entries (actions) */
  431. struct acpi_wdat_entry {
  432. u8 action;
  433. u8 instruction;
  434. u16 reserved;
  435. struct acpi_generic_address register_region;
  436. u32 value; /* Value used with Read/Write register */
  437. u32 mask; /* Bitmask required for this register instruction */
  438. };
  439. /* Values for Action field above */
  440. enum acpi_wdat_actions {
  441. ACPI_WDAT_RESET = 1,
  442. ACPI_WDAT_GET_CURRENT_COUNTDOWN = 4,
  443. ACPI_WDAT_GET_COUNTDOWN = 5,
  444. ACPI_WDAT_SET_COUNTDOWN = 6,
  445. ACPI_WDAT_GET_RUNNING_STATE = 8,
  446. ACPI_WDAT_SET_RUNNING_STATE = 9,
  447. ACPI_WDAT_GET_STOPPED_STATE = 10,
  448. ACPI_WDAT_SET_STOPPED_STATE = 11,
  449. ACPI_WDAT_GET_REBOOT = 16,
  450. ACPI_WDAT_SET_REBOOT = 17,
  451. ACPI_WDAT_GET_SHUTDOWN = 18,
  452. ACPI_WDAT_SET_SHUTDOWN = 19,
  453. ACPI_WDAT_GET_STATUS = 32,
  454. ACPI_WDAT_SET_STATUS = 33,
  455. ACPI_WDAT_ACTION_RESERVED = 34 /* 34 and greater are reserved */
  456. };
  457. /* Values for Instruction field above */
  458. enum acpi_wdat_instructions {
  459. ACPI_WDAT_READ_VALUE = 0,
  460. ACPI_WDAT_READ_COUNTDOWN = 1,
  461. ACPI_WDAT_WRITE_VALUE = 2,
  462. ACPI_WDAT_WRITE_COUNTDOWN = 3,
  463. ACPI_WDAT_INSTRUCTION_RESERVED = 4, /* 4 and greater are reserved */
  464. ACPI_WDAT_PRESERVE_REGISTER = 0x80 /* Except for this value */
  465. };
  466. /*******************************************************************************
  467. *
  468. * WDDT - Watchdog Descriptor Table
  469. * Version 1
  470. *
  471. * Conforms to "Using the Intel ICH Family Watchdog Timer (WDT)",
  472. * Version 001, September 2002
  473. *
  474. ******************************************************************************/
  475. struct acpi_table_wddt {
  476. struct acpi_table_header header; /* Common ACPI table header */
  477. u16 spec_version;
  478. u16 table_version;
  479. u16 pci_vendor_id;
  480. struct acpi_generic_address address;
  481. u16 max_count; /* Maximum counter value supported */
  482. u16 min_count; /* Minimum counter value supported */
  483. u16 period;
  484. u16 status;
  485. u16 capability;
  486. };
  487. /* Flags for Status field above */
  488. #define ACPI_WDDT_AVAILABLE (1)
  489. #define ACPI_WDDT_ACTIVE (1<<1)
  490. #define ACPI_WDDT_TCO_OS_OWNED (1<<2)
  491. #define ACPI_WDDT_USER_RESET (1<<11)
  492. #define ACPI_WDDT_WDT_RESET (1<<12)
  493. #define ACPI_WDDT_POWER_FAIL (1<<13)
  494. #define ACPI_WDDT_UNKNOWN_RESET (1<<14)
  495. /* Flags for Capability field above */
  496. #define ACPI_WDDT_AUTO_RESET (1)
  497. #define ACPI_WDDT_ALERT_SUPPORT (1<<1)
  498. /*******************************************************************************
  499. *
  500. * WDRT - Watchdog Resource Table
  501. * Version 1
  502. *
  503. * Conforms to "Watchdog Timer Hardware Requirements for Windows Server 2003",
  504. * Version 1.01, August 28, 2006
  505. *
  506. ******************************************************************************/
  507. struct acpi_table_wdrt {
  508. struct acpi_table_header header; /* Common ACPI table header */
  509. struct acpi_generic_address control_register;
  510. struct acpi_generic_address count_register;
  511. u16 pci_device_id;
  512. u16 pci_vendor_id;
  513. u8 pci_bus; /* PCI Bus number */
  514. u8 pci_device; /* PCI Device number */
  515. u8 pci_function; /* PCI Function number */
  516. u8 pci_segment; /* PCI Segment number */
  517. u16 max_count; /* Maximum counter value supported */
  518. u8 units;
  519. };
  520. /*******************************************************************************
  521. *
  522. * WPBT - Windows Platform Environment Table (ACPI 6.0)
  523. * Version 1
  524. *
  525. * Conforms to "Windows Platform Binary Table (WPBT)" 29 November 2011
  526. *
  527. ******************************************************************************/
  528. struct acpi_table_wpbt {
  529. struct acpi_table_header header; /* Common ACPI table header */
  530. u32 handoff_size;
  531. u64 handoff_address;
  532. u8 layout;
  533. u8 type;
  534. u16 arguments_length;
  535. };
  536. /*******************************************************************************
  537. *
  538. * WSMT - Windows SMM Security Migrations Table
  539. * Version 1
  540. *
  541. * Conforms to "Windows SMM Security Migrations Table",
  542. * Version 1.0, April 18, 2016
  543. *
  544. ******************************************************************************/
  545. struct acpi_table_wsmt {
  546. struct acpi_table_header header; /* Common ACPI table header */
  547. u32 protection_flags;
  548. };
  549. /* Flags for protection_flags field above */
  550. #define ACPI_WSMT_FIXED_COMM_BUFFERS (1)
  551. #define ACPI_WSMT_COMM_BUFFER_NESTED_PTR_PROTECTION (2)
  552. #define ACPI_WSMT_SYSTEM_RESOURCE_PROTECTION (4)
  553. /*******************************************************************************
  554. *
  555. * XENV - Xen Environment Table (ACPI 6.0)
  556. * Version 1
  557. *
  558. * Conforms to "ACPI Specification for Xen Environment Table" 4 January 2015
  559. *
  560. ******************************************************************************/
  561. struct acpi_table_xenv {
  562. struct acpi_table_header header; /* Common ACPI table header */
  563. u64 grant_table_address;
  564. u64 grant_table_size;
  565. u32 event_interrupt;
  566. u8 event_flags;
  567. };
  568. /* Reset to default packing */
  569. #pragma pack()
  570. #endif /* __ACTBL3_H__ */