1 /*
2  * Copyright (c) 2022 Intel Corporation.
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  */
6 
7 #ifndef __INTEL_DAI_DRIVER_HDA_H__
8 #define __INTEL_DAI_DRIVER_HDA_H__
9 
10 #include <stdint.h>
11 #include <zephyr/drivers/dai.h>
12 
13 #define dai_get_drvdata(dai) &dai->priv_data
14 #define dai_base(dai) dai->plat_data.base
15 
16 #define DAI_INTEL_HDA_DEFAULT_WORD_SIZE 16
17 
18 struct dai_intel_ipc_hda_params {
19 	uint32_t reserved0;
20 	uint32_t link_dma_ch;
21 	uint32_t rate;
22 	uint32_t channels;
23 } __packed;
24 
25 struct dai_intel_hda_pdata {
26 	struct dai_config config;
27 	struct dai_properties props;
28 	struct dai_intel_ipc_hda_params params;
29 };
30 
31 struct dai_intel_hda {
32 	uint32_t index;
33 	struct k_spinlock lock;
34 	struct dai_intel_hda_pdata priv_data;
35 };
36 
37 #endif
38