Changeset 72af8da in mainline for uspace/drv/usbmouse/mouse.h
- Timestamp:
- 2011-03-16T18:50:17Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 42a3a57
- Parents:
- 3e7b7cd (diff), fcf07e6 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/usbmouse/mouse.h
r3e7b7cd r72af8da 37 37 #define USBMOUSE_MOUSE_H_ 38 38 39 #include < ddf/driver.h>39 #include <usb/devdrv.h> 40 40 #include <usb/pipes.h> 41 41 #include <time.h> … … 43 43 #define NAME "usbmouse" 44 44 45 /** Container for USB mouse device. */ 45 46 typedef struct { 46 ddf_dev_t *device; 47 /** Generic device container. */ 48 usb_device_t *dev; 49 /** Function representing the device. */ 47 50 ddf_fun_t *mouse_fun; 48 usb_device_connection_t wire; 49 usb_endpoint_pipe_t ctrl_pipe; 50 usb_endpoint_pipe_t poll_pipe; 51 /** Polling interval in microseconds. */ 51 52 suseconds_t poll_interval_us; 53 /** IPC phone to console (consumer). */ 52 54 int console_phone; 53 55 } usb_mouse_t; 54 56 55 int usb_mouse_create(ddf_dev_t *); 57 #define POLL_PIPE(dev) ((dev)->pipes[0].pipe) 56 58 57 int usb_mouse_polling_fibril(void *); 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 *); 58 65 59 66 #endif
Note:
See TracChangeset
for help on using the changeset viewer.