1 /* Copyright (c) 2021 Intel Corporation
2  * SPDX-License-Identifier: Apache-2.0
3  */
4 #ifndef ZEPHYR_SOC_INTEL_ADSP_IPC_REGS_H_
5 #define ZEPHYR_SOC_INTEL_ADSP_IPC_REGS_H_
6 
7 #include <intel_adsp_ipc_devtree.h>
8 #include <stdint.h>
9 
10 /**
11  * @brief IPC registers layout for Intel ADSP cAVS TGL SoCs.
12  */
13 struct intel_adsp_ipc {
14 	uint32_t tdr;
15 	uint32_t tda;
16 	uint32_t tdd;
17 	uint32_t unused0;
18 	uint32_t idr;
19 	uint32_t ida;
20 	uint32_t idd;
21 	uint32_t unused1;
22 	uint32_t cst;
23 	uint32_t csr;
24 	uint32_t ctl;
25 };
26 
27 #define INTEL_ADSP_IPC_BUSY BIT(31)
28 #define INTEL_ADSP_IPC_DONE BIT(31)
29 
30 #define INTEL_ADSP_IPC_CTL_TBIE BIT(0)
31 #define INTEL_ADSP_IPC_CTL_IDIE BIT(1)
32 
33 #endif /* ZEPHYR_SOC_INTEL_ADSP_IPC_REGS_H_ */
34