This is pre8 ...
[linux-2.6/linux-mips.git] / drivers / usb / usb-core.c
blob25d1d24cf8eca5b633efa7bded9297525f20f6bf
1 /*
2 * driver/usb/usb-core.c
4 * (C) Copyright David Waite 1999
5 * based on code from usb.c, by Linus Torvalds
7 * The purpose of this file is to pull any and all generic modular code from
8 * usb.c and put it in a separate file. This way usb.c is kept as a generic
9 * library, while this file handles starting drivers, etc.
13 #include <linux/version.h>
14 #include <linux/kernel.h>
15 #include <linux/config.h>
16 #include <linux/usb.h>
19 * USB core
22 int usb_hub_init(void);
23 void usb_hub_cleanup(void);
24 int usb_major_init(void);
25 void usb_major_cleanup(void);
28 * USB device drivers
31 int usb_cpia_init(void);
32 int usb_audio_init(void);
33 int usb_ibmcam_init(void);
34 int dabusb_init(void);
35 int plusb_init(void);
36 int dsbr100_init(void);
39 * HCI drivers
42 int uhci_init(void);
43 int ohci_hcd_init(void);
45 #ifdef MODULE
48 * Cleanup
51 void cleanup_module(void)
53 usb_major_cleanup();
54 usbdevfs_cleanup();
55 usb_hub_cleanup();
59 * Init
62 int init_module(void)
63 #else
64 int usb_init(void)
65 #endif
67 usb_major_init();
68 usbdevfs_init();
69 usb_hub_init();
71 #ifndef CONFIG_USB_MODULE
72 #ifdef CONFIG_VIDEO_CPIA_USB
73 usb_cpia_init();
74 #endif
75 #ifdef CONFIG_USB_AUDIO
76 usb_audio_init();
77 #endif
78 #ifdef CONFIG_USB_IBMCAM
79 usb_ibmcam_init();
80 #endif
81 #ifdef CONFIG_USB_DABUSB
82 dabusb_init();
83 #endif
84 #ifdef CONFIG_USB_DSBR
85 dsbr100_init();
86 #endif
87 #ifdef CONFIG_USB_PLUSB
88 plusb_init();
89 #endif
90 #ifdef CONFIG_USB_UHCI
91 uhci_init();
92 #endif
93 #ifdef CONFIG_USB_UHCI_ALT
94 uhci_init();
95 #endif
96 #ifdef CONFIG_USB_OHCI
97 ohci_hcd_init();
98 #endif
99 #endif
100 return 0;