diff options
| author | Jaroslav Kysela <perex@suse.cz> | 2002-02-25 19:43:26 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@penguin.transmeta.com> | 2002-02-25 19:43:26 -0800 |
| commit | dd56376dcd8c94342857257aa34a5720baeb807a (patch) | |
| tree | 083be3c32622e2c42916f91086d2378d9029987f /include | |
| parent | 7d06adb8c0bdd05a4e83156b95f3a3ea0597439b (diff) | |
[PATCH] Patch - sharing RTC timer between kernel and user space (2nd)
This patch to allow using of RTC timer inside the kernel space. We can
use the RTC timer as timing source for ALSA sequencer. Patch by Takashi.
The patch adds these three functions and one structure to rtc.h and
rtc.c:
typedef struct rtc_task {
void (*func)(void *private_data);
void *private_data;
} rtc_task_t;
int rtc_register(rtc_task_t *task);
int rtc_unregister(rtc_task_t *task);
int rtc_control(rtc_task_t *t, unsigned int cmd, unsigned long arg);
Jaroslav
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/rtc.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/linux/rtc.h b/include/linux/rtc.h index df958b66ada6..e99a2357ab28 100644 --- a/include/linux/rtc.h +++ b/include/linux/rtc.h @@ -66,4 +66,17 @@ struct rtc_wkalrm { #define RTC_WKALM_SET _IOW('p', 0x0f, struct rtc_wkalrm)/* Set wakeup alarm*/ #define RTC_WKALM_RD _IOR('p', 0x10, struct rtc_wkalrm)/* Get wakeup alarm*/ +#ifdef __KERNEL__ + +typedef struct rtc_task { + void (*func)(void *private_data); + void *private_data; +} rtc_task_t; + +int rtc_register(rtc_task_t *task); +int rtc_unregister(rtc_task_t *task); +int rtc_control(rtc_task_t *t, unsigned int cmd, unsigned long arg); + +#endif /* __KERNEL__ */ + #endif /* _LINUX_RTC_H_ */ |
