]> git.sur5r.net Git - openocd/blobdiff - src/flash/nand/arm_io.c
NAND/ARM_IO: review scope of functions
[openocd] / src / flash / nand / arm_io.c
index cc565dcbc023592214c2f61d7d686878e4012157..7c7148e6be1ba317fb6298bc84fec77315e210c8 100644 (file)
 #include "config.h"
 #endif
 
+#include "core.h"
 #include "arm_io.h"
-#include <target/armv4_5.h>
+#include <helper/binarybuffer.h>
+#include <target/arm.h>
 #include <target/algorithm.h>
 
+
 /**
  * Copies code to a working area.  This will allocate room for the code plus the
  * additional amount requested if the working area pointer is null.
@@ -40,7 +43,7 @@
  * @param area Pointer to a pointer to a working area to copy code to
  * @return Success or failure of the operation
  */
-int arm_code_to_working_area(struct target *target,
+static int arm_code_to_working_area(struct target *target,
                const uint32_t *code, unsigned code_size,
                unsigned additional, struct working_area **area)
 {