Changeset 3dba1ca in mainline for uspace/drv/usbhub/usbhub.c


Ignore:
Timestamp:
2011-04-05T20:12:26Z (14 years ago)
Author:
Matus Dekanek <smekideki@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
a209648
Parents:
90d0522
Message:

some more comments

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/usbhub/usbhub.c

    r90d0522 r3dba1ca  
    7676                async_usleep(1000 * 1000 * 10); /// \TODO proper number once
    7777                errorCode = usb_hub_check_hub_changes(hub_info);
    78 
    7978        }
    8079        usb_log_error("something in ctrl loop went wrong, errno %d\n",
     
    8584
    8685/// \TODO set_port_feature use
     86/// \TODO unmess code
    8787
    8888//*********************************************
     
    766766}
    767767
     768/**
     769 * process hub over current change
     770 *
     771 * This means either to power off the hub or power it on.
     772 * @param hub_info hub instance
     773 * @param status hub status bitmask
     774 * @return error code
     775 */
    768776static int usb_process_hub_over_current(usb_hub_info_t * hub_info,
    769777        usb_hub_status_t status)
     
    788796}
    789797
     798/**
     799 * process hub power change
     800 *
     801 * If the power has been lost, reestablish it.
     802 * If it was reestablished, re-power all ports.
     803 * @param hub_info hub instance
     804 * @param status hub status bitmask
     805 * @return error code
     806 */
    790807static int usb_process_hub_power_change(usb_hub_info_t * hub_info,
    791808        usb_hub_status_t status)
     
    815832}
    816833
    817 
     834/**
     835 * process hub interrupts
     836 *
     837 * The change can be either in the over-current condition or
     838 * local-power lost condition.
     839 * @param hub_info hub instance
     840 */
    818841static void usb_hub_process_global_interrupt(usb_hub_info_t * hub_info){
    819842        usb_log_debug("global interrupt on a hub\n");
     
    850873}
    851874
     875/**
     876 * this is an attempt to initialize non-removable devices in the hub
     877 *
     878 * @param hub_info hub instance
     879 * @param port port number, counting from 1
     880 * @return error code
     881 */
    852882static int initialize_non_removable(usb_hub_info_t * hub_info,
    853883        unsigned int port) {
Note: See TracChangeset for help on using the changeset viewer.