1 /* 2 * This file is auto-generated. Modifications will be lost. 3 * 4 * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/ 5 * for more information. 6 */ 7 #ifndef __INCLUDE_UAPI_SOF_FW_H__ 8 #define __INCLUDE_UAPI_SOF_FW_H__ 9 #include <linux/types.h> 10 #define SND_SOF_FW_SIG_SIZE 4 11 #define SND_SOF_FW_ABI 1 12 #define SND_SOF_FW_SIG "Reef" 13 enum snd_sof_fw_blk_type { 14 SOF_FW_BLK_TYPE_INVALID = - 1, 15 SOF_FW_BLK_TYPE_START = 0, 16 SOF_FW_BLK_TYPE_RSRVD0 = SOF_FW_BLK_TYPE_START, 17 SOF_FW_BLK_TYPE_IRAM = 1, 18 SOF_FW_BLK_TYPE_DRAM = 2, 19 SOF_FW_BLK_TYPE_SRAM = 3, 20 SOF_FW_BLK_TYPE_ROM = 4, 21 SOF_FW_BLK_TYPE_IMR = 5, 22 SOF_FW_BLK_TYPE_RSRVD6 = 6, 23 SOF_FW_BLK_TYPE_RSRVD7 = 7, 24 SOF_FW_BLK_TYPE_RSRVD8 = 8, 25 SOF_FW_BLK_TYPE_RSRVD9 = 9, 26 SOF_FW_BLK_TYPE_RSRVD10 = 10, 27 SOF_FW_BLK_TYPE_RSRVD11 = 11, 28 SOF_FW_BLK_TYPE_RSRVD12 = 12, 29 SOF_FW_BLK_TYPE_RSRVD13 = 13, 30 SOF_FW_BLK_TYPE_RSRVD14 = 14, 31 SOF_FW_BLK_TYPE_NUM 32 }; 33 struct snd_sof_blk_hdr { 34 enum snd_sof_fw_blk_type type; 35 __u32 size; 36 __u32 offset; 37 } __attribute__((__packed__)); 38 enum snd_sof_fw_mod_type { 39 SOF_FW_BASE = 0, 40 SOF_FW_MODULE = 1, 41 }; 42 struct snd_sof_mod_hdr { 43 enum snd_sof_fw_mod_type type; 44 __u32 size; 45 __u32 num_blocks; 46 } __attribute__((__packed__)); 47 struct snd_sof_fw_header { 48 unsigned char sig[SND_SOF_FW_SIG_SIZE]; 49 __u32 file_size; 50 __u32 num_modules; 51 __u32 abi; 52 } __attribute__((__packed__)); 53 #endif 54