summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/powerpc/score603e/include
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
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')
-rw-r--r--c/src/lib/libbsp/powerpc/score603e/include/bsp.h56
-rw-r--r--c/src/lib/libbsp/powerpc/score603e/include/gen2.h75
-rw-r--r--c/src/lib/libbsp/powerpc/score603e/include/irq-config.h2
-rw-r--r--c/src/lib/libbsp/powerpc/score603e/include/tm27.h3
4 files changed, 59 insertions, 77 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(
diff --git a/c/src/lib/libbsp/powerpc/score603e/include/gen2.h b/c/src/lib/libbsp/powerpc/score603e/include/gen2.h
index 05b4847583..9b6ac15a37 100644
--- a/c/src/lib/libbsp/powerpc/score603e/include/gen2.h
+++ b/c/src/lib/libbsp/powerpc/score603e/include/gen2.h
@@ -1,11 +1,12 @@
-/*
+/* Gen2.h
+ *
* This include file contains all Generation 2 board addreses
*
- * 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$
@@ -177,67 +178,6 @@ extern "C" {
* Score603e Interupt Definations.
*/
-/*
- * First Score Unique IRQ
- */
-#define Score_IRQ_First ( PPC_IRQ_LAST + 1 )
-
-/*
- * The Following Are part of a Score603e FPGA.
- */
-#define SCORE603E_IRQ00 ( Score_IRQ_First + 0 )
-#define SCORE603E_IRQ01 ( Score_IRQ_First + 1 )
-#define SCORE603E_IRQ02 ( Score_IRQ_First + 2 )
-#define SCORE603E_IRQ03 ( Score_IRQ_First + 3 )
-#define SCORE603E_IRQ04 ( Score_IRQ_First + 4 )
-#define SCORE603E_IRQ05 ( Score_IRQ_First + 5 )
-#define SCORE603E_IRQ06 ( Score_IRQ_First + 6 )
-#define SCORE603E_IRQ07 ( Score_IRQ_First + 7 )
-#define SCORE603E_IRQ08 ( Score_IRQ_First + 8 )
-#define SCORE603E_IRQ09 ( Score_IRQ_First + 9 )
-#define SCORE603E_IRQ10 ( Score_IRQ_First + 10 )
-#define SCORE603E_IRQ11 ( Score_IRQ_First + 11 )
-#define SCORE603E_IRQ12 ( Score_IRQ_First + 12 )
-#define SCORE603E_IRQ13 ( Score_IRQ_First + 13 )
-#define SCORE603E_IRQ14 ( Score_IRQ_First + 14 )
-#define SCORE603E_IRQ15 ( Score_IRQ_First + 15 )
-
-#define SCORE603E_TIMER1_IRQ SCORE603E_IRQ00
-#define SCORE603E_TIMER2_IRQ SCORE603E_IRQ01
-#define SCORE603E_TIMER3_IRQ SCORE603E_IRQ02
-#define SCORE603E_85C30_1_IRQ SCORE603E_IRQ03
-#define SCORE603E_85C30_0_IRQ SCORE603E_IRQ04
-#define SCORE603E_RTC_IRQ SCORE603E_IRQ05
-#define SCORE603E_PCI_IRQ_0 SCORE603E_IRQ06
-#define SCORE603E_PCI_IRQ_1 SCORE603E_IRQ07
-#define SCORE603E_PCI_IRQ_2 SCORE603E_IRQ08
-#define SCORE603E_PCI_IRQ_3 SCORE603E_IRQ09
-#define SCORE603E_UNIVERSE_IRQ SCORE603E_IRQ10
-#define SCORE603E_1553_IRQ SCORE603E_IRQ11
-#define SCORE603E_MAIL_BOX_IRQ_0 SCORE603E_IRQ12
-#define SCORE603E_MAIL_BOX_IRQ_1 SCORE603E_IRQ13
-#define SCORE603E_MAIL_BOX_IRQ_2 SCORE603E_IRQ14
-#define SCORE603E_MAIL_BOX_IRQ_3 SCORE603E_IRQ15
-
-/*
- * The Score FPGA maps all interrupts comming from the PMC card to
- * the FPGA interrupt SCORE603E_PCI_IRQ_0 the PMC status word must be
- * read to indicate which interrupt was chained to the FPGA.
- */
-#define SCORE603E_IRQ16 ( Score_IRQ_First + 16 )
-#define SCORE603E_IRQ17 ( Score_IRQ_First + 17 )
-#define SCORE603E_IRQ18 ( Score_IRQ_First + 18 )
-#define SCORE603E_IRQ19 ( Score_IRQ_First + 19 )
-
-/*
- * IRQ'a read from the PMC card
- */
-#define SCORE603E_85C30_4_IRQ SCORE603E_IRQ16 /* SCC 422-1 */
-#define SCORE603E_85C30_2_IRQ SCORE603E_IRQ17 /* SCC 232-1 */
-#define SCORE603E_85C30_5_IRQ SCORE603E_IRQ18 /* SCC 422-2 */
-#define SCORE603E_85C30_3_IRQ SCORE603E_IRQ19 /* SCC 232-2 */
-
-#define MAX_BOARD_IRQS SCORE603E_IRQ19
/*
* BSP_TIMER_AVG_OVERHEAD and BSP_TIMER_LEAST_VALID for the shared timer
@@ -263,8 +203,9 @@ extern "C" {
#define BSP_Convert_decrementer( _value ) \
(int) (((_value) * 4000) / 6667)
-#endif
-
#ifdef __cplusplus
}
#endif
+
+#endif
+
diff --git a/c/src/lib/libbsp/powerpc/score603e/include/irq-config.h b/c/src/lib/libbsp/powerpc/score603e/include/irq-config.h
index 811ce6670f..ebe340ae33 100644
--- a/c/src/lib/libbsp/powerpc/score603e/include/irq-config.h
+++ b/c/src/lib/libbsp/powerpc/score603e/include/irq-config.h
@@ -4,6 +4,8 @@
* @ingroup bsp_interrupt
*
* @brief BSP interrupt support configuration.
+ *
+ * $Id$
*/
/*
diff --git a/c/src/lib/libbsp/powerpc/score603e/include/tm27.h b/c/src/lib/libbsp/powerpc/score603e/include/tm27.h
index d26a8bb920..2698a3bf40 100644
--- a/c/src/lib/libbsp/powerpc/score603e/include/tm27.h
+++ b/c/src/lib/libbsp/powerpc/score603e/include/tm27.h
@@ -1,6 +1,9 @@
/*
* tm27.h
*
+ * COPYRIGHT (c) 1989-2009.
+ * On-Line Applications Research Corporation (OAR).
+ *
* 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.