Changeset ca07cd3 in mainline for uspace/srv/hw/bus/usb/hcd/virtual/devices.c
- Timestamp:
- 2010-10-25T13:23:33Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 23cb44b
- Parents:
- 355f7c2
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hw/bus/usb/hcd/virtual/devices.c
r355f7c2 rca07cd3 43 43 #include <str_error.h> 44 44 45 #include <usbvirt/ids.h>46 45 #include <usbvirt/hub.h> 47 46 … … 55 54 56 55 LIST_INITIALIZE(devices); 57 58 /** Recognise device by id.59 *60 * @param id Device id.61 * @param phone Callback phone.62 */63 virtdev_connection_t *virtdev_recognise(int id, int phone)64 {65 virtdev_connection_t * dev = virtdev_add_device(phone);66 67 /*68 * We do not want to mess-up the virtdev_add_device() as69 * the id is needed only before device probing/detection70 * is implemented.71 *72 * However, that does not mean that this will happen soon.73 */74 if (dev) {75 dev->id = id;76 }77 78 return dev;79 }80 56 81 57 /** Create virtual device.
Note:
See TracChangeset
for help on using the changeset viewer.