hif.h (fa5917e44ee888732bba5294a9a22c1d54cce393) hif.h (d578ec2a0d5cd2859ff6a1347f4429d6c7f730a3)
1/* SPDX-License-Identifier: BSD-3-Clause-Clear */
2/*
3 * Copyright (c) 2019-2020 The Linux Foundation. All rights reserved.
4 */
5
6#ifndef _HIF_H_
7#define _HIF_H_
8

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

21 int (*resume)(struct ath11k_base *ab);
22 int (*map_service_to_pipe)(struct ath11k_base *sc, u16 service_id,
23 u8 *ul_pipe, u8 *dl_pipe);
24 int (*get_user_msi_vector)(struct ath11k_base *ab, char *user_name,
25 int *num_vectors, u32 *user_base_data,
26 u32 *base_vector);
27 void (*get_msi_address)(struct ath11k_base *ab, u32 *msi_addr_lo,
28 u32 *msi_addr_hi);
1/* SPDX-License-Identifier: BSD-3-Clause-Clear */
2/*
3 * Copyright (c) 2019-2020 The Linux Foundation. All rights reserved.
4 */
5
6#ifndef _HIF_H_
7#define _HIF_H_
8

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

21 int (*resume)(struct ath11k_base *ab);
22 int (*map_service_to_pipe)(struct ath11k_base *sc, u16 service_id,
23 u8 *ul_pipe, u8 *dl_pipe);
24 int (*get_user_msi_vector)(struct ath11k_base *ab, char *user_name,
25 int *num_vectors, u32 *user_base_data,
26 u32 *base_vector);
27 void (*get_msi_address)(struct ath11k_base *ab, u32 *msi_addr_lo,
28 u32 *msi_addr_hi);
29 void (*ce_irq_enable)(struct ath11k_base *ab);
30 void (*ce_irq_disable)(struct ath11k_base *ab);
29};
30
31};
32
33static inline void ath11k_hif_ce_irq_enable(struct ath11k_base *ab)
34{
35 if (ab->hif.ops->ce_irq_enable)
36 ab->hif.ops->ce_irq_enable(ab);
37}
38
39static inline void ath11k_hif_ce_irq_disable(struct ath11k_base *ab)
40{
41 if (ab->hif.ops->ce_irq_disable)
42 ab->hif.ops->ce_irq_disable(ab);
43}
44
31static inline int ath11k_hif_start(struct ath11k_base *sc)
32{
33 return sc->hif.ops->start(sc);
34}
35
36static inline void ath11k_hif_stop(struct ath11k_base *sc)
37{
38 sc->hif.ops->stop(sc);

--- 75 unchanged lines hidden ---
45static inline int ath11k_hif_start(struct ath11k_base *sc)
46{
47 return sc->hif.ops->start(sc);
48}
49
50static inline void ath11k_hif_stop(struct ath11k_base *sc)
51{
52 sc->hif.ops->stop(sc);

--- 75 unchanged lines hidden ---