4.104.114.84.95
Last change
on this file since edd1329f was
98e4ebf5,
checked in by Joel Sherrill <joel.sherrill@…>, on 10/08/97 at 15:45:54
|
Fixed typo in the pointer to the license terms.
|
-
Property mode set to
100644
|
File size:
1.2 KB
|
Rev | Line | |
---|
[ac7d5ef0] | 1 | /* vmeintr.c |
---|
| 2 | * |
---|
| 3 | * VMEbus support routines for the DMV152. |
---|
| 4 | * |
---|
[03f2154e] | 5 | * COPYRIGHT (c) 1989-1997. |
---|
[ac7d5ef0] | 6 | * On-Line Applications Research Corporation (OAR). |
---|
[03f2154e] | 7 | * Copyright assigned to U.S. Government, 1994. |
---|
[ac7d5ef0] | 8 | * |
---|
[98e4ebf5] | 9 | * The license and distribution terms for this file may be |
---|
| 10 | * found in the file LICENSE in this distribution or at |
---|
[03f2154e] | 11 | * http://www.OARcorp.com/rtems/license.html. |
---|
[ac7d5ef0] | 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.