X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=KernelLand%2FModules%2FUSB%2FCore%2Finclude%2Fusb_hub.h;h=b38b10175c515f046fa5b2a484bb9070c0f544ec;hb=13078002b01ee4f63eb2001d2ef479a2a006ea32;hp=6b32d49c49b8078ad0269b69ce3649bfd8b97a51;hpb=48743e39650eb1ef988380e9d95f27fd40d3a9ce;p=tpg%2Facess2.git diff --git a/KernelLand/Modules/USB/Core/include/usb_hub.h b/KernelLand/Modules/USB/Core/include/usb_hub.h index 6b32d49c..b38b1017 100644 --- a/KernelLand/Modules/USB/Core/include/usb_hub.h +++ b/KernelLand/Modules/USB/Core/include/usb_hub.h @@ -23,5 +23,26 @@ extern void USB_RemoveHub(tUSBHub *Hub); extern void USB_DeviceConnected(tUSBHub *Hub, int Port); extern void USB_DeviceDisconnected(tUSBHub *Hub, int Port); +#define PORT_CONNECTION 0 +#define PORT_ENABLE 1 +#define PORT_SUSPEND 2 +#define PORT_OVER_CURRENT 3 +#define PORT_RESET 4 +#define PORT_POWER 8 +#define PORT_LOW_SPEED 9 +#define C_PORT_CONNECTION 16 +#define C_PORT_ENABLE 17 +#define C_PORT_SUSPEND 18 +#define C_PORT_OVER_CURRENT 19 +#define C_PORT_RESET 20 +#define PORT_TEST 21 +#define PORT_INDICATOR 21 + +extern void Hub_SetPortFeature(tUSBInterface *HubDev, int Port, int Feat); +extern void Hub_ClearPortFeature(tUSBInterface *HubDev, int Port, int Feat); +extern int Hub_GetPortStatus(tUSBInterface *HubDev, int Port, int Flag); + +extern void USB_PortCtl_BeginReset(tUSBHub *Hub, int Port); + #endif