#include <linux/clk.h>
#include <linux/dma-mapping.h>
#include <linux/irq.h>
#include <linux/mfd/syscon.h>
#include <linux/module.h>
#include <linux/mod_devicetable.h>
#include <linux/of_reserved_mem.h>
#include <linux/platform_device.h>
#include <linux/property.h>
#include <linux/regmap.h>
#include <linux/reset.h>
#include <drm/drm_atomic_helper.h>
#include <drm/drm_device.h>
#include <drm/drm_fbdev_dma.h>
#include <drm/drm_gem_dma_helper.h>
#include <drm/drm_gem_framebuffer_helper.h>
#include <drm/drm_module.h>
#include <drm/drm_probe_helper.h>
#include <drm/drm_simple_kms_helper.h>
#include <drm/drm_vblank.h>
#include <drm/drm_drv.h>
#include "aspeed_gfx.h"
struct aspeed_gfx_config { … };
static const struct aspeed_gfx_config ast2400_config = …;
static const struct aspeed_gfx_config ast2500_config = …;
static const struct aspeed_gfx_config ast2600_config = …;
static const struct of_device_id aspeed_gfx_match[] = …;
MODULE_DEVICE_TABLE(of, aspeed_gfx_match);
static const struct drm_mode_config_funcs aspeed_gfx_mode_config_funcs = …;
static int aspeed_gfx_setup_mode_config(struct drm_device *drm)
{ … }
static irqreturn_t aspeed_gfx_irq_handler(int irq, void *data)
{ … }
static int aspeed_gfx_load(struct drm_device *drm)
{ … }
static void aspeed_gfx_unload(struct drm_device *drm)
{ … }
DEFINE_DRM_GEM_DMA_FOPS(fops);
static const struct drm_driver aspeed_gfx_driver = …;
static ssize_t dac_mux_store(struct device *dev, struct device_attribute *attr,
const char *buf, size_t count)
{ … }
static ssize_t dac_mux_show(struct device *dev, struct device_attribute *attr, char *buf)
{ … }
static DEVICE_ATTR_RW(dac_mux);
static ssize_t
vga_pw_show(struct device *dev, struct device_attribute *attr, char *buf)
{ … }
static DEVICE_ATTR_RO(vga_pw);
static struct attribute *aspeed_sysfs_entries[] = …;
static struct attribute_group aspeed_sysfs_attr_group = …;
static int aspeed_gfx_probe(struct platform_device *pdev)
{ … }
static void aspeed_gfx_remove(struct platform_device *pdev)
{ … }
static void aspeed_gfx_shutdown(struct platform_device *pdev)
{ … }
static struct platform_driver aspeed_gfx_platform_driver = …;
drm_module_platform_driver(…);
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;