virthub.c File Reference

#include <usb/classes/classes.h>
#include <usbvirt/device.h>
#include <assert.h>
#include <errno.h>
#include <str_error.h>
#include <stdlib.h>
#include <ddf/driver.h>
#include "virthub.h"
#include "hub.h"

Go to the source code of this file.

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

usbvirt_device_configuration_t configuration
 Hub configuration.
usbvirt_descriptors_t descriptors
 Hub standard descriptors.
usb_standard_endpoint_descriptor_t endpoint_descriptor
 Endpoint descriptor.
static usbvirt_device_configuration_extras_t extra_descriptors []
 All hub configuration descriptors.
hub_descriptor_t hub_descriptor
 Hub descriptor.
usb_standard_configuration_descriptor_t std_configuration_descriptor
 Standard configuration descriptor.
usb_standard_device_descriptor_t std_device_descriptor
 Standard device descriptor.
usb_standard_interface_descriptor_t std_interface_descriptor
 Standard interface descriptor.


Detailed Description

Definition in file virthub.c.


Generated on Thu Jun 2 07:45:52 2011 for HelenOS/USB by  doxygen 1.4.7