summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/powerpc/score603e/startup
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2001-11-28 18:20:10 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2001-11-28 18:20:10 +0000
commitf5e7b4c36a00afccb90f7e87f667f068bcbb85ea (patch)
tree4ba9a6239e5cb0de7ee36ae289ef12fde89f050a /c/src/lib/libbsp/powerpc/score603e/startup
parent2001-11-28 Joel Sherrill <joel@OARcorp.com>, (diff)
downloadrtems-f5e7b4c36a00afccb90f7e87f667f068bcbb85ea.tar.bz2
2001-11-28 Joel Sherrill <joel@OARcorp.com>,
This was tracked as PR87. * README, configure.ac, include/Makefile.am, include/bsp.h, start/start.S, startup/FPGA.c, startup/Makefile.am, tod/Makefile.am: Eliminated conditional code for generation 1 boards as these are no longer available. * include/gen1.h, startup/82378zb.c, tod/tod_g1.c: Deleted.
Diffstat (limited to 'c/src/lib/libbsp/powerpc/score603e/startup')
-rw-r--r--c/src/lib/libbsp/powerpc/score603e/startup/82378zb.c161
-rw-r--r--c/src/lib/libbsp/powerpc/score603e/startup/FPGA.c8
-rw-r--r--c/src/lib/libbsp/powerpc/score603e/startup/Makefile.am8
3 files changed, 6 insertions, 171 deletions
diff --git a/c/src/lib/libbsp/powerpc/score603e/startup/82378zb.c b/c/src/lib/libbsp/powerpc/score603e/startup/82378zb.c
deleted file mode 100644
index 965b007225..0000000000
--- a/c/src/lib/libbsp/powerpc/score603e/startup/82378zb.c
+++ /dev/null
@@ -1,161 +0,0 @@
-/* 82378zb.c
- *
- * COPYRIGHT (c) 1989-1997.
- * On-Line Applications Research Corporation (OAR).
- *
- * The license and distribution terms for this file may in
- * the file LICENSE in this distribution or at
- * http://www.OARcorp.com/rtems/license.html.
- *
- * $Id:
- */
-
-#include <bsp.h>
-#if (SCORE603E_GENERATION == 1)
-#include <string.h>
-#include <fcntl.h>
-#include <assert.h>
-
-#include <rtems/libio.h>
-#include <rtems/libcsupport.h>
-
-
-/*
- * initialize 82378zb
- */
-void initialize_PCI_bridge ()
-{
-
- /*
- * INT CNTRL-1 ICW1
- * LTIM and ICW4
- */
- Write_82378ZB( 0x20, 0x19);
-
- /*
- * INT CNTRL-1 ICW 2
- * Sets 5 msbs of the base address in the interrupt vector table
- * for the vector routines to 0100 0 ??
- */
- Write_82378ZB( 0x21, 0x40 );
-
- /*
- * INT CNTRL-1 ICW 3
- * Cascade CNTRL-2 INT output to IRQ[2] input of CNTRL-1
- */
- Write_82378ZB( 0x21, 0x04 );
-
- /*
- * INT CNTRL-1 ICW 4
- * Set Microprocessor mode for 80x86 system.
- */
- Write_82378ZB( 0x21, 0x01 );
-
- /*
- * INT CNTRL-1 OCW 2
- * Set Non-specific EOI command
- */
- Write_82378ZB( 0x20, 0x20 );
-
- /*
- * INT CNTRL-1 OCW 3
- * Interrupt controller in normal mask mode.
- * Disable Poll mode command
- * Read IRQ register.
- */
- Write_82378ZB( 0x20, 0x2a );
-
- /*
- * INT CNTRL-1 OCW 1
- * Write Interrupt Request mask for IRQ[7:0]. An interrupt request for
- * a masked IRQ will not set the interrupt request register (IRR) bit for
- * that channel.
- *
- * XXXX - Was 0xfd Only allowing Timer interrupt through changed to
- * 0xe1.
- */
- Write_82378ZB( 0x21, 0xe1 );
-
- /*
- * INT CNTRL-2 ICW 1
- * LTIM and ICW4
- */
- Write_82378ZB( 0xa0, 0x19 );
-
- /*
- * INT CNTRL-2 ICW 2
- * Sets 5 msbs of the base address in the interrupt vector table
- * for the vector routines to 0100 1 ??
- */
- Write_82378ZB( 0xa1, 0x48 );
-
- /*
- * INT CNTRL-1 ICW 3
- * Slave Identification Code (Must be intialized to 2).
- */
- Write_82378ZB( 0xa1, 0x02 );
-
- /*
- * INT CNTRL-1 ICW 4
- * Set Microprocessor mode for 80x86 system.
- */
- Write_82378ZB( 0xa1, 0x01 );
-
- /*
- * INT CNTRL-1 OCW 2
- * Set Non-specific EOI command
- */
- Write_82378ZB( 0xa0, 0x20 );
-
- /*
- * INT CNTRL-1 OCW 3
- * Interrupt controller in normal mask mode.
- * Disable Poll mode command
- * Read IRQ register.
- */
- Write_82378ZB( 0xa0, 0x2a );
-
- /*
- * INT CNTRL-1 OCW 1
- * Write Interrupt Request mask for IRQ[7:0]. An interrupt request for
- * a masked IRQ will not set the interrupt request register (IRR) bit for
- * that channel.
- *
- * XXXX - All interrupts masked.
- */
- Write_82378ZB( 0xa1, 0xff );
-}
-
-
-rtems_unsigned16 read_and_clear_irq ()
-{
- rtems_unsigned16 irq;
-
- /*
- * XXX - Fix this for all interrupts later
- */
-
- Write_82378ZB( 0x20, 0x0c);
- Read_82378ZB( 0x20, irq );
- irq &= 0x7;
- Write_82378ZB( 0x20, 0x20 );
-
- return irq;
-}
-
-void init_irq_data_register()
-{
- assert (0);
-}
-rtems_unsigned16 get_irq_mask()
-{
- assert (0);
- return 0;
-}
-void set_irq_mask(
- rtems_unsigned16 value
-)
-{
- assert (0);
-}
-#endif /* end of generation 1 */
diff --git a/c/src/lib/libbsp/powerpc/score603e/startup/FPGA.c b/c/src/lib/libbsp/powerpc/score603e/startup/FPGA.c
index fb4d192b91..243f7a78e0 100644
--- a/c/src/lib/libbsp/powerpc/score603e/startup/FPGA.c
+++ b/c/src/lib/libbsp/powerpc/score603e/startup/FPGA.c
@@ -1,6 +1,6 @@
-/* FPGA.c
+/* FPGA.c -- Bridge for second and subsequent generations
*
- * COPYRIGHT (c) 1989-1997.
+ * COPYRIGHT (c) 1989-2001.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may in
@@ -11,7 +11,6 @@
*/
#include <bsp.h>
-#if (SCORE603E_GENERATION == 2)
#include <string.h>
#include <fcntl.h>
#include <assert.h>
@@ -164,6 +163,3 @@ rtems_unsigned16 read_and_clear_irq()
return irq;
}
-
-#endif /* end of generation 2 */
-
diff --git a/c/src/lib/libbsp/powerpc/score603e/startup/Makefile.am b/c/src/lib/libbsp/powerpc/score603e/startup/Makefile.am
index e5ac8cedc9..5f009574fd 100644
--- a/c/src/lib/libbsp/powerpc/score603e/startup/Makefile.am
+++ b/c/src/lib/libbsp/powerpc/score603e/startup/Makefile.am
@@ -9,10 +9,10 @@ VPATH = @srcdir@:@srcdir@/../../../shared
PGM = $(ARCH)/startup.rel
#
-# First and second generation use different Bridge chips :(
-# Generation 1 --> 82378zb
+# First and second generation used different Bridge chips :(
+# Generation 1 --> 82378zb (now in the CVS Attic)
# Generation 2 --> FPGA
-STARTUP_C_FILES = 82378zb.c FPGA.c
+STARTUP_C_FILES = FPGA.c
C_FILES = bspclean.c bsplibc.c bsppost.c bspstart.c bootcard.c main.c sbrk.c \
setvec.c Hwr_init.c spurious.c genpvec.c $(STARTUP_C_FILES) \
@@ -41,7 +41,7 @@ all-local: $(ARCH) $(OBJS) $(PGM) $(TMPINSTALL_FILES)
.PRECIOUS: $(PGM)
-EXTRA_DIST = 82378zb.c FPGA.c Hwr_init.c bspclean.c bspstart.c genpvec.c \
+EXTRA_DIST = FPGA.c Hwr_init.c bspclean.c bspstart.c genpvec.c \
linkcmds setvec.c spurious.c vmeintr.c
include $(top_srcdir)/../../../../../../automake/local.am