iosm_ipc_irq.h 729 B

123456789101112131415161718192021222324252627282930313233
  1. /* SPDX-License-Identifier: GPL-2.0-only
  2. *
  3. * Copyright (C) 2020-21 Intel Corporation.
  4. */
  5. #ifndef IOSM_IPC_IRQ_H
  6. #define IOSM_IPC_IRQ_H
  7. struct iosm_pcie;
  8. /**
  9. * ipc_doorbell_fire - fire doorbell to CP
  10. * @ipc_pcie: Pointer to iosm_pcie
  11. * @irq_n: Doorbell type
  12. * @data: ipc state
  13. */
  14. void ipc_doorbell_fire(struct iosm_pcie *ipc_pcie, int irq_n, u32 data);
  15. /**
  16. * ipc_release_irq - Release the IRQ handler.
  17. * @ipc_pcie: Pointer to iosm_pcie struct
  18. */
  19. void ipc_release_irq(struct iosm_pcie *ipc_pcie);
  20. /**
  21. * ipc_acquire_irq - acquire IRQ & register IRQ handler.
  22. * @ipc_pcie: Pointer to iosm_pcie struct
  23. *
  24. * Return: 0 on success and failure value on error
  25. */
  26. int ipc_acquire_irq(struct iosm_pcie *ipc_pcie);
  27. #endif