4.104.114.84.95
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.OARcorp.com/rtems/license.html. |
---|
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 | |
---|
25 | void 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 | |
---|
46 | void 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.