linux/drivers/rtc/rtc-ds1553.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * An rtc driver for the Dallas DS1553
 *
 * Copyright (C) 2006 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_SECONDS_ALARM
#define RTC_MINUTES_ALARM
#define RTC_HOURS_ALARM
#define RTC_DATE_ALARM
#define RTC_INTERRUPTS
#define RTC_WATCHDOG
#define RTC_CONTROL
#define RTC_CENTURY
#define RTC_SECONDS
#define RTC_MINUTES
#define RTC_HOURS
#define RTC_DAY
#define RTC_DATE
#define RTC_MONTH
#define RTC_YEAR

#define RTC_CENTURY_MASK
#define RTC_SECONDS_MASK
#define RTC_DAY_MASK

/* Bits in the Control/Century register */
#define RTC_WRITE
#define RTC_READ

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

/* Bits in the Flags register */
#define RTC_FLAGS_AF
#define RTC_FLAGS_BLF

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

struct rtc_plat_data {};

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

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

static void ds1553_rtc_update_alarm(struct rtc_plat_data *pdata)
{}

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

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

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

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

static const struct rtc_class_ops ds1553_rtc_ops =;

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

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

static int ds1553_rtc_probe(struct platform_device *pdev)
{}

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

static struct platform_driver ds1553_rtc_driver =;

module_platform_driver();

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