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 _WCD_DSP_GLINK_H
8 #define _WCD_DSP_GLINK_H
9 #include <linux/types.h>
10 #define WDSP_CH_NAME_MAX_LEN 50
11 enum {
12   WDSP_REG_PKT = 1,
13   WDSP_CMD_PKT,
14   WDSP_READY_PKT,
15 };
16 #define WDSP_READY_PKT WDSP_READY_PKT
17 struct wdsp_reg_pkt {
18   __u8 no_of_channels;
19   __u8 payload[0];
20 };
21 struct wdsp_cmd_pkt {
22   char ch_name[WDSP_CH_NAME_MAX_LEN];
23   __u32 payload_size;
24   __u8 payload[0];
25 };
26 struct wdsp_write_pkt {
27   __u8 pkt_type;
28   __u8 payload[0];
29 };
30 struct wdsp_glink_ch_cfg {
31   char name[WDSP_CH_NAME_MAX_LEN];
32   __u32 latency_in_us;
33   __u32 no_of_intents;
34   __u32 intents_size[0];
35 };
36 #endif
37