Changes in uspace/drv/char/msim-con/msim-con.c [c309b18:b7fd2a0] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/char/msim-con/msim-con.c
rc309b18 rb7fd2a0 43 43 static void msim_con_connection(ipc_callid_t, ipc_call_t *, void *); 44 44 45 static int msim_con_read(chardev_srv_t *, void *, size_t, size_t *);46 static int msim_con_write(chardev_srv_t *, const void *, size_t, size_t *);45 static errno_t msim_con_read(chardev_srv_t *, void *, size_t, size_t *); 46 static errno_t msim_con_write(chardev_srv_t *, const void *, size_t, size_t *); 47 47 48 48 static chardev_ops_t msim_con_chardev_ops = { … … 66 66 msim_con_t *con = (msim_con_t *) arg; 67 67 uint8_t c; 68 int rc;68 errno_t rc; 69 69 70 70 fibril_mutex_lock(&con->buf_lock); … … 80 80 81 81 /** Add msim console device. */ 82 int msim_con_add(msim_con_t *con, msim_con_res_t *res)82 errno_t msim_con_add(msim_con_t *con, msim_con_res_t *res) 83 83 { 84 84 ddf_fun_t *fun = NULL; 85 85 bool subscribed = false; 86 86 irq_cmd_t *msim_cmds = NULL; 87 int rc;87 errno_t rc; 88 88 89 89 circ_buf_init(&con->cbuf, con->buf, msim_con_buf_size, 1); … … 125 125 con->irq_code.cmds = msim_cmds; 126 126 127 async_irq_subscribe(res->irq, msim_irq_handler, con, &con->irq_code );127 async_irq_subscribe(res->irq, msim_irq_handler, con, &con->irq_code, NULL); 128 128 subscribed = true; 129 129 … … 152 152 153 153 /** Remove msim console device */ 154 int msim_con_remove(msim_con_t *con)154 errno_t msim_con_remove(msim_con_t *con) 155 155 { 156 156 return ENOTSUP; … … 158 158 159 159 /** Msim console device gone */ 160 int msim_con_gone(msim_con_t *con)160 errno_t msim_con_gone(msim_con_t *con) 161 161 { 162 162 return ENOTSUP; … … 169 169 170 170 /** Read from msim console device */ 171 static int msim_con_read(chardev_srv_t *srv, void *buf, size_t size,171 static errno_t msim_con_read(chardev_srv_t *srv, void *buf, size_t size, 172 172 size_t *nread) 173 173 { … … 175 175 size_t p; 176 176 uint8_t *bp = (uint8_t *) buf; 177 int rc;177 errno_t rc; 178 178 179 179 fibril_mutex_lock(&con->buf_lock); … … 197 197 198 198 /** Write to msim console device */ 199 static int msim_con_write(chardev_srv_t *srv, const void *data, size_t size,199 static errno_t msim_con_write(chardev_srv_t *srv, const void *data, size_t size, 200 200 size_t *nwr) 201 201 {
Note:
See TracChangeset
for help on using the changeset viewer.