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

4.104.114.84.95
Last change on this file since d2632274 was 98e4ebf, checked in by Joel Sherrill <joel.sherrill@…>, on Oct 8, 1997 at 3:45:54 PM

Fixed typo in the pointer to the license terms.

  • 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-1997.
6 *  On-Line Applications Research Corporation (OAR).
7 *  Copyright assigned to U.S. Government, 1994.
8 *
9 *  The license and distribution terms for this file may be
10 *  found in the file LICENSE in this distribution or at
11 *  http://www.OARcorp.com/rtems/license.html.
12 *
13 *  $Id$
14 */
15
16#include <rtems.h>
17#include <bsp.h>
18#include <vmeintr.h>
19
20/*PAGE
21 *
22 *  VME_interrupt_Disable
23 *
24 */
25
26void VME_interrupt_Disable (
27  VME_interrupt_Mask                mask                        /* IN  */
28)
29{
30  volatile rtems_unsigned8  *VME_interrupt_enable;
31  rtems_unsigned8  value;
32
33  VME_interrupt_enable = ACC_VIE;
34  value = *VME_interrupt_enable;
35
36  value &= ~mask;  /* turn off interrupts for all levels in mask */
37
38  *VME_interrupt_enable = value;
39}
40
41/*PAGE
42 *
43 *  VME_interrupt_Enable
44 *
45 */
46
47void VME_interrupt_Enable (
48  VME_interrupt_Mask                mask                        /* IN  */
49)
50{
51  volatile rtems_unsigned8  *VME_interrupt_enable;
52  rtems_unsigned8  value;
53
54  VME_interrupt_enable = ACC_VIE;
55  value = *VME_interrupt_enable;
56
57  value |= mask;  /* turn on interrupts for all levels in mask */
58
59  *VME_interrupt_enable = value;
60}
Note: See TracBrowser for help on using the repository browser.