Changes in uspace/drv/usbhub/main.c [f9a0cef:4317827] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/usbhub/main.c
rf9a0cef r4317827 26 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 27 */ 28 28 #include <usb/usbdrv.h> 29 29 #include <driver.h> 30 30 #include <errno.h> 31 #include <async.h>32 33 #include <usb/usbdrv.h>34 31 #include "usbhub.h" 35 #include "usbhub_private.h"36 37 38 usb_general_list_t usb_hub_list;39 32 40 33 static driver_ops_t hub_driver_ops = { … … 47 40 }; 48 41 49 int usb_hub_control_loop(void * noparam){50 while(true){51 usb_hub_check_hub_changes();52 async_usleep(1000 * 1000);53 }54 return 0;55 }56 57 58 42 int main(int argc, char *argv[]) 59 43 { 60 usb_lst_init(&usb_hub_list);61 fid_t fid = fibril_create(usb_hub_control_loop, NULL);62 if (fid == 0) {63 printf("%s: failed to start fibril for HUB devices\n", NAME);64 return ENOMEM;65 }66 fibril_add_ready(fid);67 68 44 return driver_main(&hub_driver); 69 45 }
Note:
See TracChangeset
for help on using the changeset viewer.