1 // SPDX-License-Identifier: MIT
6 #include "platforms/platforms.h"
8 int handle_register_read_dummy(unsigned int addr, unsigned char type, unsigned int *val);
9 int handle_register_write_dummy(unsigned int addr, unsigned int value, unsigned char type);
11 int setup_platform_dummy(struct emulator_config *cfg) {
16 void create_platform_dummy(struct platform_config *cfg, char *subsys) {
17 cfg->custom_read = NULL;
18 cfg->custom_write = NULL;
19 cfg->register_read = handle_register_read_dummy;
20 cfg->register_write = handle_register_write_dummy;
21 cfg->platform_initial_setup = setup_platform_dummy;
24 cfg->subsys = malloc(strlen(subsys) + 1);
25 strcpy(cfg->subsys, subsys);