Path: blob/main/sys/contrib/dev/athk/ath12k/mhi.h
107831 views
/* SPDX-License-Identifier: BSD-3-Clause-Clear */1/*2* Copyright (c) 2020-2021 The Linux Foundation. All rights reserved.3* Copyright (c) 2021-2022 Qualcomm Innovation Center, Inc. All rights reserved.4*/5#ifndef _ATH12K_MHI_H6#define _ATH12K_MHI_H78#include "pci.h"910#define PCIE_TXVECDB 0x36011#define PCIE_TXVECSTATUS 0x36812#define PCIE_RXVECDB 0x39413#define PCIE_RXVECSTATUS 0x39C1415#define MHISTATUS 0x4816#define MHICTRL 0x3817#define MHICTRL_RESET_MASK 0x21819enum ath12k_mhi_state {20ATH12K_MHI_INIT,21ATH12K_MHI_DEINIT,22ATH12K_MHI_POWER_ON,23ATH12K_MHI_POWER_OFF,24ATH12K_MHI_FORCE_POWER_OFF,25ATH12K_MHI_SUSPEND,26ATH12K_MHI_RESUME,27ATH12K_MHI_TRIGGER_RDDM,28ATH12K_MHI_RDDM,29ATH12K_MHI_RDDM_DONE,30};3132extern const struct mhi_controller_config ath12k_mhi_config_qcn9274;33extern const struct mhi_controller_config ath12k_mhi_config_wcn7850;3435int ath12k_mhi_start(struct ath12k_pci *ar_pci);36void ath12k_mhi_stop(struct ath12k_pci *ar_pci);37int ath12k_mhi_register(struct ath12k_pci *ar_pci);38void ath12k_mhi_unregister(struct ath12k_pci *ar_pci);39void ath12k_mhi_set_mhictrl_reset(struct ath12k_base *ab);40void ath12k_mhi_clear_vector(struct ath12k_base *ab);4142void ath12k_mhi_suspend(struct ath12k_pci *ar_pci);43void ath12k_mhi_resume(struct ath12k_pci *ar_pci);4445#endif464748