5 #define VERSION ( (0<<8)| 5 )
14 int USB_Install(char **Arguments);
15 void USB_Cleanup(void);
16 char *USB_ReadDir(tVFS_Node *Node, int Pos);
17 tVFS_Node *USB_FindDir(tVFS_Node *Node, const char *Name);
18 int USB_IOCtl(tVFS_Node *Node, int Id, void *Data);
21 MODULE_DEFINE(0, VERSION, USB_Core, USB_Install, NULL, NULL);
22 tDevFS_Driver gUSB_DrvInfo = {
25 .ACLs = &gVFS_ACL_EveryoneRX,
26 .Flags = VFS_FFLAG_DIRECTORY,
27 .ReadDir = USB_ReadDir,
28 .FindDir = USB_FindDir,
32 tUSBHost *gUSB_Hosts = NULL;
33 tUSBHub *gUSB_Hubs = NULL;
34 tUSBHub *gUSB_HubsEnd = NULL;
38 * \brief Called once module is loaded
40 int USB_Install(char **Arguments)
42 Log_Warning("USB", "Not Complete - Devel Only");
47 * \brief USB polling thread
49 int USB_PollThread(void *unused)
53 for( tUSBHub *hub = gUSB_Hubs; hub; hub = hub->Next )
55 hub->CheckPorts(hub, hub->Device);
63 * \brief Called just before module is unloaded
70 * \fn char *USB_ReadDir(tVFS_Node *Node, int Pos)
71 * \brief Read from the USB root
73 char *USB_ReadDir(tVFS_Node *Node, int Pos)
79 * \fn tVFS_Node *USB_FindDir(tVFS_Node *Node, const char *Name)
80 * \brief Locate an entry in the USB root
82 tVFS_Node *USB_FindDir(tVFS_Node *Node, const char *Name)
88 * \brief Handles IOCtl Calls to the USB driver
90 int USB_IOCtl(tVFS_Node *Node, int Id, void *Data)