Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

3 Commits   0 Branches   0 Tags
^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) 2019-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_SMP2P_H_
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7) #define _IPA_SMP2P_H_
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9) #include <linux/types.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) struct ipa;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) /**
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14)  * ipa_smp2p_init() - Initialize the IPA SMP2P subsystem
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15)  * @ipa:	IPA pointer
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16)  * @modem_init:	Whether the modem is responsible for GSI initialization
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18)  * Return:	0 if successful, or a negative error code
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) int ipa_smp2p_init(struct ipa *ipa, bool modem_init);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) /**
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24)  * ipa_smp2p_exit() - Inverse of ipa_smp2p_init()
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25)  * @ipa:	IPA pointer
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) void ipa_smp2p_exit(struct ipa *ipa);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) /**
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30)  * ipa_smp2p_disable() - Prevent "ipa-setup-ready" interrupt handling
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31)  * @IPA:	IPA pointer
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33)  * Prevent handling of the "setup ready" interrupt from the modem.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34)  * This is used before initiating shutdown of the driver.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) void ipa_smp2p_disable(struct ipa *ipa);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) /**
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39)  * ipa_smp2p_notify_reset() - Reset modem notification state
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40)  * @ipa:	IPA pointer
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42)  * If the modem crashes it queries the IPA clock state.  In cleaning
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43)  * up after such a crash this is used to reset some state maintained
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44)  * for managing this notification.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46) void ipa_smp2p_notify_reset(struct ipa *ipa);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 48) #endif /* _IPA_SMP2P_H_ */