hub.c File Reference

Functions needed by hub drivers. More...

#include <usb/dev/hub.h>
#include <usb/dev/pipes.h>
#include <usb/dev/request.h>
#include <usb/dev/recognise.h>
#include <usbhc_iface.h>
#include <errno.h>
#include <assert.h>
#include <usb/debug.h>
#include <time.h>

Go to the source code of this file.

Defines

#define CHECK_CONNECTION(conn)
 Check that HC connection is alright.
#define ENDPOINT_0_0_REGISTER_ATTEMPT_DELAY_USEC   (1000 * (10 + 2))
 How much time to wait between attempts to register endpoint 0:0.

Functions

static void unregister_control_endpoint_on_default_address (usb_hc_connection_t *connection)
int usb_hc_new_device_wrapper (ddf_dev_t *parent, usb_hc_connection_t *connection, usb_speed_t dev_speed, int(*enable_port)(int port_no, void *arg), int port_no, void *arg, usb_address_t *assigned_address, devman_handle_t *assigned_handle, ddf_dev_ops_t *dev_ops, void *new_dev_data, ddf_fun_t **new_fun)
 Wrapper for registering attached device to the hub.
int usb_hc_register_device (usb_hc_connection_t *connection, const usb_hc_attached_device_t *attached_device)
 Inform host controller about new device.
usb_address_t usb_hc_request_address (usb_hc_connection_t *connection, usb_speed_t speed)
 Ask host controller for free address assignment.
int usb_hc_unregister_device (usb_hc_connection_t *connection, usb_address_t address)
 Inform host controller about device removal.


Detailed Description

Functions needed by hub drivers.

Definition in file hub.c.


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