diff options
Diffstat (limited to 'include/linux/rtc.h')
| -rw-r--r-- | include/linux/rtc.h | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/include/linux/rtc.h b/include/linux/rtc.h index f2d0d1527721..91f597ad6acc 100644 --- a/include/linux/rtc.h +++ b/include/linux/rtc.h | |||
| @@ -115,6 +115,23 @@ extern void rtc_time_to_tm(unsigned long time, struct rtc_time *tm); | |||
| 115 | 115 | ||
| 116 | extern struct class *rtc_class; | 116 | extern struct class *rtc_class; |
| 117 | 117 | ||
| 118 | /* | ||
| 119 | * For these RTC methods the device parameter is the physical device | ||
| 120 | * on whatever bus holds the hardware (I2C, Platform, SPI, etc), which | ||
| 121 | * was passed to rtc_device_register(). Its driver_data normally holds | ||
| 122 | * device state, including the rtc_device pointer for the RTC. | ||
| 123 | * | ||
| 124 | * Most of these methods are called with rtc_device.ops_lock held, | ||
| 125 | * through the rtc_*(struct rtc_device *, ...) calls. | ||
| 126 | * | ||
| 127 | * The (current) exceptions are mostly filesystem hooks: | ||
| 128 | * - the proc() hook for procfs | ||
| 129 | * - non-ioctl() chardev hooks: open(), release(), read_callback() | ||
| 130 | * - periodic irq calls: irq_set_state(), irq_set_freq() | ||
| 131 | * | ||
| 132 | * REVISIT those periodic irq calls *do* have ops_lock when they're | ||
| 133 | * issued through ioctl() ... | ||
| 134 | */ | ||
| 118 | struct rtc_class_ops { | 135 | struct rtc_class_ops { |
| 119 | int (*open)(struct device *); | 136 | int (*open)(struct device *); |
| 120 | void (*release)(struct device *); | 137 | void (*release)(struct device *); |
| @@ -208,8 +225,6 @@ typedef struct rtc_task { | |||
| 208 | int rtc_register(rtc_task_t *task); | 225 | int rtc_register(rtc_task_t *task); |
| 209 | int rtc_unregister(rtc_task_t *task); | 226 | int rtc_unregister(rtc_task_t *task); |
| 210 | int rtc_control(rtc_task_t *t, unsigned int cmd, unsigned long arg); | 227 | int rtc_control(rtc_task_t *t, unsigned int cmd, unsigned long arg); |
| 211 | void rtc_get_rtc_time(struct rtc_time *rtc_tm); | ||
| 212 | irqreturn_t rtc_interrupt(int irq, void *dev_id); | ||
| 213 | 228 | ||
| 214 | #endif /* __KERNEL__ */ | 229 | #endif /* __KERNEL__ */ |
| 215 | 230 | ||
