Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset a31ca11f in mainline


Ignore:
Timestamp:
2012-03-30T12:53:31Z (10 years ago)
Author:
Maurizio Lombardi <m.lombardi85@…>
Branches:
lfn, master
Children:
6b329749
Parents:
4863bb52
Message:

RTC: add the rtc_dev_add() skeleton.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/time/rtc.c

    r4863bb52 ra31ca11f  
    5151rtc_time_set(ddf_fun_t *fun, time_t t);
    5252
     53static int
     54rtc_dev_add(ddf_dev_t *dev);
     55
    5356
    5457static ddf_dev_ops_t rtc_dev_ops;
    5558
     59/** The RTC device driver's standard operations */
     60static driver_ops_t rtc_ops = {
     61        .dev_add = rtc_dev_add,
     62        .dev_remove = NULL,
     63};
     64
     65/** The RTC device driver structure */
    5666static driver_t rtc_driver = {
    5767        .name = NAME,
    58         .driver_ops = NULL,
     68        .driver_ops = &rtc_ops,
    5969};
    6070
     71/** Clock interface */
    6172static clock_dev_ops_t rtc_clock_dev_ops = {
    6273        .time_get = rtc_time_get,
     
    97108}
    98109
     110/** The dev_add callback of the rtc driver
     111 *
     112 * @param dev  The RTC device
     113 *
     114 * @return  EOK on success or a negative error code
     115 */
     116static int
     117rtc_dev_add(ddf_dev_t *dev)
     118{
     119        return EOK;
     120}
     121
    99122int
    100123main(int argc, char **argv)
Note: See TracChangeset for help on using the changeset viewer.