Ignore:
Timestamp:
2010-10-25T13:23:33Z (15 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/devices.h

    r355f7c2 rca07cd3  
    4545        /** Phone used when sending data to device. */
    4646        int phone;
    47         /** Device id. */
    48         int id;
    4947        /** Linked-list handle. */
    5048        link_t link;
    5149} virtdev_connection_t;
    5250
    53 virtdev_connection_t *virtdev_recognise(int, int);
    5451virtdev_connection_t *virtdev_add_device(int);
    5552void virtdev_destroy_device(virtdev_connection_t *);
Note: See TracChangeset for help on using the changeset viewer.