Changeset 15c5418 in mainline for uspace/drv/hid/ps2mouse/ps2mouse.h
- Timestamp:
- 2017-11-18T20:06:15Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 75fcf9b
- Parents:
- efb9fd08
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/hid/ps2mouse/ps2mouse.h
refb9fd08 r15c5418 1 1 /* 2 2 * Copyright (c) 2011 Jan Vesely 3 * Copyright (c) 2017 Jiri Svoboda 3 4 * All rights reserved. 4 5 * … … 30 31 */ 31 32 /** @file 32 * @brief ps/2 mouse driver.33 * @brief PS/2 mouse driver. 33 34 */ 34 35 35 #ifndef _PS2MOUSE_H_36 #define _PS2MOUSE_H_36 #ifndef PS2MOUSE_H_ 37 #define PS2MOUSE_H_ 37 38 38 39 #include <ddf/driver.h> 39 40 #include <fibril.h> 41 #include <io/chardev.h> 40 42 41 43 /** PS/2 mouse driver structure. */ 42 44 typedef 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; 47 53 } ps2_mouse_t; 48 54 49 int ps2_mouse_init(ps2_mouse_t *, ddf_dev_t *);55 extern int ps2_mouse_init(ps2_mouse_t *, ddf_dev_t *); 50 56 51 57 #endif 58 52 59 /** 53 60 * @}
Note:
See TracChangeset
for help on using the changeset viewer.