Changes in uspace/drv/usbhub/main.c [5097bed4:f9a0cef] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/usbhub/main.c
r5097bed4 rf9a0cef 32 32 33 33 #include <usb/usbdrv.h> 34 35 34 #include "usbhub.h" 36 35 #include "usbhub_private.h" … … 38 37 39 38 usb_general_list_t usb_hub_list; 40 futex_t usb_hub_list_lock;41 39 42 40 static driver_ops_t hub_driver_ops = { … … 60 58 int main(int argc, char *argv[]) 61 59 { 62 usb_dprintf_enable(NAME,1);63 futex_initialize(&usb_hub_list_lock, 0);64 60 usb_lst_init(&usb_hub_list); 65 futex_up(&usb_hub_list_lock);66 61 fid_t fid = fibril_create(usb_hub_control_loop, NULL); 67 62 if (fid == 0) { 68 dprintf(1, "failed to start fibril for HUB devices"); 69 //printf("%s: failed to start fibril for HUB devices\n", NAME); 63 printf("%s: failed to start fibril for HUB devices\n", NAME); 70 64 return ENOMEM; 71 65 }
Note:
See TracChangeset
for help on using the changeset viewer.