#include <linux/module.h>
#include <linux/of.h>
#include <linux/pci.h>
#include <drm/drm_aperture.h>
#include <drm/drm_atomic_helper.h>
#include <drm/drm_drv.h>
#include <drm/drm_fbdev_shmem.h>
#include <drm/drm_gem_shmem_helper.h>
#include <drm/drm_module.h>
#include <drm/drm_probe_helper.h>
#include "ast_drv.h"
static int ast_modeset = …;
MODULE_PARM_DESC(…) …;
module_param_named(modeset, ast_modeset, int, 0400);
DEFINE_DRM_GEM_FOPS(ast_fops);
static const struct drm_driver ast_driver = …;
#define PCI_VENDOR_ASPEED …
#define AST_VGA_DEVICE(id, info) …
static const struct pci_device_id ast_pciidlist[] = …;
MODULE_DEVICE_TABLE(pci, ast_pciidlist);
static bool ast_is_vga_enabled(void __iomem *ioregs)
{ … }
static void ast_enable_vga(void __iomem *ioregs)
{ … }
static void ast_enable_mmio_release(void *data)
{ … }
static int ast_enable_mmio(struct device *dev, void __iomem *ioregs)
{ … }
static void ast_open_key(void __iomem *ioregs)
{ … }
static int ast_detect_chip(struct pci_dev *pdev,
void __iomem *regs, void __iomem *ioregs,
enum ast_chip *chip_out,
enum ast_config_mode *config_mode_out)
{ … }
static int ast_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
{ … }
static void ast_pci_remove(struct pci_dev *pdev)
{ … }
static void ast_pci_shutdown(struct pci_dev *pdev)
{ … }
static int ast_drm_freeze(struct drm_device *dev)
{ … }
static int ast_drm_thaw(struct drm_device *dev)
{ … }
static int ast_drm_resume(struct drm_device *dev)
{ … }
static int ast_pm_suspend(struct device *dev)
{ … }
static int ast_pm_resume(struct device *dev)
{ … }
static int ast_pm_freeze(struct device *dev)
{ … }
static int ast_pm_thaw(struct device *dev)
{ … }
static int ast_pm_poweroff(struct device *dev)
{ … }
static const struct dev_pm_ops ast_pm_ops = …;
static struct pci_driver ast_pci_driver = …;
drm_module_pci_driver_if_modeset(…);
MODULE_AUTHOR(…);
MODULE_DESCRIPTION(…);
MODULE_LICENSE(…) …;