OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [rtos/] [rtems/] [c/] [src/] [lib/] [libbsp/] [powerpc/] [dmv177/] [startup/] [vmeintr.c] - Blame information for rev 173

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 30 unneback
/*  vmeintr.c
2
 *
3
 *  VMEbus support routines for the DMV170.
4
 *
5
 *  COPYRIGHT (c) 1989-1997.
6
 *  On-Line Applications Research Corporation (OAR).
7
 *  Copyright assigned to U.S. Government, 1994.
8
 *
9
 *  The license and distribution terms for this file may in
10
 *  the file LICENSE in this distribution or at
11
 *  http://www.OARcorp.com/rtems/license.html.
12
 *
13
 *  $Id: vmeintr.c,v 1.2 2001-09-27 12:00:35 chris Exp $
14
 */
15
 
16
#include <rtems.h>
17
#include <bsp.h>
18
#include <vmeintr.h>
19
 
20
/* PAGE
21
 *
22
 *  VME_interrupt_Disable
23
 *
24
 *  This routine disables vme interupts
25
 *
26
 *  Input parameters:
27
 *    mask - interupt mask
28
 *
29
 *  Output parameters:  NONE
30
 *
31
 *  Return values: NONE
32
 */
33
 
34
void VME_interrupt_Disable (
35
  VME_interrupt_Mask                mask                        /* IN  */
36
)
37
{
38
  volatile rtems_unsigned8  *VME_interrupt_enable;
39
  rtems_unsigned8  value;
40
 
41
#if 0
42
  VME_interrupt_enable = ACC_VIE;
43
#else
44
  VME_interrupt_enable = 0;
45
#endif
46
  value = *VME_interrupt_enable;
47
 
48
  value &= ~mask;  /* turn off interrupts for all levels in mask */
49
 
50
  *VME_interrupt_enable = value;
51
}
52
 
53
/* PAGE
54
 *
55
 *  VME_interrupt_Enable
56
 *
57
 *  This routine enables vme interupts
58
 *
59
 *  Input parameters:
60
 *    mask - interupt mask
61
 *
62
 *  Output parameters:  NONE
63
 *
64
 *  Return values:
65
 */
66
 
67
void VME_interrupt_Enable (
68
  VME_interrupt_Mask                mask                        /* IN  */
69
)
70
{
71
  volatile rtems_unsigned8  *VME_interrupt_enable;
72
  rtems_unsigned8  value;
73
 
74
#if 0
75
  VME_interrupt_enable = ACC_VIE;
76
#else
77
  VME_interrupt_enable = 0;
78
#endif
79
  value = *VME_interrupt_enable;
80
 
81
  value |= mask;  /* turn on interrupts for all levels in mask */
82
 
83
  *VME_interrupt_enable = value;
84
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.