/* * Copyright (c) 2015 MediaTek Inc. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. */#ifndef MTK_DRM_CRTC_H#define MTK_DRM_CRTC_H#include <drm/drm_crtc.h>#include "mtk_drm_ddp_comp.h"#include "mtk_drm_plane.h"#define OVL_LAYER_NR 4intmtk_drm_crtc_enable_vblank(structdrm_device*drm,unsignedintpipe);voidmtk_drm_crtc_disable_vblank(structdrm_device*drm,unsignedintpipe);voidmtk_drm_crtc_check_flush(structdrm_crtc*crtc);voidmtk_drm_crtc_commit(structdrm_crtc*crtc);voidmtk_crtc_ddp_irq(structdrm_crtc*crtc,structmtk_ddp_comp*ovl);intmtk_drm_crtc_create(structdrm_device*drm_dev,constenummtk_ddp_comp_id*path,unsignedintpath_len);#endif /* MTK_DRM_CRTC_H */