Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/char/msim-con/msim-con.h

    rc309b18 r676e833  
    3636#define MSIM_CON_H
    3737
    38 #include <adt/circ_buf.h>
    3938#include <async.h>
    4039#include <ddf/driver.h>
    41 #include <ddi.h>
    42 #include <fibril_synch.h>
    43 #include <io/chardev_srv.h>
    4440#include <loc.h>
    4541#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;
    5642
    5743/** MSIM console */
     
    5945        async_sess_t *client_sess;
    6046        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;
    7047} msim_con_t;
    7148
    72 extern int msim_con_add(msim_con_t *, msim_con_res_t *);
     49extern int msim_con_init(msim_con_t *);
     50extern void msim_con_write(uint8_t data);
     51
     52
     53extern int msim_con_add(msim_con_t *);
    7354extern int msim_con_remove(msim_con_t *);
    7455extern int msim_con_gone(msim_con_t *);
Note: See TracChangeset for help on using the changeset viewer.