actbl3.h 19 KB

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