1 /* SPDX-License-Identifier: ISC */
3 * Copyright (c) 2018 The Linux Foundation. All rights reserved.
13 struct ath10k_snoc_drv_priv {
14 enum ath10k_hw_rev hw_rev;
24 struct ath10k_snoc_pipe {
25 struct ath10k_ce_pipe *ce_hdl;
27 struct ath10k *hif_ce_state;
31 struct ath10k_snoc *ar_snoc;
34 struct ath10k_snoc_target_info {
41 struct ath10k_snoc_ce_irq {
45 struct ath10k_vreg_info {
46 struct regulator *reg;
51 unsigned long settle_delay;
55 struct ath10k_clk_info {
62 enum ath10k_snoc_flags {
63 ATH10K_SNOC_FLAG_REGISTERED,
64 ATH10K_SNOC_FLAG_UNREGISTERING,
65 ATH10K_SNOC_FLAG_RECOVERY,
69 struct platform_device *dev;
73 struct ath10k_snoc_target_info target_info;
75 struct ath10k_snoc_pipe pipe_info[CE_COUNT_MAX];
76 struct ath10k_snoc_ce_irq ce_irqs[CE_COUNT_MAX];
78 struct timer_list rx_post_retry;
79 struct ath10k_vreg_info *vreg;
80 struct ath10k_clk_info *clk;
81 struct ath10k_qmi *qmi;
85 static inline struct ath10k_snoc *ath10k_snoc_priv(struct ath10k *ar)
87 return (struct ath10k_snoc *)ar->drv_priv;
90 int ath10k_snoc_fw_indication(struct ath10k *ar, u64 type);