linux/drivers/rtc/rtc-stk17ta8.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * A RTC driver for the Simtek STK17TA8
 *
 * By Thomas Hommel <[email protected]>
 *
 * Based on the DS1553 driver from
 * Atsushi Nemoto <[email protected]>
 */

#include <linux/bcd.h>
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/gfp.h>
#include <linux/delay.h>
#include <linux/jiffies.h>
#include <linux/interrupt.h>
#include <linux/rtc.h>
#include <linux/platform_device.h>
#include <linux/io.h>
#include <linux/module.h>

#define RTC_REG_SIZE
#define RTC_OFFSET

#define RTC_FLAGS
#define RTC_CENTURY
#define RTC_SECONDS_ALARM
#define RTC_MINUTES_ALARM
#define RTC_HOURS_ALARM
#define RTC_DATE_ALARM
#define RTC_INTERRUPTS
#define RTC_WATCHDOG
#define RTC_CALIBRATION
#define RTC_SECONDS
#define RTC_MINUTES
#define RTC_HOURS
#define RTC_DAY
#define RTC_DATE
#define RTC_MONTH
#define RTC_YEAR

#define RTC_SECONDS_MASK
#define RTC_DAY_MASK
#define RTC_CAL_MASK

/* Bits in the Calibration register */
#define RTC_STOP

/* Bits in the Flags register */
#define RTC_FLAGS_AF
#define RTC_FLAGS_PF
#define RTC_WRITE
#define RTC_READ

/* Bits in the Interrupts register */
#define RTC_INTS_AIE

struct rtc_plat_data {};

static int stk17ta8_rtc_set_time(struct device *dev, struct rtc_time *tm)
{}

static int stk17ta8_rtc_read_time(struct device *dev, struct rtc_time *tm)
{}

static void stk17ta8_rtc_update_alarm(struct rtc_plat_data *pdata)
{}

static int stk17ta8_rtc_set_alarm(struct device *dev, struct rtc_wkalrm *alrm)
{}

static int stk17ta8_rtc_read_alarm(struct device *dev, struct rtc_wkalrm *alrm)
{}

static irqreturn_t stk17ta8_rtc_interrupt(int irq, void *dev_id)
{}

static int stk17ta8_rtc_alarm_irq_enable(struct device *dev,
	unsigned int enabled)
{}

static const struct rtc_class_ops stk17ta8_rtc_ops =;

static int stk17ta8_nvram_read(void *priv, unsigned int pos, void *val,
			       size_t bytes)
{}

static int stk17ta8_nvram_write(void *priv, unsigned int pos, void *val,
				size_t bytes)
{}

static int stk17ta8_rtc_probe(struct platform_device *pdev)
{}

/* work with hotplug and coldplug */
MODULE_ALIAS();

static struct platform_driver stk17ta8_rtc_driver =;

module_platform_driver();

MODULE_AUTHOR();
MODULE_DESCRIPTION();
MODULE_LICENSE();