Changeset 132ab5d1 in mainline for uspace/drv/char/msim-con/msim-con.h
- Timestamp:
- 2018-01-30T03:20:45Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 5a6cc679
- Parents:
- 8bfb163 (diff), 6a5d05b (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - File:
-
- 1 edited
-
uspace/drv/char/msim-con/msim-con.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/char/msim-con/msim-con.h
r8bfb163 r132ab5d1 36 36 #define MSIM_CON_H 37 37 38 #include <adt/circ_buf.h> 38 39 #include <async.h> 39 40 #include <ddf/driver.h> 41 #include <ddi.h> 42 #include <fibril_synch.h> 43 #include <io/chardev_srv.h> 40 44 #include <loc.h> 41 45 #include <stdint.h> 46 47 enum { 48 msim_con_buf_size = 64 49 }; 50 51 /** MSIM console resources */ 52 typedef struct { 53 uintptr_t base; 54 int irq; 55 } msim_con_res_t; 42 56 43 57 /** MSIM console */ … … 45 59 async_sess_t *client_sess; 46 60 ddf_dev_t *dev; 61 chardev_srvs_t cds; 62 msim_con_res_t res; 63 irq_pio_range_t irq_range[1]; 64 irq_code_t irq_code; 65 circ_buf_t cbuf; 66 uint8_t buf[msim_con_buf_size]; 67 fibril_mutex_t buf_lock; 68 fibril_condvar_t buf_cv; 69 ioport8_t *out_reg; 47 70 } msim_con_t; 48 71 49 extern int msim_con_init(msim_con_t *); 50 extern void msim_con_write(uint8_t data); 51 52 53 extern int msim_con_add(msim_con_t *); 72 extern int msim_con_add(msim_con_t *, msim_con_res_t *); 54 73 extern int msim_con_remove(msim_con_t *); 55 74 extern int msim_con_gone(msim_con_t *);
Note:
See TracChangeset
for help on using the changeset viewer.
