Changeset 96fde65 in mainline
- Timestamp:
- 2011-10-12T18:03:22Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 7be3638
- Parents:
- 4501e207
- Location:
- uspace
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/usbmast/main.c
r4501e207 r96fde65 94 94 95 95 /* Allocate softstate */ 96 mdev = ddf_dev_data_alloc(dev->ddf_dev,sizeof(usbmast_dev_t));96 dev->driver_data = mdev = malloc(sizeof(usbmast_dev_t)); 97 97 if (mdev == NULL) { 98 98 usb_log_error("Failed allocating softstate.\n"); … … 103 103 mdev->usb_dev = dev; 104 104 105 usb_log_info("Initializing mass storage `%s'.\n", 106 dev->ddf_dev->name); 105 usb_log_info("Initializing mass storage `%s'.\n", dev->ddf_dev->name); 107 106 usb_log_debug(" Bulk in endpoint: %d [%zuB].\n", 108 107 dev->pipes[BULK_IN_EP].pipe->endpoint_no, -
uspace/lib/usbdev/include/usb/dev/driver.h
r4501e207 r96fde65 96 96 usb_device_descriptors_t descriptors; 97 97 98 /** Generic DDF device backing this one. */98 /** Generic DDF device backing this one. RO: DO NOT TOUCH!*/ 99 99 ddf_dev_t *ddf_dev; 100 100 /** Custom driver data.
Note:
See TracChangeset
for help on using the changeset viewer.