Kernel - Fixing and breaking SMP related stuff
[tpg/acess2.git] / Modules / USB / Core / main.c
index 712f602..36a1363 100644 (file)
@@ -11,7 +11,8 @@
 #include "usb.h"
 
 // === IMPORTS ===
-extern int     UHCI_Initialise(void);
+extern void    USB_PollThread(void *unused);
+extern void    USB_AsyncThread(void *Unused);
 
 // === PROTOTYPES ===
  int   USB_Install(char **Arguments);
@@ -32,23 +33,23 @@ tDevFS_Driver       gUSB_DrvInfo = {
                .IOCtl = USB_IOCtl
        }
 };
-tUSBDevice     *gUSB_Devices = NULL;
 tUSBHost       *gUSB_Hosts = NULL;
 
 // === CODE ===
 /**
- * \fn int ModuleLoad()
  * \brief Called once module is loaded
  */
 int USB_Install(char **Arguments)
 {
-       UHCI_Initialise();
        Log_Warning("USB", "Not Complete - Devel Only");
+       
+       Proc_SpawnWorker(USB_PollThread, NULL);
+       Proc_SpawnWorker(USB_AsyncThread, NULL);
+       
        return MODULE_ERR_OK;
 }
 
 /**
- * \fn void USB_Cleanup()
  * \brief Called just before module is unloaded
  */
 void USB_Cleanup()

UCC git Repository :: git.ucc.asn.au