1
2
3
6
7
8
9
12
17
18
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/* ... */
#ifndef OPENOCD_FLASH_NAND_ARM_IO_H
#define OPENOCD_FLASH_NAND_ARM_IO_H
/* ... */
enum arm_nand_op {
ARM_NAND_NONE,
ARM_NAND_READ,
ARM_NAND_WRITE,
...};
/* ... */
struct arm_nand_data {
struct target *target;
struct working_area *copy_area;
unsigned chunk_size;
uint32_t data;
enum arm_nand_op op;
...};
int arm_nandwrite(struct arm_nand_data *nand, uint8_t *data, int size);
int arm_nandread(struct arm_nand_data *nand, uint8_t *data, uint32_t size);
/* ... */
#endif