USB fallback driver
[USB]

Fallback driver for any USB device. More...


Files

file  main.c
 Main routines of USB fallback driver.

Defines

#define NAME   "usbflbk"

Functions

int main (int argc, char *argv[])
 Main entry point.
static int usbfallback_add_device (usb_device_t *dev)
 Callback when new device is attached and recognized by DDF.

Variables

static usb_driver_t usbfallback_driver
 USB fallback driver.
static usb_driver_ops_t usbfallback_driver_ops
 USB fallback driver ops.

Detailed Description

Fallback driver for any USB device.

The purpose of this driver is to simplify querying of unknown devices from within HelenOS (without a driver, no node at all may appear under /dev/devices).


Function Documentation

int main ( int  argc,
char *  argv[] 
)

Main entry point.

Parameters:
[in] argc Nmber of arguments in argv vector (ignored).
[in] argv Cmdline argument vector (ignored).
Returns:
Error code.
Driver debug level is set here.

Definition at line 86 of file main.c.

static int usbfallback_add_device ( usb_device_t dev  )  [static]

Callback when new device is attached and recognized by DDF.

Parameters:
dev Representation of a generic DDF device.
Returns:
Error code.

Definition at line 48 of file main.c.


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