18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */ 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * Copyright (c) 2012-2020, The Linux Foundation. All rights reserved. 48c2ecf20Sopenharmony_ci */ 58c2ecf20Sopenharmony_ci 68c2ecf20Sopenharmony_ci#ifndef _DP_AUX_H_ 78c2ecf20Sopenharmony_ci#define _DP_AUX_H_ 88c2ecf20Sopenharmony_ci 98c2ecf20Sopenharmony_ci#include "dp_catalog.h" 108c2ecf20Sopenharmony_ci#include <drm/drm_dp_helper.h> 118c2ecf20Sopenharmony_ci 128c2ecf20Sopenharmony_ci#define DP_AUX_ERR_NONE 0 138c2ecf20Sopenharmony_ci#define DP_AUX_ERR_ADDR -1 148c2ecf20Sopenharmony_ci#define DP_AUX_ERR_TOUT -2 158c2ecf20Sopenharmony_ci#define DP_AUX_ERR_NACK -3 168c2ecf20Sopenharmony_ci#define DP_AUX_ERR_DEFER -4 178c2ecf20Sopenharmony_ci#define DP_AUX_ERR_NACK_DEFER -5 188c2ecf20Sopenharmony_ci#define DP_AUX_ERR_PHY -6 198c2ecf20Sopenharmony_ci 208c2ecf20Sopenharmony_ciint dp_aux_register(struct drm_dp_aux *dp_aux); 218c2ecf20Sopenharmony_civoid dp_aux_unregister(struct drm_dp_aux *dp_aux); 228c2ecf20Sopenharmony_civoid dp_aux_isr(struct drm_dp_aux *dp_aux); 238c2ecf20Sopenharmony_civoid dp_aux_init(struct drm_dp_aux *dp_aux); 248c2ecf20Sopenharmony_civoid dp_aux_deinit(struct drm_dp_aux *dp_aux); 258c2ecf20Sopenharmony_civoid dp_aux_reconfig(struct drm_dp_aux *dp_aux); 268c2ecf20Sopenharmony_ci 278c2ecf20Sopenharmony_cistruct drm_dp_aux *dp_aux_get(struct device *dev, struct dp_catalog *catalog); 288c2ecf20Sopenharmony_civoid dp_aux_put(struct drm_dp_aux *aux); 298c2ecf20Sopenharmony_ci 308c2ecf20Sopenharmony_ci#endif /*__DP_AUX_H_*/ 31