uhci.c File Reference

UHCI driver. More...

#include <errno.h>
#include <str_error.h>
#include <ddf/interrupt.h>
#include <usb_iface.h>
#include <usb/ddfiface.h>
#include <usb/debug.h>
#include "uhci.h"
#include "iface.h"
#include "pci.h"
#include "hc.h"
#include "root_hub.h"

Go to the source code of this file.

Data Structures

struct  uhci
 Structure representing both functions of UHCI hc, USB host controller and USB root hub. More...

Typedefs

typedef uhci uhci_t
 Structure representing both functions of UHCI hc, USB host controller and USB root hub.

Functions

static uhci_tdev_to_uhci (const ddf_dev_t *dev)
int device_setup_uhci (ddf_dev_t *device)
 Initialize hc and rh DDF structures and their respective drivers.
static hw_resource_list_tget_resource_list (ddf_fun_t *fun)
 Get root hub hw resources (I/O registers).
static void irq_handler (ddf_dev_t *dev, ipc_callid_t iid, ipc_call_t *call)
 IRQ handling callback, forward status from call to diver structure.
static int usb_iface_get_address (ddf_fun_t *fun, devman_handle_t handle, usb_address_t *address)
 Get address of the device identified by handle.
static int usb_iface_get_hc_handle (ddf_fun_t *fun, devman_handle_t *handle)
 Gets handle of the respective hc.

Variables

static ddf_dev_ops_t hc_ops
 Operations supported by the HC driver.
static hw_res_ops_t hw_res_iface
 Interface to provide the root hub driver with hw info.
static ddf_dev_ops_t rh_ops
 RH function support for uhci-rhd.
static usb_iface_t usb_iface
 USB interface implementation used by RH.


Detailed Description

UHCI driver.

Definition in file uhci.c.


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