mhi.h 825 B

1234567891011121314151617181920212223242526272829
  1. /* SPDX-License-Identifier: BSD-3-Clause-Clear */
  2. /*
  3. * Copyright (c) 2020 The Linux Foundation. All rights reserved.
  4. */
  5. #ifndef _ATH11K_MHI_H
  6. #define _ATH11K_MHI_H
  7. #include "pci.h"
  8. #define PCIE_TXVECDB 0x360
  9. #define PCIE_TXVECSTATUS 0x368
  10. #define PCIE_RXVECDB 0x394
  11. #define PCIE_RXVECSTATUS 0x39C
  12. #define MHISTATUS 0x48
  13. #define MHICTRL 0x38
  14. #define MHICTRL_RESET_MASK 0x2
  15. int ath11k_mhi_start(struct ath11k_pci *ar_pci);
  16. void ath11k_mhi_stop(struct ath11k_pci *ar_pci);
  17. int ath11k_mhi_register(struct ath11k_pci *ar_pci);
  18. void ath11k_mhi_unregister(struct ath11k_pci *ar_pci);
  19. void ath11k_mhi_set_mhictrl_reset(struct ath11k_base *ab);
  20. void ath11k_mhi_clear_vector(struct ath11k_base *ab);
  21. int ath11k_mhi_suspend(struct ath11k_pci *ar_pci);
  22. int ath11k_mhi_resume(struct ath11k_pci *ar_pci);
  23. #endif