hc_iface.c File Reference

USB-HC interface implementation. More...

#include <ddf/driver.h>
#include <ddf/interrupt.h>
#include <device/hw_res.h>
#include <errno.h>
#include <str_error.h>
#include <usb_iface.h>
#include <usb/ddfiface.h>
#include <usb/debug.h>
#include "ehci.h"

Go to the source code of this file.

Defines

#define UNSUPPORTED(methodname)

Functions

static int bind_address (ddf_fun_t *fun, usb_address_t address, devman_handle_t handle)
 Bind USB address with device devman handle.
static int bulk_in (ddf_fun_t *fun, usb_target_t target, void *data, size_t size, usbhc_iface_transfer_in_callback_t callback, void *arg)
 Schedule bulk in transfer.
static int bulk_out (ddf_fun_t *fun, usb_target_t target, void *data, size_t size, usbhc_iface_transfer_out_callback_t callback, void *arg)
 Schedule bulk out transfer.
static int control_read (ddf_fun_t *fun, usb_target_t target, void *setup_packet, size_t setup_packet_size, void *data_buffer, size_t data_buffer_size, usbhc_iface_transfer_in_callback_t callback, void *arg)
 Schedule control read transfer.
static int control_write (ddf_fun_t *fun, usb_target_t target, void *setup_packet, size_t setup_packet_size, void *data_buffer, size_t data_buffer_size, usbhc_iface_transfer_out_callback_t callback, void *arg)
 Schedule control write transfer.
static int find_by_address (ddf_fun_t *fun, usb_address_t address, devman_handle_t *handle)
 Find device handle by USB address.
static int interrupt_in (ddf_fun_t *fun, usb_target_t target, void *data, size_t size, usbhc_iface_transfer_in_callback_t callback, void *arg)
 Schedule interrupt in transfer.
static int interrupt_out (ddf_fun_t *fun, usb_target_t target, void *data, size_t size, usbhc_iface_transfer_out_callback_t callback, void *arg)
 Schedule interrupt out transfer.
static int register_endpoint (ddf_fun_t *fun, usb_address_t address, usb_speed_t speed, usb_endpoint_t endpoint, usb_transfer_type_t transfer_type, usb_direction_t direction, size_t max_packet_size, unsigned int interval)
 Register endpoint for bandwidth reservation.
static int release_address (ddf_fun_t *fun, usb_address_t address)
 Release previously requested address.
static int request_address (ddf_fun_t *fun, usb_speed_t speed, usb_address_t *address)
 Found free USB address.
static int unregister_endpoint (ddf_fun_t *fun, usb_address_t address, usb_endpoint_t endpoint, usb_direction_t direction)
 Unregister endpoint (free some bandwidth reservation).

Variables

usbhc_iface_t ehci_hc_iface
 Host controller interface implementation for EHCI.


Detailed Description

USB-HC interface implementation.

Definition in file hc_iface.c.


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