]> err.no Git - linux-2.6/blobdiff - include/acpi/actbl1.h
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris...
[linux-2.6] / include / acpi / actbl1.h
index 5d39992314a96be5f0d662adc8481f78dd6d8246..d38f9be2f6eeda77b42f48e492060ed6a9f3000b 100644 (file)
@@ -5,7 +5,7 @@
  *****************************************************************************/
 
 /*
- * Copyright (C) 2000 - 2007, R. Byron Moore
+ * Copyright (C) 2000 - 2008, Intel Corp.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -109,8 +109,8 @@ struct acpi_whea_header {
        u8 flags;
        u8 reserved;
        struct acpi_generic_address register_region;
-       u32 value;              /* Value used with Read/Write register */
-       u32 mask;               /* Bitmask required for this register instruction */
+       u64 value;              /* Value used with Read/Write register */
+       u64 mask;               /* Bitmask required for this register instruction */
 };
 
 /*******************************************************************************
@@ -234,13 +234,14 @@ struct acpi_table_bert {
        u64 address;            /* Physical addresss of the error region */
 };
 
+/* Boot Error Region */
+
 struct acpi_bert_region {
        u32 block_status;
        u32 raw_data_offset;
        u32 raw_data_length;
        u32 data_length;
        u32 error_severity;
-       u8 error_data[1];
 };
 
 /* block_status Flags */
@@ -299,6 +300,7 @@ struct acpi_table_dbgp {
 /*******************************************************************************
  *
  * DMAR - DMA Remapping table
+ *       From "Intel Virtualization Technology for Directed I/O", Sept. 2007
  *
  ******************************************************************************/
 
@@ -309,6 +311,10 @@ struct acpi_table_dmar {
        u8 reserved[10];
 };
 
+/* Flags */
+
+#define ACPI_DMAR_INTR_REMAP       (1)
+
 /* DMAR subtable header */
 
 struct acpi_dmar_header {
@@ -381,6 +387,20 @@ struct acpi_dmar_reserved_memory {
 
 #define ACPI_DMAR_ALLOW_ALL         (1)
 
+
+/* 2: Root Port ATS Capability Reporting Structure */
+
+struct acpi_dmar_atsr {
+       struct acpi_dmar_header header;
+       u8 flags;
+       u8 reserved;
+       u16 segment;
+};
+
+/* Flags */
+
+#define ACPI_DMAR_ALL_PORTS        (1)
+
 /*******************************************************************************
  *
  * ECDT - Embedded Controller Boot Resources Table
@@ -441,6 +461,15 @@ enum acpi_einj_instructions {
        ACPI_EINJ_INSTRUCTION_RESERVED = 5      /* 5 and greater are reserved */
 };
 
+/* EINJ Trigger Error Action Table */
+
+struct acpi_einj_trigger {
+       u32 header_size;
+       u32 revision;
+       u32 table_size;
+       u32 entry_count;
+};
+
 /*******************************************************************************
  *
  * ERST - Error Record Serialization Table
@@ -518,7 +547,220 @@ struct acpi_table_hest {
        u32 error_source_count;
 };
 
-/* TBD: Need Error Source Descriptor layout */
+/* HEST subtable header */
+
+struct acpi_hest_header {
+       u16 type;
+};
+
+/* Values for Type field above for subtables */
+
+enum acpi_hest_types {
+       ACPI_HEST_TYPE_XPF_MACHINE_CHECK = 0,
+       ACPI_HEST_TYPE_XPF_CORRECTED_MACHINE_CHECK = 1,
+       ACPI_HEST_TYPE_XPF_UNUSED = 2,
+       ACPI_HEST_TYPE_XPF_NON_MASKABLE_INTERRUPT = 3,
+       ACPI_HEST_TYPE_IPF_CORRECTED_MACHINE_CHECK = 4,
+       ACPI_HEST_TYPE_IPF_CORRECTED_PLATFORM_ERROR = 5,
+       ACPI_HEST_TYPE_AER_ROOT_PORT = 6,
+       ACPI_HEST_TYPE_AER_ENDPOINT = 7,
+       ACPI_HEST_TYPE_AER_BRIDGE = 8,
+       ACPI_HEST_TYPE_GENERIC_HARDWARE_ERROR_SOURCE = 9,
+       ACPI_HEST_TYPE_RESERVED = 10    /* 10 and greater are reserved */
+};
+
+/*
+ * HEST Sub-subtables
+ */
+
+/* XPF Machine Check Error Bank */
+
+struct acpi_hest_xpf_error_bank {
+       u8 bank_number;
+       u8 clear_status_on_init;
+       u8 status_format;
+       u8 config_write_enable;
+       u32 control_register;
+       u64 control_init_data;
+       u32 status_register;
+       u32 address_register;
+       u32 misc_register;
+};
+
+/* Generic Error Status */
+
+struct acpi_hest_generic_status {
+       u32 block_status;
+       u32 raw_data_offset;
+       u32 raw_data_length;
+       u32 data_length;
+       u32 error_severity;
+};
+
+/* Generic Error Data */
+
+struct acpi_hest_generic_data {
+       u8 section_type[16];
+       u32 error_severity;
+       u16 revision;
+       u8 validation_bits;
+       u8 flags;
+       u32 error_data_length;
+       u8 fru_id[16];
+       u8 fru_text[20];
+};
+
+/* Common HEST structure for PCI/AER types below (6,7,8) */
+
+struct acpi_hest_aer_common {
+       u16 source_id;
+       u16 config_write_enable;
+       u8 flags;
+       u8 enabled;
+       u32 records_to_pre_allocate;
+       u32 max_sections_per_record;
+       u32 bus;
+       u16 device;
+       u16 function;
+       u16 device_control;
+       u16 reserved;
+       u32 uncorrectable_error_mask;
+       u32 uncorrectable_error_severity;
+       u32 correctable_error_mask;
+       u32 advanced_error_cababilities;
+};
+
+/* Hardware Error Notification */
+
+struct acpi_hest_notify {
+       u8 type;
+       u8 length;
+       u16 config_write_enable;
+       u32 poll_interval;
+       u32 vector;
+       u32 polling_threshold_value;
+       u32 polling_threshold_window;
+       u32 error_threshold_value;
+       u32 error_threshold_window;
+};
+
+/* Values for Notify Type field above */
+
+enum acpi_hest_notify_types {
+       ACPI_HEST_NOTIFY_POLLED = 0,
+       ACPI_HEST_NOTIFY_EXTERNAL = 1,
+       ACPI_HEST_NOTIFY_LOCAL = 2,
+       ACPI_HEST_NOTIFY_SCI = 3,
+       ACPI_HEST_NOTIFY_NMI = 4,
+       ACPI_HEST_NOTIFY_RESERVED = 5   /* 5 and greater are reserved */
+};
+
+/*
+ * HEST subtables
+ *
+ * From WHEA Design Document, 16 May 2007.
+ * Note: There is no subtable type 2 in this version of the document,
+ * and there are two different subtable type 3s.
+ */
+
+ /* 0: XPF Machine Check Exception */
+
+struct acpi_hest_xpf_machine_check {
+       struct acpi_hest_header header;
+       u16 source_id;
+       u16 config_write_enable;
+       u8 flags;
+       u8 reserved1;
+       u32 records_to_pre_allocate;
+       u32 max_sections_per_record;
+       u64 global_capability_data;
+       u64 global_control_data;
+       u8 num_hardware_banks;
+       u8 reserved2[7];
+};
+
+/* 1: XPF Corrected Machine Check */
+
+struct acpi_table_hest_xpf_corrected {
+       struct acpi_hest_header header;
+       u16 source_id;
+       u16 config_write_enable;
+       u8 flags;
+       u8 enabled;
+       u32 records_to_pre_allocate;
+       u32 max_sections_per_record;
+       struct acpi_hest_notify notify;
+       u8 num_hardware_banks;
+       u8 reserved[3];
+};
+
+/* 3: XPF Non-Maskable Interrupt */
+
+struct acpi_hest_xpf_nmi {
+       struct acpi_hest_header header;
+       u16 source_id;
+       u32 reserved;
+       u32 records_to_pre_allocate;
+       u32 max_sections_per_record;
+       u32 max_raw_data_length;
+};
+
+/* 4: IPF Corrected Machine Check */
+
+struct acpi_hest_ipf_corrected {
+       struct acpi_hest_header header;
+       u8 enabled;
+       u8 reserved;
+};
+
+/* 5: IPF Corrected Platform Error */
+
+struct acpi_hest_ipf_corrected_platform {
+       struct acpi_hest_header header;
+       u8 enabled;
+       u8 reserved;
+};
+
+/* 6: PCI Express Root Port AER */
+
+struct acpi_hest_aer_root {
+       struct acpi_hest_header header;
+       struct acpi_hest_aer_common aer;
+       u32 root_error_command;
+};
+
+/* 7: PCI Express AER (AER Endpoint) */
+
+struct acpi_hest_aer {
+       struct acpi_hest_header header;
+       struct acpi_hest_aer_common aer;
+};
+
+/* 8: PCI Express/PCI-X Bridge AER */
+
+struct acpi_hest_aer_bridge {
+       struct acpi_hest_header header;
+       struct acpi_hest_aer_common aer;
+       u32 secondary_uncorrectable_error_mask;
+       u32 secondary_uncorrectable_error_severity;
+       u32 secondary_advanced_capabilities;
+};
+
+/* 9: Generic Hardware Error Source */
+
+struct acpi_hest_generic {
+       struct acpi_hest_header header;
+       u16 source_id;
+       u16 related_source_id;
+       u8 config_write_enable;
+       u8 enabled;
+       u32 records_to_pre_allocate;
+       u32 max_sections_per_record;
+       u32 max_raw_data_length;
+       struct acpi_generic_address error_status_address;
+       struct acpi_hest_notify notify;
+       u32 error_status_block_length;
+};
 
 /*******************************************************************************
  *
@@ -545,7 +787,7 @@ struct acpi_table_hpet {
 
 /*******************************************************************************
  *
- * IBFT - i_sCSI Boot Firmware Table
+ * IBFT - Boot Firmware Table
  *
  ******************************************************************************/
 
@@ -933,9 +1175,9 @@ struct acpi_srat_mem_affinity {
        u16 reserved;           /* Reserved, must be zero */
        u64 base_address;
        u64 length;
-       u32 memory_type;        /* See acpi_address_range_id */
+       u32 reserved1;
        u32 flags;
-       u64 reserved1;          /* Reserved, must be zero */
+       u64 reserved2;         /* Reserved, must be zero */
 };
 
 /* Flags */