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
Merge branch 'master' of git://git.ucc.asn.au/tpg/acess2
[tpg/acess2.git]
/
KernelLand
/
Modules
/
USB
/
Core
/
main.c
diff --git
a/KernelLand/Modules/USB/Core/main.c
b/KernelLand/Modules/USB/Core/main.c
index
94ec253
..
0464550
100644
(file)
--- a/
KernelLand/Modules/USB/Core/main.c
+++ b/
KernelLand/Modules/USB/Core/main.c
@@
-13,11
+13,12
@@
// === IMPORTS ===
extern void USB_PollThread(void *unused);
extern void USB_AsyncThread(void *Unused);
// === IMPORTS ===
extern void USB_PollThread(void *unused);
extern void USB_AsyncThread(void *Unused);
+extern void USB_PortCtl_Init(void);
// === PROTOTYPES ===
int USB_Install(char **Arguments);
void USB_Cleanup(void);
// === PROTOTYPES ===
int USB_Install(char **Arguments);
void USB_Cleanup(void);
-
char *USB_ReadDir(tVFS_Node *Node, int Pos
);
+
int USB_ReadDir(tVFS_Node *Node, int Pos, char Dest[FILENAME_MAX]
);
tVFS_Node *USB_FindDir(tVFS_Node *Node, const char *Name);
int USB_IOCtl(tVFS_Node *Node, int Id, void *Data);
tVFS_Node *USB_FindDir(tVFS_Node *Node, const char *Name);
int USB_IOCtl(tVFS_Node *Node, int Id, void *Data);
@@
-43,6
+44,7
@@
tDevFS_Driver gUSB_DrvInfo = {
*/
int USB_Install(char **Arguments)
{
*/
int USB_Install(char **Arguments)
{
+ USB_PortCtl_Init();
Proc_SpawnWorker(USB_PollThread, NULL);
Proc_SpawnWorker(USB_AsyncThread, NULL);
Proc_SpawnWorker(USB_PollThread, NULL);
Proc_SpawnWorker(USB_AsyncThread, NULL);
@@
-60,9
+62,9
@@
void USB_Cleanup()
* \fn char *USB_ReadDir(tVFS_Node *Node, int Pos)
* \brief Read from the USB root
*/
* \fn char *USB_ReadDir(tVFS_Node *Node, int Pos)
* \brief Read from the USB root
*/
-
char *USB_ReadDir(tVFS_Node *Node, int Pos
)
+
int USB_ReadDir(tVFS_Node *Node, int Pos, char Dest[FILENAME_MAX]
)
{
{
- return
NUL
L;
+ return
-ENOTIMP
L;
}
/**
}
/**
UCC
git Repository :: git.ucc.asn.au