1*dbf21777SIcenowy Zheng /* SPDX-License-Identifier: GPL-2.0-only */ 2*dbf21777SIcenowy Zheng /* 3*dbf21777SIcenowy Zheng * Copyright (C) 2025 Icenowy Zheng <uwu@icenowy.me> 4*dbf21777SIcenowy Zheng */ 5*dbf21777SIcenowy Zheng 6*dbf21777SIcenowy Zheng #ifndef _VS_DRM_H_ 7*dbf21777SIcenowy Zheng #define _VS_DRM_H_ 8*dbf21777SIcenowy Zheng 9*dbf21777SIcenowy Zheng #include <linux/platform_device.h> 10*dbf21777SIcenowy Zheng #include <linux/types.h> 11*dbf21777SIcenowy Zheng 12*dbf21777SIcenowy Zheng #include <drm/drm_device.h> 13*dbf21777SIcenowy Zheng 14*dbf21777SIcenowy Zheng struct vs_dc; 15*dbf21777SIcenowy Zheng 16*dbf21777SIcenowy Zheng struct vs_drm_dev { 17*dbf21777SIcenowy Zheng struct drm_device base; 18*dbf21777SIcenowy Zheng 19*dbf21777SIcenowy Zheng struct vs_dc *dc; 20*dbf21777SIcenowy Zheng struct vs_crtc *crtcs[VSDC_MAX_OUTPUTS]; 21*dbf21777SIcenowy Zheng }; 22*dbf21777SIcenowy Zheng 23*dbf21777SIcenowy Zheng int vs_drm_initialize(struct vs_dc *dc, struct platform_device *pdev); 24*dbf21777SIcenowy Zheng void vs_drm_finalize(struct vs_dc *dc); 25*dbf21777SIcenowy Zheng void vs_drm_shutdown_handler(struct vs_dc *dc); 26*dbf21777SIcenowy Zheng void vs_drm_handle_irq(struct vs_dc *dc, u32 irqs); 27*dbf21777SIcenowy Zheng 28*dbf21777SIcenowy Zheng #endif /* _VS_DRM_H_ */ 29