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

4.104.114.84.95
Last change on this file since c2e9632 was c2e9632, checked in by Ralf Corsepius <ralf.corsepius@…>, on 04/01/04 at 10:09:37

2004-04-01 Ralf Corsepius <ralf_corsepius@…>

  • include/bsp.h: Include <rtems/clockdrv.h> instead of <clockdrv.h>.
  • include/bsp.h: Include <rtems/console.h> instead of <console.h>.
  • include/bsp.h: Include <rtems/iosupp.h> instead of <iosupp.h>.
  • include/bsp.h: Include <rtems/vmeintr.h> instead of <vmeintr.h>.
  • startup/vmeintr.c: Include <rtems/vmeintr.h> instead of <vmeintr.h>.
  • 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 <rtems/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.