jtag: clean up TAP state name handling
[openocd.git] / src / flash / arm_nandio.h
blobeedf5dcac1d899710a6481a1a9f925be82d87012
1 #ifndef __ARM_NANDIO_H
2 #define __ARM_NANDIO_H
4 #include "nand.h"
5 #include "binarybuffer.h"
7 struct arm_nand_data {
8 /* target is proxy for some ARM core */
9 struct target_s *target;
11 /* copy_area holds write-to-NAND loop and data to write */
12 struct working_area_s *copy_area;
14 /* chunk_size == page or ECC unit */
15 unsigned chunk_size;
17 /* data == where to write the data */
18 uint32_t data;
20 /* currently implicit: data width == 8 bits (not 16) */
23 int arm_nandwrite(struct arm_nand_data *nand, uint8_t *data, int size);
25 #endif /* __ARM_NANDIO_H */