mirror of
https://github.com/torvalds/linux.git
synced 2026-05-30 18:13:41 +02:00
As originally proposed in [1], the ath12k driver was re-architected in the ath12k-ng branch to separate the logic specific to 802.11be (Wi-Fi 7) from the core logic. This separation will allow ath12k to also support 802.11bn (Wi-Fi 8) in the future. Now merge this into ath-next. Many thanks to everyone who worked on this re-architecture. Special thanks to Vasanthakumar Thiagarajan and Baochen Qiang who reviewed every patch, and to Ripan Deuri for the ath12k-ng => ath-next merge conflict resolution. Link: https://lore.kernel.org/all/4a17d730-ede8-463e-98d8-9b0291d0ca45@oss.qualcomm.com/ # [1] Signed-off-by: Jeff Johnson <jeff.johnson@oss.qualcomm.com>
45 lines
1.2 KiB
C
45 lines
1.2 KiB
C
/* SPDX-License-Identifier: BSD-3-Clause-Clear */
|
|
/*
|
|
* Copyright (c) 2020-2021 The Linux Foundation. All rights reserved.
|
|
* Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
|
|
*/
|
|
#ifndef _ATH12K_MHI_H
|
|
#define _ATH12K_MHI_H
|
|
|
|
#include "pci.h"
|
|
|
|
#define PCIE_TXVECDB 0x360
|
|
#define PCIE_TXVECSTATUS 0x368
|
|
#define PCIE_RXVECDB 0x394
|
|
#define PCIE_RXVECSTATUS 0x39C
|
|
|
|
#define MHISTATUS 0x48
|
|
#define MHICTRL 0x38
|
|
#define MHICTRL_RESET_MASK 0x2
|
|
|
|
enum ath12k_mhi_state {
|
|
ATH12K_MHI_INIT,
|
|
ATH12K_MHI_DEINIT,
|
|
ATH12K_MHI_POWER_ON,
|
|
ATH12K_MHI_POWER_OFF,
|
|
ATH12K_MHI_POWER_OFF_KEEP_DEV,
|
|
ATH12K_MHI_FORCE_POWER_OFF,
|
|
ATH12K_MHI_SUSPEND,
|
|
ATH12K_MHI_RESUME,
|
|
ATH12K_MHI_TRIGGER_RDDM,
|
|
ATH12K_MHI_RDDM,
|
|
ATH12K_MHI_RDDM_DONE,
|
|
};
|
|
|
|
int ath12k_mhi_start(struct ath12k_pci *ar_pci);
|
|
void ath12k_mhi_stop(struct ath12k_pci *ar_pci, bool is_suspend);
|
|
int ath12k_mhi_register(struct ath12k_pci *ar_pci);
|
|
void ath12k_mhi_unregister(struct ath12k_pci *ar_pci);
|
|
void ath12k_mhi_set_mhictrl_reset(struct ath12k_base *ab);
|
|
void ath12k_mhi_clear_vector(struct ath12k_base *ab);
|
|
|
|
void ath12k_mhi_suspend(struct ath12k_pci *ar_pci);
|
|
void ath12k_mhi_resume(struct ath12k_pci *ar_pci);
|
|
void ath12k_mhi_coredump(struct mhi_controller *mhi_ctrl, bool in_panic);
|
|
#endif
|