From patchwork Tue Jul 17 00:29:51 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: 171298 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 ACD6E2C014F for ; Tue, 17 Jul 2012 10:29:58 +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 1Sqvfo-0003GC-8X for incoming@patchwork.ozlabs.org; Tue, 17 Jul 2012 00:29:56 +0000 Received: from youngberry.canonical.com ([91.189.89.112]) by chlorine.canonical.com with esmtp (Exim 4.71) (envelope-from ) id 1Sqvfm-0003G6-GL for fwts-devel@lists.ubuntu.com; Tue, 17 Jul 2012 00:29:54 +0000 Received: from 74-95-45-185-oregon.hfc.comcastbusiness.net ([74.95.45.185] helo=localhost) by youngberry.canonical.com with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1Sqvfl-00011p-W5 for fwts-devel@lists.ubuntu.com; Tue, 17 Jul 2012 00:29:54 +0000 From: Colin King To: fwts-devel@lists.ubuntu.com Subject: [PATCH] acpi: acpidump: add extra ACPI 5.0 fields to FACP Date: Mon, 16 Jul 2012 17:29:51 -0700 Message-Id: <1342484991-5662-1-git-send-email-colin.king@canonical.com> X-Mailer: git-send-email 1.7.10.4 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 Newer ACPI 5.0 FACP tables may now have the SLEEP_CONTROL_REG and SLEEP_STATUS_REG fields Signed-off-by: Colin Ian King --- src/acpi/acpidump/acpidump.c | 4 +++- src/lib/include/fwts_acpi.h | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/acpi/acpidump/acpidump.c b/src/acpi/acpidump/acpidump.c index 505418d..5474a88 100644 --- a/src/acpi/acpidump/acpidump.c +++ b/src/acpi/acpidump/acpidump.c @@ -656,7 +656,9 @@ static void acpidump_fadt(fwts_framework *fw, fwts_acpi_table_info *table) FIELD_GAS ("X_PM2_CNT_BLK", fwts_acpi_table_fadt, x_pm2_cnt_blk), FIELD_GAS ("X_PM_TMR_BLK", fwts_acpi_table_fadt, x_pm_tmr_blk), FIELD_GAS ("X_GPE0_BLK", fwts_acpi_table_fadt, x_gpe0_blk), - FIELD_GAS ("X_GPE1_BLK", fwts_acpi_table_fadt, x_gpe1_blk), + FIELD_GAS ("X_GPE0_BLK", fwts_acpi_table_fadt, x_gpe0_blk), + FIELD_GAS ("SLEEP_CONTROL_REG", fwts_acpi_table_fadt, sleep_control_reg), + FIELD_GAS ("SLEEP_STATUS_REG", fwts_acpi_table_fadt, sleep_status_reg), FIELD_END }; diff --git a/src/lib/include/fwts_acpi.h b/src/lib/include/fwts_acpi.h index 3ae77d4..26bbf13 100644 --- a/src/lib/include/fwts_acpi.h +++ b/src/lib/include/fwts_acpi.h @@ -215,6 +215,8 @@ typedef struct { fwts_acpi_gas x_pm_tmr_blk; fwts_acpi_gas x_gpe0_blk; fwts_acpi_gas x_gpe1_blk; + fwts_acpi_gas sleep_control_reg; + fwts_acpi_gas sleep_status_reg; } __attribute__ ((packed)) fwts_acpi_table_fadt; typedef struct {