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) 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_QMI_H_
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7) #define _IPA_QMI_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) #include <linux/soc/qcom/qmi.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) struct ipa;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) /**
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15)  * struct ipa_qmi - QMI state associated with an IPA
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16)  * @client_handle	- used to send an QMI requests to the modem
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17)  * @server_handle	- used to handle QMI requests from the modem
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18)  * @initialized		- whether QMI initialization has completed
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19)  * @indication_register_received - tracks modem request receipt
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20)  * @init_driver_response_received - tracks modem response receipt
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) struct ipa_qmi {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) 	struct qmi_handle client_handle;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) 	struct qmi_handle server_handle;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) 	/* Information used for the client handle */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) 	struct sockaddr_qrtr modem_sq;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) 	struct work_struct init_driver_work;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) 	/* Flags used in negotiating readiness */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) 	bool initial_boot;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) 	bool uc_ready;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) 	bool modem_ready;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) 	bool indication_requested;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) 	bool indication_sent;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) int ipa_qmi_setup(struct ipa *ipa);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) void ipa_qmi_teardown(struct ipa *ipa);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) #endif /* !_IPA_QMI_H_ */