Changes in uspace/drv/usbmouse/mouse.h [adfe5ec:a6add7a] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/usbmouse/mouse.h
radfe5ec ra6add7a 37 37 #define USBMOUSE_MOUSE_H_ 38 38 39 #include < usb/devdrv.h>39 #include <ddf/driver.h> 40 40 #include <usb/pipes.h> 41 41 #include <time.h> … … 46 46 typedef struct { 47 47 /** Generic device container. */ 48 usb_device_t *dev;48 ddf_dev_t *device; 49 49 /** Function representing the device. */ 50 50 ddf_fun_t *mouse_fun; 51 /** Representation of connection to the device. */ 52 usb_device_connection_t wire; 53 /** Default (zero) control pipe. */ 54 usb_endpoint_pipe_t ctrl_pipe; 55 /** Polling (in) pipe. */ 56 usb_endpoint_pipe_t poll_pipe; 51 57 /** Polling interval in microseconds. */ 52 58 suseconds_t poll_interval_us; … … 55 61 } usb_mouse_t; 56 62 57 #define POLL_PIPE(dev) ((dev)->pipes[0].pipe) 63 int usb_mouse_create(ddf_dev_t *); 58 64 59 extern usb_endpoint_description_t poll_endpoint_description; 60 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 *); 65 int usb_mouse_polling_fibril(void *); 65 66 66 67 #endif
Note:
See TracChangeset
for help on using the changeset viewer.