Changeset cd4b184 in mainline for uspace/drv/usbhub/main.c
- Timestamp:
- 2011-02-25T16:23:20Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- cc34f32f
- Parents:
- d493ac17
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/usbhub/main.c
rd493ac17 rcd4b184 34 34 #include <errno.h> 35 35 #include <async.h> 36 #include <stdio.h> 36 37 37 38 #include "usbhub.h" … … 51 52 }; 52 53 54 /* 53 55 int usb_hub_control_loop(void * noparam){ 54 56 while(true){ … … 58 60 return 0; 59 61 } 60 62 */ 61 63 62 64 int main(int argc, char *argv[]) 63 65 { 64 66 usb_log_enable(USB_LOG_LEVEL_DEBUG, NAME); 65 67 dprintf(USB_LOG_LEVEL_INFO, "starting hub driver"); 68 69 //this is probably not needed anymore 66 70 fibril_mutex_initialize(&usb_hub_list_lock); 67 71 fibril_mutex_lock(&usb_hub_list_lock); 68 72 usb_lst_init(&usb_hub_list); 69 73 fibril_mutex_unlock(&usb_hub_list_lock); 70 74 75 /* 71 76 fid_t fid = fibril_create(usb_hub_control_loop, NULL); 72 77 if (fid == 0) { … … 76 81 } 77 82 fibril_add_ready(fid); 78 83 */ 79 84 return ddf_driver_main(&hub_driver); 80 85 }
Note:
See TracChangeset
for help on using the changeset viewer.