Changeset 19e0560e in mainline for uspace/drv/usbhid/mouse/mousedev.c
- Timestamp:
- 2011-05-30T19:06:57Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 173922f
- Parents:
- 1aba480
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified 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);
Note:
See TracChangeset
for help on using the changeset viewer.