#include <linux/err.h>
#include <linux/init.h>
#include <linux/io.h>
#include <linux/irq.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/platform_device.h>
#include <linux/pm_runtime.h>
#include <linux/spinlock.h>
#include <linux/v4l2-dv-timings.h>
#include <linux/of_graph.h>
#include "vpif.h"
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;
#define VPIF_DRIVER_NAME …
MODULE_ALIAS(…) …;
#define VPIF_CH0_MAX_MODES …
#define VPIF_CH1_MAX_MODES …
#define VPIF_CH2_MAX_MODES …
#define VPIF_CH3_MAX_MODES …
struct vpif_data { … };
DEFINE_SPINLOCK(…);
EXPORT_SYMBOL_GPL(…);
void __iomem *vpif_base;
EXPORT_SYMBOL_GPL(…);
const struct vpif_channel_config_params vpif_ch_params[] = …;
EXPORT_SYMBOL_GPL(…);
const unsigned int vpif_ch_params_count = …;
EXPORT_SYMBOL_GPL(…);
static inline void vpif_wr_bit(u32 reg, u32 bit, u32 val)
{ … }
struct vpif_registers { … };
static const struct vpif_registers vpifregs[VPIF_NUM_CHANNELS] = …;
static void vpif_set_mode_info(const struct vpif_channel_config_params *config,
u8 channel_id, u8 config_channel_id)
{ … }
static void config_vpif_params(struct vpif_params *vpifparams,
u8 channel_id, u8 found)
{ … }
int vpif_set_video_params(struct vpif_params *vpifparams, u8 channel_id)
{ … }
EXPORT_SYMBOL(…);
void vpif_set_vbi_display_params(struct vpif_vbi_params *vbiparams,
u8 channel_id)
{ … }
EXPORT_SYMBOL(…);
int vpif_channel_getfid(u8 channel_id)
{ … }
EXPORT_SYMBOL(…);
static void vpif_pdev_release(struct device *dev)
{ … }
static int vpif_probe(struct platform_device *pdev)
{ … }
static void vpif_remove(struct platform_device *pdev)
{ … }
#ifdef CONFIG_PM
static int vpif_suspend(struct device *dev)
{ … }
static int vpif_resume(struct device *dev)
{ … }
static const struct dev_pm_ops vpif_pm = …;
#define vpif_pm_ops …
#else
#define vpif_pm_ops …
#endif
#if IS_ENABLED(CONFIG_OF)
static const struct of_device_id vpif_of_match[] = …;
MODULE_DEVICE_TABLE(of, vpif_of_match);
#endif
static struct platform_driver vpif_driver = …;
static void vpif_exit(void)
{ … }
static int __init vpif_init(void)
{ … }
subsys_initcall(vpif_init);
module_exit(vpif_exit);