rjw | 6c1fd8f | 2022-11-30 14:33:01 +0800 | [diff] [blame] | 1 | /***************************************************************************** |
| 2 | * Copyright Statement: |
| 3 | * -------------------- |
| 4 | * Copyright (c) [2020], MediaTek Inc. All rights reserved. |
| 5 | * This software/firmware and related documentation ("MediaTek Software") are |
| 6 | * protected under relevant copyright laws. |
| 7 | * |
| 8 | * The information contained herein is confidential and proprietary to |
| 9 | * MediaTek Inc. and/or its licensors. Except as otherwise provided in the |
| 10 | * applicable licensing terms with MediaTek Inc. and/or its licensors, any |
| 11 | * reproduction, modification, use or disclosure of MediaTek Software, and |
| 12 | * information contained herein, in whole or in part, shall be strictly |
| 13 | * prohibited. |
| 14 | *****************************************************************************/ |
| 15 | |
| 16 | #ifndef _MIPC_H_ |
| 17 | #define _MIPC_H_ |
| 18 | |
| 19 | /*! |
| 20 | \defgroup COMMON |
| 21 | @{ |
| 22 | */ |
| 23 | |
| 24 | #include "platform.h" |
| 25 | #include "mipc_msg_tlv_const.h" |
| 26 | |
| 27 | typedef enum MIPC_MSG_enum mipc_msg_id_enum; |
| 28 | typedef enum mipc_result_const_enum mipc_result_enum; |
| 29 | |
| 30 | #define MIPC_VERSION (0x00000002) |
| 31 | |
| 32 | #define MIPC_SIM0 (1 << 0) |
| 33 | #define MIPC_SIM1 (1 << 1) |
| 34 | #define MIPC_SIM2 (1 << 2) |
| 35 | #define MIPC_SIM3 (1 << 3) |
| 36 | #define MIPC_PS_START (4) |
| 37 | #define MIPC_PS0 (1 << 4) |
| 38 | #define MIPC_PS1 (1 << 5) |
| 39 | #define MIPC_PS2 (1 << 6) |
| 40 | #define MIPC_PS3 (1 << 7) |
| 41 | #define MIPC_ALL (0xff) |
| 42 | |
| 43 | //#define MIPC_T_LOCAL_START (0x100) |
| 44 | |
| 45 | #define MIPC_MSG_TYPE_MASK (0xC000) |
| 46 | #define MIPC_MSG_TYPE_REQ_CNF (0x0000) |
| 47 | #define MIPC_MSG_TYPE_IND (0x4000) |
| 48 | #define MIPC_MSG_TYPE_CMD_RSP (0x8000) |
| 49 | #define MIPC_MSG_TYPE_NTF (0xC000) |
| 50 | // |
| 51 | |
| 52 | |
| 53 | /*! |
| 54 | @} |
| 55 | */ |
| 56 | |
| 57 | #endif |