#define pr_fmt(fmt) …
#include <linux/module.h>
#include <linux/scmi_protocol.h>
#include "protocols.h"
#include "notify.h"
#define SCMI_PROTOCOL_SUPPORTED_VERSION …
enum scmi_reset_protocol_cmd { … };
#define NUM_RESET_DOMAIN_MASK …
#define RESET_NOTIFY_ENABLE …
struct scmi_msg_resp_reset_domain_attributes { … };
struct scmi_msg_reset_domain_reset { … };
struct scmi_msg_reset_notify { … };
struct scmi_reset_issued_notify_payld { … };
struct reset_dom_info { … };
struct scmi_reset_info { … };
static int scmi_reset_attributes_get(const struct scmi_protocol_handle *ph,
struct scmi_reset_info *pi)
{ … }
static int
scmi_reset_domain_attributes_get(const struct scmi_protocol_handle *ph,
struct scmi_reset_info *pinfo,
u32 domain, u32 version)
{ … }
static int scmi_reset_num_domains_get(const struct scmi_protocol_handle *ph)
{ … }
static const char *
scmi_reset_name_get(const struct scmi_protocol_handle *ph, u32 domain)
{ … }
static int scmi_reset_latency_get(const struct scmi_protocol_handle *ph,
u32 domain)
{ … }
static int scmi_domain_reset(const struct scmi_protocol_handle *ph, u32 domain,
u32 flags, u32 state)
{ … }
static int scmi_reset_domain_reset(const struct scmi_protocol_handle *ph,
u32 domain)
{ … }
static int
scmi_reset_domain_assert(const struct scmi_protocol_handle *ph, u32 domain)
{ … }
static int
scmi_reset_domain_deassert(const struct scmi_protocol_handle *ph, u32 domain)
{ … }
static const struct scmi_reset_proto_ops reset_proto_ops = …;
static bool scmi_reset_notify_supported(const struct scmi_protocol_handle *ph,
u8 evt_id, u32 src_id)
{ … }
static int scmi_reset_notify(const struct scmi_protocol_handle *ph,
u32 domain_id, bool enable)
{ … }
static int scmi_reset_set_notify_enabled(const struct scmi_protocol_handle *ph,
u8 evt_id, u32 src_id, bool enable)
{ … }
static void *
scmi_reset_fill_custom_report(const struct scmi_protocol_handle *ph,
u8 evt_id, ktime_t timestamp,
const void *payld, size_t payld_sz,
void *report, u32 *src_id)
{ … }
static int scmi_reset_get_num_sources(const struct scmi_protocol_handle *ph)
{ … }
static const struct scmi_event reset_events[] = …;
static const struct scmi_event_ops reset_event_ops = …;
static const struct scmi_protocol_events reset_protocol_events = …;
static int scmi_reset_protocol_init(const struct scmi_protocol_handle *ph)
{ … }
static const struct scmi_protocol scmi_reset = …;
DEFINE_SCMI_PROTOCOL_REGISTER_UNREGISTER(reset, scmi_reset)