2 * USB support for XBOX, based on Linux kernel source
4 * 2003-06-21 Georg Acher (georg@acher.org)
8 #include "../usb_wrapper.h"
10 void subsys_usb_init(void);
11 void module_exit_usb_exit(void);
13 extern struct pci_device_id
*module_table_pci_ids
;
16 int usb_hcd_pci_probe (struct pci_dev
*dev
, const struct pci_device_id
*id
);
17 void usb_hcd_pci_remove (struct pci_dev
*dev
);
20 void XPADRemove(void);
21 void XRemoteInit(void);
22 void XRemoteRemove(void);
24 extern int (*thread_handler
)(void*);
25 int (*hub_thread_handler
)(void*);
30 struct pci_dev xx_ohci_dev
={
34 .irq
= 1, // currently not used...
36 .dev
= {.name
= "PCI",.dma_mask
=1},
41 /*------------------------------------------------------------------------*/
42 void BootStartUSB(void)
50 hub_thread_handler
=thread_handler
;
51 usb_hcd_pci_probe(&xx_ohci_dev
, module_table_pci_ids
);
63 /*------------------------------------------------------------------------*/
64 void USBGetEvents(void)
68 hub_thread_handler(NULL
);
71 /*------------------------------------------------------------------------*/
72 void BootStopUSB(void)
86 module_exit_usb_exit();
87 usb_hcd_pci_remove(&xx_ohci_dev
);
90 /*------------------------------------------------------------------------*/