X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=KernelLand%2FModules%2FUSB%2FCore%2Fusb.h;h=24cd80aded8f9f3f8c94bf182d6389fdec63fb3f;hb=4ebe00546574e97c5316881881f7f2562deea74b;hp=5a133630f5bbd5938a908d6b6b484eccb4cbf665;hpb=48743e39650eb1ef988380e9d95f27fd40d3a9ce;p=tpg%2Facess2.git diff --git a/KernelLand/Modules/USB/Core/usb.h b/KernelLand/Modules/USB/Core/usb.h index 5a133630..24cd80ad 100644 --- a/KernelLand/Modules/USB/Core/usb.h +++ b/KernelLand/Modules/USB/Core/usb.h @@ -11,6 +11,7 @@ #include #include #include +#include "usb_proto.h" typedef struct sUSBHost tUSBHost; typedef struct sUSBDevice tUSBDevice; @@ -34,6 +35,7 @@ struct sUSBEndpoint tUSBInterface *Interface; int EndpointIdx; // Interface endpoint index int EndpointNum; // Device endpoint num + void *EndpointHandle; int PollingPeriod; // In 1ms intervals int MaxPacketSize; // In bytes @@ -53,6 +55,8 @@ struct sUSBInterface tUSBDriver *Driver; void *Data; + + struct sDescriptor_Interface IfaceDesc; int nEndpoints; tUSBEndpoint Endpoints[]; @@ -71,6 +75,10 @@ struct sUSBDevice tUSBHost *Host; int Address; + void *EndpointHandles[16]; + + struct sDescriptor_Device DevDesc; + int nInterfaces; tUSBInterface *Interfaces[]; };