X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=KernelLand%2FModules%2FUSB%2FCore%2Fusb.h;h=2de6985925545e0c3b237b6b58a8a20c517dbd8b;hb=85362e8a4c919b58cd261345d29f26bae4ad75e2;hp=24cd80aded8f9f3f8c94bf182d6389fdec63fb3f;hpb=fb3abbad5dfd71ea2b190d0b33d9c57e879fb15a;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; };