|
Zephyr API 3.6.99
|
Loading...
Searching...
No Matches
Go to the documentation of this file.
7#ifndef ZEPHYR_INCLUDE_SIP_SVC_AGILEX_SMC_H_
8#define ZEPHYR_INCLUDE_SIP_SVC_AGILEX_SMC_H_
19#define SMC_STATUS_INVALID 0xFFFFFFFF
20#define SMC_STATUS_OKAY 0
21#define SMC_STATUS_BUSY 1
22#define SMC_STATUS_REJECT 2
23#define SMC_STATUS_NO_RESPONSE 3
24#define SMC_STATUS_ERROR 4
33#define SMC_PLAT_PROTO_VER 0x0
35#define SMC_PLAT_PROTO_HEADER_TRANS_ID_OFFSET 0
36#define SMC_PLAT_PROTO_HEADER_TRANS_ID_MASK 0xFF
38#define SMC_PLAT_PROTO_HEADER_VER_OFFSET 60
39#define SMC_PLAT_PROTO_HEADER_VER_MASK 0xF
41#define SMC_PLAT_PROTO_HEADER \
42 ((SMC_PLAT_PROTO_VER & SMC_PLAT_PROTO_HEADER_VER_MASK) << SMC_PLAT_PROTO_HEADER_VER_OFFSET)
44#define SMC_PLAT_PROTO_HEADER_SET_TRANS_ID(header, trans_id) \
46 ~(SMC_PLAT_PROTO_HEADER_TRANS_ID_MASK << SMC_PLAT_PROTO_HEADER_TRANS_ID_OFFSET); \
47 (header) |= (((trans_id)&SMC_PLAT_PROTO_HEADER_TRANS_ID_MASK) \
48 << SMC_PLAT_PROTO_HEADER_TRANS_ID_OFFSET);
53#define SMC_FUNC_ID_GET_SVC_VERSION 0xC2000400
54#define SMC_FUNC_ID_REG_READ 0xC2000401
55#define SMC_FUNC_ID_REG_WRITE 0xC2000402
56#define SMC_FUNC_ID_REG_UPDATE 0xC2000403
57#define SMC_FUNC_ID_SET_HPS_BRIDGES 0xC2000404
58#define SMC_FUNC_ID_RSU_UPDATE_ADDR 0xC2000405
63#define SMC_FUNC_ID_MAILBOX_SEND_COMMAND 0xC2000420
64#define SMC_FUNC_ID_MAILBOX_POLL_RESPONSE 0xC2000421
68#define MAILBOX_CANCEL_COMMAND 0x03