aboutsummaryrefslogtreecommitdiff
path: root/gdb/arc-board.h
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/arc-board.h')
-rw-r--r--gdb/arc-board.h65
1 files changed, 65 insertions, 0 deletions
diff --git a/gdb/arc-board.h b/gdb/arc-board.h
new file mode 100644
index 0000000..3683b5b
--- /dev/null
+++ b/gdb/arc-board.h
@@ -0,0 +1,65 @@
+/* Target dependent code for ARC processor family, for GDB, the GNU debugger.
+
+ Copyright 2008, 2009 Free Software Foundation, Inc.
+
+ Contributed by ARC International (www.arc.com)
+
+ Authors:
+ Phil Barnard <phil.barnard@arc.com>
+ Richard Stuckey <richard.stuckey@arc.com>
+
+ This file is part of GDB.
+
+ 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
+ the Free Software Foundation; either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>. */
+
+/******************************************************************************/
+/* */
+/* Outline: */
+/* This header file defines operations for controlling an ARC target */
+/* board. */
+/* */
+/* These operations are: */
+/* 1) configuring ("blasting") an FPGA target with the contents of an */
+/* XBF file; */
+/* 2) checking whether a target has been so configured; and */
+/* 3) setting the clock frequency of the target. */
+/* */
+/* Notes: */
+/* The arc_blast_board function implements an ARC-specific command; hence */
+/* its 'args' parameter contains data entered by the debugger user, which */
+/* must be checked for validity. */
+/* */
+/******************************************************************************/
+
+#ifndef ARC_BOARD_H
+#define ARC_BOARD_H
+
+
+typedef enum
+{
+ INACCESSIBLE,
+ CONFIGURED,
+ UNCONFIGURED
+} FPGA_Status;
+
+
+void arc_blast_board (char *args, int from_tty);
+
+void arc_reset_board (void);
+
+FPGA_Status arc_is_FPGA_configured (void);
+
+
+#endif /* ARC_BOARD_H */
+/******************************************************************************/