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
17#define __SOF_FIRMWARE_EXT_MANIFEST_H__17#define __SOF_FIRMWARE_EXT_MANIFEST_H__
18 18
19#include <linux/const.h>19#include <linux/const.h>
20#include <sound/sof/info.h>
20 21
21/* In ASCII `XMan` */22/* In ASCII `XMan` */
22#define SOF_EXT_MAN_MAGIC_NUMBER 0x6e614d5823#define SOF_EXT_MAN_MAGIC_NUMBER 0x6e614d58
@@ -54,6 +55,7 @@ struct sof_ext_man_header { · 31 unmodified lines
54/* Extended manifest elements types */55/* Extended manifest elements types */
55enum sof_ext_man_elem_type {56enum sof_ext_man_elem_type {
56 SOF_EXT_MAN_ELEM_FW_VERSION = 0,57 SOF_EXT_MAN_ELEM_FW_VERSION = 0,
58 SOF_EXT_MAN_ELEM_WINDOW = SOF_IPC_EXT_WINDOW,
57};59};
58 60
59/* extended manifest element header */61/* extended manifest element header */
@@ -71,4 +73,11 @@ struct sof_ext_man_fw_version { · 11 unmodified lines
71 uint32_t flags;73 uint32_t flags;
72} __packed;74} __packed;
73 75
76/* extended data memory windows for IPC, trace and debug */
77struct 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
74#endif /* __SOF_FIRMWARE_EXT_MANIFEST_H__ */83#endif /* __SOF_FIRMWARE_EXT_MANIFEST_H__ */