xref: /linux/drivers/gpu/drm/msm/dp/dp_aux.h (revision 7f71507851fc7764b36a3221839607d3a45c2025)
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_AUX_H_
7 #define _DP_AUX_H_
8 
9 #include "dp_catalog.h"
10 #include <drm/display/drm_dp_helper.h>
11 
12 int msm_dp_aux_register(struct drm_dp_aux *msm_dp_aux);
13 void msm_dp_aux_unregister(struct drm_dp_aux *msm_dp_aux);
14 irqreturn_t msm_dp_aux_isr(struct drm_dp_aux *msm_dp_aux);
15 void msm_dp_aux_enable_xfers(struct drm_dp_aux *msm_dp_aux, bool enabled);
16 void msm_dp_aux_init(struct drm_dp_aux *msm_dp_aux);
17 void msm_dp_aux_deinit(struct drm_dp_aux *msm_dp_aux);
18 void msm_dp_aux_reconfig(struct drm_dp_aux *msm_dp_aux);
19 
20 struct phy;
21 struct drm_dp_aux *msm_dp_aux_get(struct device *dev, struct msm_dp_catalog *catalog,
22 			      struct phy *phy,
23 			      bool is_edp);
24 void msm_dp_aux_put(struct drm_dp_aux *aux);
25 
26 #endif /*__DP_AUX_H_*/
27