X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=KernelLand%2FModules%2FUSB%2FCore%2Fmain.c;h=4b4efa360c93499f261423c6bb3b7d24eb309875;hb=5cab4c07bc13888dc7956194ef9595508072a4eb;hp=cdbe2ee78df98580bdf7f7a0c1a4842578fc76a4;hpb=4ebe00546574e97c5316881881f7f2562deea74b;p=tpg%2Facess2.git diff --git a/KernelLand/Modules/USB/Core/main.c b/KernelLand/Modules/USB/Core/main.c index cdbe2ee7..4b4efa36 100644 --- a/KernelLand/Modules/USB/Core/main.c +++ b/KernelLand/Modules/USB/Core/main.c @@ -13,12 +13,13 @@ // === 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); int USB_ReadDir(tVFS_Node *Node, int Pos, char Dest[FILENAME_MAX]); -tVFS_Node *USB_FindDir(tVFS_Node *Node, const char *Name); +tVFS_Node *USB_FindDir(tVFS_Node *Node, const char *Name, Uint Flags); int USB_IOCtl(tVFS_Node *Node, int Id, void *Data); // === GLOBALS === @@ -43,6 +44,7 @@ tDevFS_Driver gUSB_DrvInfo = { */ int USB_Install(char **Arguments) { + USB_PortCtl_Init(); Proc_SpawnWorker(USB_PollThread, NULL); Proc_SpawnWorker(USB_AsyncThread, NULL); @@ -69,7 +71,7 @@ int USB_ReadDir(tVFS_Node *Node, int Pos, char Dest[FILENAME_MAX]) * \fn tVFS_Node *USB_FindDir(tVFS_Node *Node, const char *Name) * \brief Locate an entry in the USB root */ -tVFS_Node *USB_FindDir(tVFS_Node *Node, const char *Name) +tVFS_Node *USB_FindDir(tVFS_Node *Node, const char *Name, Uint Flags) { return NULL; }