1 /*
2 *******************************************************************************
3 *                                              usb host module
4 *
5 *                             Copyright(C), 2006-2008, SoftWinners Co., Ltd.
6 *                                                  All Rights Reserved
7 *
8 * File Name :
9 *
10 * Author : GLHuang(HoLiGun)
11 *
12 * Version : 1.0
13 *
14 * Date : 2008.05.xx
15 *
16 * Description :
17 *
18 * History :
19 ********************************************************************************************************************
20 */
21 //#include "usb_host_config.h"
22 
23 //#include <usb/usb_os_platform.h>
24 #include <usb_host_common.h>
25 
26 //#include "usb_host_base_types.h"
27 #include <usb_list.h>
28 
29 #include "usb_core_base.h"
30 #include "usb_virt_bus.h"
31 #include "usb_gen_hub.h"
32 #include "usb_gen_hcd.h"
33 #include "usb_driver_init.h"
34 
usb_core_init(void)35 s32 usb_core_init(void)
36 {
37     usb_host_enable();
38     usb_virt_bus_init();
39     usb_drivers_init();
40     usb_gen_hcd_init();
41     usb_gen_hub_init();
42     return EPDK_OK;
43 }
44 
usb_core_exit(void)45 s32 usb_core_exit(void)
46 {
47     //  usb_gen_hub_exit();
48     usb_gen_hcd_exit();
49     usb_drivers_exit();
50     usb_virt_bus_exit();
51     usb_host_disable();
52     return EPDK_OK;
53 }
54 
55 
56