drm/dp_mst: Add helper to get port number at specific LCT from RAD
[drm/drm-misc.git] / drivers / firmware / arm_scmi / raw_mode.h
blob8af756a83fd14f64bbe5afa8ce0139cd2bbd02f2
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3 * System Control and Management Interface (SCMI) Message Protocol
4 * Raw mode support header.
6 * Copyright (C) 2022 ARM Ltd.
7 */
8 #ifndef _SCMI_RAW_MODE_H
9 #define _SCMI_RAW_MODE_H
11 #include "common.h"
13 enum {
14 SCMI_RAW_REPLY_QUEUE,
15 SCMI_RAW_NOTIF_QUEUE,
16 SCMI_RAW_ERRS_QUEUE,
17 SCMI_RAW_MAX_QUEUE
20 void *scmi_raw_mode_init(const struct scmi_handle *handle,
21 struct dentry *top_dentry, int instance_id,
22 u8 *channels, int num_chans,
23 const struct scmi_desc *desc, int tx_max_msg);
24 void scmi_raw_mode_cleanup(void *raw);
26 void scmi_raw_message_report(void *raw, struct scmi_xfer *xfer,
27 unsigned int idx, unsigned int chan_id);
28 void scmi_raw_error_report(void *raw, struct scmi_chan_info *cinfo,
29 u32 msg_hdr, void *priv);
31 #endif /* _SCMI_RAW_MODE_H */