Files
android_kernel_samsung_sm86…/msm/dp/dp_bridge_hpd.h
Xiaowen Wu bdf97a004b disp: msm: dp: add dp aux bridge framework support
Create the framework to support external dp aux bridge device which
can handle DPCD/I2C/HPD from external.

Change-Id: Iabd0998efc8bf7134d186b1751d219c00217385c
Signed-off-by: Xiaowen Wu <wxiaowen@codeaurora.org>
Signed-off-by: Karim Henain <khenain@codeaurora.org>
Signed-off-by: Sudarsan Ramesh <sudarame@codeaurora.org>
2021-02-10 22:34:33 -05:00

43 sor
1.2 KiB
C

/*
* Copyright (c) 2019-2021, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
* only version 2 as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
*/
#ifndef _DP_BRIDGE_HPD_H_
#define _DP_BRIDGE_HPD_H_
#include "dp_hpd.h"
/**
* dp_bridge_hpd_get() - configure and get the DisplayPlot HPD module data
*
* @dev: device instance of the caller
* @cb: callback function for HPD response
* @aux_bridge: handle for aux_bridge driver data
* return: pointer to allocated gpio hpd module data
*
* This function sets up the gpio hpd module
*/
struct dp_hpd *dp_bridge_hpd_get(struct device *dev,
struct dp_hpd_cb *cb, struct dp_aux_bridge *aux_bridge);
/**
* dp_bridge_hpd_put()
*
* Cleans up dp_hpd instance
*
* @hpd: instance of gpio_hpd
*/
void dp_bridge_hpd_put(struct dp_hpd *hpd);
#endif /* _DP_BRIDGE_HPD_H_ */