}
}
-void main_show_dmi(struct s_hardware *hardware, struct s_cli_mode *cli_mode)
+void main_show_dmi(struct s_hardware *hardware)
{
detect_dmi(hardware);
if (hardware->is_dmi_valid == false) {
printf("No valid DMI table found, exiting.\n");
- do_exit(cli_mode);
return;
}
printf("DMI Table version %d.%d found\n",
}
}
-static void handle_hdt_commands(char *cli_line, struct s_cli_mode *cli_mode,
- struct s_hardware *hardware)
+static void handle_hdt_commands(char *cli_line, struct s_hardware *hardware)
{
/* hdt cli mode specific commands */
if (!strncmp(cli_line, CLI_SHOW, sizeof(CLI_SHOW) - 1)) {
- main_show(strstr(cli_line, "show") + sizeof(CLI_SHOW), hardware,
- cli_mode);
+ main_show(strstr(cli_line, "show") + sizeof(CLI_SHOW), hardware);
return;
}
}
handle_pci_commands(cli_line, hardware);
break;
case HDT_MODE:
- handle_hdt_commands(cli_line, &cli_mode, hardware);
+ handle_hdt_commands(cli_line, hardware);
break;
case CPU_MODE:
handle_cpu_commands(cli_line, hardware);
more_printf(" %s\n", CLI_PXE);
}
-void main_show(char *item, struct s_hardware *hardware,
- struct s_cli_mode *cli_mode)
+void main_show(char *item, struct s_hardware *hardware)
{
if (!strncmp(item, CLI_SUMMARY, sizeof(CLI_SUMMARY))) {
main_show_summary(hardware);
return;
}
if (!strncmp(item, CLI_DMI, sizeof(CLI_DMI))) {
- main_show_dmi(hardware, cli_mode);
+ main_show_dmi(hardware);
return;
}
if (!strncmp(item, CLI_CPU, sizeof(CLI_CPU))) {
};
void start_cli_mode(struct s_hardware *hardware);
-void main_show(char *item, struct s_hardware *hardware,
- struct s_cli_mode *cli_mode);
+void main_show(char *item, struct s_hardware *hardware);
int do_exit(struct s_cli_mode *cli_mode);
// DMI STUFF
#define CLI_DMI_MEMORY_BANK "bank"
#define CLI_DMI_PROCESSOR "cpu"
#define CLI_DMI_SYSTEM "system"
-void main_show_dmi(struct s_hardware *hardware, struct s_cli_mode *cli_mode);
+void main_show_dmi(struct s_hardware *hardware);
void handle_dmi_commands(char *cli_line, struct s_hardware *hardware);
void show_dmi_memory_modules(struct s_hardware *hardware, bool clearscreen,
bool show_free_banks);