5 #define VERSION ( (0<<8)| 5 )
14 extern void USB_PollThread(void *unused);
15 extern void USB_AsyncThread(void *Unused);
18 int USB_Install(char **Arguments);
19 void USB_Cleanup(void);
20 char *USB_ReadDir(tVFS_Node *Node, int Pos);
21 tVFS_Node *USB_FindDir(tVFS_Node *Node, const char *Name);
22 int USB_IOCtl(tVFS_Node *Node, int Id, void *Data);
25 MODULE_DEFINE(0, VERSION, USB_Core, USB_Install, NULL, NULL);
26 tVFS_NodeType gUSB_RootNodeType = {
27 .ReadDir = USB_ReadDir,
28 .FindDir = USB_FindDir,
31 tDevFS_Driver gUSB_DrvInfo = {
34 .ACLs = &gVFS_ACL_EveryoneRX,
35 .Flags = VFS_FFLAG_DIRECTORY,
36 .Type = &gUSB_RootNodeType
39 tUSBHost *gUSB_Hosts = NULL;
43 * \brief Called once module is loaded
45 int USB_Install(char **Arguments)
47 Log_Warning("USB", "Not Complete - Devel Only");
49 Proc_SpawnWorker(USB_PollThread, NULL);
50 Proc_SpawnWorker(USB_AsyncThread, NULL);
56 * \brief Called just before module is unloaded
63 * \fn char *USB_ReadDir(tVFS_Node *Node, int Pos)
64 * \brief Read from the USB root
66 char *USB_ReadDir(tVFS_Node *Node, int Pos)
72 * \fn tVFS_Node *USB_FindDir(tVFS_Node *Node, const char *Name)
73 * \brief Locate an entry in the USB root
75 tVFS_Node *USB_FindDir(tVFS_Node *Node, const char *Name)
81 * \brief Handles IOCtl Calls to the USB driver
83 int USB_IOCtl(tVFS_Node *Node, int Id, void *Data)