diff options
Diffstat (limited to 'mpiosh')
-rw-r--r-- | mpiosh/callback.c | 20 | ||||
-rw-r--r-- | mpiosh/callback.h | 3 | ||||
-rw-r--r-- | mpiosh/mpiosh.c | 5 |
3 files changed, 23 insertions, 5 deletions
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 <crunchy@tzi.de> * - * $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 <crunchy@tzi.de> * @@ -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 @@ -525,6 +526,19 @@ mpiosh_cmd_switch(char *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[]) { char dir_buf[NAME_MAX]; 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 <crunchy@tzi.de> * - * $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 <crunchy@tzi.de> * @@ -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 <crunchy@tzi.de> * @@ -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 } }; |