linux/drivers/gpu/drm/qxl/qxl_drv.c

/* qxl_drv.c -- QXL driver -*- linux-c -*-
 *
 * Copyright 2011 Red Hat, Inc.
 * All Rights Reserved.
 *
 * Permission is hereby granted, free of charge, to any person obtaining a
 * copy of this software and associated documentation files (the "Software"),
 * to deal in the Software without restriction, including without limitation
 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
 * and/or sell copies of the Software, and to permit persons to whom the
 * Software is furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice (including the next
 * paragraph) shall be included in all copies or substantial portions of the
 * Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
 * VA LINUX SYSTEMS AND/OR ITS SUPPLIERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
 * OTHER DEALINGS IN THE SOFTWARE.
 *
 * Authors:
 *    Dave Airlie <[email protected]>
 *    Alon Levy <[email protected]>
 */

#include "qxl_drv.h"

#include <linux/module.h>
#include <linux/pci.h>
#include <linux/vgaarb.h>

#include <drm/drm.h>
#include <drm/drm_aperture.h>
#include <drm/drm_atomic_helper.h>
#include <drm/drm_drv.h>
#include <drm/drm_fbdev_ttm.h>
#include <drm/drm_file.h>
#include <drm/drm_gem_ttm_helper.h>
#include <drm/drm_module.h>
#include <drm/drm_modeset_helper.h>
#include <drm/drm_prime.h>
#include <drm/drm_probe_helper.h>

#include "qxl_object.h"

static const struct pci_device_id pciidlist[] =;
MODULE_DEVICE_TABLE(pci, pciidlist);

static int qxl_modeset =;
int qxl_num_crtc =;

MODULE_PARM_DESC();
module_param_named(modeset, qxl_modeset, int, 0400);

MODULE_PARM_DESC();
module_param_named(num_heads, qxl_num_crtc, int, 0400);

static struct drm_driver qxl_driver;
static struct pci_driver qxl_pci_driver;

static int
qxl_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
{}

static void qxl_drm_release(struct drm_device *dev)
{}

static void
qxl_pci_remove(struct pci_dev *pdev)
{}

static void
qxl_pci_shutdown(struct pci_dev *pdev)
{}

DEFINE_DRM_GEM_FOPS(qxl_fops);

static int qxl_drm_freeze(struct drm_device *dev)
{}

static int qxl_drm_resume(struct drm_device *dev, bool thaw)
{}

static int qxl_pm_suspend(struct device *dev)
{}

static int qxl_pm_resume(struct device *dev)
{}

static int qxl_pm_thaw(struct device *dev)
{}

static int qxl_pm_freeze(struct device *dev)
{}

static int qxl_pm_restore(struct device *dev)
{}

static const struct dev_pm_ops qxl_pm_ops =;
static struct pci_driver qxl_pci_driver =;

static const struct drm_ioctl_desc qxl_ioctls[] =;

static struct drm_driver qxl_driver =;

drm_module_pci_driver_if_modeset();

MODULE_AUTHOR();
MODULE_DESCRIPTION();
MODULE_LICENSE();