linux/drivers/gpu/drm/xen/xen_drm_front.c

// SPDX-License-Identifier: GPL-2.0 OR MIT

/*
 *  Xen para-virtual DRM device
 *
 * Copyright (C) 2016-2018 EPAM Systems Inc.
 *
 * Author: Oleksandr Andrushchenko <[email protected]>
 */

#include <linux/delay.h>
#include <linux/dma-mapping.h>
#include <linux/module.h>

#include <drm/drm_atomic_helper.h>
#include <drm/drm_drv.h>
#include <drm/drm_ioctl.h>
#include <drm/drm_probe_helper.h>
#include <drm/drm_file.h>
#include <drm/drm_gem.h>

#include <xen/platform_pci.h>
#include <xen/xen.h>
#include <xen/xenbus.h>

#include <xen/xen-front-pgdir-shbuf.h>
#include <xen/interface/io/displif.h>

#include "xen_drm_front.h"
#include "xen_drm_front_cfg.h"
#include "xen_drm_front_evtchnl.h"
#include "xen_drm_front_gem.h"
#include "xen_drm_front_kms.h"

struct xen_drm_front_dbuf {};

static void dbuf_add_to_list(struct xen_drm_front_info *front_info,
			     struct xen_drm_front_dbuf *dbuf, u64 dbuf_cookie)
{}

static struct xen_drm_front_dbuf *dbuf_get(struct list_head *dbuf_list,
					   u64 dbuf_cookie)
{}

static void dbuf_free(struct list_head *dbuf_list, u64 dbuf_cookie)
{}

static void dbuf_free_all(struct list_head *dbuf_list)
{}

static struct xendispl_req *
be_prepare_req(struct xen_drm_front_evtchnl *evtchnl, u8 operation)
{}

static int be_stream_do_io(struct xen_drm_front_evtchnl *evtchnl,
			   struct xendispl_req *req)
{}

static int be_stream_wait_io(struct xen_drm_front_evtchnl *evtchnl)
{}

int xen_drm_front_mode_set(struct xen_drm_front_drm_pipeline *pipeline,
			   u32 x, u32 y, u32 width, u32 height,
			   u32 bpp, u64 fb_cookie)
{}

int xen_drm_front_dbuf_create(struct xen_drm_front_info *front_info,
			      u64 dbuf_cookie, u32 width, u32 height,
			      u32 bpp, u64 size, u32 offset,
			      struct page **pages)
{}

static int xen_drm_front_dbuf_destroy(struct xen_drm_front_info *front_info,
				      u64 dbuf_cookie)
{}

int xen_drm_front_fb_attach(struct xen_drm_front_info *front_info,
			    u64 dbuf_cookie, u64 fb_cookie, u32 width,
			    u32 height, u32 pixel_format)
{}

int xen_drm_front_fb_detach(struct xen_drm_front_info *front_info,
			    u64 fb_cookie)
{}

int xen_drm_front_page_flip(struct xen_drm_front_info *front_info,
			    int conn_idx, u64 fb_cookie)
{}

void xen_drm_front_on_frame_done(struct xen_drm_front_info *front_info,
				 int conn_idx, u64 fb_cookie)
{}

void xen_drm_front_gem_object_free(struct drm_gem_object *obj)
{}

static int xen_drm_drv_dumb_create(struct drm_file *filp,
				   struct drm_device *dev,
				   struct drm_mode_create_dumb *args)
{}

static void xen_drm_drv_release(struct drm_device *dev)
{}

DEFINE_DRM_GEM_FOPS(xen_drm_dev_fops);

static const struct drm_driver xen_drm_driver =;

static int xen_drm_drv_init(struct xen_drm_front_info *front_info)
{}

static void xen_drm_drv_fini(struct xen_drm_front_info *front_info)
{}

static int displback_initwait(struct xen_drm_front_info *front_info)
{}

static int displback_connect(struct xen_drm_front_info *front_info)
{}

static void displback_disconnect(struct xen_drm_front_info *front_info)
{}

static void displback_changed(struct xenbus_device *xb_dev,
			      enum xenbus_state backend_state)
{}

static int xen_drv_probe(struct xenbus_device *xb_dev,
			 const struct xenbus_device_id *id)
{}

static void xen_drv_remove(struct xenbus_device *dev)
{}

static const struct xenbus_device_id xen_driver_ids[] =;

static struct xenbus_driver xen_driver =;

static int __init xen_drv_init(void)
{}

static void __exit xen_drv_fini(void)
{}

module_init();
module_exit(xen_drv_fini);

MODULE_DESCRIPTION();
MODULE_LICENSE();
MODULE_ALIAS();