t7xx_mhccif.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. /* SPDX-License-Identifier: GPL-2.0-only
  2. *
  3. * Copyright (c) 2021, MediaTek Inc.
  4. * Copyright (c) 2021-2022, Intel Corporation.
  5. *
  6. * Authors:
  7. * Haijun Liu <[email protected]>
  8. * Sreehari Kancharla <[email protected]>
  9. *
  10. * Contributors:
  11. * Amir Hanania <[email protected]>
  12. * Ricardo Martinez <[email protected]>
  13. */
  14. #ifndef __T7XX_MHCCIF_H__
  15. #define __T7XX_MHCCIF_H__
  16. #include <linux/types.h>
  17. #include "t7xx_pci.h"
  18. #include "t7xx_reg.h"
  19. #define D2H_SW_INT_MASK (D2H_INT_EXCEPTION_INIT | \
  20. D2H_INT_EXCEPTION_INIT_DONE | \
  21. D2H_INT_EXCEPTION_CLEARQ_DONE | \
  22. D2H_INT_EXCEPTION_ALLQ_RESET | \
  23. D2H_INT_PORT_ENUM | \
  24. D2H_INT_ASYNC_MD_HK)
  25. void t7xx_mhccif_mask_set(struct t7xx_pci_dev *t7xx_dev, u32 val);
  26. void t7xx_mhccif_mask_clr(struct t7xx_pci_dev *t7xx_dev, u32 val);
  27. u32 t7xx_mhccif_mask_get(struct t7xx_pci_dev *t7xx_dev);
  28. void t7xx_mhccif_init(struct t7xx_pci_dev *t7xx_dev);
  29. u32 t7xx_mhccif_read_sw_int_sts(struct t7xx_pci_dev *t7xx_dev);
  30. void t7xx_mhccif_h2d_swint_trigger(struct t7xx_pci_dev *t7xx_dev, u32 channel);
  31. #endif /*__T7XX_MHCCIF_H__ */