#include <assert.h>#include <stdio.h>#include <errno.h>#include <bool.h>#include <fibril_synch.h>#include <stdlib.h>#include <str.h>#include <str_error.h>#include <ctype.h>#include <macros.h>#include <malloc.h>#include <dirent.h>#include <fcntl.h>#include <sys/stat.h>#include <ddf/driver.h>#include <ddf/log.h>#include <ops/hw_res.h>#include <devman.h>#include <ipc/devman.h>#include <device/hw_res.h>Go to the source code of this file.
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. | |
Definition in file isa.c.
1.4.7