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
39 int PollingPeriod; // In 1ms intervals
40 int MaxPacketSize; // In bytes
41 Uint8 Type; // Same as sUSBDriver.Endpoints.Type
43 int PollingAtoms; // (usb_poll.c) Period in clock list
48 * \brief Structure for a device's interface
52 // tUSBInterface *Next;
58 struct sDescriptor_Interface IfaceDesc;
61 tUSBEndpoint Endpoints[];
65 * \brief Defines a single device on the USB Bus
72 * \brief Host controller used
77 struct sDescriptor_Device DevDesc;
80 tUSBInterface *Interfaces[];
85 struct sUSBHost *Next;
90 Uint8 AddressBitmap[128/8];
92 tUSBDevice RootHubDev;
93 tUSBInterface RootHubIf;
97 extern tUSBDriver *USB_int_FindDriverByClass(Uint32 ClassCode);