snoc.h (aaccf3c97418f169afdbb5855e9cbcbda34e90fd) snoc.h (ba94c753ccb471bafe8bd824b744fda6fee0001e)
1/*
2 * Copyright (c) 2018 The Linux Foundation. All rights reserved.
3 *
4 * Permission to use, copy, modify, and/or distribute this software for any
5 * purpose with or without fee is hereby granted, provided that the above
6 * copyright notice and this permission notice appear in all copies.
7 *
8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES

--- 5 unchanged lines hidden (view full) ---

14 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15 */
16
17#ifndef _SNOC_H_
18#define _SNOC_H_
19
20#include "hw.h"
21#include "ce.h"
1/*
2 * Copyright (c) 2018 The Linux Foundation. All rights reserved.
3 *
4 * Permission to use, copy, modify, and/or distribute this software for any
5 * purpose with or without fee is hereby granted, provided that the above
6 * copyright notice and this permission notice appear in all copies.
7 *
8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES

--- 5 unchanged lines hidden (view full) ---

14 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15 */
16
17#ifndef _SNOC_H_
18#define _SNOC_H_
19
20#include "hw.h"
21#include "ce.h"
22#include "qmi.h"
22
23struct ath10k_snoc_drv_priv {
24 enum ath10k_hw_rev hw_rev;
25 u64 dma_mask;
23
24struct ath10k_snoc_drv_priv {
25 enum ath10k_hw_rev hw_rev;
26 u64 dma_mask;
27 u32 msa_size;
26};
27
28struct snoc_state {
29 u32 pipe_cfg_addr;
30 u32 svc_to_pipe_map;
31};
32
33struct ath10k_snoc_pipe {

--- 42 unchanged lines hidden (view full) ---

76 struct ath10k_snoc_target_info target_info;
77 size_t mem_len;
78 struct ath10k_snoc_pipe pipe_info[CE_COUNT_MAX];
79 struct ath10k_snoc_ce_irq ce_irqs[CE_COUNT_MAX];
80 struct ath10k_ce ce;
81 struct timer_list rx_post_retry;
82 struct ath10k_wcn3990_vreg_info *vreg;
83 struct ath10k_wcn3990_clk_info *clk;
28};
29
30struct snoc_state {
31 u32 pipe_cfg_addr;
32 u32 svc_to_pipe_map;
33};
34
35struct ath10k_snoc_pipe {

--- 42 unchanged lines hidden (view full) ---

78 struct ath10k_snoc_target_info target_info;
79 size_t mem_len;
80 struct ath10k_snoc_pipe pipe_info[CE_COUNT_MAX];
81 struct ath10k_snoc_ce_irq ce_irqs[CE_COUNT_MAX];
82 struct ath10k_ce ce;
83 struct timer_list rx_post_retry;
84 struct ath10k_wcn3990_vreg_info *vreg;
85 struct ath10k_wcn3990_clk_info *clk;
86 struct ath10k_qmi *qmi;
84};
85
86static inline struct ath10k_snoc *ath10k_snoc_priv(struct ath10k *ar)
87{
88 return (struct ath10k_snoc *)ar->drv_priv;
89}
90
91void ath10k_snoc_write32(struct ath10k *ar, u32 offset, u32 value);
92u32 ath10k_snoc_read32(struct ath10k *ar, u32 offset);
87};
88
89static inline struct ath10k_snoc *ath10k_snoc_priv(struct ath10k *ar)
90{
91 return (struct ath10k_snoc *)ar->drv_priv;
92}
93
94void ath10k_snoc_write32(struct ath10k *ar, u32 offset, u32 value);
95u32 ath10k_snoc_read32(struct ath10k *ar, u32 offset);
96int ath10k_snoc_fw_indication(struct ath10k *ar, u64 type);
93
94#endif /* _SNOC_H_ */
97
98#endif /* _SNOC_H_ */