#include <linux/clk.h>
#include <linux/device.h>
#include <linux/dma-mapping.h>
#include <linux/io.h>
#include <linux/module.h>
#include <linux/of_platform.h>
#include <linux/platform_device.h>
#include <linux/sched/clock.h>
#include <linux/reset.h>
#include <drm/drm_drv.h>
#include <drm/drm_managed.h>
#include <uapi/drm/v3d_drm.h>
#include "v3d_drv.h"
#include "v3d_regs.h"
#define DRIVER_NAME …
#define DRIVER_DESC …
#define DRIVER_DATE …
#define DRIVER_MAJOR …
#define DRIVER_MINOR …
#define DRIVER_PATCHLEVEL …
static int v3d_get_param_ioctl(struct drm_device *dev, void *data,
struct drm_file *file_priv)
{ … }
static int
v3d_open(struct drm_device *dev, struct drm_file *file)
{ … }
static void
v3d_postclose(struct drm_device *dev, struct drm_file *file)
{ … }
void v3d_get_stats(const struct v3d_stats *stats, u64 timestamp,
u64 *active_runtime, u64 *jobs_completed)
{ … }
static void v3d_show_fdinfo(struct drm_printer *p, struct drm_file *file)
{ … }
static const struct file_operations v3d_drm_fops = …;
static const struct drm_ioctl_desc v3d_drm_ioctls[] = …;
static const struct drm_driver v3d_drm_driver = …;
static const struct of_device_id v3d_of_match[] = …;
MODULE_DEVICE_TABLE(of, v3d_of_match);
static int
map_regs(struct v3d_dev *v3d, void __iomem **regs, const char *name)
{ … }
static int v3d_platform_drm_probe(struct platform_device *pdev)
{ … }
static void v3d_platform_drm_remove(struct platform_device *pdev)
{ … }
static struct platform_driver v3d_platform_driver = …;
module_platform_driver(…) …;
MODULE_ALIAS(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_AUTHOR(…) …;
MODULE_LICENSE(…) …;