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