diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1998-07-15 19:12:11 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1998-07-15 19:12:11 +0000 |
commit | 6c45da17cfe32b2366f6d24a87553361de0e1988 (patch) | |
tree | fb1dc564a03799f78d6286f393627d663d8b3fe6 /c/src | |
parent | Added scv64 subdirectory. (diff) | |
download | rtems-6c45da17cfe32b2366f6d24a87553361de0e1988.tar.bz2 |
Added routine to return interrupt mask. Added comments.
Diffstat (limited to 'c/src')
-rw-r--r-- | c/src/lib/libbsp/powerpc/dmv177/scv64/scv64.c | 31 |
1 files changed, 28 insertions, 3 deletions
diff --git a/c/src/lib/libbsp/powerpc/dmv177/scv64/scv64.c b/c/src/lib/libbsp/powerpc/dmv177/scv64/scv64.c index f37cf909e5..f1c2e1200d 100644 --- a/c/src/lib/libbsp/powerpc/dmv177/scv64/scv64.c +++ b/c/src/lib/libbsp/powerpc/dmv177/scv64/scv64.c @@ -100,13 +100,23 @@ typedef struct { /* * Set the registers pointer to the base address of the SCV64 */ - SCV64_Registers *SCV64 = (void *)DMV170_SCV64_BASE_ADDRESS; +/* + * SCV64_Initialize + * + * This routine initializes the SCV64. + */ void SCV64_Initialize() { SCV64->LIE = 0; } +/* + * SCV64_Generate_DUART_Interrupts + * + * This sets the SCV64 to generate duart interrupts for + * the DMV177 board. + */ void SCV64_Generate_DUART_Interrupts() { rtems_unsigned8 data; @@ -126,6 +136,11 @@ void SCV64_Generate_DUART_Interrupts() { SCV64->IC54 = data; } +/* + * SCV64_Get_Interrupt + * + * This routine returns the SCV64 status register. + */ rtems_unsigned32 SCV64_Get_Interrupt() { rtems_unsigned8 data; @@ -138,5 +153,15 @@ rtems_unsigned32 SCV64_Get_Interrupt() return data; } - - +/* + * SCV64_Get_Interrupt_Enable + * + * This routine returns the interrupt enable mask. + */ +rtems_unsigned32 SCV64_Get_Interrupt_Enable() +{ + /* + * Return the set of interrupts enabled. + */ + return SCV64->LIE; +} |