Christopher Ferris | aeddbcf | 2019-07-08 12:45:46 -0700 | [diff] [blame^] | 1 | /**************************************************************************** |
| 2 | **************************************************************************** |
| 3 | *** |
| 4 | *** This header was automatically generated from a Linux kernel header |
| 5 | *** of the same name, to make information necessary for userspace to |
| 6 | *** call into the kernel available to libc. It contains only constants, |
| 7 | *** structures, and macros generated from the original header, and thus, |
| 8 | *** contains no copyrightable information. |
| 9 | *** |
| 10 | *** To edit the content of this header, modify the corresponding |
| 11 | *** source file (e.g. under external/kernel-headers/original/) then |
| 12 | *** run bionic/libc/kernel/tools/update_all.py |
| 13 | *** |
| 14 | *** Any manual change here will be lost the next time this script will |
| 15 | *** be run. You've been warned! |
| 16 | *** |
| 17 | **************************************************************************** |
| 18 | ****************************************************************************/ |
| 19 | #ifndef __INCLUDE_UAPI_SOF_FW_H__ |
| 20 | #define __INCLUDE_UAPI_SOF_FW_H__ |
| 21 | #define SND_SOF_FW_SIG_SIZE 4 |
| 22 | #define SND_SOF_FW_ABI 1 |
| 23 | #define SND_SOF_FW_SIG "Reef" |
| 24 | enum snd_sof_fw_blk_type { |
| 25 | SOF_FW_BLK_TYPE_INVALID = - 1, |
| 26 | SOF_FW_BLK_TYPE_START = 0, |
| 27 | SOF_FW_BLK_TYPE_RSRVD0 = SOF_FW_BLK_TYPE_START, |
| 28 | SOF_FW_BLK_TYPE_IRAM = 1, |
| 29 | SOF_FW_BLK_TYPE_DRAM = 2, |
| 30 | SOF_FW_BLK_TYPE_SRAM = 3, |
| 31 | SOF_FW_BLK_TYPE_ROM = 4, |
| 32 | SOF_FW_BLK_TYPE_IMR = 5, |
| 33 | SOF_FW_BLK_TYPE_RSRVD6 = 6, |
| 34 | SOF_FW_BLK_TYPE_RSRVD7 = 7, |
| 35 | SOF_FW_BLK_TYPE_RSRVD8 = 8, |
| 36 | SOF_FW_BLK_TYPE_RSRVD9 = 9, |
| 37 | SOF_FW_BLK_TYPE_RSRVD10 = 10, |
| 38 | SOF_FW_BLK_TYPE_RSRVD11 = 11, |
| 39 | SOF_FW_BLK_TYPE_RSRVD12 = 12, |
| 40 | SOF_FW_BLK_TYPE_RSRVD13 = 13, |
| 41 | SOF_FW_BLK_TYPE_RSRVD14 = 14, |
| 42 | SOF_FW_BLK_TYPE_NUM |
| 43 | }; |
| 44 | struct snd_sof_blk_hdr { |
| 45 | enum snd_sof_fw_blk_type type; |
| 46 | uint32_t size; |
| 47 | uint32_t offset; |
| 48 | } __packed; |
| 49 | enum snd_sof_fw_mod_type { |
| 50 | SOF_FW_BASE = 0, |
| 51 | SOF_FW_MODULE = 1, |
| 52 | }; |
| 53 | struct snd_sof_mod_hdr { |
| 54 | enum snd_sof_fw_mod_type type; |
| 55 | uint32_t size; |
| 56 | uint32_t num_blocks; |
| 57 | } __packed; |
| 58 | struct snd_sof_fw_header { |
| 59 | unsigned char sig[SND_SOF_FW_SIG_SIZE]; |
| 60 | uint32_t file_size; |
| 61 | uint32_t num_modules; |
| 62 | uint32_t abi; |
| 63 | } __packed; |
| 64 | #endif |