1 /* SPDX-License-Identifier: GPL-2.0 */
3 /* Copyright (c) 2012-2018, The Linux Foundation. All rights reserved.
4 * Copyright (C) 2019-2022 Linaro Ltd.
9 #include <linux/types.h>
14 * ipa_smp2p_init() - Initialize the IPA SMP2P subsystem
16 * @modem_init: Whether the modem is responsible for GSI initialization
18 * Return: 0 if successful, or a negative error code
21 int ipa_smp2p_init(struct ipa *ipa, bool modem_init);
24 * ipa_smp2p_exit() - Inverse of ipa_smp2p_init()
27 void ipa_smp2p_exit(struct ipa *ipa);
30 * ipa_smp2p_irq_disable_setup() - Disable the "setup ready" interrupt
33 * Disable the "ipa-setup-ready" interrupt from the modem.
35 void ipa_smp2p_irq_disable_setup(struct ipa *ipa);
38 * ipa_smp2p_notify_reset() - Reset modem notification state
41 * If the modem crashes it queries the IPA power state. In cleaning
42 * up after such a crash this is used to reset some state maintained
43 * for managing this notification.
45 void ipa_smp2p_notify_reset(struct ipa *ipa);
47 #endif /* _IPA_SMP2P_H_ */