Ignore:
File:
1 edited

Legend:

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

    r15c5418 rd420b22  
    11/*
    22 * Copyright (c) 2011 Jan Vesely
    3  * Copyright (c) 2017 Jiri Svoboda
    43 * All rights reserved.
    54 *
     
    3130 */
    3231/** @file
    33  * @brief PS/2 mouse driver.
     32 * @brief ps/2 mouse driver.
    3433 */
    3534
    36 #ifndef PS2MOUSE_H_
    37 #define PS2MOUSE_H_
     35#ifndef _PS2MOUSE_H_
     36#define _PS2MOUSE_H_
    3837
    3938#include <ddf/driver.h>
    4039#include <fibril.h>
    41 #include <io/chardev.h>
    4240
    4341/** PS/2 mouse driver structure. */
    4442typedef struct {
    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;
     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. */
    5347} ps2_mouse_t;
    5448
    55 extern int ps2_mouse_init(ps2_mouse_t *, ddf_dev_t *);
     49int ps2_mouse_init(ps2_mouse_t *, ddf_dev_t *);
    5650
    5751#endif
    58 
    5952/**
    6053 * @}
Note: See TracChangeset for help on using the changeset viewer.