Line 376... |
Line 376... |
/* Resets all subunits */
|
/* Resets all subunits */
|
void sim_reset(void);
|
void sim_reset(void);
|
|
|
/* Handle the sim commandline */
|
/* Handle the sim commandline */
|
void handle_sim_command(void);
|
void handle_sim_command(void);
|
|
|
|
union param_val {
|
|
char *str_val;
|
|
int int_val;
|
|
oraddr_t addr_val;
|
|
};
|
|
|
|
enum param_t {
|
|
paramt_none = 0, /* No parameter */
|
|
paramt_str, /* String parameter enclosed in double quotes (") */
|
|
paramt_word, /* String parameter NOT enclosed in double quotes */
|
|
paramt_int, /* Integer parameter */
|
|
paramt_addr /* Address parameter */
|
|
};
|
|
|
|
struct config_section {
|
|
char *name;
|
|
void *(*sec_start)(void);
|
|
void (*sec_end)(void *);
|
|
void *dat;
|
|
struct config_param *params;
|
|
struct config_section *next;
|
|
};
|
|
|
|
/* Register a parameter in a section of the config file */
|
|
void reg_config_param(struct config_section *sec, const char *param,
|
|
enum param_t type,
|
|
void (*param_cb)(union param_val, void*));
|
|
|
|
/* Register a section in the config file */
|
|
struct config_section *reg_config_sec(const char *section,
|
|
void *(*sec_start)(void),
|
|
void (*sec_end)(void *));
|
|
|
|
extern struct config_section *cur_section;
|
|
#define CONFIG_ERROR(s) {fprintf (stderr, "ERROR: config.%s:%s\n", cur_section->name, s); if (runtime.sim.init) exit (1);}
|
|
|
|
/* FIXME: These will disapeer... */
|
|
void change_device ();
|
|
void end_device ();
|
|
extern int current_device;
|
|
|
|
/* FIXME: These will disapeer with the above... */
|
|
void reg_mc_sec(void);
|
|
void reg_uart_sec(void);
|
|
void reg_dma_sec(void);
|
|
void reg_memory_sec(void);
|
|
void reg_debug_sec(void);
|
|
void reg_vapi_sec(void);
|
|
void reg_ethernet_sec(void);
|
|
void reg_immu_sec(void);
|
|
void reg_dmmu_sec(void);
|
|
void reg_ic_sec(void);
|
|
void reg_dc_sec(void);
|
|
void reg_gpio_sec(void);
|
|
void reg_bpb_sec(void);
|
|
void reg_pm_sec(void);
|
|
void reg_vga_sec(void);
|
|
void reg_fb_sec(void);
|
|
void reg_kbd_sec(void);
|
|
void reg_ata_sec(void);
|
|
void reg_cuc_sec(void);
|
|
void reg_test_sec(void);
|
#endif
|
#endif
|
|
|
No newline at end of file
|
No newline at end of file
|