git.ucc.asn.au
/
tpg
/
acess2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Modules/USB - Fiddling with USB
[tpg/acess2.git]
/
Modules
/
USB
/
Core
/
main.c
diff --git
a/Modules/USB/Core/main.c
b/Modules/USB/Core/main.c
index
9a6458e
..
d99ef3a
100644
(file)
--- a/
Modules/USB/Core/main.c
+++ b/
Modules/USB/Core/main.c
@@
-10,9
+10,6
@@
#include <modules.h>
#include "usb.h"
#include <modules.h>
#include "usb.h"
-// === IMPORTS ===
-extern int UHCI_Initialise(void);
-
// === PROTOTYPES ===
int USB_Install(char **Arguments);
void USB_Cleanup(void);
// === PROTOTYPES ===
int USB_Install(char **Arguments);
void USB_Cleanup(void);
@@
-32,8
+29,9
@@
tDevFS_Driver gUSB_DrvInfo = {
.IOCtl = USB_IOCtl
}
};
.IOCtl = USB_IOCtl
}
};
-tUSBDevice *gUSB_RootHubs = NULL;
tUSBHost *gUSB_Hosts = NULL;
tUSBHost *gUSB_Hosts = NULL;
+tUSBDevice *gUSB_InterruptDevs = NULL;
+tUSBDevice *gUSB_InterruptLast = NULL;
// === CODE ===
/**
// === CODE ===
/**
@@
-41,7
+39,6
@@
tUSBHost *gUSB_Hosts = NULL;
*/
int USB_Install(char **Arguments)
{
*/
int USB_Install(char **Arguments)
{
- UHCI_Initialise();
Log_Warning("USB", "Not Complete - Devel Only");
return MODULE_ERR_OK;
}
Log_Warning("USB", "Not Complete - Devel Only");
return MODULE_ERR_OK;
}
@@
-53,15
+50,12
@@
int USB_PollThread(void *unused)
{
for(;;)
{
{
for(;;)
{
- for( tUSBHost *host = gUSB_Hosts; host; host = host->Next )
- {
- // host->CheckPorts(host);
- }
-
- for( tUSBDevice *dev = gUSB_RootHubs; dev; dev = dev->Next )
+ for( tUSBDevice *dev = gUSB_InterruptDevs; dev; dev = dev->Next )
{
{
-
+// hub->CheckPorts(hub, hub->Device);
}
}
+ // TODO: Fine tune
+ Time_Delay(250);
}
}
}
}
UCC
git Repository :: git.ucc.asn.au