scmi_agent-uclass.h 574 B

123456789101112131415161718192021222324
  1. /* 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. struct udevice;
  8. struct scmi_msg;
  9. /**
  10. * struct scmi_transport_ops - The functions that a SCMI transport layer must implement.
  11. */
  12. struct scmi_agent_ops {
  13. /*
  14. * process_msg - Request transport to get the SCMI message processed
  15. *
  16. * @agent: Agent using the transport
  17. * @msg: SCMI message to be transmitted
  18. */
  19. int (*process_msg)(struct udevice *dev, struct scmi_msg *msg);
  20. };
  21. #endif /* _SCMI_TRANSPORT_UCLASS_H */