Changeset 132ab5d1 in mainline for uspace/drv/char/msim-con/msim-con.h


Ignore:
Timestamp:
2018-01-30T03:20:45Z (8 years ago)
Author:
Jenda <jenda.jzqk73@…>
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.
Message:

Merge commit '6a5d05bd2551e64111bea4f9332dd7448c26ce84' into forwardport

Separate return value from error code in gen_irq_code*().

File:
1 edited

Legend:

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

    r8bfb163 r132ab5d1  
    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.