blob: 861ac6d11007fbe1977362b5a6f908e6b55647f2 [file] [log] [blame]
Etienne Carriere358599e2020-09-09 18:44:00 +02001/* SPDX-License-Identifier: GPL-2.0+ */
2/*
3 * Copyright (C) 2019-2020 Linaro Limited.
4 */
5#ifndef _SCMI_AGENT_UCLASS_H
6#define _SCMI_AGENT_UCLASS_H
7
8struct udevice;
9struct scmi_msg;
10
11/**
12 * struct scmi_transport_ops - The functions that a SCMI transport layer must implement.
13 */
14struct scmi_agent_ops {
15 /*
16 * process_msg - Request transport to get the SCMI message processed
17 *
Etienne Carriere8bcb1b42022-05-31 18:09:18 +020018 * @dev: SCMI protocol device using the transport
Etienne Carriere358599e2020-09-09 18:44:00 +020019 * @msg: SCMI message to be transmitted
20 */
21 int (*process_msg)(struct udevice *dev, struct scmi_msg *msg);
22};
23
24#endif /* _SCMI_TRANSPORT_UCLASS_H */