From a9c7d297c5244f6ffc5ac0f977b56f7e19d14cd1 Mon Sep 17 00:00:00 2001 From: germeier Date: Sun, 15 Sep 2002 12:03:22 +0000 Subject: added model identification use 0x80 for external memory on the DMG line added code to dump first 0x100 sectors of memory --- mpiosh/callback.c | 20 +++++++++++++++++--- mpiosh/callback.h | 3 ++- mpiosh/mpiosh.c | 5 ++++- 3 files changed, 23 insertions(+), 5 deletions(-) (limited to 'mpiosh') diff --git a/mpiosh/callback.c b/mpiosh/callback.c index cc520d5..ca89a82 100644 --- a/mpiosh/callback.c +++ b/mpiosh/callback.c @@ -2,7 +2,7 @@ * * Author: Andreas Büsching * - * $Id: callback.c,v 1.6 2002/09/14 22:54:41 germeier Exp $ + * $Id: callback.c,v 1.7 2002/09/15 12:03:23 germeier Exp $ * * Copyright (C) 2001 Andreas Büsching * @@ -151,9 +151,10 @@ mpiosh_cmd_info(char *args[]) printf("firmware %s\n", info.firmware_id); printf(" version : %s\n", info.firmware_version); printf(" date : %s\n", info.firmware_date); + printf("model : %s\n", info.model); printf("memory\n"); - printf(" internal: %s\n", info.firmware_mem_internal); - printf(" external: %s\n", info.firmware_mem_external); + printf(" internal: %s\n", info.mem_internal); + printf(" external: %s\n", info.mem_external); } void @@ -524,6 +525,19 @@ mpiosh_cmd_switch(char *args[]) UNUSED(args); } +void +mpiosh_cmd_debug_mem(char *args[]) +{ + + MPIOSH_CHECK_CONNECTION_CLOSED; + + UNUSED(args); + + mpio_memory_debug(mpiosh.dev, mpiosh.card); + +} + + void mpiosh_cmd_ldir(char *args[]) { diff --git a/mpiosh/callback.h b/mpiosh/callback.h index 622ab00..92642fa 100644 --- a/mpiosh/callback.h +++ b/mpiosh/callback.h @@ -2,7 +2,7 @@ * * Author: Andreas Büsching * - * $Id: callback.h,v 1.2 2002/09/13 15:20:25 crunchy Exp $ + * $Id: callback.h,v 1.3 2002/09/15 12:03:23 germeier Exp $ * * Copyright (C) 2001 Andreas Büsching * @@ -46,6 +46,7 @@ void mpiosh_cmd_dump(char *args[]); void mpiosh_cmd_free(char *args[]); void mpiosh_cmd_format(char *args[]); void mpiosh_cmd_switch(char *args[]); +void mpiosh_cmd_debug_mem(char *args[]); /* local command callbacks */ void mpiosh_cmd_ldir(char *args[]); diff --git a/mpiosh/mpiosh.c b/mpiosh/mpiosh.c index 098adaa..30a773c 100644 --- a/mpiosh/mpiosh.c +++ b/mpiosh/mpiosh.c @@ -2,7 +2,7 @@ /* * - * $Id: mpiosh.c,v 1.10 2002/09/14 23:34:49 crunchy Exp $ + * $Id: mpiosh.c,v 1.11 2002/09/15 12:03:23 germeier Exp $ * * Author: Andreas Büsching * @@ -124,6 +124,9 @@ mpiosh_cmd_t commands[] = { { "lmkdir", NULL, "create a local directory", mpiosh_cmd_lmkdir }, + { "debug_memory", NULL, + "dump the first 0x100 of the selected memory card", + mpiosh_cmd_debug_mem }, { NULL, NULL, NULL, NULL } }; -- cgit v1.2.3