Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3faeb9a9 authored by Shihuan Liu's avatar Shihuan Liu Committed by Skylar Chang
Browse files

msm: ipa: add static function when IPA v3 is not used



Add static function in IPA PM when IPA v3 is not used.

Change-Id: I1cd9725797d5e0916c75dba7d1d0fa32abe902ed
Signed-off-by: default avatarSkylar Chang <chiaweic@codeaurora.org>
Acked-by: default avatarShihuan Liu <shihuanl@qti.qualcomm.com>
parent c85e6b5e
Loading
Loading
Loading
Loading
+78 −0
Original line number Diff line number Diff line
@@ -90,6 +90,8 @@ struct ipa_pm_register_params {
	bool skip_clk_vote;
};

#ifdef CONFIG_IPA3

int ipa_pm_register(struct ipa_pm_register_params *params, u32 *hdl);
int ipa_pm_associate_ipa_cons_to_client(u32 hdl, enum ipa_client_type consumer);
int ipa_pm_activate(u32 hdl);
@@ -107,4 +109,80 @@ int ipa_pm_deactivate_all_deferred(void);
int ipa_pm_stat(char *buf, int size);
int ipa_pm_exceptions_stat(char *buf, int size);

#else

static inline int ipa_pm_register(
	struct ipa_pm_register_params *params, u32 *hdl)
{
	return -EPERM;
}

static inline int ipa_pm_associate_ipa_cons_to_client(
	u32 hdl, enum ipa_client_type consumer)
{
	return -EPERM;
}

static inline int ipa_pm_activate(u32 hdl)
{
	return -EPERM;
}

static inline int ipa_pm_activate_sync(u32 hdl)
{
	return -EPERM;
}

static inline int ipa_pm_deferred_deactivate(u32 hdl)
{
	return -EPERM;
}

static inline int ipa_pm_deactivate_sync(u32 hdl)
{
	return -EPERM;
}

static inline int ipa_pm_set_perf_profile(u32 hdl, int throughput)
{
	return -EPERM;
}

static inline int ipa_pm_deregister(u32 hdl)
{
	return -EPERM;
}

/* IPA Internal Functions */
static inline int ipa_pm_init(struct ipa_pm_init_params *params)
{
	return -EPERM;
}

static inline int ipa_pm_destroy(void)
{
	return -EPERM;
}

static inline int ipa_pm_handle_suspend(u32 pipe_bitmask)
{
	return -EPERM;
}

static inline int ipa_pm_deactivate_all_deferred(void)
{
	return -EPERM;
}

static inline int ipa_pm_stat(char *buf, int size)
{
	return -EPERM;
}

static inline int ipa_pm_exceptions_stat(char *buf, int size)
{
	return -EPERM;
}
#endif

#endif /* _IPA_PM_H_ */