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.
12 #include <linux/version.h>
13 #include <linux/kernel.h>
14 #include <linux/config.h>
19 #ifndef CONFIG_USB_MODULE
20 # ifdef CONFIG_USB_UHCI
23 # ifdef CONFIG_USB_OHCI_HCD
24 int ohci_hcd_init(void);
31 #ifdef CONFIG_USB_PROC
36 #ifndef CONFIG_USB_MODULE
37 # ifdef CONFIG_USB_UHCI
40 # ifdef CONFIG_USB_OHCI_HCD
43 # ifdef CONFIG_USB_MOUSE
46 # ifdef CONFIG_USB_HP_SCANNER
47 usb_hp_scanner_init();
49 # ifdef CONFIG_USB_KBD
52 # ifdef CONFIG_USB_AUDIO
55 # ifdef CONFIG_USB_ACM
58 # ifdef CONFIG_USB_PRINTER
61 # ifdef CONFIG_USB_SERIAL
64 # ifdef CONFIG_USB_CPIA
67 # ifdef CONFIG_USB_DC2XX
70 # ifdef CONFIG_USB_SCSI
73 # ifdef CONFIG_USB_DABUSB
81 * Clean up when unloading the module
83 void cleanup_drivers(void)
86 #ifdef CONFIG_USB_PROC
92 # ifdef CONFIG_USB_MOUSE
95 # ifdef CONFIG_USB_HP_SCANNER
96 usb_hp_scanner_cleanup();
98 # ifdef CONFIG_USB_DABUSB
101 # ifdef CONFIG_USB_KBD
104 # ifdef CONFIG_USB_ACM
107 # ifdef CONFIG_USB_CPIA
110 # ifdef CONFIG_USB_DC2XX
117 int init_module(void)
122 void cleanup_module(void)