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

4.104.114.84.9
Last change on this file since 0f458a3 was 0f458a3, checked in by Ralf Corsepius <ralf.corsepius@…>, on Mar 31, 2004 at 4:38:23 AM

2004-03-31 Ralf Corsepius <ralf_corsepius@…>

  • clock/ckinit.c, console/console.c, include/bsp.h, spurious/spinit.c, startup/bspstart.c, startup/vmeintr.c, timer/timer.c: Convert to using c99 fixed size types.
  • 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-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.rtems.com/license/LICENSE.
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
25void VME_interrupt_Disable (
26  VME_interrupt_Mask                mask                        /* IN  */
27)
28{
29  volatile uint8_t          *VME_interrupt_enable;
30  uint8_t          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
46void VME_interrupt_Enable (
47  VME_interrupt_Mask                mask                        /* IN  */
48)
49{
50  volatile uint8_t          *VME_interrupt_enable;
51  uint8_t          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.