Changeset c309b18 in mainline for uspace/drv/char
- Timestamp:
- 2017-11-27T16:35:20Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 07a70800
- Parents:
- 59953b57
- Location:
- uspace/drv/char/msim-con
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/char/msim-con/msim-con.c
r59953b57 rc309b18 106 106 } 107 107 108 rc = pio_enable((void *)res->base, 1, (void **) &con->out_reg); 109 if (rc != EOK) { 110 ddf_msg(LVL_ERROR, "Error enabling I/O"); 111 goto error; 112 } 113 108 114 ddf_fun_set_conn_handler(fun, msim_con_connection); 109 115 … … 131 137 goto error; 132 138 } 139 140 ddf_fun_add_to_category(fun, "console"); 133 141 134 142 return EOK; … … 157 165 static void msim_con_putchar(msim_con_t *con, uint8_t ch) 158 166 { 167 pio_write_8(con->out_reg, ch); 159 168 } 160 169 -
uspace/drv/char/msim-con/msim-con.h
r59953b57 rc309b18 39 39 #include <async.h> 40 40 #include <ddf/driver.h> 41 #include <ddi.h> 41 42 #include <fibril_synch.h> 42 43 #include <io/chardev_srv.h> … … 66 67 fibril_mutex_t buf_lock; 67 68 fibril_condvar_t buf_cv; 69 ioport8_t *out_reg; 68 70 } msim_con_t; 69 71
Note:
See TracChangeset
for help on using the changeset viewer.