2./drivers/rtc/rtc-dev.c 这个文件定义了基本的设备文件操作函数,如:open,read等 3./drivers/rtc/interface.c 顾名思义,这个文件主要提供了用户程序与RTC驱动的接口函数,用户程序一般通过ioctl与RTC驱动交互,这里定义了每个ioctl命令需要调用的函数 4./drivers/rtc/rtc-sysfs.c 与sysfs有关 5./dri...
[*]/proc/driver/rtc(procfsforrtcN) [*]/dev/rtcN(characterdevices) [ ]RTCUIEemulationondevinterface <*>EpsonRX-8025SA/NB 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21. 22. 23. 3.3 编译、烧录内核 终端在上电之后会同步时间,并生成相应...
struct rtc_device *rtc_device_register( const char *name, //RTC时钟名称 struct device *dev, //设备指针。该指针需要需要通过平台设备获取。 const struct rtc_class_ops *ops, //rtc文件操作集合 struct module *owner) //驱动所有者。填: THIS_MODULE 使用示例: rtc_device_register("tiny4412_rtc",...
//uie使能标志 #ifdef CONFIG_RTC_INTF_DEV_UIE_EMUL //RTC UIE emulation on dev interface配置项,目前没有开启 struct work_struct uie_task; struct timer_list uie_timer; /* Those fields are protected by rtc->irq_lock */ unsigned int oldsecs; unsigned int uie_irq_active:1; unsigned int sto...
* never been set or less probably there is a transient error on the * bus. In any case, avoid enabling emulation has this will fail when * reading the time too.*/ if (rc) return rc; #ifdef CONFIG_RTC_INTF_DEV_UIE_EMUL /* ...
应用程序设置了闹钟后,机器睡眠时候调用alarm_suspend,再调用interface.c ---》rtc-m41t80.c将alarm的DW DM hour minute和对应的EA位(设置到0使能闹钟),设置到rtc 芯片,alarm时间到后,产生中断将cpu唤醒。cpu处理rtc的中断将alarm flag清除,并通知上层。 m48t59_
[ ] RTC UIE emulation on dev interface *** on-CPU RTC drivers *** <*> Samsung S3C series SoC RTC 2. linux kernel 中 已经支持S3C2410的RTC,但是并没有添加到平台设备初始化数组中,所以系统启动时并不会初始化这一部分,需要修改文件mach-smdk.c ...