cachepc-linux

Fork of AMDESE/linux with modifications for CachePC side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-linux
Log | Files | Refs | README | LICENSE | sfeed.txt

dp_ctrl.h (1251B)


      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_parser.h"
     13#include "dp_power.h"
     14#include "dp_catalog.h"
     15
     16struct dp_ctrl {
     17	bool orientation;
     18	atomic_t aborted;
     19	u32 pixel_rate;
     20	bool wide_bus_en;
     21};
     22
     23int dp_ctrl_on_link(struct dp_ctrl *dp_ctrl);
     24int dp_ctrl_on_stream(struct dp_ctrl *dp_ctrl, bool force_link_train);
     25int dp_ctrl_off_link_stream(struct dp_ctrl *dp_ctrl);
     26int dp_ctrl_off_link(struct dp_ctrl *dp_ctrl);
     27int dp_ctrl_off(struct dp_ctrl *dp_ctrl);
     28void dp_ctrl_push_idle(struct dp_ctrl *dp_ctrl);
     29void dp_ctrl_isr(struct dp_ctrl *dp_ctrl);
     30void dp_ctrl_handle_sink_request(struct dp_ctrl *dp_ctrl);
     31struct dp_ctrl *dp_ctrl_get(struct device *dev, struct dp_link *link,
     32			struct dp_panel *panel,	struct drm_dp_aux *aux,
     33			struct dp_power *power, struct dp_catalog *catalog,
     34			struct dp_parser *parser);
     35
     36void dp_ctrl_reset_irq_ctrl(struct dp_ctrl *dp_ctrl, bool enable);
     37void dp_ctrl_phy_init(struct dp_ctrl *dp_ctrl);
     38void dp_ctrl_phy_exit(struct dp_ctrl *dp_ctrl);
     39void dp_ctrl_irq_phy_exit(struct dp_ctrl *dp_ctrl);
     40
     41#endif /* _DP_CTRL_H_ */