Ignore:
File:
1 edited

Legend:

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

    r676e833 rc309b18  
    3636#define MSIM_CON_H
    3737
     38#include <adt/circ_buf.h>
    3839#include <async.h>
    3940#include <ddf/driver.h>
     41#include <ddi.h>
     42#include <fibril_synch.h>
     43#include <io/chardev_srv.h>
    4044#include <loc.h>
    4145#include <stdint.h>
     46
     47enum {
     48        msim_con_buf_size = 64
     49};
     50
     51/** MSIM console resources */
     52typedef struct {
     53        uintptr_t base;
     54        int irq;
     55} msim_con_res_t;
    4256
    4357/** MSIM console */
     
    4559        async_sess_t *client_sess;
    4660        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;
    4770} msim_con_t;
    4871
    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 *);
     72extern int msim_con_add(msim_con_t *, msim_con_res_t *);
    5473extern int msim_con_remove(msim_con_t *);
    5574extern int msim_con_gone(msim_con_t *);
Note: See TracChangeset for help on using the changeset viewer.