cryp_irq.h 934 B

1234567891011121314151617181920212223242526272829303132
  1. /**
  2. * Copyright (C) ST-Ericsson SA 2010
  3. * Author: Shujuan Chen <shujuan.chen@stericsson.com> for ST-Ericsson.
  4. * Author: Jonas Linde <jonas.linde@stericsson.com> for ST-Ericsson.
  5. * Author: Joakim Bech <joakim.xx.bech@stericsson.com> for ST-Ericsson.
  6. * Author: Berne Hebark <berne.herbark@stericsson.com> for ST-Ericsson.
  7. * Author: Niklas Hernaeus <niklas.hernaeus@stericsson.com> for ST-Ericsson.
  8. * License terms: GNU General Public License (GPL) version 2
  9. */
  10. #ifndef _CRYP_IRQ_H_
  11. #define _CRYP_IRQ_H_
  12. #include "cryp.h"
  13. enum cryp_irq_src_id {
  14. CRYP_IRQ_SRC_INPUT_FIFO = 0x1,
  15. CRYP_IRQ_SRC_OUTPUT_FIFO = 0x2,
  16. CRYP_IRQ_SRC_ALL = 0x3
  17. };
  18. /**
  19. * M0 Funtions
  20. */
  21. void cryp_enable_irq_src(struct cryp_device_data *device_data, u32 irq_src);
  22. void cryp_disable_irq_src(struct cryp_device_data *device_data, u32 irq_src);
  23. bool cryp_pending_irq_src(struct cryp_device_data *device_data, u32 irq_src);
  24. #endif /* _CRYP_IRQ_H_ */