device_keeper.h File Reference

Device keeper structure and functions. More...

#include <adt/list.h>
#include <devman.h>
#include <fibril_synch.h>
#include <usb/usb.h>
#include <usb/host/endpoint.h>

Go to the source code of this file.

Data Structures

struct  usb_device_info
 Information about attached USB device. More...
struct  usb_device_keeper_t
 Host controller device keeper. More...

Defines

#define USB_ADDRESS_COUNT   (USB11_ADDRESS_MAX + 1)
 Number of USB address for array dimensions.

Functions

usb_address_t device_keeper_get_free_address (usb_device_keeper_t *instance, usb_speed_t speed)
 Get a free USB address.
void usb_device_keeper_bind (usb_device_keeper_t *instance, usb_address_t address, devman_handle_t handle)
 Bind USB address to devman handle.
usb_address_t usb_device_keeper_find (usb_device_keeper_t *instance, devman_handle_t handle)
 Find USB address associated with the device.
bool usb_device_keeper_find_by_address (usb_device_keeper_t *instance, usb_address_t address, devman_handle_t *handle)
 Find devman handle assigned to USB address.
usb_speed_t usb_device_keeper_get_speed (usb_device_keeper_t *instance, usb_address_t address)
 Get speed associated with the address.
void usb_device_keeper_init (usb_device_keeper_t *instance)
 Initialize device keeper structure.
void usb_device_keeper_release (usb_device_keeper_t *instance, usb_address_t address)
 Release used USB address.


Detailed Description

Device keeper structure and functions.

Typical USB host controller needs to keep track of various settings for each device that is connected to it. State of toggle bit, device speed etc. etc. This structure shall simplify the management.

Definition in file device_keeper.h.


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