linux/drivers/rtc/dev.c

// SPDX-License-Identifier: GPL-2.0
/*
 * RTC subsystem, dev interface
 *
 * Copyright (C) 2005 Tower Technologies
 * Author: Alessandro Zummo <[email protected]>
 *
 * based on arch/arm/common/rtctime.c
 */

#define pr_fmt(fmt)

#include <linux/compat.h>
#include <linux/module.h>
#include <linux/rtc.h>
#include <linux/sched/signal.h>
#include "rtc-core.h"

static dev_t rtc_devt;

#define RTC_DEV_MAX

static int rtc_dev_open(struct inode *inode, struct file *file)
{}

#ifdef CONFIG_RTC_INTF_DEV_UIE_EMUL
/*
 * Routine to poll RTC seconds field for change as often as possible,
 * after first RTC_UIE use timer to reduce polling
 */
static void rtc_uie_task(struct work_struct *work)
{}

static void rtc_uie_timer(struct timer_list *t)
{}

static int clear_uie(struct rtc_device *rtc)
{}

static int set_uie(struct rtc_device *rtc)
{}

int rtc_dev_update_irq_enable_emul(struct rtc_device *rtc, unsigned int enabled)
{}
EXPORT_SYMBOL();

#endif /* CONFIG_RTC_INTF_DEV_UIE_EMUL */

static ssize_t
rtc_dev_read(struct file *file, char __user *buf, size_t count, loff_t *ppos)
{}

static __poll_t rtc_dev_poll(struct file *file, poll_table *wait)
{}

static long rtc_dev_ioctl(struct file *file,
			  unsigned int cmd, unsigned long arg)
{}

#ifdef CONFIG_COMPAT
#define RTC_IRQP_SET32
#define RTC_IRQP_READ32
#define RTC_EPOCH_SET32

static long rtc_dev_compat_ioctl(struct file *file,
				 unsigned int cmd, unsigned long arg)
{}
#endif

static int rtc_dev_fasync(int fd, struct file *file, int on)
{}

static int rtc_dev_release(struct inode *inode, struct file *file)
{}

static const struct file_operations rtc_dev_fops =;

/* insertion/removal hooks */

void rtc_dev_prepare(struct rtc_device *rtc)
{}

void __init rtc_dev_init(void)
{}