Changeset cd4b184 in mainline for uspace/drv/usbhub/main.c


Ignore:
Timestamp:
2011-02-25T16:23:20Z (14 years ago)
Author:
Matus Dekanek <smekideki@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
cc34f32f
Parents:
d493ac17
Message:

fixed use of new usb pipe api
each hub has it`s own fibril

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/usbhub/main.c

    rd493ac17 rcd4b184  
    3434#include <errno.h>
    3535#include <async.h>
     36#include <stdio.h>
    3637
    3738#include "usbhub.h"
     
    5152};
    5253
     54/*
    5355int usb_hub_control_loop(void * noparam){
    5456        while(true){
     
    5860        return 0;
    5961}
    60 
     62*/
    6163
    6264int main(int argc, char *argv[])
    6365{
    6466        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
    6670        fibril_mutex_initialize(&usb_hub_list_lock);
    6771        fibril_mutex_lock(&usb_hub_list_lock);
    6872        usb_lst_init(&usb_hub_list);
    6973        fibril_mutex_unlock(&usb_hub_list_lock);
    70 
     74       
     75/*
    7176        fid_t fid = fibril_create(usb_hub_control_loop, NULL);
    7277        if (fid == 0) {
     
    7681        }
    7782        fibril_add_ready(fid);
    78 
     83*/
    7984        return ddf_driver_main(&hub_driver);
    8085}
Note: See TracChangeset for help on using the changeset viewer.