Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | /****************************************************************************** |
| 2 | * |
Bob Moore | 793c238 | 2006-03-31 00:00:00 -0500 | [diff] [blame] | 3 | * Name: actbl1.h - Additional ACPI table definitions |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4 | * |
| 5 | *****************************************************************************/ |
| 6 | |
| 7 | /* |
Len Brown | 75a44ce | 2008-04-23 23:00:13 -0400 | [diff] [blame] | 8 | * Copyright (C) 2000 - 2008, Intel Corp. |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 9 | * All rights reserved. |
| 10 | * |
| 11 | * Redistribution and use in source and binary forms, with or without |
| 12 | * modification, are permitted provided that the following conditions |
| 13 | * are met: |
| 14 | * 1. Redistributions of source code must retain the above copyright |
| 15 | * notice, this list of conditions, and the following disclaimer, |
| 16 | * without modification. |
| 17 | * 2. Redistributions in binary form must reproduce at minimum a disclaimer |
| 18 | * substantially similar to the "NO WARRANTY" disclaimer below |
| 19 | * ("Disclaimer") and any redistribution must be conditioned upon |
| 20 | * including a substantially similar Disclaimer requirement for further |
| 21 | * binary redistribution. |
| 22 | * 3. Neither the names of the above-listed copyright holders nor the names |
| 23 | * of any contributors may be used to endorse or promote products derived |
| 24 | * from this software without specific prior written permission. |
| 25 | * |
| 26 | * Alternatively, this software may be distributed under the terms of the |
| 27 | * GNU General Public License ("GPL") version 2 as published by the Free |
| 28 | * Software Foundation. |
| 29 | * |
| 30 | * NO WARRANTY |
| 31 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
| 32 | * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
| 33 | * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR |
| 34 | * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT |
| 35 | * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
| 36 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS |
| 37 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) |
| 38 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, |
| 39 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING |
| 40 | * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
| 41 | * POSSIBILITY OF SUCH DAMAGES. |
| 42 | */ |
| 43 | |
| 44 | #ifndef __ACTBL1_H__ |
| 45 | #define __ACTBL1_H__ |
| 46 | |
Bob Moore | 793c238 | 2006-03-31 00:00:00 -0500 | [diff] [blame] | 47 | /******************************************************************************* |
| 48 | * |
| 49 | * Additional ACPI Tables |
| 50 | * |
| 51 | * These tables are not consumed directly by the ACPICA subsystem, but are |
| 52 | * included here to support device drivers and the AML disassembler. |
| 53 | * |
| 54 | ******************************************************************************/ |
| 55 | |
| 56 | /* |
| 57 | * Values for description table header signatures. Useful because they make |
| 58 | * it more difficult to inadvertently type in the wrong signature. |
| 59 | */ |
| 60 | #define ACPI_SIG_ASF "ASF!" /* Alert Standard Format table */ |
Bob Moore | 970d9c9 | 2008-04-10 19:06:42 +0400 | [diff] [blame] | 61 | #define ACPI_SIG_BERT "BERT" /* Boot Error Record Table */ |
Bob Moore | 793c238 | 2006-03-31 00:00:00 -0500 | [diff] [blame] | 62 | #define ACPI_SIG_BOOT "BOOT" /* Simple Boot Flag Table */ |
| 63 | #define ACPI_SIG_CPEP "CPEP" /* Corrected Platform Error Polling table */ |
| 64 | #define ACPI_SIG_DBGP "DBGP" /* Debug Port table */ |
Bob Moore | 2502fff | 2007-02-02 19:48:19 +0300 | [diff] [blame] | 65 | #define ACPI_SIG_DMAR "DMAR" /* DMA Remapping table */ |
Bob Moore | 793c238 | 2006-03-31 00:00:00 -0500 | [diff] [blame] | 66 | #define ACPI_SIG_ECDT "ECDT" /* Embedded Controller Boot Resources Table */ |
Bob Moore | 970d9c9 | 2008-04-10 19:06:42 +0400 | [diff] [blame] | 67 | #define ACPI_SIG_EINJ "EINJ" /* Error Injection table */ |
| 68 | #define ACPI_SIG_ERST "ERST" /* Error Record Serialization Table */ |
| 69 | #define ACPI_SIG_HEST "HEST" /* Hardware Error Source Table */ |
Bob Moore | 793c238 | 2006-03-31 00:00:00 -0500 | [diff] [blame] | 70 | #define ACPI_SIG_HPET "HPET" /* High Precision Event Timer table */ |
Bob Moore | 970d9c9 | 2008-04-10 19:06:42 +0400 | [diff] [blame] | 71 | #define ACPI_SIG_IBFT "IBFT" /* i_sCSI Boot Firmware Table */ |
Bob Moore | 793c238 | 2006-03-31 00:00:00 -0500 | [diff] [blame] | 72 | #define ACPI_SIG_MADT "APIC" /* Multiple APIC Description Table */ |
| 73 | #define ACPI_SIG_MCFG "MCFG" /* PCI Memory Mapped Configuration table */ |
| 74 | #define ACPI_SIG_SBST "SBST" /* Smart Battery Specification Table */ |
Bob Moore | 698c0a0 | 2008-04-10 19:06:38 +0400 | [diff] [blame] | 75 | #define ACPI_SIG_SLIC "SLIC" /* Software Licensing Description Table */ |
Bob Moore | 793c238 | 2006-03-31 00:00:00 -0500 | [diff] [blame] | 76 | #define ACPI_SIG_SLIT "SLIT" /* System Locality Distance Information Table */ |
| 77 | #define ACPI_SIG_SPCR "SPCR" /* Serial Port Console Redirection table */ |
| 78 | #define ACPI_SIG_SPMI "SPMI" /* Server Platform Management Interface table */ |
| 79 | #define ACPI_SIG_SRAT "SRAT" /* System Resource Affinity Table */ |
| 80 | #define ACPI_SIG_TCPA "TCPA" /* Trusted Computing Platform Alliance table */ |
Bob Moore | 970d9c9 | 2008-04-10 19:06:42 +0400 | [diff] [blame] | 81 | #define ACPI_SIG_UEFI "UEFI" /* Uefi Boot Optimization Table */ |
| 82 | #define ACPI_SIG_WDAT "WDAT" /* Watchdog Action Table */ |
Bob Moore | 793c238 | 2006-03-31 00:00:00 -0500 | [diff] [blame] | 83 | #define ACPI_SIG_WDRT "WDRT" /* Watchdog Resource Table */ |
| 84 | |
Bob Moore | 793c238 | 2006-03-31 00:00:00 -0500 | [diff] [blame] | 85 | /* |
| 86 | * All tables must be byte-packed to match the ACPI specification, since |
| 87 | * the tables are provided by the system BIOS. |
| 88 | */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 89 | #pragma pack(1) |
| 90 | |
| 91 | /* |
Bob Moore | 793c238 | 2006-03-31 00:00:00 -0500 | [diff] [blame] | 92 | * Note about bitfields: The u8 type is used for bitfields in ACPI tables. |
| 93 | * This is the only type that is even remotely portable. Anything else is not |
| 94 | * portable, so do not use any other bitfield types. |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 95 | */ |
Bob Moore | 793c238 | 2006-03-31 00:00:00 -0500 | [diff] [blame] | 96 | |
Bob Moore | 970d9c9 | 2008-04-10 19:06:42 +0400 | [diff] [blame] | 97 | /* Common Subtable header (used in MADT, SRAT, etc.) */ |
Bob Moore | f3d2e78 | 2007-02-02 19:48:18 +0300 | [diff] [blame] | 98 | |
| 99 | struct acpi_subtable_header { |
| 100 | u8 type; |
| 101 | u8 length; |
| 102 | }; |
| 103 | |
Bob Moore | 970d9c9 | 2008-04-10 19:06:42 +0400 | [diff] [blame] | 104 | /* Common Subtable header for WHEA tables (EINJ, ERST, WDAT) */ |
| 105 | |
| 106 | struct acpi_whea_header { |
| 107 | u8 action; |
| 108 | u8 instruction; |
| 109 | u8 flags; |
| 110 | u8 reserved; |
| 111 | struct acpi_generic_address register_region; |
Bob Moore | 3fa3477 | 2008-04-10 19:06:43 +0400 | [diff] [blame] | 112 | u64 value; /* Value used with Read/Write register */ |
| 113 | u64 mask; /* Bitmask required for this register instruction */ |
Bob Moore | 970d9c9 | 2008-04-10 19:06:42 +0400 | [diff] [blame] | 114 | }; |
| 115 | |
Bob Moore | 793c238 | 2006-03-31 00:00:00 -0500 | [diff] [blame] | 116 | /******************************************************************************* |
| 117 | * |
| 118 | * ASF - Alert Standard Format table (Signature "ASF!") |
| 119 | * |
Bob Moore | 694b0b2 | 2007-02-02 19:48:20 +0300 | [diff] [blame] | 120 | * Conforms to the Alert Standard Format Specification V2.0, 23 April 2003 |
| 121 | * |
Bob Moore | 793c238 | 2006-03-31 00:00:00 -0500 | [diff] [blame] | 122 | ******************************************************************************/ |
| 123 | |
| 124 | struct acpi_table_asf { |
Bob Moore | f3d2e78 | 2007-02-02 19:48:18 +0300 | [diff] [blame] | 125 | struct acpi_table_header header; /* Common ACPI table header */ |
| 126 | }; |
Bob Moore | 793c238 | 2006-03-31 00:00:00 -0500 | [diff] [blame] | 127 | |
Bob Moore | f3d2e78 | 2007-02-02 19:48:18 +0300 | [diff] [blame] | 128 | /* ASF subtable header */ |
Bob Moore | 793c238 | 2006-03-31 00:00:00 -0500 | [diff] [blame] | 129 | |
| 130 | struct acpi_asf_header { |
Bob Moore | f3d2e78 | 2007-02-02 19:48:18 +0300 | [diff] [blame] | 131 | u8 type; |
| 132 | u8 reserved; |
| 133 | u16 length; |
| 134 | }; |
Bob Moore | 793c238 | 2006-03-31 00:00:00 -0500 | [diff] [blame] | 135 | |
Bob Moore | f3d2e78 | 2007-02-02 19:48:18 +0300 | [diff] [blame] | 136 | /* Values for Type field above */ |
Bob Moore | 793c238 | 2006-03-31 00:00:00 -0500 | [diff] [blame] | 137 | |
Bob Moore | f3d2e78 | 2007-02-02 19:48:18 +0300 | [diff] [blame] | 138 | enum acpi_asf_type { |
| 139 | ACPI_ASF_TYPE_INFO = 0, |
| 140 | ACPI_ASF_TYPE_ALERT = 1, |
| 141 | ACPI_ASF_TYPE_CONTROL = 2, |
| 142 | ACPI_ASF_TYPE_BOOT = 3, |
| 143 | ACPI_ASF_TYPE_ADDRESS = 4, |
| 144 | ACPI_ASF_TYPE_RESERVED = 5 |
| 145 | }; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 146 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 147 | /* |
Bob Moore | 793c238 | 2006-03-31 00:00:00 -0500 | [diff] [blame] | 148 | * ASF subtables |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 149 | */ |
Bob Moore | 793c238 | 2006-03-31 00:00:00 -0500 | [diff] [blame] | 150 | |
| 151 | /* 0: ASF Information */ |
| 152 | |
| 153 | struct acpi_asf_info { |
Bob Moore | f3d2e78 | 2007-02-02 19:48:18 +0300 | [diff] [blame] | 154 | struct acpi_asf_header header; |
| 155 | u8 min_reset_value; |
Bob Moore | 793c238 | 2006-03-31 00:00:00 -0500 | [diff] [blame] | 156 | u8 min_poll_interval; |
| 157 | u16 system_id; |
| 158 | u32 mfg_id; |
| 159 | u8 flags; |
| 160 | u8 reserved2[3]; |
| 161 | }; |
| 162 | |
| 163 | /* 1: ASF Alerts */ |
| 164 | |
| 165 | struct acpi_asf_alert { |
Bob Moore | f3d2e78 | 2007-02-02 19:48:18 +0300 | [diff] [blame] | 166 | struct acpi_asf_header header; |
| 167 | u8 assert_mask; |
Bob Moore | 793c238 | 2006-03-31 00:00:00 -0500 | [diff] [blame] | 168 | u8 deassert_mask; |
| 169 | u8 alerts; |
| 170 | u8 data_length; |
Bob Moore | 775d85b | 2007-02-02 19:48:20 +0300 | [diff] [blame] | 171 | }; |
| 172 | |
| 173 | struct acpi_asf_alert_data { |
| 174 | u8 address; |
| 175 | u8 command; |
| 176 | u8 mask; |
| 177 | u8 value; |
| 178 | u8 sensor_type; |
| 179 | u8 type; |
| 180 | u8 offset; |
| 181 | u8 source_type; |
| 182 | u8 severity; |
| 183 | u8 sensor_number; |
| 184 | u8 entity; |
| 185 | u8 instance; |
Bob Moore | 793c238 | 2006-03-31 00:00:00 -0500 | [diff] [blame] | 186 | }; |
| 187 | |
| 188 | /* 2: ASF Remote Control */ |
| 189 | |
| 190 | struct acpi_asf_remote { |
Bob Moore | f3d2e78 | 2007-02-02 19:48:18 +0300 | [diff] [blame] | 191 | struct acpi_asf_header header; |
| 192 | u8 controls; |
Bob Moore | 793c238 | 2006-03-31 00:00:00 -0500 | [diff] [blame] | 193 | u8 data_length; |
| 194 | u16 reserved2; |
Bob Moore | 775d85b | 2007-02-02 19:48:20 +0300 | [diff] [blame] | 195 | }; |
| 196 | |
| 197 | struct acpi_asf_control_data { |
| 198 | u8 function; |
| 199 | u8 address; |
| 200 | u8 command; |
| 201 | u8 value; |
Bob Moore | 793c238 | 2006-03-31 00:00:00 -0500 | [diff] [blame] | 202 | }; |
| 203 | |
| 204 | /* 3: ASF RMCP Boot Options */ |
| 205 | |
| 206 | struct acpi_asf_rmcp { |
Bob Moore | f3d2e78 | 2007-02-02 19:48:18 +0300 | [diff] [blame] | 207 | struct acpi_asf_header header; |
| 208 | u8 capabilities[7]; |
Bob Moore | 793c238 | 2006-03-31 00:00:00 -0500 | [diff] [blame] | 209 | u8 completion_code; |
| 210 | u32 enterprise_id; |
| 211 | u8 command; |
| 212 | u16 parameter; |
| 213 | u16 boot_options; |
| 214 | u16 oem_parameters; |
| 215 | }; |
| 216 | |
| 217 | /* 4: ASF Address */ |
| 218 | |
| 219 | struct acpi_asf_address { |
Bob Moore | f3d2e78 | 2007-02-02 19:48:18 +0300 | [diff] [blame] | 220 | struct acpi_asf_header header; |
| 221 | u8 eprom_address; |
Bob Moore | 793c238 | 2006-03-31 00:00:00 -0500 | [diff] [blame] | 222 | u8 devices; |
Bob Moore | 793c238 | 2006-03-31 00:00:00 -0500 | [diff] [blame] | 223 | }; |
| 224 | |
| 225 | /******************************************************************************* |
| 226 | * |
Bob Moore | 970d9c9 | 2008-04-10 19:06:42 +0400 | [diff] [blame] | 227 | * BERT - Boot Error Record Table |
| 228 | * |
| 229 | ******************************************************************************/ |
| 230 | |
| 231 | struct acpi_table_bert { |
| 232 | struct acpi_table_header header; /* Common ACPI table header */ |
| 233 | u32 region_length; /* Length of the boot error region */ |
| 234 | u64 address; /* Physical addresss of the error region */ |
| 235 | }; |
| 236 | |
Bob Moore | 3fa3477 | 2008-04-10 19:06:43 +0400 | [diff] [blame] | 237 | /* Boot Error Region */ |
| 238 | |
Bob Moore | 970d9c9 | 2008-04-10 19:06:42 +0400 | [diff] [blame] | 239 | struct acpi_bert_region { |
| 240 | u32 block_status; |
| 241 | u32 raw_data_offset; |
| 242 | u32 raw_data_length; |
| 243 | u32 data_length; |
| 244 | u32 error_severity; |
Bob Moore | 970d9c9 | 2008-04-10 19:06:42 +0400 | [diff] [blame] | 245 | }; |
| 246 | |
| 247 | /* block_status Flags */ |
| 248 | |
| 249 | #define ACPI_BERT_UNCORRECTABLE (1) |
| 250 | #define ACPI_BERT_CORRECTABLE (2) |
| 251 | #define ACPI_BERT_MULTIPLE_UNCORRECTABLE (4) |
| 252 | #define ACPI_BERT_MULTIPLE_CORRECTABLE (8) |
| 253 | |
| 254 | /******************************************************************************* |
| 255 | * |
Bob Moore | 793c238 | 2006-03-31 00:00:00 -0500 | [diff] [blame] | 256 | * BOOT - Simple Boot Flag Table |
| 257 | * |
| 258 | ******************************************************************************/ |
| 259 | |
| 260 | struct acpi_table_boot { |
Bob Moore | f3d2e78 | 2007-02-02 19:48:18 +0300 | [diff] [blame] | 261 | struct acpi_table_header header; /* Common ACPI table header */ |
| 262 | u8 cmos_index; /* Index in CMOS RAM for the boot register */ |
Bob Moore | 793c238 | 2006-03-31 00:00:00 -0500 | [diff] [blame] | 263 | u8 reserved[3]; |
| 264 | }; |
| 265 | |
| 266 | /******************************************************************************* |
| 267 | * |
| 268 | * CPEP - Corrected Platform Error Polling table |
| 269 | * |
| 270 | ******************************************************************************/ |
| 271 | |
| 272 | struct acpi_table_cpep { |
Bob Moore | f3d2e78 | 2007-02-02 19:48:18 +0300 | [diff] [blame] | 273 | struct acpi_table_header header; /* Common ACPI table header */ |
| 274 | u64 reserved; |
Bob Moore | 793c238 | 2006-03-31 00:00:00 -0500 | [diff] [blame] | 275 | }; |
| 276 | |
| 277 | /* Subtable */ |
| 278 | |
| 279 | struct acpi_cpep_polling { |
| 280 | u8 type; |
| 281 | u8 length; |
Bob Moore | f3d2e78 | 2007-02-02 19:48:18 +0300 | [diff] [blame] | 282 | u8 id; /* Processor ID */ |
| 283 | u8 eid; /* Processor EID */ |
| 284 | u32 interval; /* Polling interval (msec) */ |
Bob Moore | 793c238 | 2006-03-31 00:00:00 -0500 | [diff] [blame] | 285 | }; |
| 286 | |
| 287 | /******************************************************************************* |
| 288 | * |
| 289 | * DBGP - Debug Port table |
| 290 | * |
| 291 | ******************************************************************************/ |
| 292 | |
| 293 | struct acpi_table_dbgp { |
Bob Moore | f3d2e78 | 2007-02-02 19:48:18 +0300 | [diff] [blame] | 294 | struct acpi_table_header header; /* Common ACPI table header */ |
| 295 | u8 type; /* 0=full 16550, 1=subset of 16550 */ |
Bob Moore | 793c238 | 2006-03-31 00:00:00 -0500 | [diff] [blame] | 296 | u8 reserved[3]; |
| 297 | struct acpi_generic_address debug_port; |
| 298 | }; |
| 299 | |
| 300 | /******************************************************************************* |
| 301 | * |
Bob Moore | 2502fff | 2007-02-02 19:48:19 +0300 | [diff] [blame] | 302 | * DMAR - DMA Remapping table |
Bob Moore | 19d0cfe | 2008-06-10 15:54:40 +0800 | [diff] [blame^] | 303 | * From "Intel Virtualization Technology for Directed I/O", Sept. 2007 |
Bob Moore | 2502fff | 2007-02-02 19:48:19 +0300 | [diff] [blame] | 304 | * |
| 305 | ******************************************************************************/ |
| 306 | |
| 307 | struct acpi_table_dmar { |
| 308 | struct acpi_table_header header; /* Common ACPI table header */ |
| 309 | u8 width; /* Host Address Width */ |
Keshavamurthy, Anil S | 10e5247 | 2007-10-21 16:41:41 -0700 | [diff] [blame] | 310 | u8 flags; |
| 311 | u8 reserved[10]; |
Bob Moore | 2502fff | 2007-02-02 19:48:19 +0300 | [diff] [blame] | 312 | }; |
| 313 | |
| 314 | /* DMAR subtable header */ |
| 315 | |
| 316 | struct acpi_dmar_header { |
| 317 | u16 type; |
| 318 | u16 length; |
Bob Moore | 2502fff | 2007-02-02 19:48:19 +0300 | [diff] [blame] | 319 | }; |
| 320 | |
| 321 | /* Values for subtable type in struct acpi_dmar_header */ |
| 322 | |
| 323 | enum acpi_dmar_type { |
| 324 | ACPI_DMAR_TYPE_HARDWARE_UNIT = 0, |
| 325 | ACPI_DMAR_TYPE_RESERVED_MEMORY = 1, |
Keshavamurthy, Anil S | 10e5247 | 2007-10-21 16:41:41 -0700 | [diff] [blame] | 326 | ACPI_DMAR_TYPE_ATSR = 2, |
| 327 | ACPI_DMAR_TYPE_RESERVED = 3 /* 3 and greater are reserved */ |
Bob Moore | 2502fff | 2007-02-02 19:48:19 +0300 | [diff] [blame] | 328 | }; |
| 329 | |
| 330 | struct acpi_dmar_device_scope { |
| 331 | u8 entry_type; |
| 332 | u8 length; |
Keshavamurthy, Anil S | 10e5247 | 2007-10-21 16:41:41 -0700 | [diff] [blame] | 333 | u16 reserved; |
| 334 | u8 enumeration_id; |
Bob Moore | 2502fff | 2007-02-02 19:48:19 +0300 | [diff] [blame] | 335 | u8 bus; |
| 336 | }; |
| 337 | |
| 338 | /* Values for entry_type in struct acpi_dmar_device_scope */ |
| 339 | |
| 340 | enum acpi_dmar_scope_type { |
| 341 | ACPI_DMAR_SCOPE_TYPE_NOT_USED = 0, |
| 342 | ACPI_DMAR_SCOPE_TYPE_ENDPOINT = 1, |
| 343 | ACPI_DMAR_SCOPE_TYPE_BRIDGE = 2, |
Keshavamurthy, Anil S | 10e5247 | 2007-10-21 16:41:41 -0700 | [diff] [blame] | 344 | ACPI_DMAR_SCOPE_TYPE_IOAPIC = 3, |
| 345 | ACPI_DMAR_SCOPE_TYPE_HPET = 4, |
| 346 | ACPI_DMAR_SCOPE_TYPE_RESERVED = 5 /* 5 and greater are reserved */ |
| 347 | }; |
| 348 | |
| 349 | struct acpi_dmar_pci_path { |
| 350 | u8 dev; |
| 351 | u8 fn; |
Bob Moore | 2502fff | 2007-02-02 19:48:19 +0300 | [diff] [blame] | 352 | }; |
| 353 | |
| 354 | /* |
| 355 | * DMAR Sub-tables, correspond to Type in struct acpi_dmar_header |
| 356 | */ |
| 357 | |
| 358 | /* 0: Hardware Unit Definition */ |
| 359 | |
| 360 | struct acpi_dmar_hardware_unit { |
| 361 | struct acpi_dmar_header header; |
Keshavamurthy, Anil S | 10e5247 | 2007-10-21 16:41:41 -0700 | [diff] [blame] | 362 | u8 flags; |
| 363 | u8 reserved; |
| 364 | u16 segment; |
Bob Moore | 2502fff | 2007-02-02 19:48:19 +0300 | [diff] [blame] | 365 | u64 address; /* Register Base Address */ |
| 366 | }; |
| 367 | |
| 368 | /* Flags */ |
| 369 | |
| 370 | #define ACPI_DMAR_INCLUDE_ALL (1) |
| 371 | |
| 372 | /* 1: Reserved Memory Defininition */ |
| 373 | |
| 374 | struct acpi_dmar_reserved_memory { |
| 375 | struct acpi_dmar_header header; |
Keshavamurthy, Anil S | 10e5247 | 2007-10-21 16:41:41 -0700 | [diff] [blame] | 376 | u16 reserved; |
| 377 | u16 segment; |
| 378 | u64 base_address; /* 4_k aligned base address */ |
Bob Moore | 2502fff | 2007-02-02 19:48:19 +0300 | [diff] [blame] | 379 | u64 end_address; /* 4_k aligned limit address */ |
| 380 | }; |
| 381 | |
| 382 | /* Flags */ |
| 383 | |
| 384 | #define ACPI_DMAR_ALLOW_ALL (1) |
| 385 | |
Bob Moore | 19d0cfe | 2008-06-10 15:54:40 +0800 | [diff] [blame^] | 386 | |
| 387 | /* 2: Root Port ATS Capability Reporting Structure */ |
| 388 | |
| 389 | struct acpi_dmar_atsr { |
| 390 | struct acpi_dmar_header header; |
| 391 | u8 flags; |
| 392 | u8 reserved; |
| 393 | u16 segment; |
| 394 | }; |
| 395 | |
| 396 | /* Flags */ |
| 397 | |
| 398 | #define ACPI_DMAR_ALL_PORTS (1) |
| 399 | |
Bob Moore | 2502fff | 2007-02-02 19:48:19 +0300 | [diff] [blame] | 400 | /******************************************************************************* |
| 401 | * |
Bob Moore | 793c238 | 2006-03-31 00:00:00 -0500 | [diff] [blame] | 402 | * ECDT - Embedded Controller Boot Resources Table |
| 403 | * |
| 404 | ******************************************************************************/ |
| 405 | |
Bob Moore | f3d2e78 | 2007-02-02 19:48:18 +0300 | [diff] [blame] | 406 | struct acpi_table_ecdt { |
| 407 | struct acpi_table_header header; /* Common ACPI table header */ |
| 408 | struct acpi_generic_address control; /* Address of EC command/status register */ |
| 409 | struct acpi_generic_address data; /* Address of EC data register */ |
Bob Moore | 793c238 | 2006-03-31 00:00:00 -0500 | [diff] [blame] | 410 | u32 uid; /* Unique ID - must be same as the EC _UID method */ |
Bob Moore | f3d2e78 | 2007-02-02 19:48:18 +0300 | [diff] [blame] | 411 | u8 gpe; /* The GPE for the EC */ |
| 412 | u8 id[1]; /* Full namepath of the EC in the ACPI namespace */ |
Bob Moore | 793c238 | 2006-03-31 00:00:00 -0500 | [diff] [blame] | 413 | }; |
| 414 | |
| 415 | /******************************************************************************* |
| 416 | * |
Bob Moore | 970d9c9 | 2008-04-10 19:06:42 +0400 | [diff] [blame] | 417 | * EINJ - Error Injection Table |
| 418 | * |
| 419 | ******************************************************************************/ |
| 420 | |
| 421 | struct acpi_table_einj { |
| 422 | struct acpi_table_header header; /* Common ACPI table header */ |
| 423 | u32 header_length; |
| 424 | u32 reserved; |
| 425 | u32 entries; |
| 426 | }; |
| 427 | |
| 428 | /* EINJ Injection Instruction Entries (actions) */ |
| 429 | |
| 430 | struct acpi_einj_entry { |
| 431 | struct acpi_whea_header whea_header; /* Common header for WHEA tables */ |
| 432 | }; |
| 433 | |
| 434 | /* Values for Action field above */ |
| 435 | |
| 436 | enum acpi_einj_actions { |
| 437 | ACPI_EINJ_BEGIN_OPERATION = 0, |
| 438 | ACPI_EINJ_GET_TRIGGER_TABLE = 1, |
| 439 | ACPI_EINJ_SET_ERROR_TYPE = 2, |
| 440 | ACPI_EINJ_GET_ERROR_TYPE = 3, |
| 441 | ACPI_EINJ_END_OPERATION = 4, |
| 442 | ACPI_EINJ_EXECUTE_OPERATION = 5, |
| 443 | ACPI_EINJ_CHECK_BUSY_STATUS = 6, |
| 444 | ACPI_EINJ_GET_COMMAND_STATUS = 7, |
| 445 | ACPI_EINJ_ACTION_RESERVED = 8, /* 8 and greater are reserved */ |
| 446 | ACPI_EINJ_TRIGGER_ERROR = 0xFF /* Except for this value */ |
| 447 | }; |
| 448 | |
| 449 | /* Values for Instruction field above */ |
| 450 | |
| 451 | enum acpi_einj_instructions { |
| 452 | ACPI_EINJ_READ_REGISTER = 0, |
| 453 | ACPI_EINJ_READ_REGISTER_VALUE = 1, |
| 454 | ACPI_EINJ_WRITE_REGISTER = 2, |
| 455 | ACPI_EINJ_WRITE_REGISTER_VALUE = 3, |
| 456 | ACPI_EINJ_NOOP = 4, |
| 457 | ACPI_EINJ_INSTRUCTION_RESERVED = 5 /* 5 and greater are reserved */ |
| 458 | }; |
| 459 | |
Bob Moore | 3fa3477 | 2008-04-10 19:06:43 +0400 | [diff] [blame] | 460 | /* EINJ Trigger Error Action Table */ |
| 461 | |
| 462 | struct acpi_einj_trigger { |
| 463 | u32 header_size; |
| 464 | u32 revision; |
| 465 | u32 table_size; |
| 466 | u32 entry_count; |
| 467 | }; |
| 468 | |
Bob Moore | 970d9c9 | 2008-04-10 19:06:42 +0400 | [diff] [blame] | 469 | /******************************************************************************* |
| 470 | * |
| 471 | * ERST - Error Record Serialization Table |
| 472 | * |
| 473 | ******************************************************************************/ |
| 474 | |
| 475 | struct acpi_table_erst { |
| 476 | struct acpi_table_header header; /* Common ACPI table header */ |
| 477 | u32 header_length; |
| 478 | u32 reserved; |
| 479 | u32 entries; |
| 480 | }; |
| 481 | |
| 482 | /* ERST Serialization Entries (actions) */ |
| 483 | |
| 484 | struct acpi_erst_entry { |
| 485 | struct acpi_whea_header whea_header; /* Common header for WHEA tables */ |
| 486 | }; |
| 487 | |
| 488 | /* Values for Action field above */ |
| 489 | |
| 490 | enum acpi_erst_actions { |
| 491 | ACPI_ERST_BEGIN_WRITE_OPERATION = 0, |
| 492 | ACPI_ERST_BEGIN_READ_OPERATION = 1, |
| 493 | ACPI_ERST_BETGIN_CLEAR_OPERATION = 2, |
| 494 | ACPI_ERST_END_OPERATION = 3, |
| 495 | ACPI_ERST_SET_RECORD_OFFSET = 4, |
| 496 | ACPI_ERST_EXECUTE_OPERATION = 5, |
| 497 | ACPI_ERST_CHECK_BUSY_STATUS = 6, |
| 498 | ACPI_ERST_GET_COMMAND_STATUS = 7, |
| 499 | ACPI_ERST_GET_RECORD_IDENTIFIER = 8, |
| 500 | ACPI_ERST_SET_RECORD_IDENTIFIER = 9, |
| 501 | ACPI_ERST_GET_RECORD_COUNT = 10, |
| 502 | ACPI_ERST_BEGIN_DUMMY_WRIITE = 11, |
| 503 | ACPI_ERST_NOT_USED = 12, |
| 504 | ACPI_ERST_GET_ERROR_RANGE = 13, |
| 505 | ACPI_ERST_GET_ERROR_LENGTH = 14, |
| 506 | ACPI_ERST_GET_ERROR_ATTRIBUTES = 15, |
| 507 | ACPI_ERST_ACTION_RESERVED = 16 /* 16 and greater are reserved */ |
| 508 | }; |
| 509 | |
| 510 | /* Values for Instruction field above */ |
| 511 | |
| 512 | enum acpi_erst_instructions { |
| 513 | ACPI_ERST_READ_REGISTER = 0, |
| 514 | ACPI_ERST_READ_REGISTER_VALUE = 1, |
| 515 | ACPI_ERST_WRITE_REGISTER = 2, |
| 516 | ACPI_ERST_WRITE_REGISTER_VALUE = 3, |
| 517 | ACPI_ERST_NOOP = 4, |
| 518 | ACPI_ERST_LOAD_VAR1 = 5, |
| 519 | ACPI_ERST_LOAD_VAR2 = 6, |
| 520 | ACPI_ERST_STORE_VAR1 = 7, |
| 521 | ACPI_ERST_ADD = 8, |
| 522 | ACPI_ERST_SUBTRACT = 9, |
| 523 | ACPI_ERST_ADD_VALUE = 10, |
| 524 | ACPI_ERST_SUBTRACT_VALUE = 11, |
| 525 | ACPI_ERST_STALL = 12, |
| 526 | ACPI_ERST_STALL_WHILE_TRUE = 13, |
| 527 | ACPI_ERST_SKIP_NEXT_IF_TRUE = 14, |
| 528 | ACPI_ERST_GOTO = 15, |
| 529 | ACPI_ERST_SET_SRC_ADDRESS_BASE = 16, |
| 530 | ACPI_ERST_SET_DST_ADDRESS_BASE = 17, |
| 531 | ACPI_ERST_MOVE_DATA = 18, |
| 532 | ACPI_ERST_INSTRUCTION_RESERVED = 19 /* 19 and greater are reserved */ |
| 533 | }; |
| 534 | |
| 535 | /******************************************************************************* |
| 536 | * |
| 537 | * HEST - Hardware Error Source Table |
| 538 | * |
| 539 | ******************************************************************************/ |
| 540 | |
| 541 | struct acpi_table_hest { |
| 542 | struct acpi_table_header header; /* Common ACPI table header */ |
| 543 | u32 error_source_count; |
| 544 | }; |
| 545 | |
Bob Moore | 3fa3477 | 2008-04-10 19:06:43 +0400 | [diff] [blame] | 546 | /* HEST subtable header */ |
| 547 | |
| 548 | struct acpi_hest_header { |
| 549 | u16 type; |
| 550 | }; |
| 551 | |
| 552 | /* Values for Type field above for subtables */ |
| 553 | |
| 554 | enum acpi_hest_types { |
| 555 | ACPI_HEST_TYPE_XPF_MACHINE_CHECK = 0, |
| 556 | ACPI_HEST_TYPE_XPF_CORRECTED_MACHINE_CHECK = 1, |
| 557 | ACPI_HEST_TYPE_XPF_UNUSED = 2, |
| 558 | ACPI_HEST_TYPE_XPF_NON_MASKABLE_INTERRUPT = 3, |
| 559 | ACPI_HEST_TYPE_IPF_CORRECTED_MACHINE_CHECK = 4, |
| 560 | ACPI_HEST_TYPE_IPF_CORRECTED_PLATFORM_ERROR = 5, |
| 561 | ACPI_HEST_TYPE_AER_ROOT_PORT = 6, |
| 562 | ACPI_HEST_TYPE_AER_ENDPOINT = 7, |
| 563 | ACPI_HEST_TYPE_AER_BRIDGE = 8, |
| 564 | ACPI_HEST_TYPE_GENERIC_HARDWARE_ERROR_SOURCE = 9, |
| 565 | ACPI_HEST_TYPE_RESERVED = 10 /* 10 and greater are reserved */ |
| 566 | }; |
| 567 | |
| 568 | /* |
| 569 | * HEST Sub-subtables |
| 570 | */ |
| 571 | |
| 572 | /* XPF Machine Check Error Bank */ |
| 573 | |
| 574 | struct acpi_hest_xpf_error_bank { |
| 575 | u8 bank_number; |
| 576 | u8 clear_status_on_init; |
| 577 | u8 status_format; |
| 578 | u8 config_write_enable; |
| 579 | u32 control_register; |
| 580 | u64 control_init_data; |
| 581 | u32 status_register; |
| 582 | u32 address_register; |
| 583 | u32 misc_register; |
| 584 | }; |
| 585 | |
| 586 | /* Generic Error Status */ |
| 587 | |
| 588 | struct acpi_hest_generic_status { |
| 589 | u32 block_status; |
| 590 | u32 raw_data_offset; |
| 591 | u32 raw_data_length; |
| 592 | u32 data_length; |
| 593 | u32 error_severity; |
| 594 | }; |
| 595 | |
| 596 | /* Generic Error Data */ |
| 597 | |
| 598 | struct acpi_hest_generic_data { |
| 599 | u8 section_type[16]; |
| 600 | u32 error_severity; |
| 601 | u16 revision; |
| 602 | u8 validation_bits; |
| 603 | u8 flags; |
| 604 | u32 error_data_length; |
| 605 | u8 fru_id[16]; |
| 606 | u8 fru_text[20]; |
| 607 | }; |
| 608 | |
| 609 | /* Common HEST structure for PCI/AER types below (6,7,8) */ |
| 610 | |
| 611 | struct acpi_hest_aer_common { |
| 612 | u16 source_id; |
| 613 | u16 config_write_enable; |
| 614 | u8 flags; |
| 615 | u8 enabled; |
| 616 | u32 records_to_pre_allocate; |
| 617 | u32 max_sections_per_record; |
| 618 | u32 bus; |
| 619 | u16 device; |
| 620 | u16 function; |
| 621 | u16 device_control; |
| 622 | u16 reserved; |
| 623 | u32 uncorrectable_error_mask; |
| 624 | u32 uncorrectable_error_severity; |
| 625 | u32 correctable_error_mask; |
| 626 | u32 advanced_error_cababilities; |
| 627 | }; |
| 628 | |
| 629 | /* Hardware Error Notification */ |
| 630 | |
| 631 | struct acpi_hest_notify { |
| 632 | u8 type; |
| 633 | u8 length; |
| 634 | u16 config_write_enable; |
| 635 | u32 poll_interval; |
| 636 | u32 vector; |
| 637 | u32 polling_threshold_value; |
| 638 | u32 polling_threshold_window; |
| 639 | u32 error_threshold_value; |
| 640 | u32 error_threshold_window; |
| 641 | }; |
| 642 | |
| 643 | /* Values for Notify Type field above */ |
| 644 | |
| 645 | enum acpi_hest_notify_types { |
| 646 | ACPI_HEST_NOTIFY_POLLED = 0, |
| 647 | ACPI_HEST_NOTIFY_EXTERNAL = 1, |
| 648 | ACPI_HEST_NOTIFY_LOCAL = 2, |
| 649 | ACPI_HEST_NOTIFY_SCI = 3, |
| 650 | ACPI_HEST_NOTIFY_NMI = 4, |
| 651 | ACPI_HEST_NOTIFY_RESERVED = 5 /* 5 and greater are reserved */ |
| 652 | }; |
| 653 | |
| 654 | /* |
| 655 | * HEST subtables |
| 656 | * |
| 657 | * From WHEA Design Document, 16 May 2007. |
| 658 | * Note: There is no subtable type 2 in this version of the document, |
| 659 | * and there are two different subtable type 3s. |
| 660 | */ |
| 661 | |
| 662 | /* 0: XPF Machine Check Exception */ |
| 663 | |
| 664 | struct acpi_hest_xpf_machine_check { |
| 665 | struct acpi_hest_header header; |
| 666 | u16 source_id; |
| 667 | u16 config_write_enable; |
| 668 | u8 flags; |
| 669 | u8 reserved1; |
| 670 | u32 records_to_pre_allocate; |
| 671 | u32 max_sections_per_record; |
| 672 | u64 global_capability_data; |
| 673 | u64 global_control_data; |
| 674 | u8 num_hardware_banks; |
| 675 | u8 reserved2[7]; |
| 676 | }; |
| 677 | |
| 678 | /* 1: XPF Corrected Machine Check */ |
| 679 | |
| 680 | struct acpi_table_hest_xpf_corrected { |
| 681 | struct acpi_hest_header header; |
| 682 | u16 source_id; |
| 683 | u16 config_write_enable; |
| 684 | u8 flags; |
| 685 | u8 enabled; |
| 686 | u32 records_to_pre_allocate; |
| 687 | u32 max_sections_per_record; |
| 688 | struct acpi_hest_notify notify; |
| 689 | u8 num_hardware_banks; |
| 690 | u8 reserved[3]; |
| 691 | }; |
| 692 | |
| 693 | /* 3: XPF Non-Maskable Interrupt */ |
| 694 | |
| 695 | struct acpi_hest_xpf_nmi { |
| 696 | struct acpi_hest_header header; |
| 697 | u16 source_id; |
| 698 | u32 reserved; |
| 699 | u32 records_to_pre_allocate; |
| 700 | u32 max_sections_per_record; |
| 701 | u32 max_raw_data_length; |
| 702 | }; |
| 703 | |
| 704 | /* 4: IPF Corrected Machine Check */ |
| 705 | |
| 706 | struct acpi_hest_ipf_corrected { |
| 707 | struct acpi_hest_header header; |
| 708 | u8 enabled; |
| 709 | u8 reserved; |
| 710 | }; |
| 711 | |
| 712 | /* 5: IPF Corrected Platform Error */ |
| 713 | |
| 714 | struct acpi_hest_ipf_corrected_platform { |
| 715 | struct acpi_hest_header header; |
| 716 | u8 enabled; |
| 717 | u8 reserved; |
| 718 | }; |
| 719 | |
| 720 | /* 6: PCI Express Root Port AER */ |
| 721 | |
| 722 | struct acpi_hest_aer_root { |
| 723 | struct acpi_hest_header header; |
| 724 | struct acpi_hest_aer_common aer; |
| 725 | u32 root_error_command; |
| 726 | }; |
| 727 | |
| 728 | /* 7: PCI Express AER (AER Endpoint) */ |
| 729 | |
| 730 | struct acpi_hest_aer { |
| 731 | struct acpi_hest_header header; |
| 732 | struct acpi_hest_aer_common aer; |
| 733 | }; |
| 734 | |
| 735 | /* 8: PCI Express/PCI-X Bridge AER */ |
| 736 | |
| 737 | struct acpi_hest_aer_bridge { |
| 738 | struct acpi_hest_header header; |
| 739 | struct acpi_hest_aer_common aer; |
| 740 | u32 secondary_uncorrectable_error_mask; |
| 741 | u32 secondary_uncorrectable_error_severity; |
| 742 | u32 secondary_advanced_capabilities; |
| 743 | }; |
| 744 | |
| 745 | /* 9: Generic Hardware Error Source */ |
| 746 | |
| 747 | struct acpi_hest_generic { |
| 748 | struct acpi_hest_header header; |
| 749 | u16 source_id; |
| 750 | u16 related_source_id; |
| 751 | u8 config_write_enable; |
| 752 | u8 enabled; |
| 753 | u32 records_to_pre_allocate; |
| 754 | u32 max_sections_per_record; |
| 755 | u32 max_raw_data_length; |
| 756 | struct acpi_generic_address error_status_address; |
| 757 | struct acpi_hest_notify notify; |
| 758 | u32 error_status_block_length; |
| 759 | }; |
Bob Moore | 970d9c9 | 2008-04-10 19:06:42 +0400 | [diff] [blame] | 760 | |
| 761 | /******************************************************************************* |
| 762 | * |
Bob Moore | 793c238 | 2006-03-31 00:00:00 -0500 | [diff] [blame] | 763 | * HPET - High Precision Event Timer table |
| 764 | * |
| 765 | ******************************************************************************/ |
| 766 | |
Bob Moore | f3d2e78 | 2007-02-02 19:48:18 +0300 | [diff] [blame] | 767 | struct acpi_table_hpet { |
| 768 | struct acpi_table_header header; /* Common ACPI table header */ |
| 769 | u32 id; /* Hardware ID of event timer block */ |
| 770 | struct acpi_generic_address address; /* Address of event timer block */ |
| 771 | u8 sequence; /* HPET sequence number */ |
| 772 | u16 minimum_tick; /* Main counter min tick, periodic mode */ |
| 773 | u8 flags; |
Bob Moore | 793c238 | 2006-03-31 00:00:00 -0500 | [diff] [blame] | 774 | }; |
| 775 | |
Bob Moore | f3d2e78 | 2007-02-02 19:48:18 +0300 | [diff] [blame] | 776 | /*! Flags */ |
| 777 | |
| 778 | #define ACPI_HPET_PAGE_PROTECT (1) /* 00: No page protection */ |
| 779 | #define ACPI_HPET_PAGE_PROTECT_4 (1<<1) /* 01: 4KB page protected */ |
| 780 | #define ACPI_HPET_PAGE_PROTECT_64 (1<<2) /* 02: 64KB page protected */ |
| 781 | |
| 782 | /*! [End] no source code translation !*/ |
Bob Moore | 793c238 | 2006-03-31 00:00:00 -0500 | [diff] [blame] | 783 | |
| 784 | /******************************************************************************* |
| 785 | * |
Bob Moore | 3fa3477 | 2008-04-10 19:06:43 +0400 | [diff] [blame] | 786 | * IBFT - Boot Firmware Table |
Bob Moore | 970d9c9 | 2008-04-10 19:06:42 +0400 | [diff] [blame] | 787 | * |
| 788 | ******************************************************************************/ |
| 789 | |
| 790 | struct acpi_table_ibft { |
| 791 | struct acpi_table_header header; /* Common ACPI table header */ |
| 792 | u8 reserved[12]; |
| 793 | }; |
| 794 | |
| 795 | /* IBFT common subtable header */ |
| 796 | |
| 797 | struct acpi_ibft_header { |
| 798 | u8 type; |
| 799 | u8 version; |
| 800 | u16 length; |
| 801 | u8 index; |
| 802 | u8 flags; |
| 803 | }; |
| 804 | |
| 805 | /* Values for Type field above */ |
| 806 | |
| 807 | enum acpi_ibft_type { |
| 808 | ACPI_IBFT_TYPE_NOT_USED = 0, |
| 809 | ACPI_IBFT_TYPE_CONTROL = 1, |
| 810 | ACPI_IBFT_TYPE_INITIATOR = 2, |
| 811 | ACPI_IBFT_TYPE_NIC = 3, |
| 812 | ACPI_IBFT_TYPE_TARGET = 4, |
| 813 | ACPI_IBFT_TYPE_EXTENSIONS = 5, |
| 814 | ACPI_IBFT_TYPE_RESERVED = 6 /* 6 and greater are reserved */ |
| 815 | }; |
| 816 | |
| 817 | /* IBFT subtables */ |
| 818 | |
| 819 | struct acpi_ibft_control { |
| 820 | struct acpi_ibft_header header; |
| 821 | u16 extensions; |
| 822 | u16 initiator_offset; |
| 823 | u16 nic0_offset; |
| 824 | u16 target0_offset; |
| 825 | u16 nic1_offset; |
| 826 | u16 target1_offset; |
| 827 | }; |
| 828 | |
| 829 | struct acpi_ibft_initiator { |
| 830 | struct acpi_ibft_header header; |
| 831 | u8 sns_server[16]; |
| 832 | u8 slp_server[16]; |
| 833 | u8 primary_server[16]; |
| 834 | u8 secondary_server[16]; |
| 835 | u16 name_length; |
| 836 | u16 name_offset; |
| 837 | }; |
| 838 | |
| 839 | struct acpi_ibft_nic { |
| 840 | struct acpi_ibft_header header; |
| 841 | u8 ip_address[16]; |
| 842 | u8 subnet_mask_prefix; |
| 843 | u8 origin; |
| 844 | u8 gateway[16]; |
| 845 | u8 primary_dns[16]; |
| 846 | u8 secondary_dns[16]; |
| 847 | u8 dhcp[16]; |
| 848 | u16 vlan; |
| 849 | u8 mac_address[6]; |
| 850 | u16 pci_address; |
| 851 | u16 name_length; |
| 852 | u16 name_offset; |
| 853 | }; |
| 854 | |
| 855 | struct acpi_ibft_target { |
| 856 | struct acpi_ibft_header header; |
| 857 | u8 target_ip_address[16]; |
| 858 | u16 target_ip_socket; |
| 859 | u8 target_boot_lun[8]; |
| 860 | u8 chap_type; |
| 861 | u8 nic_association; |
| 862 | u16 target_name_length; |
| 863 | u16 target_name_offset; |
| 864 | u16 chap_name_length; |
| 865 | u16 chap_name_offset; |
| 866 | u16 chap_secret_length; |
| 867 | u16 chap_secret_offset; |
| 868 | u16 reverse_chap_name_length; |
| 869 | u16 reverse_chap_name_offset; |
| 870 | u16 reverse_chap_secret_length; |
| 871 | u16 reverse_chap_secret_offset; |
| 872 | }; |
| 873 | |
| 874 | /******************************************************************************* |
| 875 | * |
Bob Moore | 793c238 | 2006-03-31 00:00:00 -0500 | [diff] [blame] | 876 | * MADT - Multiple APIC Description Table |
| 877 | * |
| 878 | ******************************************************************************/ |
| 879 | |
Bob Moore | f3d2e78 | 2007-02-02 19:48:18 +0300 | [diff] [blame] | 880 | struct acpi_table_madt { |
| 881 | struct acpi_table_header header; /* Common ACPI table header */ |
| 882 | u32 address; /* Physical address of local APIC */ |
| 883 | u32 flags; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 884 | }; |
| 885 | |
Bob Moore | f3d2e78 | 2007-02-02 19:48:18 +0300 | [diff] [blame] | 886 | /* Flags */ |
Bob Moore | 793c238 | 2006-03-31 00:00:00 -0500 | [diff] [blame] | 887 | |
Bob Moore | f3d2e78 | 2007-02-02 19:48:18 +0300 | [diff] [blame] | 888 | #define ACPI_MADT_PCAT_COMPAT (1) /* 00: System also has dual 8259s */ |
Bob Moore | 793c238 | 2006-03-31 00:00:00 -0500 | [diff] [blame] | 889 | |
Bob Moore | f3d2e78 | 2007-02-02 19:48:18 +0300 | [diff] [blame] | 890 | /* Values for PCATCompat flag */ |
Bob Moore | 793c238 | 2006-03-31 00:00:00 -0500 | [diff] [blame] | 891 | |
Bob Moore | f3d2e78 | 2007-02-02 19:48:18 +0300 | [diff] [blame] | 892 | #define ACPI_MADT_DUAL_PIC 0 |
| 893 | #define ACPI_MADT_MULTIPLE_APIC 1 |
Bob Moore | 793c238 | 2006-03-31 00:00:00 -0500 | [diff] [blame] | 894 | |
Bob Moore | f3d2e78 | 2007-02-02 19:48:18 +0300 | [diff] [blame] | 895 | /* Values for subtable type in struct acpi_subtable_header */ |
Bob Moore | 793c238 | 2006-03-31 00:00:00 -0500 | [diff] [blame] | 896 | |
Bob Moore | f3d2e78 | 2007-02-02 19:48:18 +0300 | [diff] [blame] | 897 | enum acpi_madt_type { |
| 898 | ACPI_MADT_TYPE_LOCAL_APIC = 0, |
| 899 | ACPI_MADT_TYPE_IO_APIC = 1, |
| 900 | ACPI_MADT_TYPE_INTERRUPT_OVERRIDE = 2, |
| 901 | ACPI_MADT_TYPE_NMI_SOURCE = 3, |
| 902 | ACPI_MADT_TYPE_LOCAL_APIC_NMI = 4, |
| 903 | ACPI_MADT_TYPE_LOCAL_APIC_OVERRIDE = 5, |
| 904 | ACPI_MADT_TYPE_IO_SAPIC = 6, |
| 905 | ACPI_MADT_TYPE_LOCAL_SAPIC = 7, |
| 906 | ACPI_MADT_TYPE_INTERRUPT_SOURCE = 8, |
| 907 | ACPI_MADT_TYPE_RESERVED = 9 /* 9 and greater are reserved */ |
| 908 | }; |
Bob Moore | 793c238 | 2006-03-31 00:00:00 -0500 | [diff] [blame] | 909 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 910 | /* |
Bob Moore | f3d2e78 | 2007-02-02 19:48:18 +0300 | [diff] [blame] | 911 | * MADT Sub-tables, correspond to Type in struct acpi_subtable_header |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 912 | */ |
Bob Moore | 793c238 | 2006-03-31 00:00:00 -0500 | [diff] [blame] | 913 | |
Bob Moore | f3d2e78 | 2007-02-02 19:48:18 +0300 | [diff] [blame] | 914 | /* 0: Processor Local APIC */ |
Bob Moore | 793c238 | 2006-03-31 00:00:00 -0500 | [diff] [blame] | 915 | |
Bob Moore | f3d2e78 | 2007-02-02 19:48:18 +0300 | [diff] [blame] | 916 | struct acpi_madt_local_apic { |
| 917 | struct acpi_subtable_header header; |
| 918 | u8 processor_id; /* ACPI processor id */ |
| 919 | u8 id; /* Processor's local APIC id */ |
| 920 | u32 lapic_flags; |
| 921 | }; |
Bob Moore | 793c238 | 2006-03-31 00:00:00 -0500 | [diff] [blame] | 922 | |
| 923 | /* 1: IO APIC */ |
| 924 | |
Bob Moore | f3d2e78 | 2007-02-02 19:48:18 +0300 | [diff] [blame] | 925 | struct acpi_madt_io_apic { |
| 926 | struct acpi_subtable_header header; |
| 927 | u8 id; /* I/O APIC ID */ |
Bob Moore | 793c238 | 2006-03-31 00:00:00 -0500 | [diff] [blame] | 928 | u8 reserved; /* Reserved - must be zero */ |
| 929 | u32 address; /* APIC physical address */ |
Bob Moore | f3d2e78 | 2007-02-02 19:48:18 +0300 | [diff] [blame] | 930 | u32 global_irq_base; /* Global system interrupt where INTI lines start */ |
Bob Moore | 793c238 | 2006-03-31 00:00:00 -0500 | [diff] [blame] | 931 | }; |
| 932 | |
| 933 | /* 2: Interrupt Override */ |
| 934 | |
Bob Moore | f3d2e78 | 2007-02-02 19:48:18 +0300 | [diff] [blame] | 935 | struct acpi_madt_interrupt_override { |
| 936 | struct acpi_subtable_header header; |
| 937 | u8 bus; /* 0 - ISA */ |
| 938 | u8 source_irq; /* Interrupt source (IRQ) */ |
| 939 | u32 global_irq; /* Global system interrupt */ |
| 940 | u16 inti_flags; |
| 941 | }; |
Bob Moore | 793c238 | 2006-03-31 00:00:00 -0500 | [diff] [blame] | 942 | |
Bob Moore | f3d2e78 | 2007-02-02 19:48:18 +0300 | [diff] [blame] | 943 | /* 3: NMI Source */ |
Bob Moore | 793c238 | 2006-03-31 00:00:00 -0500 | [diff] [blame] | 944 | |
Bob Moore | f3d2e78 | 2007-02-02 19:48:18 +0300 | [diff] [blame] | 945 | struct acpi_madt_nmi_source { |
| 946 | struct acpi_subtable_header header; |
| 947 | u16 inti_flags; |
| 948 | u32 global_irq; /* Global system interrupt */ |
Bob Moore | 793c238 | 2006-03-31 00:00:00 -0500 | [diff] [blame] | 949 | }; |
| 950 | |
| 951 | /* 4: Local APIC NMI */ |
| 952 | |
Bob Moore | f3d2e78 | 2007-02-02 19:48:18 +0300 | [diff] [blame] | 953 | struct acpi_madt_local_apic_nmi { |
| 954 | struct acpi_subtable_header header; |
| 955 | u8 processor_id; /* ACPI processor id */ |
| 956 | u16 inti_flags; |
| 957 | u8 lint; /* LINTn to which NMI is connected */ |
Bob Moore | 793c238 | 2006-03-31 00:00:00 -0500 | [diff] [blame] | 958 | }; |
| 959 | |
| 960 | /* 5: Address Override */ |
| 961 | |
Bob Moore | f3d2e78 | 2007-02-02 19:48:18 +0300 | [diff] [blame] | 962 | struct acpi_madt_local_apic_override { |
| 963 | struct acpi_subtable_header header; |
| 964 | u16 reserved; /* Reserved, must be zero */ |
Bob Moore | 793c238 | 2006-03-31 00:00:00 -0500 | [diff] [blame] | 965 | u64 address; /* APIC physical address */ |
| 966 | }; |
| 967 | |
| 968 | /* 6: I/O Sapic */ |
| 969 | |
Bob Moore | f3d2e78 | 2007-02-02 19:48:18 +0300 | [diff] [blame] | 970 | struct acpi_madt_io_sapic { |
| 971 | struct acpi_subtable_header header; |
| 972 | u8 id; /* I/O SAPIC ID */ |
Bob Moore | 793c238 | 2006-03-31 00:00:00 -0500 | [diff] [blame] | 973 | u8 reserved; /* Reserved, must be zero */ |
Bob Moore | f3d2e78 | 2007-02-02 19:48:18 +0300 | [diff] [blame] | 974 | u32 global_irq_base; /* Global interrupt for SAPIC start */ |
Bob Moore | 793c238 | 2006-03-31 00:00:00 -0500 | [diff] [blame] | 975 | u64 address; /* SAPIC physical address */ |
| 976 | }; |
| 977 | |
| 978 | /* 7: Local Sapic */ |
| 979 | |
Bob Moore | f3d2e78 | 2007-02-02 19:48:18 +0300 | [diff] [blame] | 980 | struct acpi_madt_local_sapic { |
| 981 | struct acpi_subtable_header header; |
| 982 | u8 processor_id; /* ACPI processor id */ |
| 983 | u8 id; /* SAPIC ID */ |
| 984 | u8 eid; /* SAPIC EID */ |
Bob Moore | 793c238 | 2006-03-31 00:00:00 -0500 | [diff] [blame] | 985 | u8 reserved[3]; /* Reserved, must be zero */ |
Bob Moore | f3d2e78 | 2007-02-02 19:48:18 +0300 | [diff] [blame] | 986 | u32 lapic_flags; |
| 987 | u32 uid; /* Numeric UID - ACPI 3.0 */ |
| 988 | char uid_string[1]; /* String UID - ACPI 3.0 */ |
Bob Moore | 793c238 | 2006-03-31 00:00:00 -0500 | [diff] [blame] | 989 | }; |
| 990 | |
| 991 | /* 8: Platform Interrupt Source */ |
| 992 | |
Bob Moore | f3d2e78 | 2007-02-02 19:48:18 +0300 | [diff] [blame] | 993 | struct acpi_madt_interrupt_source { |
| 994 | struct acpi_subtable_header header; |
| 995 | u16 inti_flags; |
| 996 | u8 type; /* 1=PMI, 2=INIT, 3=corrected */ |
| 997 | u8 id; /* Processor ID */ |
| 998 | u8 eid; /* Processor EID */ |
Bob Moore | 793c238 | 2006-03-31 00:00:00 -0500 | [diff] [blame] | 999 | u8 io_sapic_vector; /* Vector value for PMI interrupts */ |
Bob Moore | f3d2e78 | 2007-02-02 19:48:18 +0300 | [diff] [blame] | 1000 | u32 global_irq; /* Global system interrupt */ |
Bob Moore | 793c238 | 2006-03-31 00:00:00 -0500 | [diff] [blame] | 1001 | u32 flags; /* Interrupt Source Flags */ |
| 1002 | }; |
| 1003 | |
Bob Moore | f3d2e78 | 2007-02-02 19:48:18 +0300 | [diff] [blame] | 1004 | /* Flags field above */ |
| 1005 | |
| 1006 | #define ACPI_MADT_CPEI_OVERRIDE (1) |
| 1007 | |
| 1008 | /* |
| 1009 | * Common flags fields for MADT subtables |
| 1010 | */ |
| 1011 | |
| 1012 | /* MADT Local APIC flags (lapic_flags) */ |
| 1013 | |
| 1014 | #define ACPI_MADT_ENABLED (1) /* 00: Processor is usable if set */ |
| 1015 | |
| 1016 | /* MADT MPS INTI flags (inti_flags) */ |
| 1017 | |
| 1018 | #define ACPI_MADT_POLARITY_MASK (3) /* 00-01: Polarity of APIC I/O input signals */ |
| 1019 | #define ACPI_MADT_TRIGGER_MASK (3<<2) /* 02-03: Trigger mode of APIC input signals */ |
| 1020 | |
| 1021 | /* Values for MPS INTI flags */ |
| 1022 | |
| 1023 | #define ACPI_MADT_POLARITY_CONFORMS 0 |
| 1024 | #define ACPI_MADT_POLARITY_ACTIVE_HIGH 1 |
| 1025 | #define ACPI_MADT_POLARITY_RESERVED 2 |
| 1026 | #define ACPI_MADT_POLARITY_ACTIVE_LOW 3 |
| 1027 | |
| 1028 | #define ACPI_MADT_TRIGGER_CONFORMS (0) |
| 1029 | #define ACPI_MADT_TRIGGER_EDGE (1<<2) |
| 1030 | #define ACPI_MADT_TRIGGER_RESERVED (2<<2) |
| 1031 | #define ACPI_MADT_TRIGGER_LEVEL (3<<2) |
| 1032 | |
Bob Moore | 793c238 | 2006-03-31 00:00:00 -0500 | [diff] [blame] | 1033 | /******************************************************************************* |
| 1034 | * |
| 1035 | * MCFG - PCI Memory Mapped Configuration table and sub-table |
| 1036 | * |
| 1037 | ******************************************************************************/ |
| 1038 | |
| 1039 | struct acpi_table_mcfg { |
Bob Moore | f3d2e78 | 2007-02-02 19:48:18 +0300 | [diff] [blame] | 1040 | struct acpi_table_header header; /* Common ACPI table header */ |
| 1041 | u8 reserved[8]; |
Bob Moore | 793c238 | 2006-03-31 00:00:00 -0500 | [diff] [blame] | 1042 | }; |
| 1043 | |
Bob Moore | f3d2e78 | 2007-02-02 19:48:18 +0300 | [diff] [blame] | 1044 | /* Subtable */ |
| 1045 | |
Bob Moore | 793c238 | 2006-03-31 00:00:00 -0500 | [diff] [blame] | 1046 | struct acpi_mcfg_allocation { |
Bob Moore | f3d2e78 | 2007-02-02 19:48:18 +0300 | [diff] [blame] | 1047 | u64 address; /* Base address, processor-relative */ |
Bob Moore | 793c238 | 2006-03-31 00:00:00 -0500 | [diff] [blame] | 1048 | u16 pci_segment; /* PCI segment group number */ |
| 1049 | u8 start_bus_number; /* Starting PCI Bus number */ |
| 1050 | u8 end_bus_number; /* Final PCI Bus number */ |
| 1051 | u32 reserved; |
| 1052 | }; |
Bob Moore | 793c238 | 2006-03-31 00:00:00 -0500 | [diff] [blame] | 1053 | |
| 1054 | /******************************************************************************* |
| 1055 | * |
| 1056 | * SBST - Smart Battery Specification Table |
| 1057 | * |
| 1058 | ******************************************************************************/ |
| 1059 | |
Bob Moore | f3d2e78 | 2007-02-02 19:48:18 +0300 | [diff] [blame] | 1060 | struct acpi_table_sbst { |
| 1061 | struct acpi_table_header header; /* Common ACPI table header */ |
| 1062 | u32 warning_level; |
Bob Moore | 793c238 | 2006-03-31 00:00:00 -0500 | [diff] [blame] | 1063 | u32 low_level; |
| 1064 | u32 critical_level; |
| 1065 | }; |
| 1066 | |
| 1067 | /******************************************************************************* |
| 1068 | * |
| 1069 | * SLIT - System Locality Distance Information Table |
| 1070 | * |
| 1071 | ******************************************************************************/ |
| 1072 | |
Bob Moore | f3d2e78 | 2007-02-02 19:48:18 +0300 | [diff] [blame] | 1073 | struct acpi_table_slit { |
| 1074 | struct acpi_table_header header; /* Common ACPI table header */ |
| 1075 | u64 locality_count; |
| 1076 | u8 entry[1]; /* Real size = localities^2 */ |
Bob Moore | 793c238 | 2006-03-31 00:00:00 -0500 | [diff] [blame] | 1077 | }; |
| 1078 | |
| 1079 | /******************************************************************************* |
| 1080 | * |
| 1081 | * SPCR - Serial Port Console Redirection table |
| 1082 | * |
| 1083 | ******************************************************************************/ |
| 1084 | |
| 1085 | struct acpi_table_spcr { |
Bob Moore | f3d2e78 | 2007-02-02 19:48:18 +0300 | [diff] [blame] | 1086 | struct acpi_table_header header; /* Common ACPI table header */ |
| 1087 | u8 interface_type; /* 0=full 16550, 1=subset of 16550 */ |
Bob Moore | 793c238 | 2006-03-31 00:00:00 -0500 | [diff] [blame] | 1088 | u8 reserved[3]; |
| 1089 | struct acpi_generic_address serial_port; |
| 1090 | u8 interrupt_type; |
| 1091 | u8 pc_interrupt; |
| 1092 | u32 interrupt; |
| 1093 | u8 baud_rate; |
| 1094 | u8 parity; |
| 1095 | u8 stop_bits; |
| 1096 | u8 flow_control; |
| 1097 | u8 terminal_type; |
Bob Moore | f3d2e78 | 2007-02-02 19:48:18 +0300 | [diff] [blame] | 1098 | u8 reserved1; |
Bob Moore | 793c238 | 2006-03-31 00:00:00 -0500 | [diff] [blame] | 1099 | u16 pci_device_id; |
| 1100 | u16 pci_vendor_id; |
| 1101 | u8 pci_bus; |
| 1102 | u8 pci_device; |
| 1103 | u8 pci_function; |
| 1104 | u32 pci_flags; |
| 1105 | u8 pci_segment; |
Bob Moore | f3d2e78 | 2007-02-02 19:48:18 +0300 | [diff] [blame] | 1106 | u32 reserved2; |
Bob Moore | 793c238 | 2006-03-31 00:00:00 -0500 | [diff] [blame] | 1107 | }; |
| 1108 | |
| 1109 | /******************************************************************************* |
| 1110 | * |
| 1111 | * SPMI - Server Platform Management Interface table |
| 1112 | * |
| 1113 | ******************************************************************************/ |
| 1114 | |
| 1115 | struct acpi_table_spmi { |
Bob Moore | f3d2e78 | 2007-02-02 19:48:18 +0300 | [diff] [blame] | 1116 | struct acpi_table_header header; /* Common ACPI table header */ |
| 1117 | u8 reserved; |
Bob Moore | 793c238 | 2006-03-31 00:00:00 -0500 | [diff] [blame] | 1118 | u8 interface_type; |
| 1119 | u16 spec_revision; /* Version of IPMI */ |
| 1120 | u8 interrupt_type; |
| 1121 | u8 gpe_number; /* GPE assigned */ |
Bob Moore | f3d2e78 | 2007-02-02 19:48:18 +0300 | [diff] [blame] | 1122 | u8 reserved1; |
Bob Moore | 793c238 | 2006-03-31 00:00:00 -0500 | [diff] [blame] | 1123 | u8 pci_device_flag; |
| 1124 | u32 interrupt; |
| 1125 | struct acpi_generic_address ipmi_register; |
| 1126 | u8 pci_segment; |
| 1127 | u8 pci_bus; |
| 1128 | u8 pci_device; |
| 1129 | u8 pci_function; |
| 1130 | }; |
| 1131 | |
| 1132 | /******************************************************************************* |
| 1133 | * |
| 1134 | * SRAT - System Resource Affinity Table |
| 1135 | * |
| 1136 | ******************************************************************************/ |
| 1137 | |
Bob Moore | f3d2e78 | 2007-02-02 19:48:18 +0300 | [diff] [blame] | 1138 | struct acpi_table_srat { |
| 1139 | struct acpi_table_header header; /* Common ACPI table header */ |
| 1140 | u32 table_revision; /* Must be value '1' */ |
| 1141 | u64 reserved; /* Reserved, must be zero */ |
Bob Moore | 793c238 | 2006-03-31 00:00:00 -0500 | [diff] [blame] | 1142 | }; |
| 1143 | |
Bob Moore | f3d2e78 | 2007-02-02 19:48:18 +0300 | [diff] [blame] | 1144 | /* Values for subtable type in struct acpi_subtable_header */ |
Bob Moore | 793c238 | 2006-03-31 00:00:00 -0500 | [diff] [blame] | 1145 | |
Bob Moore | f3d2e78 | 2007-02-02 19:48:18 +0300 | [diff] [blame] | 1146 | enum acpi_srat_type { |
| 1147 | ACPI_SRAT_TYPE_CPU_AFFINITY = 0, |
| 1148 | ACPI_SRAT_TYPE_MEMORY_AFFINITY = 1, |
| 1149 | ACPI_SRAT_TYPE_RESERVED = 2 |
| 1150 | }; |
Bob Moore | 793c238 | 2006-03-31 00:00:00 -0500 | [diff] [blame] | 1151 | |
| 1152 | /* SRAT sub-tables */ |
| 1153 | |
Bob Moore | f3d2e78 | 2007-02-02 19:48:18 +0300 | [diff] [blame] | 1154 | struct acpi_srat_cpu_affinity { |
| 1155 | struct acpi_subtable_header header; |
| 1156 | u8 proximity_domain_lo; |
Bob Moore | 793c238 | 2006-03-31 00:00:00 -0500 | [diff] [blame] | 1157 | u8 apic_id; |
Bob Moore | f3d2e78 | 2007-02-02 19:48:18 +0300 | [diff] [blame] | 1158 | u32 flags; |
Bob Moore | 793c238 | 2006-03-31 00:00:00 -0500 | [diff] [blame] | 1159 | u8 local_sapic_eid; |
| 1160 | u8 proximity_domain_hi[3]; |
Bob Moore | f3d2e78 | 2007-02-02 19:48:18 +0300 | [diff] [blame] | 1161 | u32 reserved; /* Reserved, must be zero */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1162 | }; |
| 1163 | |
Bob Moore | f3d2e78 | 2007-02-02 19:48:18 +0300 | [diff] [blame] | 1164 | /* Flags */ |
| 1165 | |
| 1166 | #define ACPI_SRAT_CPU_ENABLED (1) /* 00: Use affinity structure */ |
| 1167 | |
| 1168 | struct acpi_srat_mem_affinity { |
| 1169 | struct acpi_subtable_header header; |
| 1170 | u32 proximity_domain; |
| 1171 | u16 reserved; /* Reserved, must be zero */ |
Bob Moore | 793c238 | 2006-03-31 00:00:00 -0500 | [diff] [blame] | 1172 | u64 base_address; |
Bob Moore | f3d2e78 | 2007-02-02 19:48:18 +0300 | [diff] [blame] | 1173 | u64 length; |
Bob Moore | 19d0cfe | 2008-06-10 15:54:40 +0800 | [diff] [blame^] | 1174 | u32 reserved1; |
Bob Moore | f3d2e78 | 2007-02-02 19:48:18 +0300 | [diff] [blame] | 1175 | u32 flags; |
Bob Moore | 19d0cfe | 2008-06-10 15:54:40 +0800 | [diff] [blame^] | 1176 | u64 reserved2; /* Reserved, must be zero */ |
Bob Moore | f3d2e78 | 2007-02-02 19:48:18 +0300 | [diff] [blame] | 1177 | }; |
Bob Moore | 793c238 | 2006-03-31 00:00:00 -0500 | [diff] [blame] | 1178 | |
Bob Moore | f3d2e78 | 2007-02-02 19:48:18 +0300 | [diff] [blame] | 1179 | /* Flags */ |
Bob Moore | 793c238 | 2006-03-31 00:00:00 -0500 | [diff] [blame] | 1180 | |
Bob Moore | f3d2e78 | 2007-02-02 19:48:18 +0300 | [diff] [blame] | 1181 | #define ACPI_SRAT_MEM_ENABLED (1) /* 00: Use affinity structure */ |
| 1182 | #define ACPI_SRAT_MEM_HOT_PLUGGABLE (1<<1) /* 01: Memory region is hot pluggable */ |
| 1183 | #define ACPI_SRAT_MEM_NON_VOLATILE (1<<2) /* 02: Memory region is non-volatile */ |
Bob Moore | 793c238 | 2006-03-31 00:00:00 -0500 | [diff] [blame] | 1184 | |
Bob Moore | 793c238 | 2006-03-31 00:00:00 -0500 | [diff] [blame] | 1185 | /******************************************************************************* |
| 1186 | * |
| 1187 | * TCPA - Trusted Computing Platform Alliance table |
| 1188 | * |
| 1189 | ******************************************************************************/ |
| 1190 | |
| 1191 | struct acpi_table_tcpa { |
Bob Moore | f3d2e78 | 2007-02-02 19:48:18 +0300 | [diff] [blame] | 1192 | struct acpi_table_header header; /* Common ACPI table header */ |
| 1193 | u16 reserved; |
Bob Moore | 793c238 | 2006-03-31 00:00:00 -0500 | [diff] [blame] | 1194 | u32 max_log_length; /* Maximum length for the event log area */ |
| 1195 | u64 log_address; /* Address of the event log area */ |
| 1196 | }; |
| 1197 | |
| 1198 | /******************************************************************************* |
| 1199 | * |
Bob Moore | 970d9c9 | 2008-04-10 19:06:42 +0400 | [diff] [blame] | 1200 | * UEFI - UEFI Boot optimization Table |
| 1201 | * |
| 1202 | ******************************************************************************/ |
| 1203 | |
| 1204 | struct acpi_table_uefi { |
| 1205 | struct acpi_table_header header; /* Common ACPI table header */ |
| 1206 | u8 identifier[16]; /* UUID identifier */ |
| 1207 | u16 data_offset; /* Offset of remaining data in table */ |
| 1208 | u8 data; |
| 1209 | }; |
| 1210 | |
| 1211 | /******************************************************************************* |
| 1212 | * |
| 1213 | * WDAT - Watchdog Action Table |
| 1214 | * |
| 1215 | ******************************************************************************/ |
| 1216 | |
| 1217 | struct acpi_table_wdat { |
| 1218 | struct acpi_table_header header; /* Common ACPI table header */ |
| 1219 | u32 header_length; /* Watchdog Header Length */ |
| 1220 | u16 pci_segment; /* PCI Segment number */ |
| 1221 | u8 pci_bus; /* PCI Bus number */ |
| 1222 | u8 pci_device; /* PCI Device number */ |
| 1223 | u8 pci_function; /* PCI Function number */ |
| 1224 | u8 reserved[3]; |
| 1225 | u32 timer_period; /* Period of one timer count (msec) */ |
| 1226 | u32 max_count; /* Maximum counter value supported */ |
| 1227 | u32 min_count; /* Minimum counter value */ |
| 1228 | u8 flags; |
| 1229 | u8 reserved2[3]; |
| 1230 | u32 entries; /* Number of watchdog entries that follow */ |
| 1231 | }; |
| 1232 | |
| 1233 | /* WDAT Instruction Entries (actions) */ |
| 1234 | |
| 1235 | struct acpi_wdat_entry { |
| 1236 | struct acpi_whea_header whea_header; /* Common header for WHEA tables */ |
| 1237 | }; |
| 1238 | |
| 1239 | /* Values for Action field above */ |
| 1240 | |
| 1241 | enum acpi_wdat_actions { |
| 1242 | ACPI_WDAT_RESET = 1, |
| 1243 | ACPI_WDAT_GET_CURRENT_COUNTDOWN = 4, |
| 1244 | ACPI_WDAT_GET_COUNTDOWN = 5, |
| 1245 | ACPI_WDAT_SET_COUNTDOWN = 6, |
| 1246 | ACPI_WDAT_GET_RUNNING_STATE = 8, |
| 1247 | ACPI_WDAT_SET_RUNNING_STATE = 9, |
| 1248 | ACPI_WDAT_GET_STOPPED_STATE = 10, |
| 1249 | ACPI_WDAT_SET_STOPPED_STATE = 11, |
| 1250 | ACPI_WDAT_GET_REBOOT = 16, |
| 1251 | ACPI_WDAT_SET_REBOOT = 17, |
| 1252 | ACPI_WDAT_GET_SHUTDOWN = 18, |
| 1253 | ACPI_WDAT_SET_SHUTDOWN = 19, |
| 1254 | ACPI_WDAT_GET_STATUS = 32, |
| 1255 | ACPI_WDAT_SET_STATUS = 33, |
| 1256 | ACPI_WDAT_ACTION_RESERVED = 34 /* 34 and greater are reserved */ |
| 1257 | }; |
| 1258 | |
| 1259 | /* Values for Instruction field above */ |
| 1260 | |
| 1261 | enum acpi_wdat_instructions { |
| 1262 | ACPI_WDAT_READ_VALUE = 0, |
| 1263 | ACPI_WDAT_READ_COUNTDOWN = 1, |
| 1264 | ACPI_WDAT_WRITE_VALUE = 2, |
| 1265 | ACPI_WDAT_WRITE_COUNTDOWN = 3, |
| 1266 | ACPI_WDAT_INSTRUCTION_RESERVED = 4, /* 4 and greater are reserved */ |
| 1267 | ACPI_WDAT_PRESERVE_REGISTER = 0x80 /* Except for this value */ |
| 1268 | }; |
| 1269 | |
| 1270 | /******************************************************************************* |
| 1271 | * |
Bob Moore | 793c238 | 2006-03-31 00:00:00 -0500 | [diff] [blame] | 1272 | * WDRT - Watchdog Resource Table |
| 1273 | * |
| 1274 | ******************************************************************************/ |
| 1275 | |
| 1276 | struct acpi_table_wdrt { |
Bob Moore | f3d2e78 | 2007-02-02 19:48:18 +0300 | [diff] [blame] | 1277 | struct acpi_table_header header; /* Common ACPI table header */ |
| 1278 | u32 header_length; /* Watchdog Header Length */ |
Bob Moore | 793c238 | 2006-03-31 00:00:00 -0500 | [diff] [blame] | 1279 | u8 pci_segment; /* PCI Segment number */ |
| 1280 | u8 pci_bus; /* PCI Bus number */ |
| 1281 | u8 pci_device; /* PCI Device number */ |
| 1282 | u8 pci_function; /* PCI Function number */ |
| 1283 | u32 timer_period; /* Period of one timer count (msec) */ |
| 1284 | u32 max_count; /* Maximum counter value supported */ |
| 1285 | u32 min_count; /* Minimum counter value */ |
| 1286 | u8 flags; |
| 1287 | u8 reserved[3]; |
| 1288 | u32 entries; /* Number of watchdog entries that follow */ |
| 1289 | }; |
| 1290 | |
Bob Moore | f3d2e78 | 2007-02-02 19:48:18 +0300 | [diff] [blame] | 1291 | /* Flags */ |
Bob Moore | 793c238 | 2006-03-31 00:00:00 -0500 | [diff] [blame] | 1292 | |
Bob Moore | f3d2e78 | 2007-02-02 19:48:18 +0300 | [diff] [blame] | 1293 | #define ACPI_WDRT_TIMER_ENABLED (1) /* 00: Timer enabled */ |
Bob Moore | 793c238 | 2006-03-31 00:00:00 -0500 | [diff] [blame] | 1294 | |
| 1295 | /* Reset to default packing */ |
| 1296 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1297 | #pragma pack() |
| 1298 | |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 1299 | #endif /* __ACTBL1_H__ */ |