xen_drm_front_cfg.h 892 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /* SPDX-License-Identifier: GPL-2.0 OR MIT */
  2. /*
  3. * Xen para-virtual DRM device
  4. *
  5. * Copyright (C) 2016-2018 EPAM Systems Inc.
  6. *
  7. * Author: Oleksandr Andrushchenko <oleksandr_andrushchenko@epam.com>
  8. */
  9. #ifndef __XEN_DRM_FRONT_CFG_H_
  10. #define __XEN_DRM_FRONT_CFG_H_
  11. #include <linux/types.h>
  12. #define XEN_DRM_FRONT_MAX_CRTCS 4
  13. struct xen_drm_front_cfg_connector {
  14. int width;
  15. int height;
  16. char *xenstore_path;
  17. };
  18. struct xen_drm_front_cfg {
  19. struct xen_drm_front_info *front_info;
  20. /* number of connectors in this configuration */
  21. int num_connectors;
  22. /* connector configurations */
  23. struct xen_drm_front_cfg_connector connectors[XEN_DRM_FRONT_MAX_CRTCS];
  24. /* set if dumb buffers are allocated externally on backend side */
  25. bool be_alloc;
  26. };
  27. int xen_drm_front_cfg_card(struct xen_drm_front_info *front_info,
  28. struct xen_drm_front_cfg *cfg);
  29. #endif /* __XEN_DRM_FRONT_CFG_H_ */