From patchwork Mon Jun 15 17:24:57 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 49893 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f199.google.com (mail-lb0-f199.google.com [209.85.217.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 5CD53211FD for ; Mon, 15 Jun 2015 17:26:30 +0000 (UTC) Received: by lbcak1 with SMTP id ak1sf27365621lbc.2 for ; Mon, 15 Jun 2015 10:26:29 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:date :message-id:in-reply-to:references:subject:precedence:list-id :list-unsubscribe:list-archive:list-post:list-help:list-subscribe :errors-to:sender:x-original-sender :x-original-authentication-results:mailing-list; bh=9IHDxebKvomLVi1+FppmtcYBggy5AWs49J8O2TX5+zc=; b=ihRPmtVUZzBIRUh99VHSMuge0Hx7VoLHXShqzHQ+jkAxXcGN/AEbblNSHKpry/BPbI Go9i4M4nFkn2dJXoaokLt2vZ6x6taW6dnIX6gxCXh58iR0N3yhUS5uJijK4cniQb7XtA 7dkeOAef/huN9uoIs/x3ykyQRYGS5jUr1qBJBgrPwd56d0iq88/XfM+TDUMwpFPWzn2I GWOIRgeVx6kZvAMLmfKBuQuJxUmNqpQPX2XHJMdNLipweW+tpVo8S22ivlZaiyySQsw0 THcmqyg6ayuMuNxNiJHa3UHBweVh5NkT4MtZL0woZdXIFgsmGtE4w6zJAxwStNdbFuqq HHgg== X-Gm-Message-State: ALoCoQn5+lMeWOOIy8HvWG6O/nxQ73UOKMO8TxTcJJ2PTH7gz1ep0a4WPrI1qhwdiWm1rXcvUg+w X-Received: by 10.180.73.137 with SMTP id l9mr20498694wiv.5.1434389189376; Mon, 15 Jun 2015 10:26:29 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.25.166 with SMTP id d6ls929545lag.54.gmail; Mon, 15 Jun 2015 10:26:29 -0700 (PDT) X-Received: by 10.112.171.101 with SMTP id at5mr1296905lbc.66.1434389189209; Mon, 15 Jun 2015 10:26:29 -0700 (PDT) Received: from mail-lb0-f172.google.com (mail-lb0-f172.google.com. [209.85.217.172]) by mx.google.com with ESMTPS id ks3si10960693lac.164.2015.06.15.10.26.29 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 15 Jun 2015 10:26:29 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.172 as permitted sender) client-ip=209.85.217.172; Received: by lbbwc1 with SMTP id wc1so6036466lbb.2 for ; Mon, 15 Jun 2015 10:26:29 -0700 (PDT) X-Received: by 10.112.155.197 with SMTP id vy5mr1235574lbb.29.1434389189060; Mon, 15 Jun 2015 10:26:29 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.108.230 with SMTP id hn6csp1562881lbb; Mon, 15 Jun 2015 10:26:28 -0700 (PDT) X-Received: by 10.55.23.146 with SMTP id 18mr14573066qkx.99.1434389187764; Mon, 15 Jun 2015 10:26:27 -0700 (PDT) Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id z129si13433562qkz.79.2015.06.15.10.26.27 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 15 Jun 2015 10:26:27 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Received: from localhost ([::1]:35598 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z4Y9S-0000Ic-Rt for patch@linaro.org; Mon, 15 Jun 2015 13:26:26 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60687) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z4Y8B-0007TF-CW for qemu-devel@nongnu.org; Mon, 15 Jun 2015 13:25:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z4Y8A-0001N7-45 for qemu-devel@nongnu.org; Mon, 15 Jun 2015 13:25:07 -0400 Received: from mnementh.archaic.org.uk ([2001:8b0:1d0::1]:34471) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z4Y89-0001AA-T3 for qemu-devel@nongnu.org; Mon, 15 Jun 2015 13:25:06 -0400 Received: from pm215 by mnementh.archaic.org.uk with local (Exim 4.80) (envelope-from ) id 1Z4Y83-0003XR-TM for qemu-devel@nongnu.org; Mon, 15 Jun 2015 18:24:59 +0100 From: Peter Maydell To: qemu-devel@nongnu.org Date: Mon, 15 Jun 2015 18:24:57 +0100 Message-Id: <1434389098-13430-28-git-send-email-peter.maydell@linaro.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1434389098-13430-1-git-send-email-peter.maydell@linaro.org> References: <1434389098-13430-1-git-send-email-peter.maydell@linaro.org> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:8b0:1d0::1 Subject: [Qemu-devel] [PULL 27/28] ACPI: Add definitions for the SPCR table X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: peter.maydell@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.172 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 From: Andrew Jones SPCR is the Serial Port Console Redirection Table. See the document linked from http://uefi.org/acpi. For serial port types, "Interface Type", see the documentation for the Debug Port Table 2 (DBG2). Signed-off-by: Andrew Jones Tested-by: Shannon Zhao Reviewed-by: Igor Mammedov Acked-by: Michael S. Tsirkin Message-id: 1433929959-29530-2-git-send-email-drjones@redhat.com Signed-off-by: Peter Maydell --- include/hw/acpi/acpi-defs.h | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/include/hw/acpi/acpi-defs.h b/include/hw/acpi/acpi-defs.h index 59cf277..7b4bfb7 100644 --- a/include/hw/acpi/acpi-defs.h +++ b/include/hw/acpi/acpi-defs.h @@ -197,6 +197,38 @@ enum { }; /* + * Serial Port Console Redirection Table (SPCR), Rev. 1.02 + * + * For .interface_type see Debug Port Table 2 (DBG2) serial port + * subtypes in Table 3, Rev. May 22, 2012 + */ +struct AcpiSerialPortConsoleRedirection { + ACPI_TABLE_HEADER_DEF + uint8_t interface_type; + uint8_t reserved1[3]; + struct AcpiGenericAddress base_address; + uint8_t interrupt_types; + uint8_t irq; + uint32_t gsi; + uint8_t baud; + uint8_t parity; + uint8_t stopbits; + uint8_t flowctrl; + uint8_t term_type; + uint8_t reserved2; + uint16_t pci_device_id; + uint16_t pci_vendor_id; + uint8_t pci_bus; + uint8_t pci_slot; + uint8_t pci_func; + uint32_t pci_flags; + uint8_t pci_seg; + uint32_t reserved3; +} QEMU_PACKED; +typedef struct AcpiSerialPortConsoleRedirection + AcpiSerialPortConsoleRedirection; + +/* * ACPI 1.0 Root System Description Table (RSDT) */ struct AcpiRsdtDescriptorRev1