From patchwork Thu Nov 28 09:38:29 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Hung X-Patchwork-Id: 294831 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) by ozlabs.org (Postfix) with ESMTP id F38E72C0339 for ; Thu, 28 Nov 2013 20:38:40 +1100 (EST) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.76) (envelope-from ) id 1Vly3T-0000TR-BF; Thu, 28 Nov 2013 09:38:39 +0000 Received: from youngberry.canonical.com ([91.189.89.112]) by huckleberry.canonical.com with esmtp (Exim 4.76) (envelope-from ) id 1Vly3O-0000TM-AI for fwts-devel@lists.ubuntu.com; Thu, 28 Nov 2013 09:38:34 +0000 Received: from [175.41.48.77] (helo=canonical.com) by youngberry.canonical.com with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1Vly3N-0004LX-Of; Thu, 28 Nov 2013 09:38:34 +0000 From: Alex Hung To: fwts-devel@lists.ubuntu.com Subject: [PATCH] acpi: method: add _PIC control method tests (LP: #1255890) Date: Thu, 28 Nov 2013 17:38:29 +0800 Message-Id: <1385631509-627-1-git-send-email-alex.hung@canonical.com> X-Mailer: git-send-email 1.8.1.2 X-BeenThere: fwts-devel@lists.ubuntu.com X-Mailman-Version: 2.1.14 Precedence: list List-Id: Firmware Test Suite Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: fwts-devel-bounces@lists.ubuntu.com Sender: fwts-devel-bounces@lists.ubuntu.com Signed-off-by: Alex Hung Acked-by: Colin Ian King Acked-by: Keng-Yu Lin --- src/acpi/method/method.c | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/src/acpi/method/method.c b/src/acpi/method/method.c index e06992c..e347378 100644 --- a/src/acpi/method/method.c +++ b/src/acpi/method/method.c @@ -143,7 +143,7 @@ * _PCT 8.4.4.1 Y * _PDC 8.4.1 N * _PDL 8.4.4.6 Y - * _PIC 5.8.1 N + * _PIC 5.8.1 Y * _PIF 10.3.3 Y * _PLD 6.1.8 Y * _PMC 10.4.1 N @@ -880,6 +880,24 @@ static int method_test_AEI(fwts_framework *fw) } /* + * Section 5.8 System Configuration Objects + */ +static int method_test_PIC(fwts_framework *fw) +{ + ACPI_OBJECT arg[1]; + int i; + + arg[0].Type = ACPI_TYPE_INTEGER; + for (i = 0; i < 3; i++) { + arg[0].Integer.Value = i; + method_evaluate_method(fw, METHOD_OPTIONAL, + "_PIC", arg, 1, method_test_NULL_return, NULL); + } + + return FWTS_OK; +} + +/* * Section 6.1 Device Identification Objects */ static int method_test_DDN(fwts_framework *fw) @@ -4864,7 +4882,7 @@ static fwts_framework_minor_test method_tests[] = { /* { method_test_REV, "Test _REV (Revision)." }, */ /* Section 5.8 System Configuration Objects */ - /* { method_test_PIC, "Test _PIC (Inform AML of Interrupt Model)." }, */ + { method_test_PIC, "Test _PIC (Inform AML of Interrupt Model)." }, /* Section 6.1 Device Identification Objects */