rtc-cdev 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. What: /dev/rtcX
  2. Date: April 2005
  3. KernelVersion: 2.6.12
  4. Contact: [email protected]
  5. Description:
  6. The ioctl interface to drivers for real-time clocks (RTCs).
  7. Following actions are supported:
  8. * RTC_RD_TIME, RTC_SET_TIME: Read or set the RTC time. Time
  9. format is a Gregorian calendar date and 24 hour wall clock
  10. time.
  11. * RTC_AIE_ON, RTC_AIE_OFF: Enable or disable the alarm interrupt
  12. for RTCs that support alarms
  13. * RTC_ALM_READ, RTC_ALM_SET: Read or set the alarm time for
  14. RTCs that support alarms. Can be set upto 24 hours in the
  15. future. Requires a separate RTC_AIE_ON call to enable the
  16. alarm interrupt. (Prefer to use RTC_WKALM_*)
  17. * RTC_WKALM_RD, RTC_WKALM_SET: For RTCs that support a more
  18. powerful interface, which can issue alarms beyond 24 hours and
  19. enable IRQs in the same request.
  20. * RTC_PIE_ON, RTC_PIE_OFF: Enable or disable the periodic
  21. interrupt for RTCs that support periodic interrupts.
  22. * RTC_UIE_ON, RTC_UIE_OFF: Enable or disable the update
  23. interrupt for RTCs that support it.
  24. * RTC_IRQP_READ, RTC_IRQP_SET: Read or set the frequency for
  25. periodic interrupts for RTCs that support periodic interrupts.
  26. Requires a separate RTC_PIE_ON call to enable the periodic
  27. interrupts.
  28. * RTC_VL_READ: Read the voltage inputs status of the RTC when
  29. supported. The value is a bit field of RTC_VL_*, giving the
  30. status of the main and backup voltages.
  31. * RTC_VL_CLEAR: Clear the voltage status of the RTC. Some RTCs
  32. need user interaction when the backup power provider is
  33. replaced or charged to be able to clear the status.
  34. The ioctl() calls supported by the older /dev/rtc interface are
  35. also supported by the newer RTC class framework. However,
  36. because the chips and systems are not standardized, some PC/AT
  37. functionality might not be provided. And in the same way, some
  38. newer features -- including those enabled by ACPI -- are exposed
  39. by the RTC class framework, but can't be supported by the older
  40. driver.