Root device driver for virtual devices.


Files

file  rootvirt.c

Data Structures

struct  virtual_function_t
 Virtual function entry. More...

Defines

#define NAME   "rootvirt"

Functions

int main (int argc, char *argv[])
 Main entry point.
static int rootvirt_add_device (ddf_dev_t *dev)
static int rootvirt_add_fun (ddf_dev_t *vdev, virtual_function_t *vfun)
 Add function to the virtual device.

Variables

static driver_t rootvirt_driver
static driver_ops_t rootvirt_ops
virtual_function_t virtual_functions []
 List of existing virtual functions.

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 177 of file rootvirt.c.

static int rootvirt_add_fun ( ddf_dev_t vdev,
virtual_function_t vfun 
) [static]

Add function to the virtual device.

Parameters:
vdev The virtual device
vfun Virtual function description
Returns:
EOK on success or negative error code.

Definition at line 116 of file rootvirt.c.


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