summaryrefslogtreecommitdiff
path: root/src/flash/nand.h
diff options
context:
space:
mode:
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-04-02 21:23:05 +0000
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-04-02 21:23:05 +0000
commitf481deb58f586a72fc38253bbf89618a3611e4cc (patch)
treec4760123b407bf266ea21becf91f5c6eb775a11e /src/flash/nand.h
parent3f427b90e062a5bae22322986b6053d64f831234 (diff)
downloadopenocd+libswd-f481deb58f586a72fc38253bbf89618a3611e4cc.tar.gz
openocd+libswd-f481deb58f586a72fc38253bbf89618a3611e4cc.tar.bz2
openocd+libswd-f481deb58f586a72fc38253bbf89618a3611e4cc.tar.xz
openocd+libswd-f481deb58f586a72fc38253bbf89618a3611e4cc.zip
Nicolas Pitre nico at cam.org software ECC computation for NAND flash
git-svn-id: svn://svn.berlios.de/openocd/trunk@1444 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/flash/nand.h')
-rw-r--r--src/flash/nand.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/flash/nand.h b/src/flash/nand.h
index d0dd7579..5535221a 100644
--- a/src/flash/nand.h
+++ b/src/flash/nand.h
@@ -197,6 +197,7 @@ extern nand_device_t *get_nand_device_by_num(int num);
extern int nand_read_page_raw(struct nand_device_s *device, u32 page, u8 *data, u32 data_size, u8 *oob, u32 oob_size);
extern int nand_write_page_raw(struct nand_device_s *device, u32 page, u8 *data, u32 data_size, u8 *oob, u32 oob_size);
extern int nand_read_status(struct nand_device_s *device, u8 *status);
+extern int nand_calculate_ecc(struct nand_device_s *device, const u8 *dat, u8 *ecc_code);
extern int nand_register_commands(struct command_context_s *cmd_ctx);
extern int nand_init(struct command_context_s *cmd_ctx);