Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 OR MIT */
0002 
0003 /*
0004  *  Xen para-virtual DRM device
0005  *
0006  * Copyright (C) 2016-2018 EPAM Systems Inc.
0007  *
0008  * Author: Oleksandr Andrushchenko <oleksandr_andrushchenko@epam.com>
0009  */
0010 
0011 #ifndef __XEN_DRM_FRONT_CFG_H_
0012 #define __XEN_DRM_FRONT_CFG_H_
0013 
0014 #include <linux/types.h>
0015 
0016 #define XEN_DRM_FRONT_MAX_CRTCS 4
0017 
0018 struct xen_drm_front_cfg_connector {
0019     int width;
0020     int height;
0021     char *xenstore_path;
0022 };
0023 
0024 struct xen_drm_front_cfg {
0025     struct xen_drm_front_info *front_info;
0026     /* number of connectors in this configuration */
0027     int num_connectors;
0028     /* connector configurations */
0029     struct xen_drm_front_cfg_connector connectors[XEN_DRM_FRONT_MAX_CRTCS];
0030     /* set if dumb buffers are allocated externally on backend side */
0031     bool be_alloc;
0032 };
0033 
0034 int xen_drm_front_cfg_card(struct xen_drm_front_info *front_info,
0035                struct xen_drm_front_cfg *cfg);
0036 
0037 #endif /* __XEN_DRM_FRONT_CFG_H_ */