From patchwork Tue Sep 18 13:02:08 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Colin Ian King X-Patchwork-Id: 184709 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from chlorine.canonical.com (chlorine.canonical.com [91.189.94.204]) by ozlabs.org (Postfix) with ESMTP id F22252C0091 for ; Tue, 18 Sep 2012 23:02:22 +1000 (EST) Received: from localhost ([127.0.0.1] helo=chlorine.canonical.com) by chlorine.canonical.com with esmtp (Exim 4.71) (envelope-from ) id 1TDxPW-0000DE-5V; Tue, 18 Sep 2012 13:00:18 +0000 Received: from youngberry.canonical.com ([91.189.89.112]) by chlorine.canonical.com with esmtp (Exim 4.71) (envelope-from ) id 1TDxPL-0000C7-3O for fwts-devel@lists.ubuntu.com; Tue, 18 Sep 2012 13:00:07 +0000 Received: from cpc3-craw6-2-0-cust180.croy.cable.virginmedia.com ([77.100.248.181] helo=localhost) by youngberry.canonical.com with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1TDxRK-0000SS-Jf for fwts-devel@lists.ubuntu.com; Tue, 18 Sep 2012 13:02:10 +0000 From: Colin King To: fwts-devel@lists.ubuntu.com Subject: [PATCH 1/2] lib: acpi: Add support for the new ACPI 5.0 PCCT Date: Tue, 18 Sep 2012 14:02:08 +0100 Message-Id: <1347973329-18245-2-git-send-email-colin.king@canonical.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1347973329-18245-1-git-send-email-colin.king@canonical.com> References: <1347973329-18245-1-git-send-email-colin.king@canonical.com> X-BeenThere: fwts-devel@lists.ubuntu.com X-Mailman-Version: 2.1.13 Precedence: list List-Id: Firmware Test Suite Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: fwts-devel-bounces@lists.ubuntu.com Errors-To: fwts-devel-bounces@lists.ubuntu.com From: Colin Ian King ACPI 5.0 now includes the Platform Communications Channel Table (see section 14). So, add it to the supported tables. Signed-off-by: Colin Ian King Acked-by: Alex Hung Acked-by: Keng-Yu Lin --- src/lib/include/fwts_acpi.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/src/lib/include/fwts_acpi.h b/src/lib/include/fwts_acpi.h index 2a90158..e99d0a7 100644 --- a/src/lib/include/fwts_acpi.h +++ b/src/lib/include/fwts_acpi.h @@ -664,6 +664,31 @@ typedef struct { uint8_t platform_cc_id[12]; } __attribute__ ((packed)) fwts_acpi_table_rasf; +/* Section 14.1, Platform Communications Channel Table */ +typedef struct { + fwts_acpi_table_header header; + uint32_t flags; + uint8_t reserved[8]; +} __attribute__ ((packed)) fwts_acpi_table_pcct; + +typedef struct { + uint8_t type; + uint8_t length; +} __attribute__ ((packed)) fwts_acpi_table_pcct_subspace_header; + +typedef struct { + fwts_acpi_table_pcct_subspace_header header; + uint8_t reserved[6]; + uint64_t base_address; + uint64_t length; + fwts_acpi_gas doorbell_register; + uint64_t doorbell_preserve; + uint64_t doorbell_write; + uint32_t nominal_latency; + uint32_t max_periodic_access_rate; + uint16_t min_request_turnaround_time; +} __attribute__ ((packed)) fwts_acpi_table_pcct_subspace_type_0; + void fwts_acpi_table_get_header(fwts_acpi_table_header *hdr, uint8_t *data); #endif