Changeset 2a5171db in mainline
- Timestamp:
- 2012-04-03T08:22:35Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 010341d
- Parents:
- 923b2eba
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/time/cmos-rtc/cmos-rtc.c
r923b2eba r2a5171db 68 68 69 69 70 static int 71 rtc_time_get(ddf_fun_t *fun, struct tm *t); 72 73 static int 74 rtc_time_set(ddf_fun_t *fun, struct tm *t); 75 76 static int 77 rtc_dev_add(ddf_dev_t *dev); 78 79 static int 80 rtc_dev_initialize(rtc_t *rtc); 81 82 static bool 83 rtc_pio_enable(rtc_t *rtc); 84 85 static void 86 rtc_dev_cleanup(rtc_t *rtc); 87 88 static int 89 rtc_open(ddf_fun_t *fun); 70 static int rtc_time_get(ddf_fun_t *fun, struct tm *t); 71 static int rtc_time_set(ddf_fun_t *fun, struct tm *t); 72 static int rtc_dev_add(ddf_dev_t *dev); 73 static int rtc_dev_initialize(rtc_t *rtc); 74 static bool rtc_pio_enable(rtc_t *rtc); 75 static void rtc_dev_cleanup(rtc_t *rtc); 76 static int rtc_open(ddf_fun_t *fun); 77 static void rtc_close(ddf_fun_t *fun); 90 78 91 79 … … 117 105 118 106 rtc_dev_ops.open = rtc_open; 119 rtc_dev_ops.close = NULL; /* XXX */107 rtc_dev_ops.close = rtc_close; 120 108 121 109 rtc_dev_ops.interfaces[CLOCK_DEV_IFACE] = &rtc_clock_dev_ops; … … 349 337 } 350 338 339 /** Close the device 340 * 341 * @param fun The function node 342 */ 343 static void 344 rtc_close(ddf_fun_t *fun) 345 { 346 rtc_t *rtc = RTC_FROM_FNODE(fun); 347 348 fibril_mutex_lock(&rtc->mutex); 349 350 assert(rtc->client_connected); 351 rtc->client_connected = false; 352 353 fibril_mutex_unlock(&rtc->mutex); 354 } 355 351 356 int 352 357 main(int argc, char **argv)
Note:
See TracChangeset
for help on using the changeset viewer.