remove unused code path.
[fw/openocd] / src / jtag / ep93xx.c
index 55550b36814de244aceddf4382d6b79c0d4d84eb..e4daa7e6a82a0327c5a6b08de172b771bf45160a 100644 (file)
@@ -21,8 +21,7 @@
 #include "config.h"
 #endif
 
-#include "log.h"
-#include "jtag.h"
+#include "interface.h"
 #include "bitbang.h"
 
 #define TDO_BIT                1
 #define SRST_BIT       32
 #define VCC_BIT                64
 
-/* system includes */
-#include <string.h>
-#include <stdlib.h>
-#include <stdio.h>
-#include <time.h>
 #include <sys/mman.h>
-#include <unistd.h>
-#include <fcntl.h>
 
 static u8 output_value = 0x0;
 static int dev_mem_fd;
@@ -50,21 +42,21 @@ static volatile u8 *gpio_data_direction_register;
 
 /* low level command set
  */
-int ep93xx_read(void);
-void ep93xx_write(int tck, int tms, int tdi);
-void ep93xx_reset(int trst, int srst);
+static int ep93xx_read(void);
+static void ep93xx_write(int tck, int tms, int tdi);
+static void ep93xx_reset(int trst, int srst);
 
-int ep93xx_speed(int speed);
-int ep93xx_register_commands(struct command_context_s *cmd_ctx);
-int ep93xx_init(void);
-int ep93xx_quit(void);
+static int ep93xx_speed(int speed);
+static int ep93xx_register_commands(struct command_context_s *cmd_ctx);
+static int ep93xx_init(void);
+static int ep93xx_quit(void);
 
 struct timespec ep93xx_zzzz;
 
 jtag_interface_t ep93xx_interface = 
 {
        .name = "ep93xx",
-       
+
        .execute_queue = bitbang_execute_queue,
 
        .speed = ep93xx_speed,  
@@ -73,7 +65,7 @@ jtag_interface_t ep93xx_interface =
        .quit = ep93xx_quit,
 };
 
-bitbang_interface_t ep93xx_bitbang =
+static bitbang_interface_t ep93xx_bitbang =
 {
        .read = ep93xx_read,
        .write = ep93xx_write,
@@ -81,12 +73,12 @@ bitbang_interface_t ep93xx_bitbang =
        .blink = 0,
 };
 
-int ep93xx_read(void)
+static int ep93xx_read(void)
 {
        return !!(*gpio_data_register & TDO_BIT);
 }
 
-void ep93xx_write(int tck, int tms, int tdi)
+static void ep93xx_write(int tck, int tms, int tdi)
 {
        if (tck)
                output_value |= TCK_BIT;
@@ -108,7 +100,7 @@ void ep93xx_write(int tck, int tms, int tdi)
 }
 
 /* (1) assert or (0) deassert reset lines */
-void ep93xx_reset(int trst, int srst)
+static void ep93xx_reset(int trst, int srst)
 {
        if (trst == 0)
                output_value |= TRST_BIT;
@@ -124,13 +116,13 @@ void ep93xx_reset(int trst, int srst)
        nanosleep(&ep93xx_zzzz, NULL);
 }
 
-int ep93xx_speed(int speed)
+static int ep93xx_speed(int speed)
 {
-       
+
        return ERROR_OK;
 }
 
-int ep93xx_register_commands(struct command_context_s *cmd_ctx)
+static int ep93xx_register_commands(struct command_context_s *cmd_ctx)
 {
 
        return ERROR_OK;
@@ -157,7 +149,7 @@ static int set_gonk_mode(void)
        return ERROR_OK;
 }
 
-int ep93xx_init(void)
+static int ep93xx_init(void)
 {
        int ret;
 
@@ -231,7 +223,7 @@ int ep93xx_init(void)
        return ERROR_OK;
 }
 
-int ep93xx_quit(void)
+static int ep93xx_quit(void)
 {
 
        return ERROR_OK;