source: rtems/c/src/lib/libbsp/powerpc/dmv177/startup/vmeintr.c @ ed9e449

4.104.114.84.95
Last change on this file since ed9e449 was ed9e449, checked in by Ralf Corsepius <ralf.corsepius@…>, on 03/31/04 at 03:08:46

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

  • clock/clock.c, console/conscfg.c, console/debugio.c, include/bsp.h, include/dmv170.h, scv64/scv64.c, sonic/dmvsonic.c, startup/bspstart.c, startup/genpvec.c, startup/vmeintr.c, timer/timer.c, tod/todcfg.c: Convert to using c99 fixed size types.
  • Property mode set to 100644
File size: 1.5 KB
Line 
1/*  vmeintr.c
2 *
3 *  VMEbus support routines for the DMV170.
4 *
5 *  COPYRIGHT (c) 1989-1997.
6 *  On-Line Applications Research Corporation (OAR).
7 *
8 *  The license and distribution terms for this file may in
9 *  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 *  This routine disables vme interupts
24 *
25 *  Input parameters:
26 *    mask - interupt mask
27 *
28 *  Output parameters:  NONE
29 *
30 *  Return values: NONE
31 */
32
33void VME_interrupt_Disable (
34  VME_interrupt_Mask                mask                        /* IN  */
35)
36{
37  volatile uint8_t    *VME_interrupt_enable;
38  uint8_t    value;
39
40#if 0
41  VME_interrupt_enable = ACC_VIE;
42#else
43  VME_interrupt_enable = 0;
44#endif
45  value = *VME_interrupt_enable;
46
47  value &= ~mask;  /* turn off interrupts for all levels in mask */
48
49  *VME_interrupt_enable = value;
50}
51
52/* PAGE
53 *
54 *  VME_interrupt_Enable
55 *
56 *  This routine enables vme interupts
57 *
58 *  Input parameters:
59 *    mask - interupt mask
60 *
61 *  Output parameters:  NONE
62 *
63 *  Return values:
64 */
65
66void VME_interrupt_Enable (
67  VME_interrupt_Mask                mask                        /* IN  */
68)
69{
70  volatile uint8_t    *VME_interrupt_enable;
71  uint8_t    value;
72
73#if 0
74  VME_interrupt_enable = ACC_VIE;
75#else
76  VME_interrupt_enable = 0;
77#endif
78  value = *VME_interrupt_enable;
79
80  value |= mask;  /* turn on interrupts for all levels in mask */
81
82  *VME_interrupt_enable = value;
83}
Note: See TracBrowser for help on using the repository browser.