Changeset 93fb170c in mainline for uspace/drv/usbhub/main.c
- Timestamp:
- 2011-01-08T18:51:31Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 15be932
- Parents:
- 8f748215 (diff), a523af4 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/usbhub/main.c
r8f748215 r93fb170c 32 32 33 33 #include <usb/usbdrv.h> 34 34 35 #include "usbhub.h" 35 36 #include "usbhub_private.h" … … 37 38 38 39 usb_general_list_t usb_hub_list; 40 futex_t usb_hub_list_lock; 39 41 40 42 static driver_ops_t hub_driver_ops = { … … 58 60 int main(int argc, char *argv[]) 59 61 { 62 usb_dprintf_enable(NAME,1); 63 futex_initialize(&usb_hub_list_lock, 0); 60 64 usb_lst_init(&usb_hub_list); 65 futex_up(&usb_hub_list_lock); 61 66 fid_t fid = fibril_create(usb_hub_control_loop, NULL); 62 67 if (fid == 0) { 63 printf("%s: failed to start fibril for HUB devices\n", NAME); 68 dprintf(1, "failed to start fibril for HUB devices"); 69 //printf("%s: failed to start fibril for HUB devices\n", NAME); 64 70 return ENOMEM; 65 71 }
Note:
See TracChangeset
for help on using the changeset viewer.