|
nmc-utils
0.1.1
|
#include <stdio.h>#include <getopt.h>#include <sys/ioctl.h>#include <unistd.h>#include <stdlib.h>#include <sys/types.h>#include <sys/stat.h>#include <alloca.h>#include <fcntl.h>#include <string.h>#include <libelf.h>#include <gelf.h>#include <easynmc.h>#include <errno.h>
Go to the source code of this file.
Macros | |
| #define | _GNU_SOURCE |
| #define | dbg(fmt,...) |
| #define | err(fmt,...) |
Functions | |
| int | easynmc_startupcode_is_compatible (uint32_t codever) |
| enum easynmc_core_state | easynmc_core_state (struct easynmc_handle *h) |
| const char * | easynmc_state_name (enum easynmc_core_state state) |
| int | easynmc_get_core_name (struct easynmc_handle *h, char *str) |
| int | easynmc_get_core_type (struct easynmc_handle *h, char *str) |
| int | easynmc_send_irq (struct easynmc_handle *h, enum nmc_irq irq) |
| int | easynmc_reset_stats (struct easynmc_handle *h) |
| void | easynmc_reset_core (struct easynmc_handle *h) |
| char * | easynmc_get_default_ipl (char *name, int debug) |
| struct easynmc_handle * | easynmc_open_noboot (int coreid, int exclusive) |
| int | easynmc_boot_core (struct easynmc_handle *h, int debug) |
| Bring up an NMC core, optionally with a debug IPL. | |
| int | easynmc_set_args (struct easynmc_handle *h, char *self, int argc, char **argv) |
| int | easynmc_load_abs (struct easynmc_handle *h, const char *path, uint32_t *ep, int flags) |
| int | easynmc_start_app (struct easynmc_handle *h, uint32_t entry) |
| int | easynmc_exitcode (struct easynmc_handle *h) |
| int | easynmc_stop_app (struct easynmc_handle *h) |
| void | easynmc_register_section_filter (struct easynmc_handle *h, struct easynmc_section_filter *f) |
| Register a section filter. | |
| struct easynmc_handle * | easynmc_open (int coreid) |
| int | easynmc_for_each_core (int(*core_cb)(struct easynmc_handle *h, void *udata), int exclusive, void *udata) |
| void | easynmc_close (struct easynmc_handle *hndl) |
| int | easynmc_token_clear (struct easynmc_token *t) |
| struct easynmc_token * | easynmc_token_new (struct easynmc_handle *h, uint32_t events) |
| const char * | easynmc_evt_name (int evt) |
| int | easynmc_token_wait (struct easynmc_token *t, uint32_t timeout) |
| int | easynmc_pollmark (struct easynmc_handle *h) |
| struct easynmc_handle * | easynmc_connect (const char *appid) |
| size_t | easynmc_appdata_size (struct easynmc_handle *h) |
| int | easynmc_appdata_set (struct easynmc_handle *h, void *data, size_t len) |
| size_t | easynmc_appdata_get (struct easynmc_handle *h, void *data, size_t len) |
| int | easynmc_appid_set (struct easynmc_handle *h, char appid[]) |
| const char * | easynmc_appid_get (struct easynmc_handle *h) |
| int | easynmc_persist_set (struct easynmc_handle *h, enum easynmc_persist_state status) |
Variables | |
| int | g_libeasynmc_debug = 0 |
| int | g_libeasynmc_errors = 1 |
| char * | iplpaths [] |
| #define _GNU_SOURCE |
Definition at line 22 of file easynmc-core.c.
| #define dbg | ( | fmt, | |
| ... | |||
| ) |
Definition at line 44 of file easynmc-core.c.
Referenced by easynmc_boot_core(), easynmc_close(), easynmc_get_default_ipl(), easynmc_load_abs(), easynmc_open_noboot(), easynmc_stop_app(), and easynmc_token_clear().
| #define err | ( | fmt, | |
| ... | |||
| ) |
Definition at line 48 of file easynmc-core.c.
Referenced by easynmc_boot_core(), easynmc_for_each_core(), easynmc_load_abs(), easynmc_open_noboot(), easynmc_set_args(), easynmc_start_app(), easynmc_stop_app(), and easynmc_token_wait().
| int g_libeasynmc_debug = 0 |
Definition at line 41 of file easynmc-core.c.
| int g_libeasynmc_errors = 1 |
Definition at line 42 of file easynmc-core.c.