aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/acpi/actbl2.h111
-rw-r--r--include/acpi/actbl3.h1
2 files changed, 111 insertions, 1 deletions
diff --git a/include/acpi/actbl2.h b/include/acpi/actbl2.h
index d9ceb3d31629..b74476c0be8b 100644
--- a/include/acpi/actbl2.h
+++ b/include/acpi/actbl2.h
@@ -63,6 +63,8 @@
63 */ 63 */
64#define ACPI_SIG_ASF "ASF!" /* Alert Standard Format table */ 64#define ACPI_SIG_ASF "ASF!" /* Alert Standard Format table */
65#define ACPI_SIG_BOOT "BOOT" /* Simple Boot Flag Table */ 65#define ACPI_SIG_BOOT "BOOT" /* Simple Boot Flag Table */
66#define ACPI_SIG_CSRT "CSRT" /* Core System Resource Table */
67#define ACPI_SIG_DBG2 "DBG2" /* Debug Port table type 2 */
66#define ACPI_SIG_DBGP "DBGP" /* Debug Port table */ 68#define ACPI_SIG_DBGP "DBGP" /* Debug Port table */
67#define ACPI_SIG_DMAR "DMAR" /* DMA Remapping table */ 69#define ACPI_SIG_DMAR "DMAR" /* DMA Remapping table */
68#define ACPI_SIG_HPET "HPET" /* High Precision Event Timer table */ 70#define ACPI_SIG_HPET "HPET" /* High Precision Event Timer table */
@@ -232,6 +234,115 @@ struct acpi_table_boot {
232 234
233/******************************************************************************* 235/*******************************************************************************
234 * 236 *
237 * CSRT - Core System Resource Table
238 * Version 0
239 *
240 * Conforms to the "Core System Resource Table (CSRT)", November 14, 2011
241 *
242 ******************************************************************************/
243
244struct acpi_table_csrt {
245 struct acpi_table_header header; /* Common ACPI table header */
246};
247
248/* Resource Group subtable */
249
250struct acpi_csrt_group {
251 u32 length;
252 u32 vendor_id;
253 u32 subvendor_id;
254 u16 device_id;
255 u16 subdevice_id;
256 u16 revision;
257 u16 reserved;
258 u32 info_length;
259
260 /* Shared data (length = info_length) immediately follows */
261};
262
263/* Resource Descriptor subtable */
264
265struct acpi_csrt_descriptor {
266 u32 length;
267 u16 type;
268 u16 subtype;
269 u32 uid;
270
271 /* Resource-specific information immediately follows */
272};
273
274/* Resource Types */
275
276#define ACPI_CSRT_TYPE_INTERRUPT 0x0001
277#define ACPI_CSRT_TYPE_TIMER 0x0002
278#define ACPI_CSRT_TYPE_DMA 0x0003
279
280/* Resource Subtypes */
281
282#define ACPI_CSRT_XRUPT_LINE 0x0000
283#define ACPI_CSRT_XRUPT_CONTROLLER 0x0001
284#define ACPI_CSRT_TIMER 0x0000
285#define ACPI_CSRT_DMA_CHANNEL 0x0000
286#define ACPI_CSRT_DMA_CONTROLLER 0x0001
287
288/*******************************************************************************
289 *
290 * DBG2 - Debug Port Table 2
291 * Version 0 (Both main table and subtables)
292 *
293 * Conforms to "Microsoft Debug Port Table 2 (DBG2)", May 22 2012.
294 *
295 ******************************************************************************/
296
297struct acpi_table_dbg2 {
298 struct acpi_table_header header; /* Common ACPI table header */
299 u32 info_offset;
300 u32 info_count;
301};
302
303/* Debug Device Information Subtable */
304
305struct acpi_dbg2_device {
306 u8 revision;
307 u16 length;
308 u8 register_count; /* Number of base_address registers */
309 u16 namepath_length;
310 u16 namepath_offset;
311 u16 oem_data_length;
312 u16 oem_data_offset;
313 u16 port_type;
314 u16 port_subtype;
315 u16 reserved;
316 u16 base_address_offset;
317 u16 address_size_offset;
318 /*
319 * Data that follows:
320 * base_address (required) - Each in 12-byte Generic Address Structure format.
321 * address_size (required) - Array of u32 sizes corresponding to each base_address register.
322 * Namepath (required) - Null terminated string. Single dot if not supported.
323 * oem_data (optional) - Length is oem_data_length.
324 */
325};
326
327/* Types for port_type field above */
328
329#define ACPI_DBG2_SERIAL_PORT 0x8000
330#define ACPI_DBG2_1394_PORT 0x8001
331#define ACPI_DBG2_USB_PORT 0x8002
332#define ACPI_DBG2_NET_PORT 0x8003
333
334/* Subtypes for port_subtype field above */
335
336#define ACPI_DBG2_16550_COMPATIBLE 0x0000
337#define ACPI_DBG2_16550_SUBSET 0x0001
338
339#define ACPI_DBG2_1394_STANDARD 0x0000
340
341#define ACPI_DBG2_USB_XHCI 0x0000
342#define ACPI_DBG2_USB_EHCI 0x0001
343
344/*******************************************************************************
345 *
235 * DBGP - Debug Port table 346 * DBGP - Debug Port table
236 * Version 1 347 * Version 1
237 * 348 *
diff --git a/include/acpi/actbl3.h b/include/acpi/actbl3.h
index f65a0ed869eb..37781ab806a5 100644
--- a/include/acpi/actbl3.h
+++ b/include/acpi/actbl3.h
@@ -75,7 +75,6 @@
75/* Reserved table signatures */ 75/* Reserved table signatures */
76 76
77#define ACPI_SIG_CSRT "CSRT" /* Core System Resources Table */ 77#define ACPI_SIG_CSRT "CSRT" /* Core System Resources Table */
78#define ACPI_SIG_DBG2 "DBG2" /* Debug Port table 2 */
79#define ACPI_SIG_MATR "MATR" /* Memory Address Translation Table */ 78#define ACPI_SIG_MATR "MATR" /* Memory Address Translation Table */
80#define ACPI_SIG_MSDM "MSDM" /* Microsoft Data Management Table */ 79#define ACPI_SIG_MSDM "MSDM" /* Microsoft Data Management Table */
81#define ACPI_SIG_WPBT "WPBT" /* Windows Platform Binary Table */ 80#define ACPI_SIG_WPBT "WPBT" /* Windows Platform Binary Table */