#include <linux/module.h>
#include <linux/pci.h>
#include <linux/vt_kern.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_ioctl.h>
#include <drm/drm_managed.h>
#include <drm/drm_modeset_helper.h>
#include <drm/drm_module.h>
#include "vbox_drv.h"
static int vbox_modeset = …;
MODULE_PARM_DESC(…) …;
module_param_named(modeset, vbox_modeset, int, 0400);
static const struct drm_driver driver;
static const struct pci_device_id pciidlist[] = …;
MODULE_DEVICE_TABLE(pci, pciidlist);
static int vbox_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
{ … }
static void vbox_pci_remove(struct pci_dev *pdev)
{ … }
static void vbox_pci_shutdown(struct pci_dev *pdev)
{ … }
static int vbox_pm_suspend(struct device *dev)
{ … }
static int vbox_pm_resume(struct device *dev)
{ … }
static int vbox_pm_freeze(struct device *dev)
{ … }
static int vbox_pm_thaw(struct device *dev)
{ … }
static int vbox_pm_poweroff(struct device *dev)
{ … }
static const struct dev_pm_ops vbox_pm_ops = …;
static struct pci_driver vbox_pci_driver = …;
DEFINE_DRM_GEM_FOPS(vbox_fops);
static const struct drm_driver driver = …;
drm_module_pci_driver_if_modeset(…);
MODULE_AUTHOR(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…);
MODULE_LICENSE(…) …;