Skip to content

Commit ac46f5b

Browse files
mstrozekrafaeljw
authored andcommitted
ACPICA: Add SoundWire File Table (SWFT) signature
The File Download (FDL) process of SoundWire Class Audio (SDCA) driver, which provides code/data which may be required by an SDCA device, utilizes SWFT to obtain that code/data. There is a single SWFT for the system, and SWFT can contain multiple files (information about the file as well as its binary contents). The SWFT has a standard ACPI Descriptor Table Header, followed by SoundWire File definitions as described in Discovery and Configuration (DisCo) Specification for SoundWire® Link: acpica/acpica@18c96022 Signed-off-by: Maciej Strozek <mstrozek@opensource.cirrus.com> Reviewed-by: Charles Keepax <ckeepax@opensource.cirrus.com> Link: https://patch.msgid.link/20250811134505.1162661-1-mstrozek@opensource.cirrus.com Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent 1b237f1 commit ac46f5b

2 files changed

Lines changed: 22 additions & 1 deletion

File tree

drivers/acpi/tables.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ static const char table_sigs[][ACPI_NAMESEG_SIZE] __nonstring_array __initconst
408408
ACPI_SIG_PSDT, ACPI_SIG_RSDT, ACPI_SIG_XSDT, ACPI_SIG_SSDT,
409409
ACPI_SIG_IORT, ACPI_SIG_NFIT, ACPI_SIG_HMAT, ACPI_SIG_PPTT,
410410
ACPI_SIG_NHLT, ACPI_SIG_AEST, ACPI_SIG_CEDT, ACPI_SIG_AGDI,
411-
ACPI_SIG_NBFT };
411+
ACPI_SIG_NBFT, ACPI_SIG_SWFT};
412412

413413
#define ACPI_HEADER_SIZE sizeof(struct acpi_table_header)
414414

include/acpi/actbl2.h

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@
5757
#define ACPI_SIG_SDEI "SDEI" /* Software Delegated Exception Interface Table */
5858
#define ACPI_SIG_SDEV "SDEV" /* Secure Devices table */
5959
#define ACPI_SIG_SVKL "SVKL" /* Storage Volume Key Location Table */
60+
#define ACPI_SIG_SWFT "SWFT" /* SoundWire File Table */
6061
#define ACPI_SIG_TDEL "TDEL" /* TD Event Log Table */
6162

6263
/*
@@ -3478,6 +3479,26 @@ enum acpi_svkl_format {
34783479
ACPI_SVKL_FORMAT_RESERVED = 1 /* 1 and greater are reserved */
34793480
};
34803481

3482+
/*******************************************************************************
3483+
* SWFT - SoundWire File Table
3484+
*
3485+
* Conforms to "Discovery and Configuration (DisCo) Specification for SoundWire"
3486+
* Version 2.1, 2 October 2023
3487+
*
3488+
******************************************************************************/
3489+
struct acpi_sw_file {
3490+
u16 vendor_id;
3491+
u32 file_id;
3492+
u16 file_version;
3493+
u32 file_length;
3494+
u8 data[];
3495+
};
3496+
3497+
struct acpi_table_swft {
3498+
struct acpi_table_header header;
3499+
struct acpi_sw_file files[];
3500+
};
3501+
34813502
/*******************************************************************************
34823503
*
34833504
* TDEL - TD-Event Log

0 commit comments

Comments
 (0)