diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2005-04-28 16:17:39 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2005-04-28 16:17:39 +0000 |
commit | 27d619b86bd3ea6a36c8d3258ac6cba06b22a6e6 (patch) | |
tree | 676f2c9228a668ad9e8cdebc4fc10866204459da /c/src/lib/libbsp/powerpc/dmv177/scv64 | |
parent | 2005-04-28 Jennifer Averett <jennifer.averett@oarcorp.com> (diff) | |
download | rtems-27d619b86bd3ea6a36c8d3258ac6cba06b22a6e6.tar.bz2 |
2005-04-28 Joel Sherrill <joel@OARcorp.com>
* acinclude.m4: Remove dmv177 and ppcn_60x.
* dmv177/.cvsignore, dmv177/ChangeLog, dmv177/Makefile.am,
dmv177/QUIRKS, dmv177/README, dmv177/README.net, dmv177/STATUS,
dmv177/bsp_specs, dmv177/cable.doc, dmv177/configure.ac,
dmv177/times, dmv177/clock/clock.c, dmv177/console/conscfg.c,
dmv177/console/debugio.c, dmv177/include/.cvsignore,
dmv177/include/bsp.h, dmv177/include/dmv170.h, dmv177/include/tm27.h,
dmv177/scv64/scv64.c, dmv177/sonic/dmvsonic.c, dmv177/start/start.S,
dmv177/startup/bspclean.c, dmv177/startup/bspstart.c,
dmv177/startup/genpvec.c, dmv177/startup/linkcmds,
dmv177/startup/setvec.c, dmv177/startup/vmeintr.c,
dmv177/timer/timer.c, dmv177/tod/todcfg.c, ppcn_60x/.cvsignore,
ppcn_60x/ChangeLog, ppcn_60x/Makefile.am, ppcn_60x/README,
ppcn_60x/STATUS, ppcn_60x/bsp_specs, ppcn_60x/configure.ac,
ppcn_60x/clock/clock.c, ppcn_60x/console/config.c,
ppcn_60x/console/console.c, ppcn_60x/console/console.h,
ppcn_60x/console/debugio.c, ppcn_60x/console/i8042.c,
ppcn_60x/console/i8042_p.h, ppcn_60x/console/i8042vga.c,
ppcn_60x/console/i8042vga.h, ppcn_60x/console/ns16550cfg.c,
ppcn_60x/console/ns16550cfg.h, ppcn_60x/console/vga.c,
ppcn_60x/console/vga_p.h, ppcn_60x/console/z85c30cfg.c,
ppcn_60x/console/z85c30cfg.h, ppcn_60x/include/.cvsignore,
ppcn_60x/include/bsp.h, ppcn_60x/include/extisrdrv.h,
ppcn_60x/include/nvram.h, ppcn_60x/include/pci.h,
ppcn_60x/include/tm27.h, ppcn_60x/network/amd79c970.c,
ppcn_60x/network/amd79c970.h, ppcn_60x/nvram/ds1385.h,
ppcn_60x/nvram/mk48t18.h, ppcn_60x/nvram/nvram.c,
ppcn_60x/nvram/prepnvr.h, ppcn_60x/nvram/stk11c68.h,
ppcn_60x/pci/pci.c, ppcn_60x/start/start.S,
ppcn_60x/startup/bspclean.c, ppcn_60x/startup/bspstart.c,
ppcn_60x/startup/bsptrap.S, ppcn_60x/startup/genpvec.c,
ppcn_60x/startup/linkcmds, ppcn_60x/startup/rtems-ctor.cc,
ppcn_60x/startup/setvec.c, ppcn_60x/startup/spurious.c,
ppcn_60x/startup/swap.c, ppcn_60x/timer/timer.c, ppcn_60x/tod/cmos.h,
ppcn_60x/tod/tod.c, ppcn_60x/universe/universe.c,
ppcn_60x/vectors/README, ppcn_60x/vectors/align_h.S,
ppcn_60x/vectors/vectors.S: Removed.
Diffstat (limited to 'c/src/lib/libbsp/powerpc/dmv177/scv64')
-rw-r--r-- | c/src/lib/libbsp/powerpc/dmv177/scv64/scv64.c | 169 |
1 files changed, 0 insertions, 169 deletions
diff --git a/c/src/lib/libbsp/powerpc/dmv177/scv64/scv64.c b/c/src/lib/libbsp/powerpc/dmv177/scv64/scv64.c deleted file mode 100644 index 731a016dd1..0000000000 --- a/c/src/lib/libbsp/powerpc/dmv177/scv64/scv64.c +++ /dev/null @@ -1,169 +0,0 @@ -/* scv64.c - * - * This set of routines control the scv64 chip on the DMV177 board. - * - * - * COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994, 1997. - * On-Line Applications Research Corporation (OAR). - * - * $Id$ - */ - -#include <rtems.h> -#include <bsp.h> - -typedef struct { - /* DARF Registers */ - volatile uint32_t DMALAR; /* 0x00 */ - volatile uint32_t DMAVAR; /* 0x04 */ - volatile uint32_t DMATC; /* 0x08 */ - volatile uint32_t DCSR; /* 0x0c */ - volatile uint32_t VMEBAR; /* 0x10 */ - volatile uint32_t RXDATA; /* 0x14 */ - volatile uint32_t RXADDR; /* 0x18 */ - volatile uint32_t RXCTL; /* 0x1c */ - volatile uint32_t BUSSEL; /* 0x20 */ - volatile uint32_t IVECT; /* 0x24 */ - volatile uint32_t APBR; /* 0x28 */ - volatile uint32_t TXDATA; /* 0x2c */ - volatile uint32_t TXADDR; /* 0x30 */ - volatile uint32_t TXCTL; /* 0x34 */ - volatile uint32_t LMFIFO; /* 0x38 */ - volatile uint32_t MODE; /* 0x3c */ - volatile uint32_t SA64BAR; /* 0x40 */ - volatile uint32_t MA64BAR; /* 0x44 */ - volatile uint32_t LAG; /* 0x48 */ - volatile uint32_t DMAVTC; /* 0x4c */ - - /* Reserved */ - volatile uint32_t reserved_50_7F[12]; - - /* ACC Registers */ - volatile uint8_t STAT0_pad[3]; /* 0x80 */ - volatile uint8_t STAT0; - volatile uint8_t STAT1_pad[3]; /* 0x84 */ - volatile uint8_t STAT1; - volatile uint8_t GENCTL_pad[3]; /* 0x88 */ - volatile uint8_t GENCTL; - volatile uint8_t VINT_pad[3]; /* 0x8c */ - volatile uint8_t VINT; - volatile uint8_t VREQ_pad[3]; /* 0x90 */ - volatile uint8_t VREQ; - volatile uint8_t VARB_pad[3]; /* 0x94 */ - volatile uint8_t VARB; - volatile uint8_t ID_pad[3]; /* 0x98 */ - volatile uint8_t ID; - volatile uint8_t NA_pad[3]; /* 0x9c */ - volatile uint8_t NA; - volatile uint8_t _7IS_pad[3]; /* 0xa0 */ - volatile uint8_t _7IS; - volatile uint8_t LIS_pad[3]; /* 0xa4 */ - volatile uint8_t LIS; - volatile uint8_t UIE_pad[3]; /* 0xa8 */ - volatile uint8_t UIE; - volatile uint8_t LIE_pad[3]; /* 0xac */ - volatile uint8_t LIE; - volatile uint8_t VIE_pad[3]; /* 0xb0 */ - volatile uint8_t VIE; - volatile uint8_t IC10_pad[3]; /* 0xb4 */ - volatile uint8_t IC10; - volatile uint8_t IC32_pad[3]; /* 0xb8 */ - volatile uint8_t IC32; - volatile uint8_t IC54_pad[3]; /* 0xbc */ - volatile uint8_t IC54; - /* Utility Registers */ - volatile uint32_t MISC; - volatile uint32_t delay_line[3]; - volatile uint32_t MBOX0; - volatile uint32_t MBOX1; - volatile uint32_t MBOX2; - volatile uint32_t MBOX3; -} SCV64_Registers; - -/* - * LIE Register - */ -#define LOCAL_INTERRUPT_ENABLE_0 0x01 -#define LOCAL_INTERRUPT_ENABLE_1 0x02 -#define LOCAL_INTERRUPT_ENABLE_2 0x04 -#define LOCAL_INTERRUPT_ENABLE_3 0x08 -#define LOCAL_INTERRUPT_ENABLE_4 0x10 -#define LOCAL_INTERRUPT_ENABLE_5 0x20 - -/* - * IC54 Register - */ -#define AUTOVECTOR_5 0x80 - -/* - * Set the registers pointer to the base address of the SCV64 - */ -SCV64_Registers *SCV64 = (void *)DMV170_SCV64_BASE_ADDRESS; - -/*PAGE - * - * SCV64_Initialize - * - * This routine initializes the SCV64. - */ -void SCV64_Initialize() { - SCV64->LIE = 0; -} - -/*PAGE - * - * SCV64_Generate_DUART_Interrupts - * - * This sets the SCV64 to generate duart interrupts for - * the DMV177 board. - */ -void SCV64_Generate_DUART_Interrupts() { - - uint8_t data; - - /* - * Set Local Interrupt 5 enable - */ - data = SCV64->LIE; - data |= LOCAL_INTERRUPT_ENABLE_5; - SCV64->LIE = data; - - /* - * Set Autovector. - */ - data = SCV64->IC54; - data |= AUTOVECTOR_5; - SCV64->IC54 = data; -} - -/*PAGE - * - * SCV64_Get_Interrupt - * - * This routine returns the SCV64 status register. - */ -uint32_t SCV64_Get_Interrupt() -{ - uint8_t data; - - /* - * Put the LIS data into the lower byte of the result - */ - data = SCV64->LIS; - - return data; -} - -/*PAGE - * - * SCV64_Get_Interrupt_Enable - * - * This routine returns the interrupt enable mask. - */ -uint32_t SCV64_Get_Interrupt_Enable() -{ - /* - * Return the set of interrupts enabled. - */ - return SCV64->LIE; -} |