Ignore:
Timestamp:
2010-10-25T13:23:33Z (14 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
23cb44b
Parents:
355f7c2
Message:

Code cleanup, various bugfixes

The internal functions of virtual device framework always get
device structure as parameter, thus possible enabling more devices
within single task (that is not possible because currently there
is no way to pass extra argument into callback_connection()).

Also, added some missing comments and completely removed the device
id nonsense (devices can send their descriptors and the hub is able
to enable/disable its ports).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/hw/bus/usb/hcd/virtual/hcd.c

    r355f7c2 rca07cd3  
    8989                                return;
    9090                        } else if (kind == 1) {
    91                                 int device_id = IPC_GET_ARG2(call);
    9291                                virtdev_connection_t *dev
    93                                     = virtdev_recognise(device_id, callback);
     92                                    = virtdev_add_device(callback);
    9493                                if (!dev) {
    9594                                        ipc_answer_0(callid, EEXISTS);
Note: See TracChangeset for help on using the changeset viewer.