X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=KernelLand%2FModules%2FUSB%2FCore%2Fusb.h;h=2de6985925545e0c3b237b6b58a8a20c517dbd8b;hb=13078002b01ee4f63eb2001d2ef479a2a006ea32;hp=24cd80aded8f9f3f8c94bf182d6389fdec63fb3f;hpb=253e9e4a08af1d1d73fe4e3643c3c63e478d4b04;p=tpg%2Facess2.git diff --git a/KernelLand/Modules/USB/Core/usb.h b/KernelLand/Modules/USB/Core/usb.h index 24cd80ad..2de69859 100644 --- a/KernelLand/Modules/USB/Core/usb.h +++ b/KernelLand/Modules/USB/Core/usb.h @@ -13,11 +13,20 @@ #include #include "usb_proto.h" +typedef struct sUSBHubPort tUSBHubPort; typedef struct sUSBHost tUSBHost; typedef struct sUSBDevice tUSBDevice; typedef struct sUSBEndpoint tUSBEndpoint; // === STRUCTURES === +struct sUSBHubPort +{ + void *ListNext; + char Status; + char PortNum; + tUSBDevice *Dev; +}; + /** * \brief USB Hub data */ @@ -26,7 +35,7 @@ struct sUSBHub tUSBInterface *Interface; int nPorts; - tUSBDevice *Devices[]; + struct sUSBHubPort Ports[]; }; struct sUSBEndpoint @@ -92,8 +101,8 @@ struct sUSBHost Uint8 AddressBitmap[128/8]; - tUSBDevice RootHubDev; - tUSBInterface RootHubIf; + tUSBDevice *RootHubDev; + tUSBInterface *RootHubIf; tUSBHub RootHub; };