Changes in uspace/drv/char/pl050/pl050.c [b7fd2a0:dd8ab1c] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/char/pl050/pl050.c
rb7fd2a0 rdd8ab1c 51 51 }; 52 52 53 static errno_t pl050_dev_add(ddf_dev_t *);54 static errno_t pl050_fun_online(ddf_fun_t *);55 static errno_t pl050_fun_offline(ddf_fun_t *);53 static int pl050_dev_add(ddf_dev_t *); 54 static int pl050_fun_online(ddf_fun_t *); 55 static int pl050_fun_offline(ddf_fun_t *); 56 56 static void pl050_char_conn(ipc_callid_t, ipc_call_t *, void *); 57 static errno_t pl050_read(chardev_srv_t *, void *, size_t, size_t *);58 static errno_t pl050_write(chardev_srv_t *, const void *, size_t, size_t *);57 static int pl050_read(chardev_srv_t *, void *, size_t, size_t *); 58 static int pl050_write(chardev_srv_t *, const void *, size_t, size_t *); 59 59 60 60 static driver_ops_t driver_ops = { … … 158 158 } 159 159 160 static errno_t pl050_init(pl050_t *pl050)160 static int pl050_init(pl050_t *pl050) 161 161 { 162 162 hw_res_list_parsed_t res; 163 163 void *regs; 164 errno_t rc;164 int rc; 165 165 166 166 fibril_mutex_initialize(&pl050->buf_lock); … … 237 237 } 238 238 239 static errno_t pl050_read(chardev_srv_t *srv, void *buffer, size_t size,239 static int pl050_read(chardev_srv_t *srv, void *buffer, size_t size, 240 240 size_t *nread) 241 241 { … … 263 263 } 264 264 265 static errno_t pl050_write(chardev_srv_t *srv, const void *data, size_t size,265 static int pl050_write(chardev_srv_t *srv, const void *data, size_t size, 266 266 size_t *nwritten) 267 267 { … … 294 294 295 295 /** Add device. */ 296 static errno_t pl050_dev_add(ddf_dev_t *dev)296 static int pl050_dev_add(ddf_dev_t *dev) 297 297 { 298 298 ddf_fun_t *fun_a; 299 299 pl050_t *pl050 = NULL; 300 300 const char *mname; 301 errno_t rc;301 int rc; 302 302 303 303 ddf_msg(LVL_DEBUG, "pl050_dev_add()"); … … 363 363 } 364 364 365 static errno_t pl050_fun_online(ddf_fun_t *fun)365 static int pl050_fun_online(ddf_fun_t *fun) 366 366 { 367 367 ddf_msg(LVL_DEBUG, "pl050_fun_online()"); … … 369 369 } 370 370 371 static errno_t pl050_fun_offline(ddf_fun_t *fun)371 static int pl050_fun_offline(ddf_fun_t *fun) 372 372 { 373 373 ddf_msg(LVL_DEBUG, "pl050_fun_offline()"); … … 377 377 int main(int argc, char *argv[]) 378 378 { 379 errno_t rc;379 int rc; 380 380 381 381 printf(NAME ": HelenOS pl050 serial device driver\n");
Note:
See TracChangeset
for help on using the changeset viewer.