mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-21 10:05:00 +08:00
6ca91bb43a
The zynqmp_disp and zynqmp_dp structures are allocated with drmm_kzalloc(). While this simplifies management of memory, it requires a DRM device, which will not be available at probe time when the DP bridge will be used standalone, with a DRM device in the PL. To prepare for this, switch to manual allocation for zynqmp_disp and zynqmp_dp. The cleanup still uses the DRM managed infrastructure, but one level up, at the top level. This will be addressed separately. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
26 lines
579 B
C
26 lines
579 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* ZynqMP DisplayPort Driver
|
|
*
|
|
* Copyright (C) 2017 - 2020 Xilinx, Inc.
|
|
*
|
|
* Authors:
|
|
* - Hyun Woo Kwon <hyun.kwon@xilinx.com>
|
|
* - Laurent Pinchart <laurent.pinchart@ideasonboard.com>
|
|
*/
|
|
|
|
#ifndef _ZYNQMP_DP_H_
|
|
#define _ZYNQMP_DP_H_
|
|
|
|
struct platform_device;
|
|
struct zynqmp_dp;
|
|
struct zynqmp_dpsub;
|
|
|
|
void zynqmp_dp_enable_vblank(struct zynqmp_dp *dp);
|
|
void zynqmp_dp_disable_vblank(struct zynqmp_dp *dp);
|
|
|
|
int zynqmp_dp_probe(struct zynqmp_dpsub *dpsub);
|
|
void zynqmp_dp_remove(struct zynqmp_dpsub *dpsub);
|
|
|
|
#endif /* _ZYNQMP_DP_H_ */
|