4.104.114.84.95
Last change
on this file since 84ff7c23 was
03f2154e,
checked in by Joel Sherrill <joel.sherrill@…>, on 04/22/97 at 17:20:27
|
headers updated to reflect new style copyright notice as part
of switching to the modified GNU GPL.
|
-
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 in |
---|
10 | * 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 | |
---|
26 | void 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 | |
---|
47 | void 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.