#define pr_fmt(fmt) …
#include <linux/module.h>
#include <linux/scmi_protocol.h>
#include "protocols.h"
#include "notify.h"
#define SCMI_PROTOCOL_SUPPORTED_VERSION …
#define SCMI_SYSTEM_NUM_SOURCES …
enum scmi_system_protocol_cmd { … };
struct scmi_system_power_state_notify { … };
struct scmi_system_power_state_notifier_payld { … };
struct scmi_system_info { … };
static bool scmi_system_notify_supported(const struct scmi_protocol_handle *ph,
u8 evt_id, u32 src_id)
{ … }
static int scmi_system_request_notify(const struct scmi_protocol_handle *ph,
bool enable)
{ … }
static int scmi_system_set_notify_enabled(const struct scmi_protocol_handle *ph,
u8 evt_id, u32 src_id, bool enable)
{ … }
static void *
scmi_system_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 const struct scmi_event system_events[] = …;
static const struct scmi_event_ops system_event_ops = …;
static const struct scmi_protocol_events system_protocol_events = …;
static int scmi_system_protocol_init(const struct scmi_protocol_handle *ph)
{ … }
static const struct scmi_protocol scmi_system = …;
DEFINE_SCMI_PROTOCOL_REGISTER_UNREGISTER(system, scmi_system)