linux/drivers/firmware/arm_scmi/power.c

// SPDX-License-Identifier: GPL-2.0
/*
 * System Control and Management Interface (SCMI) Power Protocol
 *
 * Copyright (C) 2018-2022 ARM Ltd.
 */

#define pr_fmt(fmt)

#include <linux/module.h>
#include <linux/scmi_protocol.h>

#include "protocols.h"
#include "notify.h"

/* Updated only after ALL the mandatory features for that version are merged */
#define SCMI_PROTOCOL_SUPPORTED_VERSION

enum scmi_power_protocol_cmd {};

struct scmi_msg_resp_power_attributes {};

struct scmi_msg_resp_power_domain_attributes {};

struct scmi_power_set_state {};

struct scmi_power_state_notify {};

struct scmi_power_state_notify_payld {};

struct power_dom_info {};

struct scmi_power_info {};

static int scmi_power_attributes_get(const struct scmi_protocol_handle *ph,
				     struct scmi_power_info *pi)
{}

static int
scmi_power_domain_attributes_get(const struct scmi_protocol_handle *ph,
				 u32 domain, struct power_dom_info *dom_info,
				 u32 version, bool notify_state_change_cmd)
{}

static int scmi_power_state_set(const struct scmi_protocol_handle *ph,
				u32 domain, u32 state)
{}

static int scmi_power_state_get(const struct scmi_protocol_handle *ph,
				u32 domain, u32 *state)
{}

static int scmi_power_num_domains_get(const struct scmi_protocol_handle *ph)
{}

static const char *
scmi_power_name_get(const struct scmi_protocol_handle *ph,
		    u32 domain)
{}

static const struct scmi_power_proto_ops power_proto_ops =;

static int scmi_power_request_notify(const struct scmi_protocol_handle *ph,
				     u32 domain, bool enable)
{}

static bool scmi_power_notify_supported(const struct scmi_protocol_handle *ph,
					u8 evt_id, u32 src_id)
{}

static int scmi_power_set_notify_enabled(const struct scmi_protocol_handle *ph,
					 u8 evt_id, u32 src_id, bool enable)
{}

static void *
scmi_power_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_power_get_num_sources(const struct scmi_protocol_handle *ph)
{}

static const struct scmi_event power_events[] =;

static const struct scmi_event_ops power_event_ops =;

static const struct scmi_protocol_events power_protocol_events =;

static int scmi_power_protocol_init(const struct scmi_protocol_handle *ph)
{}

static const struct scmi_protocol scmi_power =;

DEFINE_SCMI_PROTOCOL_REGISTER_UNREGISTER(power, scmi_power)