#include <linux/module.h>
#include <linux/fs.h>
#include <linux/string.h>
#include <linux/init.h>
#include <linux/platform_device.h>
#include <linux/interrupt.h>
#include <linux/rtc.h>
#include <linux/bcd.h>
#include <linux/clk.h>
#include <linux/log2.h>
#include <linux/slab.h>
#include <linux/of.h>
#include <linux/uaccess.h>
#include <linux/io.h>
#include <asm/irq.h>
#include "rtc-s3c.h"
struct s3c_rtc { … };
struct s3c_rtc_data { … };
static int s3c_rtc_enable_clk(struct s3c_rtc *info)
{ … }
static void s3c_rtc_disable_clk(struct s3c_rtc *info)
{ … }
static irqreturn_t s3c_rtc_alarmirq(int irq, void *id)
{ … }
static int s3c_rtc_setaie(struct device *dev, unsigned int enabled)
{ … }
static int s3c_rtc_read_time(struct s3c_rtc *info, struct rtc_time *tm)
{ … }
static int s3c_rtc_write_time(struct s3c_rtc *info, const struct rtc_time *tm)
{ … }
static int s3c_rtc_gettime(struct device *dev, struct rtc_time *tm)
{ … }
static int s3c_rtc_settime(struct device *dev, struct rtc_time *tm)
{ … }
static int s3c_rtc_getalarm(struct device *dev, struct rtc_wkalrm *alrm)
{ … }
static int s3c_rtc_setalarm(struct device *dev, struct rtc_wkalrm *alrm)
{ … }
static const struct rtc_class_ops s3c_rtcops = …;
static void s3c24xx_rtc_enable(struct s3c_rtc *info)
{ … }
static void s3c24xx_rtc_disable(struct s3c_rtc *info)
{ … }
static void s3c6410_rtc_disable(struct s3c_rtc *info)
{ … }
static void s3c_rtc_remove(struct platform_device *pdev)
{ … }
static int s3c_rtc_probe(struct platform_device *pdev)
{ … }
#ifdef CONFIG_PM_SLEEP
static int s3c_rtc_suspend(struct device *dev)
{ … }
static int s3c_rtc_resume(struct device *dev)
{ … }
#endif
static SIMPLE_DEV_PM_OPS(s3c_rtc_pm_ops, s3c_rtc_suspend, s3c_rtc_resume);
static void s3c24xx_rtc_irq(struct s3c_rtc *info, int mask)
{ … }
static void s3c6410_rtc_irq(struct s3c_rtc *info, int mask)
{ … }
static struct s3c_rtc_data const s3c2410_rtc_data = …;
static struct s3c_rtc_data const s3c2416_rtc_data = …;
static struct s3c_rtc_data const s3c2443_rtc_data = …;
static struct s3c_rtc_data const s3c6410_rtc_data = …;
static const __maybe_unused struct of_device_id s3c_rtc_dt_match[] = …;
MODULE_DEVICE_TABLE(of, s3c_rtc_dt_match);
static struct platform_driver s3c_rtc_driver = …;
module_platform_driver(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_AUTHOR(…) …;
MODULE_LICENSE(…) …;
MODULE_ALIAS(…) …;