From patchwork Sat Oct 6 20:09:32 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Len Brown X-Patchwork-Id: 1559141 Return-Path: X-Original-To: patchwork-linux-acpi@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id ED5BF40D2D for ; Sat, 6 Oct 2012 20:13:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752799Ab2JFUNP (ORCPT ); Sat, 6 Oct 2012 16:13:15 -0400 Received: from mail-qa0-f46.google.com ([209.85.216.46]:35259 "EHLO mail-qa0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752050Ab2JFUNO (ORCPT ); Sat, 6 Oct 2012 16:13:14 -0400 Received: by mail-qa0-f46.google.com with SMTP id c26so1237951qad.19 for ; Sat, 06 Oct 2012 13:13:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references:in-reply-to:references:reply-to:organization; bh=skn0A8D/U5LgMt99GjCaZNXuJS7dWsvjweY2n8UUyJg=; b=ZnftXLe3P2ZmKp2/e8nuIYpQhgwwEpn6EfeCG1aTv87s9gl8YhD32zdLTXbpxZPy30 v+UuC87Bdov4x7uV3rtXJYYLSLXIbXq/DlfQ2kxJrcNYizHJgK7BILF39YLb04ymbJIl pu18/LTtKqdStrMNxoKIv32lhlDh/BcI9YTvkGMnX4vWBy2XBYluc+o1sDgM3TAgKRgv CMsj+yfuShSZbOqpOhdMU2kR1xoNF0U5akUmYI0gp0buJoHcAvCxjGgnysdAqVxIjZt5 dh2j7jp3Fg/kVZnwWbBj1aqZgy0xd2w7OrLB/yFnW6KXZh7f1mve38pdyckFM1ZOC81l yXyg== Received: by 10.224.191.130 with SMTP id dm2mr22535800qab.98.1349554393636; Sat, 06 Oct 2012 13:13:13 -0700 (PDT) Received: from x980.localdomain6 (pool-74-104-146-186.bstnma.fios.verizon.net. [74.104.146.186]) by mx.google.com with ESMTPS id x19sm13470740qeq.12.2012.10.06.13.13.12 (version=SSLv3 cipher=OTHER); Sat, 06 Oct 2012 13:13:13 -0700 (PDT) From: Len Brown To: linux-acpi@vger.kernel.org, linux-pm@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Bob Moore , Feng Tang , Len Brown Subject: [PATCH 11/49] ACPICA: Add struct header support for _FDE, _GRT, _GTM, and _SRT names. Date: Sat, 6 Oct 2012 16:09:32 -0400 Message-Id: <84be5d687f8060ad96d5a4a060e207a0ec5cc016.1349554106.git.len.brown@intel.com> X-Mailer: git-send-email 1.8.0.rc0.18.gf84667d In-Reply-To: <1349554210-29978-1-git-send-email-lenb@kernel.org> References: <1349554210-29978-1-git-send-email-lenb@kernel.org> In-Reply-To: References: Reply-To: Len Brown Organization: Intel Open Source Technology Center Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org From: Bob Moore Added structs for the buffers related to these predefined names, in acbuffer.h Signed-off-by: Bob Moore Signed-off-by: Feng Tang Signed-off-by: Len Brown --- include/acpi/acbuffer.h | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/include/acpi/acbuffer.h b/include/acpi/acbuffer.h index 2c3b447..a1e45cd 100644 --- a/include/acpi/acbuffer.h +++ b/include/acpi/acbuffer.h @@ -45,6 +45,11 @@ #define __ACBUFFER_H__ /* + * Contains buffer structures for these predefined names: + * _FDE, _GRT, _GTM, _PLD, _SRT + */ + +/* * Note: C bitfields are not used for this reason: * * "Bitfields are great and easy to read, but unfortunately the C language @@ -56,6 +61,44 @@ * See http://stackoverflow.com/a/1053662/41661 */ +/* _FDE return value */ + +struct acpi_fde_info { + u32 floppy0; + u32 floppy1; + u32 floppy2; + u32 floppy3; + u32 tape; +}; + +/* + * _GRT return value + * _SRT input value + */ +struct acpi_grt_info { + u16 year; + u8 month; + u8 day; + u8 hour; + u8 minute; + u8 second; + u8 valid; + u16 milliseconds; + u16 timezone; + u8 daylight; + u8 reserved[3]; +}; + +/* _GTM return value */ + +struct acpi_gtm_info { + u32 pio_speed0; + u32 dma_speed0; + u32 pio_speed1; + u32 dma_speed1; + u32 flags; +}; + /* * Formatted _PLD return value. The minimum size is a package containing * one buffer.