#include <modules.h>
#include "usb.h"
-// === IMPORTS ===
-extern int UHCI_Initialise(void);
-
// === PROTOTYPES ===
int USB_Install(char **Arguments);
void USB_Cleanup(void);
.IOCtl = USB_IOCtl
}
};
-tUSBDevice *gUSB_RootHubs = NULL;
tUSBHost *gUSB_Hosts = NULL;
+tUSBInterface *gUSB_InterruptDevs = NULL;
+tUSBInterface *gUSB_InterruptLast = NULL;
// === CODE ===
/**
*/
int USB_Install(char **Arguments)
{
- UHCI_Initialise();
Log_Warning("USB", "Not Complete - Devel Only");
return MODULE_ERR_OK;
}
{
for(;;)
{
- for( tUSBHost *host = gUSB_Hosts; host; host = host->Next )
- {
- // host->CheckPorts(host);
- }
-
- for( tUSBDevice *dev = gUSB_RootHubs; dev; dev = dev->Next )
+ for( tUSBInterface *dev = gUSB_InterruptDevs; dev; dev = dev->Next )
{
-
+// hub->CheckPorts(hub, hub->Device);
}
+ // TODO: Fine tune
+ Time_Delay(250);
}
}