Changeset 15d0046 in mainline for uspace/drv/char/i8042/i8042.h


Ignore:
Timestamp:
2014-09-12T13:22:33Z (10 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
9b20126
Parents:
8db09e4 (diff), 105d8d6 (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 mainline changes

File:
1 edited

Legend:

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

    r8db09e4 r15d0046  
    4040#define i8042_H_
    4141
     42#include <io/chardev_srv.h>
    4243#include <sys/types.h>
    4344#include <fibril_synch.h>
     
    5657} __attribute__ ((packed)) i8042_regs_t;
    5758
    58 /** i8042 driver structure. */
     59/** i8042 Port. */
     60typedef struct {
     61        struct i8042 *ctl;              /**< Controller */
     62        chardev_srvs_t cds;             /**< Character device server data */
     63} i8042_port_t;
     64
     65/** i8042 Controller. */
    5966typedef struct i8042 {
    6067        i8042_regs_t *regs;             /**< I/O registers. */
     
    6572        uint8_t aux_data[BUFFER_SIZE];  /**< Primary port buffer space. */
    6673        uint8_t kbd_data[BUFFER_SIZE];  /**< Aux. port buffer space. */
     74        i8042_port_t *kbd;
     75        i8042_port_t *aux;
    6776        fibril_mutex_t write_guard;     /**< Prevents simultanous port writes.*/
    6877} i8042_t;
    6978
    70 int i8042_init(i8042_t *, addr_range_t *, int, int, ddf_dev_t *);
     79
     80extern int i8042_init(i8042_t *, addr_range_t *, int, int, ddf_dev_t *);
    7181
    7282#endif
Note: See TracChangeset for help on using the changeset viewer.