mm, page_alloc: set alloc_flags only once in slowpath
[linux/fpc-iii.git] / drivers / media / platform / mtk-vcodec / mtk_vcodec_intr.h
blob33e890f5aa9c2158847d1ef9e076fefc0d5ebe18
1 /*
2 * Copyright (c) 2016 MediaTek Inc.
3 * Author: Tiffany Lin <tiffany.lin@mediatek.com>
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.
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.
15 #ifndef _MTK_VCODEC_INTR_H_
16 #define _MTK_VCODEC_INTR_H_
18 #define MTK_INST_IRQ_RECEIVED 0x1
19 #define MTK_INST_WORK_THREAD_ABORT_DONE 0x2
21 struct mtk_vcodec_ctx;
23 /* timeout is ms */
24 int mtk_vcodec_wait_for_done_ctx(struct mtk_vcodec_ctx *data, int command,
25 unsigned int timeout_ms);
27 #endif /* _MTK_VCODEC_INTR_H_ */