include/sound/sof/ext_manifest4.h

Source file repositories/reference/linux-study-clean/include/sound/sof/ext_manifest4.h

File Facts

System
Linux kernel
Corpus path
include/sound/sof/ext_manifest4.h
Extension
.h
Size
3571 bytes
Lines
120
Domain
Driver Families
Bucket
include/sound
Inferred role
Driver Families: implementation source
Status
source implementation candidate

Why This File Exists

Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.

Dependency Surface

Detected Declarations

Annotated Snippet

struct sof_ext_manifest4_hdr {
	uint32_t id;
	uint32_t len; /* length of extension manifest */
	uint16_t version_major; /* header version */
	uint16_t version_minor;
	uint32_t num_module_entries;
} __packed;

struct sof_man4_fw_binary_header {
	/* This part must be unchanged to be backward compatible with SPT-LP ROM */
	uint32_t id;
	uint32_t len; /* sizeof(sof_man4_fw_binary_header) in bytes */
	uint8_t name[MAX_FW_BINARY_NAME];
	uint32_t preload_page_count; /* number of pages of preloaded image */
	uint32_t fw_image_flags;
	uint32_t feature_mask;
	uint16_t major_version; /* Firmware version */
	uint16_t minor_version;
	uint16_t hotfix_version;
	uint16_t build_version;
	uint32_t num_module_entries;

	/* This part may change to contain any additional data for BaseFw that is skipped by ROM */
	uint32_t hw_buf_base_addr;
	uint32_t hw_buf_length;
	uint32_t load_offset; /* This value is used by ROM */
} __packed;

struct sof_man4_segment_desc {
	uint32_t flags;
	uint32_t v_base_addr;
	uint32_t file_offset;
} __packed;

struct sof_man4_module {
	uint32_t id;
	uint8_t name[MAX_MODULE_NAME_LEN];
	guid_t uuid;
	uint32_t type;
	uint8_t hash[DEFAULT_HASH_SHA256_LEN];
	uint32_t entry_point;
	uint16_t cfg_offset;
	uint16_t cfg_count;
	uint32_t affinity_mask;
	uint16_t instance_max_count;
	uint16_t instance_stack_size;
	struct sof_man4_segment_desc	segments[3];
} __packed;

struct sof_man4_module_config {
	uint32_t par[4];	/* module parameters */
	uint32_t is_bytes;	/* actual size of instance .bss (bytes) */
	uint32_t cps;		/* cycles per second */
	uint32_t ibs;		/* input buffer size (bytes) */
	uint32_t obs;		/* output buffer size (bytes) */
	uint32_t module_flags;	/* flags, reserved for future use */
	uint32_t cpc;		/* cycles per single run */
	uint32_t obls;		/* output block size, reserved for future use */
} __packed;

#endif /* __SOF_FIRMWARE_EXT_MANIFEST4_H__ */

Annotation

Implementation Notes