PC platform driver.

HelenOS PC platform driver. More...

Files

file  rootpc.c

Data Structures

struct  rootpc_fun

Defines

#define NAME   "rootpc"
#define ROOTPC_FUN(fnode)   ((rootpc_fun_t *) (fnode)->driver_data)
 Obtain function soft-state from DDF function node.

Functions

int main (int argc, char *argv[])
 Main entry point.
static void root_pc_init (void)
static int rootpc_add_device (ddf_dev_t *dev)
 Get the root device.
static bool rootpc_add_fun (ddf_dev_t *dev, const char *name, const char *str_match_id, rootpc_fun_t *fun)
static bool rootpc_add_functions (ddf_dev_t *dev)
static bool rootpc_enable_interrupt (ddf_fun_t *fun)
static hw_resource_list_trootpc_get_resources (ddf_fun_t *fnode)

Variables

static hw_res_ops_t fun_hw_res_ops
static hw_resource_t pci_conf_regs
static rootpc_fun_t pci_data
static driver_t rootpc_driver
 The root device driver structure.
static ddf_dev_ops_t rootpc_fun_ops
static driver_ops_t rootpc_ops
 The root device driver's standard operations.

Detailed Description

HelenOS PC platform driver.


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 196 of file rootpc.c.

static int rootpc_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).
Returns:
Zero on success, negative error number otherwise.

Definition at line 177 of file rootpc.c.


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