raw_mode.h 821 B

12345678910111213141516171819202122232425262728293031
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * System Control and Management Interface (SCMI) Message Protocol
  4. * Raw mode support header.
  5. *
  6. * Copyright (C) 2022 ARM Ltd.
  7. */
  8. #ifndef _SCMI_RAW_MODE_H
  9. #define _SCMI_RAW_MODE_H
  10. #include "common.h"
  11. enum {
  12. SCMI_RAW_REPLY_QUEUE,
  13. SCMI_RAW_NOTIF_QUEUE,
  14. SCMI_RAW_ERRS_QUEUE,
  15. SCMI_RAW_MAX_QUEUE
  16. };
  17. void *scmi_raw_mode_init(const struct scmi_handle *handle,
  18. struct dentry *top_dentry, int instance_id,
  19. u8 *channels, int num_chans,
  20. const struct scmi_desc *desc, int tx_max_msg);
  21. void scmi_raw_mode_cleanup(void *raw);
  22. void scmi_raw_message_report(void *raw, struct scmi_xfer *xfer,
  23. unsigned int idx, unsigned int chan_id);
  24. void scmi_raw_error_report(void *raw, struct scmi_chan_info *cinfo,
  25. u32 msg_hdr, void *priv);
  26. #endif /* _SCMI_RAW_MODE_H */