#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(…) …;