]> git.sur5r.net Git - openocd/blobdiff - src/flash/nand.h
Laurentiu Cocanu - more error handling fixes
[openocd] / src / flash / nand.h
index 7161c50619dba05522a01c347d581220aaafeb30..d0dd7579847b20e68aff80733ad72fa2cfb8b1eb 100644 (file)
@@ -2,12 +2,10 @@
  *   Copyright (C) 2007 by Dominic Rath                                    *
  *   Dominic.Rath@gmx.de                                                   *
  *                                                                         *
- *   partially based on                                                    *
- *      linux/include/linux/mtd/nand.h                                        *
- *                                                                         *
- *   Copyright (c) 2000 David Woodhouse <dwmw2@mvhi.com>                   *
- *                      Steven J. Hill <sjhill@realitydiluted.com>         *
- *                      Thomas Gleixner <tglx@linutronix.de>               *
+ *   Partially based on linux/include/linux/mtd/nand.h                     *
+ *   Copyright (C) 2000 David Woodhouse <dwmw2@mvhi.com>                   *
+ *   Copyright (C) 2000 Steven J. Hill <sjhill@realitydiluted.com>         *
+ *   Copyright (C) 2000 Thomas Gleixner <tglx@linutronix.de>               *
  *                                                                         *
  *   This program is free software; you can redistribute it and/or modify  *
  *   it under the terms of the GNU General Public License as published by  *
@@ -42,6 +40,8 @@ typedef struct nand_flash_controller_s
        int (*address)(struct nand_device_s *device, u8 address);
        int (*write_data)(struct nand_device_s *device, u16 data);
        int (*read_data)(struct nand_device_s *device, void *data);
+       int (*write_block_data)(struct nand_device_s *device, u8 *data, int size);
+       int (*read_block_data)(struct nand_device_s *device, u8 *data, int size);
        int (*write_page)(struct nand_device_s *device, u32 page, u8 *data, u32 data_size, u8 *oob, u32 oob_size);
        int (*read_page)(struct nand_device_s *device, u32 page, u8 *data, u32 data_size, u8 *oob, u32 oob_size);
        int (*controller_ready)(struct nand_device_s *device, int timeout);