source: rtems/c/src/lib/libbsp/m68k/dmv152/startup/vmeintr.c @ 9980062

4.104.114.84.95
Last change on this file since 9980062 was 9980062, checked in by Joel Sherrill <joel.sherrill@…>, on 09/04/03 at 18:51:36

2003-09-04 Joel Sherrill <joel@…>

  • clock/ckinit.c, console/console.c, include/bsp.h, include/coverhd.h, spurious/spinit.c, startup/bspclean.c, startup/bspstart.c, startup/linkcmds, startup/vmeintr.c, timer/timer.c, timer/timerisr.S: URL for license changed.
  • Property mode set to 100644
File size: 1.2 KB
Line 
1/*  vmeintr.c
2 *
3 *  VMEbus support routines for the DMV152.
4 *
5 *  COPYRIGHT (c) 1989-1999.
6 *  On-Line Applications Research Corporation (OAR).
7 *
8 *  The license and distribution terms for this file may be
9 *  found in the file LICENSE in this distribution or at
10 *  http://www.rtems.com/license/LICENSE.
11 *
12 *  $Id$
13 */
14
15#include <rtems.h>
16#include <bsp.h>
17#include <vmeintr.h>
18
19/*PAGE
20 *
21 *  VME_interrupt_Disable
22 *
23 */
24
25void VME_interrupt_Disable (
26  VME_interrupt_Mask                mask                        /* IN  */
27)
28{
29  volatile rtems_unsigned8  *VME_interrupt_enable;
30  rtems_unsigned8  value;
31
32  VME_interrupt_enable = ACC_VIE;
33  value = *VME_interrupt_enable;
34
35  value &= ~mask;  /* turn off interrupts for all levels in mask */
36
37  *VME_interrupt_enable = value;
38}
39
40/*PAGE
41 *
42 *  VME_interrupt_Enable
43 *
44 */
45
46void VME_interrupt_Enable (
47  VME_interrupt_Mask                mask                        /* IN  */
48)
49{
50  volatile rtems_unsigned8  *VME_interrupt_enable;
51  rtems_unsigned8  value;
52
53  VME_interrupt_enable = ACC_VIE;
54  value = *VME_interrupt_enable;
55
56  value |= mask;  /* turn on interrupts for all levels in mask */
57
58  *VME_interrupt_enable = value;
59}
Note: See TracBrowser for help on using the repository browser.