Changeset 70e5ad5 in mainline for uspace/drv/vhc/hub/virthub.c


Ignore:
Timestamp:
2010-12-16T11:12:31Z (13 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
11658b64, 5863a95
Parents:
cea3fca
Message:

More doxygen comments

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/vhc/hub/virthub.c

    rcea3fca r70e5ad5  
    7272};
    7373
     74/** Hub descriptor. */
    7475hub_descriptor_t hub_descriptor = {
    7576        .length = sizeof(hub_descriptor_t),
     
    140141};
    141142
     143/** Initializes virtual hub device.
     144 *
     145 * @param dev Virtual USB device backend.
     146 * @return Error code.
     147 */
    142148int virthub_init(usbvirt_device_t *dev)
    143149{
     
    163169}
    164170
     171/** Connect a device to a virtual hub.
     172 *
     173 * @param dev Virtual device representing the hub.
     174 * @param conn Device to be connected.
     175 * @return Port device was connected to.
     176 */
    165177int virthub_connect_device(usbvirt_device_t *dev, virtdev_connection_t *conn)
    166178{
     
    177189}
    178190
     191/** Disconnect a device from a virtual hub.
     192 *
     193 * @param dev Virtual device representing the hub.
     194 * @param conn Device to be disconnected.
     195 * @return Error code.
     196 */
    179197int virthub_disconnect_device(usbvirt_device_t *dev, virtdev_connection_t *conn)
    180198{
     
    185203
    186204        hub_acquire(hub);
     205        /* TODO: implement. */
    187206        hub_release(hub);
    188207
     
    190209}
    191210
     211/** Whether trafic is propagated to given device.
     212 *
     213 * @param dev Virtual device representing the hub.
     214 * @param conn Connected device.
     215 * @return Whether port is signalling to the device.
     216 */
    192217bool virthub_is_device_enabled(usbvirt_device_t *dev, virtdev_connection_t *conn)
    193218{
     
    209234}
    210235
     236/** Format status of a virtual hub.
     237 *
     238 * @param dev Virtual device representing the hub.
     239 * @param[out] status Hub status information.
     240 * @param[in] len Size of the @p status buffer.
     241 */
    211242void virthub_get_status(usbvirt_device_t *dev, char *status, size_t len)
    212243{
Note: See TracChangeset for help on using the changeset viewer.