linux/drivers/net/wwan/iosm/iosm_ipc_pm.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * Copyright (C) 2020-21 Intel Corporation.
 */

#include "iosm_ipc_protocol.h"

/* Timeout value in MS for the PM to wait for device to reach active state */
#define IPC_PM_ACTIVE_TIMEOUT_MS

/* Note that here "active" has the value 1, as compared to the enums
 * ipc_mem_host_pm_state or ipc_mem_dev_pm_state, where "active" is 0
 */
#define IPC_PM_SLEEP
#define CONSUME_STATE
#define IPC_PM_ACTIVE

void ipc_pm_signal_hpda_doorbell(struct iosm_pm *ipc_pm, u32 identifier,
				 bool host_slp_check)
{}

/* Wake up the device if it is in low power mode. */
static bool ipc_pm_link_activate(struct iosm_pm *ipc_pm)
{}

bool ipc_pm_wait_for_device_active(struct iosm_pm *ipc_pm)
{}

static void ipc_pm_on_link_sleep(struct iosm_pm *ipc_pm)
{}

static void ipc_pm_on_link_wake(struct iosm_pm *ipc_pm, bool ack)
{}

bool ipc_pm_trigger(struct iosm_pm *ipc_pm, enum ipc_pm_unit unit, bool active)
{}

bool ipc_pm_prepare_host_sleep(struct iosm_pm *ipc_pm)
{}

bool ipc_pm_prepare_host_active(struct iosm_pm *ipc_pm)
{}

void ipc_pm_set_s2idle_sleep(struct iosm_pm *ipc_pm, bool sleep)
{}

bool ipc_pm_dev_slp_notification(struct iosm_pm *ipc_pm, u32 cp_pm_req)
{}

void ipc_pm_init(struct iosm_protocol *ipc_protocol)
{}

void ipc_pm_deinit(struct iosm_protocol *proto)
{}