xref: /OK3568_Linux_fs/u-boot/include/scmi_agent-uclass.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0+ */
2*4882a593Smuzhiyun /*
3*4882a593Smuzhiyun  * Copyright (C) 2019-2020 Linaro Limited.
4*4882a593Smuzhiyun  */
5*4882a593Smuzhiyun #ifndef _SCMI_AGENT_UCLASS_H
6*4882a593Smuzhiyun #define _SCMI_AGENT_UCLASS_H
7*4882a593Smuzhiyun 
8*4882a593Smuzhiyun struct udevice;
9*4882a593Smuzhiyun struct scmi_msg;
10*4882a593Smuzhiyun 
11*4882a593Smuzhiyun /**
12*4882a593Smuzhiyun  * struct scmi_transport_ops - The functions that a SCMI transport layer must implement.
13*4882a593Smuzhiyun  */
14*4882a593Smuzhiyun struct scmi_agent_ops {
15*4882a593Smuzhiyun 	/*
16*4882a593Smuzhiyun 	 * process_msg - Request transport to get the SCMI message processed
17*4882a593Smuzhiyun 	 *
18*4882a593Smuzhiyun 	 * @agent:		Agent using the transport
19*4882a593Smuzhiyun 	 * @msg:		SCMI message to be transmitted
20*4882a593Smuzhiyun 	 */
21*4882a593Smuzhiyun 	int (*process_msg)(struct udevice *dev, struct scmi_msg *msg);
22*4882a593Smuzhiyun };
23*4882a593Smuzhiyun 
24*4882a593Smuzhiyun #endif /* _SCMI_TRANSPORT_UCLASS_H */
25