Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/hid/ps2mouse/ps2mouse.h

    rd420b22 r15c5418  
    11/*
    22 * Copyright (c) 2011 Jan Vesely
     3 * Copyright (c) 2017 Jiri Svoboda
    34 * All rights reserved.
    45 *
     
    3031 */
    3132/** @file
    32  * @brief ps/2 mouse driver.
     33 * @brief PS/2 mouse driver.
    3334 */
    3435
    35 #ifndef _PS2MOUSE_H_
    36 #define _PS2MOUSE_H_
     36#ifndef PS2MOUSE_H_
     37#define PS2MOUSE_H_
    3738
    3839#include <ddf/driver.h>
    3940#include <fibril.h>
     41#include <io/chardev.h>
    4042
    4143/** PS/2 mouse driver structure. */
    4244typedef struct {
    43         ddf_fun_t *mouse_fun;      /**< Mouse function. */
    44         async_sess_t *parent_sess; /**< Connection to device providing data. */
    45         async_sess_t *client_sess;  /**< Callback connection to client. */
    46         fid_t polling_fibril;      /**< Fibril retrieving an parsing data. */
     45        /** Mouse function. */
     46        ddf_fun_t *mouse_fun;
     47        /** Device providing mouse connection */
     48        chardev_t *chardev;
     49        /** Callback connection to client. */
     50        async_sess_t *client_sess;
     51        /** Fibril retrieving an parsing data. */
     52        fid_t polling_fibril;
    4753} ps2_mouse_t;
    4854
    49 int ps2_mouse_init(ps2_mouse_t *, ddf_dev_t *);
     55extern int ps2_mouse_init(ps2_mouse_t *, ddf_dev_t *);
    5056
    5157#endif
     58
    5259/**
    5360 * @}
Note: See TracChangeset for help on using the changeset viewer.