History

ASoC: SOF: ext_manifest: parse windows

The window description can be extracted from the extended manifest content. This information known at build time does not need to be provided in a mailbox.

Karol Trzcinski committed 6 years ago

Commit 9e72f131 parent 37109142 files · +34 −2Browse files

Showing the changes to include/uapi (1 of 2 files). Show all

Unified · Split

include/uapi/sound/sof/ext_manifest.h+9−0
@@ -17,6 +17,7 @@ · 16 unmodified lines
1717 #define __SOF_FIRMWARE_EXT_MANIFEST_H__
1818
1919 #include <linux/const.h>
20+#include <sound/sof/info.h>
2021
2122 /* In ASCII `XMan` */
2223 #define SOF_EXT_MAN_MAGIC_NUMBER 0x6e614d58
@@ -54,6 +55,7 @@ struct sof_ext_man_header { · 31 unmodified lines
5455 /* Extended manifest elements types */
5556 enum sof_ext_man_elem_type {
5657 SOF_EXT_MAN_ELEM_FW_VERSION = 0,
58+ SOF_EXT_MAN_ELEM_WINDOW = SOF_IPC_EXT_WINDOW,
5759 };
5860
5961 /* extended manifest element header */
@@ -71,4 +73,11 @@ struct sof_ext_man_fw_version { · 11 unmodified lines
7173 uint32_t flags;
7274 } __packed;
7375
76+/* extended data memory windows for IPC, trace and debug */
77+struct sof_ext_man_window {
78+ struct sof_ext_man_elem_header hdr;
79+ /* use sof_ipc struct because of code re-use */
80+ struct sof_ipc_window ipc_window;
81+} __packed;
82+
7483 #endif /* __SOF_FIRMWARE_EXT_MANIFEST_H__ */