usbhub.c File Reference

usb hub main functionality More...

#include <ddf/driver.h>
#include <bool.h>
#include <errno.h>
#include <str_error.h>
#include <inttypes.h>
#include <usb_iface.h>
#include <usb/ddfiface.h>
#include <usb/descriptor.h>
#include <usb/dev/recognise.h>
#include <usb/dev/request.h>
#include <usb/classes/hub.h>
#include <usb/dev/poll.h>
#include <stdio.h>
#include "usbhub.h"
#include "usbhub_private.h"
#include "port_status.h"
#include <usb/usb.h>
#include <usb/dev/pipes.h>
#include <usb/classes/classes.h>

Go to the source code of this file.

Functions

bool hub_port_changes_callback (usb_device_t *dev, uint8_t *change_bitmap, size_t change_bitmap_size, void *arg)
 Callback for polling hub for changes.
int usb_hub_add_device (usb_device_t *usb_dev)
 Initialize hub device driver fibril.
static usb_hub_info_tusb_hub_info_create (usb_device_t *usb_dev)
 create usb_hub_info_t structure
static void usb_hub_polling_terminated_callback (usb_device_t *device, bool was_error, void *data)
 callback called from hub polling fibril when the fibril terminates
static void usb_hub_process_global_interrupt (usb_hub_info_t *hub_info)
 process hub interrupts
static int usb_hub_process_hub_specific_info (usb_hub_info_t *hub_info)
 Load hub-specific information into hub_info structure and process if needed.
static int usb_hub_set_configuration (usb_hub_info_t *hub_info)
 Set configuration of hub.
static int usb_hub_start_hub_fibril (usb_hub_info_t *hub_info)
 create and start fibril with hub control loop
static int usb_process_hub_local_power_change (usb_hub_info_t *hub_info, usb_hub_status_t status)
 process hub local power change
static int usb_process_hub_over_current (usb_hub_info_t *hub_info, usb_hub_status_t status)
 process hub over current change


Detailed Description

usb hub main functionality

Definition in file usbhub.c.


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