agent.h 654 B

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