brintos

brintos / linux-shallow public Read only

0
0
Text · 1.3 KiB · ffcbd9a Raw
45 lines · c
1/* SPDX-License-Identifier: GPL-2.0-only */2/*3 * Copyright (c) 2012-2020, The Linux Foundation. All rights reserved.4 */5 6#ifndef _DP_CTRL_H_7#define _DP_CTRL_H_8 9#include "dp_aux.h"10#include "dp_panel.h"11#include "dp_link.h"12#include "dp_catalog.h"13 14struct dp_ctrl {15	bool wide_bus_en;16};17 18struct phy;19 20int dp_ctrl_on_link(struct dp_ctrl *dp_ctrl);21int dp_ctrl_on_stream(struct dp_ctrl *dp_ctrl, bool force_link_train);22void dp_ctrl_off_link_stream(struct dp_ctrl *dp_ctrl);23void dp_ctrl_off_link(struct dp_ctrl *dp_ctrl);24void dp_ctrl_off(struct dp_ctrl *dp_ctrl);25void dp_ctrl_push_idle(struct dp_ctrl *dp_ctrl);26irqreturn_t dp_ctrl_isr(struct dp_ctrl *dp_ctrl);27void dp_ctrl_handle_sink_request(struct dp_ctrl *dp_ctrl);28struct dp_ctrl *dp_ctrl_get(struct device *dev, struct dp_link *link,29			struct dp_panel *panel,	struct drm_dp_aux *aux,30			struct dp_catalog *catalog,31			struct phy *phy);32 33void dp_ctrl_reset_irq_ctrl(struct dp_ctrl *dp_ctrl, bool enable);34void dp_ctrl_phy_init(struct dp_ctrl *dp_ctrl);35void dp_ctrl_phy_exit(struct dp_ctrl *dp_ctrl);36void dp_ctrl_irq_phy_exit(struct dp_ctrl *dp_ctrl);37 38void dp_ctrl_set_psr(struct dp_ctrl *dp_ctrl, bool enable);39void dp_ctrl_config_psr(struct dp_ctrl *dp_ctrl);40 41int dp_ctrl_core_clk_enable(struct dp_ctrl *dp_ctrl);42void dp_ctrl_core_clk_disable(struct dp_ctrl *dp_ctrl);43 44#endif /* _DP_CTRL_H_ */45