Skip to content

Commit 7741e3c

Browse files
Sia Jee Hengrafaeljw
authored andcommitted
ACPICA: SPCR: Update the SPCR table to version 4
ACPICA commit 1eeff52124a45d5cd887ba5687bbad0116e4d211 The Microsoft Serial Port Console Redirection (SPCR) specification revision 1.09 comprises additional fields [1]. The newly added fields are: - RISC-V SBI - Precise Baud Rate - namespace_string_length - namespace_string_offset - namespace_string Additionaly, this code will support up to SPCR revision 1.10, as it includes only minor wording changes. Link: https://learn.microsoft.com/en-us/windows-hardware/drivers/serports/serial-port-console-redirection-table # [1] Link: acpica/acpica@1eeff521 Signed-off-by: Sia Jee Heng <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent ff418f3 commit 7741e3c

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

include/acpi/actbl3.h

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,10 @@ struct acpi_table_slit {
9292
/*******************************************************************************
9393
*
9494
* SPCR - Serial Port Console Redirection table
95-
* Version 2
95+
* Version 4
9696
*
9797
* Conforms to "Serial Port Console Redirection Table",
98-
* Version 1.03, August 10, 2015
98+
* Version 1.10, Jan 5, 2023
9999
*
100100
******************************************************************************/
101101

@@ -112,15 +112,19 @@ struct acpi_table_spcr {
112112
u8 stop_bits;
113113
u8 flow_control;
114114
u8 terminal_type;
115-
u8 reserved1;
115+
u8 language;
116116
u16 pci_device_id;
117117
u16 pci_vendor_id;
118118
u8 pci_bus;
119119
u8 pci_device;
120120
u8 pci_function;
121121
u32 pci_flags;
122122
u8 pci_segment;
123-
u32 reserved2;
123+
u32 uart_clk_freq;
124+
u32 precise_baudrate;
125+
u16 name_space_string_length;
126+
u16 name_space_string_offset;
127+
char name_space_string[];
124128
};
125129

126130
/* Masks for pci_flags field above */

0 commit comments

Comments
 (0)