X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Modules%2FUSB%2FCore%2Fusb.h;h=5a133630f5bbd5938a908d6b6b484eccb4cbf665;hb=17993abdd6e2662878dbd8dffe1517b0bf579e6e;hp=8759ee1de3d40e84ad42d65a8e8be3323ed4b449;hpb=3e39f3e998538521830c10da09fe14c7a7dc66bd;p=tpg%2Facess2.git diff --git a/Modules/USB/Core/usb.h b/Modules/USB/Core/usb.h index 8759ee1d..5a133630 100644 --- a/Modules/USB/Core/usb.h +++ b/Modules/USB/Core/usb.h @@ -1,6 +1,9 @@ /* - * AcessOS Version 1 - * USB Stack + * Acess2 USB Stack + * - By John Hodge (thePowersGang) + * + * usb.h + * - USB Internal definitions */ #ifndef _USB_H_ #define _USB_H_ @@ -27,14 +30,17 @@ struct sUSBHub struct sUSBEndpoint { - tUSBEndpoint *Next; // In the poll list + tUSBEndpoint *Next; // (usb_poll.c) Clock list tUSBInterface *Interface; - int EndpointNum; + int EndpointIdx; // Interface endpoint index + int EndpointNum; // Device endpoint num int PollingPeriod; // In 1ms intervals int MaxPacketSize; // In bytes - Uint8 Type; // Same as sUSBDriver.Endpoints.Type + + int PollingAtoms; // (usb_poll.c) Period in clock list + void *InputData; }; /** @@ -42,7 +48,7 @@ struct sUSBEndpoint */ struct sUSBInterface { - tUSBInterface *Next; +// tUSBInterface *Next; tUSBDevice *Dev; tUSBDriver *Driver; @@ -83,6 +89,6 @@ struct sUSBHost tUSBHub RootHub; }; -extern void USB_NewDevice(tUSBHub *Hub); +extern tUSBDriver *USB_int_FindDriverByClass(Uint32 ClassCode); #endif