summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/powerpc/score603e/include/bsp.h
diff options
context:
space:
mode:
authorJennifer Averett <Jennifer.Averett@OARcorp.com>2009-05-05 16:24:04 +0000
committerJennifer Averett <Jennifer.Averett@OARcorp.com>2009-05-05 16:24:04 +0000
commit42b6dd2a53ce85e13ab00611fb5a3fdb2c40ee92 (patch)
tree4a043f0b2ef77473753131fed17c4dc95bc18807 /c/src/lib/libbsp/powerpc/score603e/include/bsp.h
parent2009-05-05 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-42b6dd2a53ce85e13ab00611fb5a3fdb2c40ee92.tar.bz2
2009-05-05 Jennifer Averett <jennifer.averett@OARcorp.com>
* Makefile.am, configure.ac, preinstall.am, PCI_bus/PCI.c, PCI_bus/PCI.h, PCI_bus/flash.c, PCI_bus/universe.c, console/85c30.c, console/85c30.h, console/console.c, console/consolebsp.h, console/tbl85c30.c, include/bsp.h, include/gen2.h, include/irq-config.h, include/tm27.h, irq/FPGA.c, irq/irq.h, irq/irq_init.c, start/start.S, startup/Hwr_init.c, startup/bspstart.c, startup/linkcmds, timer/timer.c, tod/tod.c, vme/VMEConfig.h: Updated and tested with latest interrupt source. Modified with latest memory allocation, but this needs testing. * irq/no_pic.c: New file.
Diffstat (limited to 'c/src/lib/libbsp/powerpc/score603e/include/bsp.h')
-rw-r--r--c/src/lib/libbsp/powerpc/score603e/include/bsp.h56
1 files changed, 46 insertions, 10 deletions
diff --git a/c/src/lib/libbsp/powerpc/score603e/include/bsp.h b/c/src/lib/libbsp/powerpc/score603e/include/bsp.h
index 84585f3234..3b088ea2b0 100644
--- a/c/src/lib/libbsp/powerpc/score603e/include/bsp.h
+++ b/c/src/lib/libbsp/powerpc/score603e/include/bsp.h
@@ -1,11 +1,12 @@
-/*
+/* bsp.h
+ *
* This include file contains all board IO definitions.
*
- * COPYRIGHT (c) 1989-2008.
+ * COPYRIGHT (c) 1989-2009.
* On-Line Applications Research Corporation (OAR).
*
- * The license and distribution terms for this file may in
- * the file LICENSE in this distribution or at
+ * The license and distribution terms for this file may be
+ * found in the file LICENSE in this distribution or at
* http://www.rtems.com/license/LICENSE.
*
* $Id$
@@ -18,6 +19,8 @@
extern "C" {
#endif
+#define BSP_ZERO_WORKSPACE_AUTOMATICALLY TRUE
+
#include <bspopts.h>
#include <rtems.h>
#include <rtems/console.h>
@@ -34,8 +37,6 @@ extern "C" {
#if (HAS_PMC_PSC8)
#define CONFIGURE_NUMBER_OF_TERMIOS_PORTS (4 + 4)
#else
-/* XXXXX FIX THIS */
-#error "MUST HAVE PSC8 SET FOR BOEING CODE"
#define CONFIGURE_NUMBER_OF_TERMIOS_PORTS (4)
#endif
@@ -54,6 +55,7 @@ extern "C" {
*/
#include <gen2.h>
+#include <bsp/irq.h>
/*
* The following macro calculates the Baud constant. For the Z8530 chip.
@@ -80,25 +82,55 @@ extern "C" {
asm volatile(" eieio ")
+/* Constants */
+
+/*
+ * Device Driver Table Entries
+ */
+
+/*
+ * NOTE: Use the standard Console driver entry
+ */
+
+/*
+ * NOTE: Use the standard Clock driver entry
+ */
+
/*
* Information placed in the linkcmds file.
*/
-extern void *RAM_END;
-extern void *end;
+extern int RAM_START;
+extern int RAM_END;
+extern int RAM_SIZE;
+
+extern int PROM_START;
+extern int PROM_END;
+extern int PROM_SIZE;
extern int CLOCK_SPEED;
extern int CPU_PPC_CLICKS_PER_MS;
+extern int end; /* last address in the program */
+
/*
* Total RAM available
*/
-extern unsigned int BSP_mem_size;
+extern int end; /* last address in the program */
+extern int RAM_END;
+extern uint32_t BSP_mem_size;
+
+
+/*
+ * How many libio files we want
+ */
+
+#define BSP_LIBIO_MAX_FDS 20
/* functions */
/*
- * genvec.c
+ *
*/
rtems_isr_entry set_EE_vector(
rtems_isr_entry handler, /* isr routine */
@@ -140,6 +172,10 @@ void unmask_irq(
uint16_t irq_idx
);
+void mask_irq(
+ uint16_t irq_idx
+);
+
void init_irq_data_register();
uint16_t read_and_clear_PMC_irq(