Root device driver.

HelenOS root device driver. More...

Files

file  root.c

Defines

#define NAME   "root"
#define PLATFORM_FUN_MATCH_ID_FMT   "platform/%s"
#define PLATFORM_FUN_MATCH_SCORE   100
#define PLATFORM_FUN_NAME   "hw"
#define VIRTUAL_FUN_MATCH_ID   "rootvirt"
#define VIRTUAL_FUN_MATCH_SCORE   100
#define VIRTUAL_FUN_NAME   "virt"

Functions

static int add_platform_fun (ddf_dev_t *dev)
 Create the function which represents the root of HW device tree.
static int add_virtual_root_fun (ddf_dev_t *dev)
 Create the function which represents the root of virtual device tree.
int main (int argc, char *argv[])
 Main entry point.
static int root_add_device (ddf_dev_t *dev)
 Get the root device.

Variables

static driver_t root_driver
 The root device driver structure.
static driver_ops_t root_ops
 The root device driver's standard operations.

Detailed Description

HelenOS root device driver.


Function Documentation

static int add_platform_fun ( ddf_dev_t dev  )  [static]

Create the function which represents the root of HW device tree.

Parameters:
dev Device
Returns:
EOK on success or negative error code

Definition at line 127 of file root.c.

static int add_virtual_root_fun ( ddf_dev_t dev  )  [static]

Create the function which represents the root of virtual device tree.

Parameters:
dev Device
Returns:
EOK on success or negative error code

Definition at line 86 of file root.c.

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 214 of file root.c.

static int root_add_device ( ddf_dev_t dev  )  [static]

Get the root device.

Parameters:
dev The device which is root of the whole device tree (both of HW and pseudo devices).

Definition at line 194 of file root.c.


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