Home | History | Annotate | Line # | Download | only in xen
      1 /*	$NetBSD: xen_drm_front_cfg.h,v 1.2 2021/12/18 23:45:45 riastradh Exp $	*/
      2 
      3 /* SPDX-License-Identifier: GPL-2.0 OR MIT */
      4 
      5 /*
      6  *  Xen para-virtual DRM device
      7  *
      8  * Copyright (C) 2016-2018 EPAM Systems Inc.
      9  *
     10  * Author: Oleksandr Andrushchenko <oleksandr_andrushchenko (at) epam.com>
     11  */
     12 
     13 #ifndef __XEN_DRM_FRONT_CFG_H_
     14 #define __XEN_DRM_FRONT_CFG_H_
     15 
     16 #include <linux/types.h>
     17 
     18 #define XEN_DRM_FRONT_MAX_CRTCS	4
     19 
     20 struct xen_drm_front_cfg_connector {
     21 	int width;
     22 	int height;
     23 	char *xenstore_path;
     24 };
     25 
     26 struct xen_drm_front_cfg {
     27 	struct xen_drm_front_info *front_info;
     28 	/* number of connectors in this configuration */
     29 	int num_connectors;
     30 	/* connector configurations */
     31 	struct xen_drm_front_cfg_connector connectors[XEN_DRM_FRONT_MAX_CRTCS];
     32 	/* set if dumb buffers are allocated externally on backend side */
     33 	bool be_alloc;
     34 };
     35 
     36 int xen_drm_front_cfg_card(struct xen_drm_front_info *front_info,
     37 			   struct xen_drm_front_cfg *cfg);
     38 
     39 #endif /* __XEN_DRM_FRONT_CFG_H_ */
     40