Merge tag 'vfs-6.9.ntfs' of git://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs
[linux-2.6-block.git] / drivers / net / ipa / ipa_smp2p.h
CommitLineData
530f9216
AE
1/* SPDX-License-Identifier: GPL-2.0 */
2
3/* Copyright (c) 2012-2018, The Linux Foundation. All rights reserved.
a4388da5 4 * Copyright (C) 2019-2022 Linaro Ltd.
530f9216
AE
5 */
6#ifndef _IPA_SMP2P_H_
7#define _IPA_SMP2P_H_
8
9#include <linux/types.h>
10
11struct ipa;
12
13/**
14 * ipa_smp2p_init() - Initialize the IPA SMP2P subsystem
15 * @ipa: IPA pointer
16 * @modem_init: Whether the modem is responsible for GSI initialization
17 *
e3eea08e 18 * Return: 0 if successful, or a negative error code
530f9216
AE
19 *
20 */
21int ipa_smp2p_init(struct ipa *ipa, bool modem_init);
22
23/**
24 * ipa_smp2p_exit() - Inverse of ipa_smp2p_init()
25 * @ipa: IPA pointer
26 */
27void ipa_smp2p_exit(struct ipa *ipa);
28
29/**
8afc7e47 30 * ipa_smp2p_irq_disable_setup() - Disable the "setup ready" interrupt
862d3f2c 31 * @ipa: IPA pointer
530f9216 32 *
8afc7e47 33 * Disable the "ipa-setup-ready" interrupt from the modem.
530f9216 34 */
8afc7e47 35void ipa_smp2p_irq_disable_setup(struct ipa *ipa);
530f9216
AE
36
37/**
38 * ipa_smp2p_notify_reset() - Reset modem notification state
39 * @ipa: IPA pointer
40 *
7aa0e8b8 41 * If the modem crashes it queries the IPA power state. In cleaning
530f9216
AE
42 * up after such a crash this is used to reset some state maintained
43 * for managing this notification.
44 */
45void ipa_smp2p_notify_reset(struct ipa *ipa);
46
47#endif /* _IPA_SMP2P_H_ */