|
Files |
| file | isa.c |
Data Structures |
| struct | isa_fun |
Defines |
|
#define | CHILD_FUN_CONF_PATH "/drv/isa/isa.dev" |
|
#define | ISA_FUN(fnode) ((isa_fun_t *) ((fnode)->driver_data)) |
| | Obtain soft-state pointer from function node pointer.
|
|
#define | ISA_MAX_HW_RES 4 |
|
#define | NAME "isa" |
Functions |
|
static void | fun_conf_parse (char *conf, ddf_dev_t *dev) |
|
static char * | fun_conf_read (const char *conf_path) |
|
static void | fun_hw_res_alloc (isa_fun_t *fun) |
|
static void | fun_parse_io_range (isa_fun_t *fun, char *val) |
|
static void | fun_parse_irq (isa_fun_t *fun, char *val) |
|
static void | fun_parse_match_id (isa_fun_t *fun, char *val) |
|
static void | fun_prop_parse (isa_fun_t *fun, char *line) |
|
static char * | get_device_name (char *line) |
|
static void | get_match_id (char **id, char *val) |
|
static int | isa_add_device (ddf_dev_t *dev) |
|
static bool | isa_enable_fun_interrupt (ddf_fun_t *fnode) |
|
static isa_fun_t * | isa_fun_create (ddf_dev_t *dev, const char *name) |
|
static char * | isa_fun_read_info (char *fun_conf, ddf_dev_t *dev) |
|
static void | isa_fun_set_io_range (isa_fun_t *fun, size_t addr, size_t len) |
|
static void | isa_fun_set_irq (isa_fun_t *fun, int irq) |
|
static void | isa_functions_add (ddf_dev_t *dev) |
|
static hw_resource_list_t * | isa_get_fun_resources (ddf_fun_t *fnode) |
|
static void | isa_init () |
|
static bool | line_empty (const char *line) |
| int | main (int argc, char *argv[]) |
| | Main entry point.
|
|
static bool | prop_parse (isa_fun_t *fun, char *line, const char *prop, void(*read_fn)(isa_fun_t *, char *)) |
|
static char * | skip_spaces (char *line) |
|
static char * | str_get_line (char *str, char **next) |
Variables |
|
static driver_t | isa_driver |
| | The isa device driver structure.
|
|
static hw_res_ops_t | isa_fun_hw_res_ops |
|
static ddf_dev_ops_t | isa_fun_ops |
|
static driver_ops_t | isa_ops |
| | The isa device driver's standard operations.
|