blob: a28572f43e7816e83c0ba64adfec94707d9ed023 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
/*
* Copyright (c) 2006-2022, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2022-11-26 GuEe-GUI first version
*/
#ifndef __SCMI_AGENT_H__
#define __SCMI_AGENT_H__
#include <rtthread.h>
#include <rtdevice.h>
#include "shmem.h"
struct scmi_agent;
struct scmi_agent_ops
{
const char *name;
rt_err_t (*setup)(struct scmi_agent *agent, struct rt_device *dev);
rt_err_t (*process_msg)(struct scmi_agent *agent, struct rt_scmi_msg *msg);
};
struct scmi_agent
{
const struct scmi_agent_ops *ops;
void *priv;
};
#endif /* __SCMI_AGENT_H__ */
|