5 #define VERSION ( (0<<8)| 5 )
14 extern int UHCI_Initialise(void);
17 int USB_Install(char **Arguments);
18 void USB_Cleanup(void);
19 char *USB_ReadDir(tVFS_Node *Node, int Pos);
20 tVFS_Node *USB_FindDir(tVFS_Node *Node, const char *Name);
21 int USB_IOCtl(tVFS_Node *Node, int Id, void *Data);
24 MODULE_DEFINE(0, VERSION, USB_Core, USB_Install, NULL, NULL);
25 tDevFS_Driver gUSB_DrvInfo = {
28 .ACLs = &gVFS_ACL_EveryoneRX,
29 .Flags = VFS_FFLAG_DIRECTORY,
30 .ReadDir = USB_ReadDir,
31 .FindDir = USB_FindDir,
35 tUSBDevice *gUSB_RootHubs = NULL;
36 tUSBHost *gUSB_Hosts = NULL;
40 * \brief Called once module is loaded
42 int USB_Install(char **Arguments)
45 Log_Warning("USB", "Not Complete - Devel Only");
50 * \brief USB polling thread
52 int USB_PollThread(void *unused)
56 for( tUSBHost *host = gUSB_Hosts; host; host = host->Next )
58 // host->CheckPorts(host);
61 for( tUSBDevice *dev = gUSB_RootHubs; dev; dev = dev->Next )
69 * \brief Called just before module is unloaded
76 * \fn char *USB_ReadDir(tVFS_Node *Node, int Pos)
77 * \brief Read from the USB root
79 char *USB_ReadDir(tVFS_Node *Node, int Pos)
85 * \fn tVFS_Node *USB_FindDir(tVFS_Node *Node, const char *Name)
86 * \brief Locate an entry in the USB root
88 tVFS_Node *USB_FindDir(tVFS_Node *Node, const char *Name)
94 * \brief Handles IOCtl Calls to the USB driver
96 int USB_IOCtl(tVFS_Node *Node, int Id, void *Data)