From: Andrew Jones <drjones@redhat.com>
To: qemu-devel@nongnu.org
Cc: peter.maydell@linaro.org, mst@redhat.com,
shannon.zhao@linaro.org, imammedo@redhat.com
Subject: [Qemu-devel] [PATCH v3 1/2] ACPI: Add definitions for the SPCR table
Date: Wed, 10 Jun 2015 05:52:38 -0400 [thread overview]
Message-ID: <1433929959-29530-2-git-send-email-drjones@redhat.com> (raw)
In-Reply-To: <1433929959-29530-1-git-send-email-drjones@redhat.com>
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 <drjones@redhat.com>
Tested-by: Shannon Zhao <shannon.zhao@linaro.org>
---
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 59cf277434b37..7b4bfb7494717 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
--
1.8.3.1
next prev parent reply other threads:[~2015-06-10 9:52 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-10 9:52 [Qemu-devel] [PATCH v3 0/2] ACPI: ARM: add SPCR table Andrew Jones
2015-06-10 9:52 ` Andrew Jones [this message]
2015-06-10 16:16 ` [Qemu-devel] [PATCH v3 1/2] ACPI: Add definitions for the " Michael S. Tsirkin
2015-06-11 7:08 ` Igor Mammedov
2015-06-10 9:52 ` [Qemu-devel] [PATCH v3 2/2] hw/arm/virt-acpi-build: Add " Andrew Jones
2015-06-10 16:16 ` Michael S. Tsirkin
2015-06-11 7:09 ` Igor Mammedov
2015-06-15 15:45 ` Peter Maydell
2015-06-15 16:10 ` Michael S. Tsirkin
2015-06-15 16:32 ` Andrew Jones
2015-06-15 16:59 ` Peter Maydell
2015-06-15 18:13 ` Michael S. Tsirkin
2015-06-16 1:33 ` Shannon Zhao
2015-06-16 14:16 ` Igor Mammedov
2015-06-16 14:19 ` Michael S. Tsirkin
2015-06-17 1:06 ` Shannon Zhao
2015-06-17 6:52 ` Michael S. Tsirkin
2015-06-17 9:42 ` Andrew Jones
2015-06-18 10:28 ` Shannon Zhao
2015-06-18 11:03 ` Andrew Jones
2015-06-18 11:49 ` Shannon Zhao
2015-06-10 16:16 ` [Qemu-devel] [PATCH v3 0/2] ACPI: ARM: add " Michael S. Tsirkin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1433929959-29530-2-git-send-email-drjones@redhat.com \
--to=drjones@redhat.com \
--cc=imammedo@redhat.com \
--cc=mst@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=shannon.zhao@linaro.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).