1 /* SPDX-License-Identifier: BSD-3-Clause
2  *
3  * Copyright(c) 2020 Intel Corporation. All rights reserved.
4  *
5  * Author: Adrian Bonislawski <adrian.bonislawski@linux.intel.com>
6  */
7 
8 /**
9   * \file include/kernel/mailbox.h
10   * \brief FW Regs API definition
11   * \author Adrian Bonislawski <adrian.bonislawski@linux.intel.com>
12   */
13 
14 #ifndef __KERNEL_MAILBOX_H__
15 #define __KERNEL_MAILBOX_H__
16 
17 /** \addtogroup fw_regs_api FW Regs API
18  *  This is a common SRAM window 0 FW "registers" layout
19  *  used in the platfrom-defined SRAM window 0 region
20  *  @{
21  */
22 #define SRAM_REG_ROM_STATUS			0x0
23 #define SRAM_REG_FW_STATUS			0x4
24 #define SRAM_REG_FW_TRACEP			0x8
25 #define SRAM_REG_FW_IPC_RECEIVED_COUNT		0xc
26 #define SRAM_REG_FW_IPC_PROCESSED_COUNT		0x10
27 #define SRAM_REG_FW_TRACEP_SECONDARY_CORE_BASE	0x14
28 #define SRAM_REG_FW_TRACEP_SECONDARY_CORE_1		SRAM_REG_FW_TRACEP_SECONDARY_CORE_BASE
29 #define SRAM_REG_FW_TRACEP_SECONDARY_CORE_2		0x18
30 #define SRAM_REG_FW_TRACEP_SECONDARY_CORE_3		0x1C
31 #define SRAM_REG_FW_TRACEP_SECONDARY_CORE_4		0x20
32 #define SRAM_REG_FW_TRACEP_SECONDARY_CORE_5		0x24
33 #define SRAM_REG_FW_TRACEP_SECONDARY_CORE_6		0x28
34 #define SRAM_REG_FW_TRACEP_SECONDARY_CORE_7		0x2C
35 #define SRAM_REG_R_STATE_TRACE_BASE		0x30
36 #define SRAM_REG_R0_STATE_TRACE			SRAM_REG_R_STATE_TRACE_BASE
37 #define SRAM_REG_R1_STATE_TRACE			0x38
38 #define SRAM_REG_R2_STATE_TRACE			0x40
39 #define SRAM_REG_FW_END				(SRAM_REG_R2_STATE_TRACE + 0x8)
40 
41 /** @}*/
42 
43 #endif /* __KERNEL_MAILBOX_H__ */
44