Changeset e7588a8 in mainline for uspace/drv/char/i8042/i8042.h


Ignore:
Timestamp:
2017-11-24T02:21:56Z (6 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0851a3d
Parents:
221176c1
Message:

i8042 can use adt/circ_buf.h

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/char/i8042/i8042.h

    r221176c1 re7588a8  
    4040#define i8042_H_
    4141
     42#include <adt/circ_buf.h>
    4243#include <io/chardev_srv.h>
    4344#include <ddi.h>
    4445#include <fibril_synch.h>
    4546#include <ddf/driver.h>
    46 #include "buffer.h"
    4747
    4848#define NAME  "i8042"
     
    6161        struct i8042 *ctl;              /**< Controller */
    6262        chardev_srvs_t cds;             /**< Character device server data */
     63        fibril_mutex_t buf_lock;        /**< Protect buffer */
     64        fibril_condvar_t buf_cv;        /**< Signal new data in buffer */
    6365} i8042_port_t;
    6466
     
    6870        ddf_fun_t *kbd_fun;             /**< Pirmary port device function. */
    6971        ddf_fun_t *aux_fun;             /**< Auxiliary port device function. */
    70         buffer_t kbd_buffer;            /**< Primary port buffer. */
    71         buffer_t aux_buffer;            /**< Aux. port buffer. */
     72        circ_buf_t kbd_buffer;          /**< Primary port buffer. */
     73        circ_buf_t aux_buffer;          /**< Aux. port buffer. */
    7274        uint8_t aux_data[BUFFER_SIZE];  /**< Primary port buffer space. */
    7375        uint8_t kbd_data[BUFFER_SIZE];  /**< Aux. port buffer space. */
Note: See TracChangeset for help on using the changeset viewer.