Changeset 3dba1ca in mainline for uspace/drv/usbhub/usbhub.c
- Timestamp:
- 2011-04-05T20:12:26Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a209648
- Parents:
- 90d0522
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/usbhub/usbhub.c
r90d0522 r3dba1ca 76 76 async_usleep(1000 * 1000 * 10); /// \TODO proper number once 77 77 errorCode = usb_hub_check_hub_changes(hub_info); 78 79 78 } 80 79 usb_log_error("something in ctrl loop went wrong, errno %d\n", … … 85 84 86 85 /// \TODO set_port_feature use 86 /// \TODO unmess code 87 87 88 88 //********************************************* … … 766 766 } 767 767 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 */ 768 776 static int usb_process_hub_over_current(usb_hub_info_t * hub_info, 769 777 usb_hub_status_t status) … … 788 796 } 789 797 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 */ 790 807 static int usb_process_hub_power_change(usb_hub_info_t * hub_info, 791 808 usb_hub_status_t status) … … 815 832 } 816 833 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 */ 818 841 static void usb_hub_process_global_interrupt(usb_hub_info_t * hub_info){ 819 842 usb_log_debug("global interrupt on a hub\n"); … … 850 873 } 851 874 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 */ 852 882 static int initialize_non_removable(usb_hub_info_t * hub_info, 853 883 unsigned int port) {
Note:
See TracChangeset
for help on using the changeset viewer.