Changeset 2b621cb in mainline for uspace/drv/bus/usb/usbhid/mouse/mousedev.c
- Timestamp:
- 2011-12-28T13:05:59Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 8afeb04
- Parents:
- 295f658
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/usbhid/mouse/mousedev.c
r295f658 r2b621cb 57 57 #define NAME "mouse" 58 58 59 /*----------------------------------------------------------------------------*/ 60 59 static void default_connection_handler(ddf_fun_t *, ipc_callid_t, ipc_call_t *); 60 61 static ddf_dev_ops_t ops = { .default_handler = default_connection_handler }; 62 63 /*----------------------------------------------------------------------------*/ 61 64 const usb_endpoint_description_t usb_hid_mouse_poll_endpoint_description = { 62 65 .transfer_type = USB_TRANSFER_INTERRUPT, … … 307 310 } 308 311 309 fun->ops = & mouse->ops;312 fun->ops = &ops; 310 313 fun->driver_data = mouse; 311 314 … … 350 353 * to the DDF function. 351 354 */ 352 fun->ops = & mouse->ops;355 fun->ops = &ops; 353 356 fun->driver_data = mouse; 354 357 … … 458 461 } 459 462 460 // set handler for incoming calls461 mouse_dev->ops.default_handler = default_connection_handler;462 463 463 // TODO: how to know if the device supports the request??? 464 464 usbhid_req_set_idle(&hid_dev->usb_dev->ctrl_pipe,
Note:
See TracChangeset
for help on using the changeset viewer.