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 - Bugfixes
[tpg/acess2.git]
/
Modules
/
USB
/
Core
/
main.c
diff --git
a/Modules/USB/Core/main.c
b/Modules/USB/Core/main.c
index
36e898c
..
36a1363
100644
(file)
--- a/
Modules/USB/Core/main.c
+++ b/
Modules/USB/Core/main.c
@@
-11,13
+11,14
@@
#include "usb.h"
// === IMPORTS ===
#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);
void USB_Cleanup(void);
char *USB_ReadDir(tVFS_Node *Node, int Pos);
// === PROTOTYPES ===
int USB_Install(char **Arguments);
void USB_Cleanup(void);
char *USB_ReadDir(tVFS_Node *Node, int Pos);
-tVFS_Node *USB_FindDir(tVFS_Node *Node, char *Name);
+tVFS_Node *USB_FindDir(tVFS_Node *Node, c
onst c
har *Name);
int USB_IOCtl(tVFS_Node *Node, int Id, void *Data);
// === GLOBALS ===
int USB_IOCtl(tVFS_Node *Node, int Id, void *Data);
// === GLOBALS ===
@@
-32,23
+33,23
@@
tDevFS_Driver gUSB_DrvInfo = {
.IOCtl = USB_IOCtl
}
};
.IOCtl = USB_IOCtl
}
};
-tUSBDevice *gUSB_Devices = NULL;
tUSBHost *gUSB_Hosts = NULL;
// === CODE ===
/**
tUSBHost *gUSB_Hosts = NULL;
// === CODE ===
/**
- * \fn int ModuleLoad()
* \brief Called once module is loaded
*/
int USB_Install(char **Arguments)
{
* \brief Called once module is loaded
*/
int USB_Install(char **Arguments)
{
- UHCI_Initialise();
Log_Warning("USB", "Not Complete - Devel Only");
Log_Warning("USB", "Not Complete - Devel Only");
+
+ Proc_SpawnWorker(USB_PollThread, NULL);
+ Proc_SpawnWorker(USB_AsyncThread, NULL);
+
return MODULE_ERR_OK;
}
/**
return MODULE_ERR_OK;
}
/**
- * \fn void USB_Cleanup()
* \brief Called just before module is unloaded
*/
void USB_Cleanup()
* \brief Called just before module is unloaded
*/
void USB_Cleanup()
@@
-65,10
+66,10
@@
char *USB_ReadDir(tVFS_Node *Node, int Pos)
}
/**
}
/**
- * \fn tVFS_Node *USB_FindDir(tVFS_Node *Node, char *Name)
+ * \fn tVFS_Node *USB_FindDir(tVFS_Node *Node, c
onst c
har *Name)
* \brief Locate an entry in the USB root
*/
* \brief Locate an entry in the USB root
*/
-tVFS_Node *USB_FindDir(tVFS_Node *Node, char *Name)
+tVFS_Node *USB_FindDir(tVFS_Node *Node, c
onst c
har *Name)
{
return NULL;
}
{
return NULL;
}
UCC
git Repository :: git.ucc.asn.au