root/drivers/gpu/drm/xen/xen_drm_front_cfg.h

/* [<][>][^][v][top][bottom][index][help] */

INCLUDED FROM


   1 /* SPDX-License-Identifier: GPL-2.0 OR MIT */
   2 
   3 /*
   4  *  Xen para-virtual DRM device
   5  *
   6  * Copyright (C) 2016-2018 EPAM Systems Inc.
   7  *
   8  * Author: Oleksandr Andrushchenko <oleksandr_andrushchenko@epam.com>
   9  */
  10 
  11 #ifndef __XEN_DRM_FRONT_CFG_H_
  12 #define __XEN_DRM_FRONT_CFG_H_
  13 
  14 #include <linux/types.h>
  15 
  16 #define XEN_DRM_FRONT_MAX_CRTCS 4
  17 
  18 struct xen_drm_front_cfg_connector {
  19         int width;
  20         int height;
  21         char *xenstore_path;
  22 };
  23 
  24 struct xen_drm_front_cfg {
  25         struct xen_drm_front_info *front_info;
  26         /* number of connectors in this configuration */
  27         int num_connectors;
  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 */
  31         bool be_alloc;
  32 };
  33 
  34 int xen_drm_front_cfg_card(struct xen_drm_front_info *front_info,
  35                            struct xen_drm_front_cfg *cfg);
  36 
  37 #endif /* __XEN_DRM_FRONT_CFG_H_ */

/* [<][>][^][v][top][bottom][index][help] */