1/*
2 * Copyright (c) 2007-2013 ETH Zurich.
3 * All rights reserved.
4 *
5 * This file is distributed under the terms in the attached LICENSE file.
6 * If you do not find this file, copies can be found by writing to:
7 * ETH Zurich D-INFK, Haldeneggsteig 4, CH-8092 Zurich. Attn: Systems Group.
8 */
9
10#ifndef USB_EHCI_ROOT_HUB_H_
11#define USB_EHCI_ROOT_HUB_H_
12
13
14/**
15 * this data structures defines the structure of the
16 */
17struct usb_ehci_config_descriptor {
18    struct usb_config_descriptor config;
19    struct usb_interface_descriptor iface;
20    struct usb_endpoint_descriptor endpoint;
21};
22
23void usb_ehci_roothub_interrupt(usb_ehci_hc_t *hc);
24usb_error_t usb_ehci_roothub_exec(struct usb_device *device,
25        struct usb_device_request *req, const void **ret_data,
26        uint16_t *ret_length);
27void usb_ehci_roothub_port_disown(usb_ehci_hc_t *sc, uint16_t index);
28
29
30
31#endif /* USB_EHCI_ROOT_HUB_H_ */
32