Changeset 19e0560e in mainline for uspace/drv/usbhid/mouse
- Timestamp:
- 2011-05-30T19:06:57Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 173922f
- Parents:
- 1aba480
- Location:
- uspace/drv/usbhid/mouse
- Files:
-
- 2 edited
-
mousedev.c (modified) (3 diffs)
-
mousedev.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/usbhid/mouse/mousedev.c
r1aba480 r19e0560e 394 394 395 395 fun->ops = &mouse->ops; 396 fun->driver_data = mouse; // TODO: maybe change to hid_dev->data396 fun->driver_data = mouse; 397 397 398 398 int rc = ddf_fun_bind(fun); … … 432 432 */ 433 433 fun->ops = &mouse->ops; 434 fun->driver_data = mouse; // TODO: maybe change to hid_dev->data434 fun->driver_data = mouse; 435 435 436 436 rc = ddf_fun_bind(fun); … … 488 488 489 489 // set handler for incoming calls 490 // TODO: must be one for each subdriver!!491 490 mouse_dev->ops.default_handler = default_connection_handler; 492 491 493 492 // TODO: how to know if the device supports the request??? 494 //usbhid_req_set_idle(&hid_dev->usb_dev->ctrl_pipe,495 //hid_dev->usb_dev->interface_no, IDLE_RATE);493 usbhid_req_set_idle(&hid_dev->usb_dev->ctrl_pipe, 494 hid_dev->usb_dev->interface_no, IDLE_RATE); 496 495 497 496 int rc = usb_mouse_create_function(hid_dev, mouse_dev); -
uspace/drv/usbhid/mouse/mousedev.h
r1aba480 r19e0560e 45 45 /** Container for USB mouse device. */ 46 46 typedef struct { 47 ///** Polling interval in microseconds. */48 //suseconds_t poll_interval_us;49 47 /** IPC phone to console (consumer). */ 50 48 int mouse_phone;
Note:
See TracChangeset
for help on using the changeset viewer.
