0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012 #ifndef __SOC_MPFS_H__
0013 #define __SOC_MPFS_H__
0014
0015 #include <linux/types.h>
0016 #include <linux/of_device.h>
0017
0018 struct mpfs_sys_controller;
0019
0020 struct mpfs_mss_msg {
0021 u8 cmd_opcode;
0022 u16 cmd_data_size;
0023 struct mpfs_mss_response *response;
0024 u8 *cmd_data;
0025 u16 mbox_offset;
0026 u16 resp_offset;
0027 };
0028
0029 struct mpfs_mss_response {
0030 u32 resp_status;
0031 u32 *resp_msg;
0032 u16 resp_size;
0033 };
0034
0035 #if IS_ENABLED(CONFIG_POLARFIRE_SOC_SYS_CTRL)
0036
0037 int mpfs_blocking_transaction(struct mpfs_sys_controller *mpfs_client, struct mpfs_mss_msg *msg);
0038
0039 struct mpfs_sys_controller *mpfs_sys_controller_get(struct device *dev);
0040
0041 #endif
0042
0043 #endif