1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 2 /* Copyright (c) 2024 Hisilicon Limited. */ 3 4 #ifndef DP_KAPI_H 5 #define DP_KAPI_H 6 7 #include <linux/types.h> 8 #include <linux/delay.h> 9 #include <drm/drm_device.h> 10 #include <drm/drm_encoder.h> 11 #include <drm/drm_connector.h> 12 #include <drm/drm_print.h> 13 14 struct hibmc_dp_dev; 15 16 struct hibmc_dp { 17 struct hibmc_dp_dev *dp_dev; 18 struct drm_device *drm_dev; 19 struct drm_encoder encoder; 20 struct drm_connector connector; 21 void __iomem *mmio; 22 }; 23 24 int hibmc_dp_hw_init(struct hibmc_dp *dp); 25 int hibmc_dp_mode_set(struct hibmc_dp *dp, struct drm_display_mode *mode); 26 void hibmc_dp_display_en(struct hibmc_dp *dp, bool enable); 27 28 #endif 29