1
2
3
4
5
6
7
8
9#ifndef __INCLUDE_SOUND_SOF_INFO_H__
10#define __INCLUDE_SOUND_SOF_INFO_H__
11
12#include <sound/sof/header.h>
13#include <sound/sof/stream.h>
14
15
16
17
18
19#define SOF_IPC_MAX_ELEMS 16
20
21
22
23
24#define SOF_IPC_INFO_BUILD BIT(0)
25#define SOF_IPC_INFO_LOCKS BIT(1)
26#define SOF_IPC_INFO_LOCKSV BIT(2)
27#define SOF_IPC_INFO_GDB BIT(3)
28
29
30enum sof_ipc_ext_data {
31 SOF_IPC_EXT_UNUSED = 0,
32 SOF_IPC_EXT_WINDOW = 1,
33 SOF_IPC_EXT_CC_INFO = 2,
34 SOF_IPC_EXT_PROBE_INFO = 3,
35 SOF_IPC_EXT_USER_ABI_INFO = 4,
36};
37
38
39struct sof_ipc_fw_version {
40 struct sof_ipc_hdr hdr;
41 uint16_t major;
42 uint16_t minor;
43 uint16_t micro;
44 uint16_t build;
45 uint8_t date[12];
46 uint8_t time[10];
47 uint8_t tag[6];
48 uint32_t abi_version;
49
50 uint32_t src_hash;
51
52
53 uint32_t reserved[3];
54} __packed;
55
56
57struct sof_ipc_fw_ready {
58 struct sof_ipc_cmd_hdr hdr;
59 uint32_t dspbox_offset;
60 uint32_t hostbox_offset;
61 uint32_t dspbox_size;
62 uint32_t hostbox_size;
63 struct sof_ipc_fw_version version;
64
65
66 uint64_t flags;
67
68
69 uint32_t reserved[4];
70} __packed;
71
72
73
74
75enum sof_ipc_region {
76 SOF_IPC_REGION_DOWNBOX = 0,
77 SOF_IPC_REGION_UPBOX,
78 SOF_IPC_REGION_TRACE,
79 SOF_IPC_REGION_DEBUG,
80 SOF_IPC_REGION_STREAM,
81 SOF_IPC_REGION_REGS,
82 SOF_IPC_REGION_EXCEPTION,
83};
84
85struct sof_ipc_ext_data_hdr {
86 struct sof_ipc_cmd_hdr hdr;
87 uint32_t type;
88} __packed;
89
90struct sof_ipc_window_elem {
91 struct sof_ipc_hdr hdr;
92 uint32_t type;
93 uint32_t id;
94 uint32_t flags;
95 uint32_t size;
96
97 uint32_t offset;
98} __packed;
99
100
101struct sof_ipc_window {
102 struct sof_ipc_ext_data_hdr ext_hdr;
103 uint32_t num_windows;
104 struct sof_ipc_window_elem window[SOF_IPC_MAX_ELEMS];
105} __packed;
106
107struct sof_ipc_cc_version {
108 struct sof_ipc_ext_data_hdr ext_hdr;
109 uint32_t major;
110 uint32_t minor;
111 uint32_t micro;
112
113
114 uint32_t reserved[4];
115
116 uint8_t name[16];
117 uint8_t optim[4];
118 uint8_t desc[32];
119} __packed;
120
121
122struct sof_ipc_probe_support {
123 struct sof_ipc_ext_data_hdr ext_hdr;
124
125 uint32_t probe_points_max;
126 uint32_t injection_dmas_max;
127
128
129 uint32_t reserved[2];
130} __packed;
131
132
133struct sof_ipc_user_abi_version {
134 struct sof_ipc_ext_data_hdr ext_hdr;
135
136 uint32_t abi_dbg_version;
137} __packed;
138
139#endif
140