GNU Linux-libre 5.10.153-gnu1
[releases.git] / drivers / net / ipa / ipa_modem.h
1 /* SPDX-License-Identifier: GPL-2.0 */
2
3 /* Copyright (c) 2012-2018, The Linux Foundation. All rights reserved.
4  * Copyright (C) 2018-2020 Linaro Ltd.
5  */
6 #ifndef _IPA_MODEM_H_
7 #define _IPA_MODEM_H_
8
9 struct ipa;
10 struct ipa_endpoint;
11 struct net_device;
12 struct sk_buff;
13
14 int ipa_modem_start(struct ipa *ipa);
15 int ipa_modem_stop(struct ipa *ipa);
16
17 void ipa_modem_skb_rx(struct net_device *netdev, struct sk_buff *skb);
18
19 void ipa_modem_suspend(struct net_device *netdev);
20 void ipa_modem_resume(struct net_device *netdev);
21
22 int ipa_modem_init(struct ipa *ipa, bool modem_init);
23 void ipa_modem_exit(struct ipa *ipa);
24
25 int ipa_modem_config(struct ipa *ipa);
26 void ipa_modem_deconfig(struct ipa *ipa);
27
28 int ipa_modem_setup(struct ipa *ipa);
29 void ipa_modem_teardown(struct ipa *ipa);
30
31 #endif /* _IPA_MODEM_H_ */