3 * - By John Hodge (thePowersGang)
6 * - USB Internal definitions
14 #include "usb_proto.h"
16 typedef struct sUSBHost tUSBHost;
17 typedef struct sUSBDevice tUSBDevice;
18 typedef struct sUSBEndpoint tUSBEndpoint;
26 tUSBInterface *Interface;
29 tUSBDevice *Devices[];
34 tUSBEndpoint *Next; // (usb_poll.c) Clock list
35 tUSBInterface *Interface;
36 int EndpointIdx; // Interface endpoint index
37 int EndpointNum; // Device endpoint num
40 int PollingPeriod; // In 1ms intervals
41 int MaxPacketSize; // In bytes
42 Uint8 Type; // Same as sUSBDriver.Endpoints.Type
44 int PollingAtoms; // (usb_poll.c) Period in clock list
49 * \brief Structure for a device's interface
53 // tUSBInterface *Next;
59 struct sDescriptor_Interface IfaceDesc;
62 tUSBEndpoint Endpoints[];
66 * \brief Defines a single device on the USB Bus
73 * \brief Host controller used
78 void *EndpointHandles[16];
80 struct sDescriptor_Device DevDesc;
83 tUSBInterface *Interfaces[];
88 struct sUSBHost *Next;
93 Uint8 AddressBitmap[128/8];
95 tUSBDevice RootHubDev;
96 tUSBInterface RootHubIf;
100 extern tUSBDriver *USB_int_FindDriverByClass(Uint32 ClassCode);