Changeset 69df9373 in mainline for uspace/drv/usbhub/ports.h


Ignore:
Timestamp:
2011-04-07T12:14:21Z (14 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
a82889e, c1b1944
Parents:
c50941f
Message:

Add missing documentation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/usbhub/ports.h

    rc50941f r69df9373  
    4646#include <usb/devdrv.h>
    4747
     48/** Information about single port on a hub. */
    4849typedef struct {
     50        /** Mutex needed by CV for checking port reset. */
    4951        fibril_mutex_t reset_mutex;
     52        /** CV for waiting to port reset completion. */
    5053        fibril_condvar_t reset_cv;
     54        /** Whether port reset is completed.
     55         * Guarded by @c reset_mutex.
     56         */
     57        bool reset_completed;
     58
     59        /** Information about attached device. */
    5160        usb_hc_attached_device_t attached_device;
    52         bool reset_completed;
    5361} usb_hub_port_t;
    5462
     63/** Initialize hub port information.
     64 *
     65 * @param port Port to be initialized.
     66 */
    5567static inline void usb_hub_port_init(usb_hub_port_t *port) {
    5668        port->attached_device.address = -1;
Note: See TracChangeset for help on using the changeset viewer.