1 /* SPDX-License-Identifier: GPL-2.0 OR MIT */
4 * Xen para-virtual DRM device
6 * Copyright (C) 2016-2018 EPAM Systems Inc.
8 * Author: Oleksandr Andrushchenko <oleksandr_andrushchenko@epam.com>
11 #ifndef __XEN_DRM_FRONT_CFG_H_
12 #define __XEN_DRM_FRONT_CFG_H_
14 #include <linux/types.h>
16 #define XEN_DRM_FRONT_MAX_CRTCS 4
18 struct xen_drm_front_cfg_connector
{
24 struct xen_drm_front_cfg
{
25 struct xen_drm_front_info
*front_info
;
26 /* number of connectors in this configuration */
28 /* connector configurations */
29 struct xen_drm_front_cfg_connector connectors
[XEN_DRM_FRONT_MAX_CRTCS
];
30 /* set if dumb buffers are allocated externally on backend side */
34 int xen_drm_front_cfg_card(struct xen_drm_front_info
*front_info
,
35 struct xen_drm_front_cfg
*cfg
);
37 #endif /* __XEN_DRM_FRONT_CFG_H_ */