summaryrefslogtreecommitdiff
path: root/mtd_debug.c
diff options
context:
space:
mode:
authorJosh Boyer <jwboyer@gmail.com>2007-03-15 08:05:07 -0500
committerJosh Boyer <jwboyer@gmail.com>2007-03-15 08:05:07 -0500
commit12d798a29a9a376ef495f527b1785317e3ae3d37 (patch)
tree2f500ba1b2c29324127b78a5dc0eef3996624f67 /mtd_debug.c
parentaf5e6399f2dfb91c1e4326641e8a00179808c501 (diff)
Update header file to latest MTD ABI and fix mtd_debug to work properly
Signed-off-by: Josh Boyer <jwboyer@gmail.com>
Diffstat (limited to 'mtd_debug.c')
-rw-r--r--mtd_debug.c28
1 files changed, 8 insertions, 20 deletions
diff --git a/mtd_debug.c b/mtd_debug.c
index e0cc7d7..b44e952 100644
--- a/mtd_debug.c
+++ b/mtd_debug.c
@@ -3,8 +3,6 @@
* Written by Abraham vd Merwe <abraham@2d3d.co.za>
* All rights reserved.
*
- * $Id: mtd_debug.c,v 1.5 2004/05/05 11:57:55 dwmw2 Exp $
- *
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
@@ -259,14 +257,20 @@ int showinfo (int fd)
case MTD_ABSENT:
printf ("MTD_ABSENT");
break;
+ case MTD_RAM:
+ printf ("MTD_RAM");
+ break;
+ case MTD_ROM:
+ printf ("MTD_ROM");
+ break;
case MTD_NORFLASH:
printf ("MTD_NORFLASH");
break;
case MTD_NANDFLASH:
printf ("MTD_NANDFLASH");
break;
- case MTD_GENERIC_TYPE:
- printf ("MTD_GENERIC_TYPE");
+ case MTD_DATAFLASH:
+ printf ("MTD_DATAFLASH");
break;
default:
printf ("(unknown type - new MTD API maybe?)");
@@ -320,22 +324,6 @@ int showinfo (int fd)
printf ("\nmtd.oobsize = ");
printsize (mtd.oobsize);
- printf ("\nmtd.ecctype = ");
- switch (mtd.ecctype)
- {
- case MTD_ECC_NONE:
- printf ("MTD_ECC_NONE");
- break;
- case MTD_ECC_RS_DiskOnChip:
- printf ("MTD_ECC_RS_DiskOnChip");
- break;
- case MTD_ECC_SW:
- printf ("MTD_ECC_SW");
- break;
- default:
- printf ("(unknown ECC type - new MTD API maybe?)");
- }
-
printf ("\n"
"regions = %d\n"
"\n",