Changes in uspace/drv/usbmouse/mouse.h [4a4c8bcf:7d521e24] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/usbmouse/mouse.h
r4a4c8bcf r7d521e24 34 34 * Common definitions for USB mouse driver. 35 35 */ 36 37 36 #ifndef USBMOUSE_MOUSE_H_ 38 37 #define USBMOUSE_MOUSE_H_ … … 41 40 #include <usb/dev/pipes.h> 42 41 #include <time.h> 43 #include <async.h>44 42 45 #define POLL_PIPE(dev) \ 46 ((dev)->pipes[0].pipe) 43 #define NAME "usbmouse" 47 44 48 45 /** Container for USB mouse device. */ … … 50 47 /** Generic device container. */ 51 48 usb_device_t *dev; 52 53 49 /** Function representing the device. */ 54 50 ddf_fun_t *mouse_fun; 55 56 51 /** Polling interval in microseconds. */ 57 52 suseconds_t poll_interval_us; 58 59 /** Callback session to console (consumer). */ 60 async_sess_t *console_sess; 53 /** IPC phone to console (consumer). */ 54 int console_phone; 61 55 } usb_mouse_t; 56 57 #define POLL_PIPE(dev) ((dev)->pipes[0].pipe) 62 58 63 59 extern usb_endpoint_description_t poll_endpoint_description; 64 60 65 externint usb_mouse_create(usb_device_t *);66 extern bool usb_mouse_polling_callback(usb_device_t *, uint8_t *, size_t, 67 68 externvoid usb_mouse_polling_ended_callback(usb_device_t *, bool, void *);61 int usb_mouse_create(usb_device_t *); 62 63 bool usb_mouse_polling_callback(usb_device_t *, uint8_t *, size_t, void *); 64 void usb_mouse_polling_ended_callback(usb_device_t *, bool, void *); 69 65 70 66 #endif 71 72 67 /** 73 68 * @}
Note:
See TracChangeset
for help on using the changeset viewer.