#include <usbvirt/device.h>
#include "hub.h"
#include "../vhcd.h"
Go to the source code of this file.
Data Structures | |
| struct | hub_descriptor_t |
| Hub descriptor. More... | |
Defines | |
| #define | HUB_CONFIGURATION_ID 1 |
| Configuration value for hub configuration. | |
| #define | HUB_STATUS_CHANGE_PIPE 1 |
| Endpoint number for status change pipe. | |
Functions | |
| int | virthub_connect_device (usbvirt_device_t *dev, vhc_virtdev_t *conn) |
| Connect a device to a virtual hub. | |
| int | virthub_disconnect_device (usbvirt_device_t *dev, vhc_virtdev_t *conn) |
| Disconnect a device from a virtual hub. | |
| void | virthub_get_status (usbvirt_device_t *dev, char *status, size_t len) |
| Format status of a virtual hub. | |
| int | virthub_init (usbvirt_device_t *dev) |
| Initializes virtual hub device. | |
| bool | virthub_is_device_enabled (usbvirt_device_t *dev, vhc_virtdev_t *conn) |
| Whether trafic is propagated to given device. | |
Variables | |
| hub_descriptor_t | hub_descriptor |
| Hub descriptor. | |
| usbvirt_device_ops_t | hub_ops |
| Hub operations. | |
Definition in file virthub.h.
1.4.7