Changeset 489c3e7 in mainline for uspace/drv/usbmouse/main.c
- Timestamp:
- 2011-03-12T11:59:52Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 69334af
- Parents:
- 6105fc0
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/usbmouse/main.c
r6105fc0 r489c3e7 44 44 * @return Error code. 45 45 */ 46 static int usbmouse_add_device( ddf_dev_t *dev)46 static int usbmouse_add_device(usb_device_t *dev) 47 47 { 48 48 int rc = usb_mouse_create(dev); … … 52 52 return rc; 53 53 } 54 55 usb_log_debug("Polling pipe at endpoint %d.\n", dev->pipes[0].pipe->endpoint_no); 54 56 55 57 fid_t poll_fibril = fibril_create(usb_mouse_polling_fibril, dev); … … 63 65 64 66 usb_log_info("controlling new mouse (handle %llu).\n", 65 dev-> handle);67 dev->ddf_dev->handle); 66 68 67 69 return EOK; … … 69 71 70 72 /** USB mouse driver ops. */ 71 static driver_ops_t mouse_driver_ops = {73 static usb_driver_ops_t mouse_driver_ops = { 72 74 .add_device = usbmouse_add_device, 73 75 }; 74 76 77 static usb_endpoint_description_t *endpoints[] = { 78 &poll_endpoint_description, 79 NULL 80 }; 81 75 82 /** USB mouse driver. */ 76 static driver_t mouse_driver = {83 static usb_driver_t mouse_driver = { 77 84 .name = NAME, 78 .driver_ops = &mouse_driver_ops 85 .ops = &mouse_driver_ops, 86 .endpoints = endpoints 79 87 }; 80 88 … … 83 91 usb_log_enable(USB_LOG_LEVEL_DEBUG, NAME); 84 92 85 return ddf_driver_main(&mouse_driver);93 return usb_driver_main(&mouse_driver); 86 94 } 87 95
Note:
See TracChangeset
for help on using the changeset viewer.