linux/drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.h

/* SPDX-License-Identifier: GPL-2.0-or-later */
/* Hisilicon Hibmc SoC drm driver
 *
 * Based on the bochs drm driver.
 *
 * Copyright (c) 2016 Huawei Limited.
 *
 * Author:
 *	Rongrong Zou <[email protected]>
 *	Rongrong Zou <[email protected]>
 *	Jianhua Li <[email protected]>
 */

#ifndef HIBMC_DRM_DRV_H
#define HIBMC_DRM_DRV_H

#include <linux/gpio/consumer.h>
#include <linux/i2c-algo-bit.h>
#include <linux/i2c.h>

#include <drm/drm_framebuffer.h>

struct hibmc_connector {};

struct hibmc_drm_private {};

static inline struct hibmc_connector *to_hibmc_connector(struct drm_connector *connector)
{}

static inline struct hibmc_drm_private *to_hibmc_drm_private(struct drm_device *dev)
{}

void hibmc_set_power_mode(struct hibmc_drm_private *priv,
			  u32 power_mode);
void hibmc_set_current_gate(struct hibmc_drm_private *priv,
			    u32 gate);

int hibmc_de_init(struct hibmc_drm_private *priv);
int hibmc_vdac_init(struct hibmc_drm_private *priv);

int hibmc_mm_init(struct hibmc_drm_private *hibmc);
int hibmc_ddc_create(struct drm_device *drm_dev, struct hibmc_connector *connector);

#endif