mtk_vcodec_intr.h 797 B

123456789101112131415161718192021222324252627
  1. /*
  2. * Copyright (c) 2016 MediaTek Inc.
  3. * Author: Tiffany Lin <tiffany.lin@mediatek.com>
  4. *
  5. * This program is free software; you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License version 2 as
  7. * published by the Free Software Foundation.
  8. *
  9. * This program is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU General Public License for more details.
  13. */
  14. #ifndef _MTK_VCODEC_INTR_H_
  15. #define _MTK_VCODEC_INTR_H_
  16. #define MTK_INST_IRQ_RECEIVED 0x1
  17. struct mtk_vcodec_ctx;
  18. /* timeout is ms */
  19. int mtk_vcodec_wait_for_done_ctx(struct mtk_vcodec_ctx *data, int command,
  20. unsigned int timeout_ms);
  21. #endif /* _MTK_VCODEC_INTR_H_ */