4.104.114.84.95
Rev | Line | |
---|
[ac7d5ef0] | 1 | /* vmeintr.c |
---|
| 2 | * |
---|
| 3 | * VMEbus support routines for the DMV152. |
---|
| 4 | * |
---|
| 5 | * COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994. |
---|
| 6 | * On-Line Applications Research Corporation (OAR). |
---|
| 7 | * All rights assigned to U.S. Government, 1994. |
---|
| 8 | * |
---|
| 9 | * This material may be reproduced by or for the U.S. Government pursuant |
---|
| 10 | * to the copyright license under the clause at DFARS 252.227-7013. This |
---|
| 11 | * notice must appear in all copies of this file and its derivatives. |
---|
| 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.