Merge tag 'ath-next-20231215' of git://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath
[linux-2.6-block.git] / drivers / net / wireless / ath / ath11k / mhi.h
CommitLineData
1399fb87
GS
1/* SPDX-License-Identifier: BSD-3-Clause-Clear */
2/*
3 * Copyright (c) 2020 The Linux Foundation. All rights reserved.
ea77e939 4 * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
1399fb87
GS
5 */
6#ifndef _ATH11K_MHI_H
7#define _ATH11K_MHI_H
8
9#include "pci.h"
10
f3c603d4
CH
11#define PCIE_TXVECDB 0x360
12#define PCIE_TXVECSTATUS 0x368
13#define PCIE_RXVECDB 0x394
14#define PCIE_RXVECSTATUS 0x39C
15
16#define MHISTATUS 0x48
17#define MHICTRL 0x38
18#define MHICTRL_RESET_MASK 0x2
19
1399fb87
GS
20int ath11k_mhi_start(struct ath11k_pci *ar_pci);
21void ath11k_mhi_stop(struct ath11k_pci *ar_pci);
22int ath11k_mhi_register(struct ath11k_pci *ar_pci);
23void ath11k_mhi_unregister(struct ath11k_pci *ar_pci);
f3c603d4
CH
24void ath11k_mhi_set_mhictrl_reset(struct ath11k_base *ab);
25void ath11k_mhi_clear_vector(struct ath11k_base *ab);
1399fb87 26
3e80fcbc
KV
27int ath11k_mhi_suspend(struct ath11k_pci *ar_pci);
28int ath11k_mhi_resume(struct ath11k_pci *ar_pci);
34fb81e4 29
1399fb87 30#endif