source: rtems/c/src/lib/libbsp/powerpc/score603e/startup/vmeintr.c @ 1004c3c1

4.104.115
Last change on this file since 1004c3c1 was 1004c3c1, checked in by Joel Sherrill <joel.sherrill@…>, on 10/02/08 at 14:26:17

2008-10-02 Joel Sherrill <joel.sherrill@…>

  • PCI_bus/PCI.c, PCI_bus/PCI.h, PCI_bus/flash.c, console/85c30.h, console/console.c, console/consolebsp.h, console/tbl85c30.c, include/gen2.h, irq/FPGA.c, irq/irq.c, irq/irq.h, irq/irq_init.c, pci/no_host_bridge.c, startup/bspclean.c, startup/bspstart.c, startup/genpvec.c, startup/vmeintr.c: File head clean up.
  • Property mode set to 100644
File size: 1.1 KB
Line 
1/*
2 *  VMEbus support routines for the Generation I board.
3 *
4 *  COPYRIGHT (c) 1989-2008.
5 *  On-Line Applications Research Corporation (OAR).
6 *
7 *  The license and distribution terms for this file may in
8 *  the file LICENSE in this distribution or at
9 *  http://www.rtems.com/license/LICENSE.
10 *
11 *  $Id$
12 */
13
14#include <rtems.h>
15#include <bsp.h>
16#include <rtems/vmeintr.h>
17
18/*PAGE
19 *
20 *  VME_interrupt_Disable
21 *
22 */
23
24void VME_interrupt_Disable (
25  VME_interrupt_Mask                mask                        /* IN  */
26)
27{
28  volatile uint8_t  *VME_interrupt_enable;
29  uint8_t           value;
30
31  VME_interrupt_enable = 0;
32  value = *VME_interrupt_enable;
33  value &= ~mask;  /* turn off interrupts for all levels in mask */
34  *VME_interrupt_enable = value;
35}
36
37/*PAGE
38 *
39 *  VME_interrupt_Enable
40 *
41 */
42
43void VME_interrupt_Enable (
44  VME_interrupt_Mask                mask                        /* IN  */
45)
46{
47  volatile uint8_t          *VME_interrupt_enable;
48  uint8_t          value;
49
50  VME_interrupt_enable = 0;
51  value = *VME_interrupt_enable;
52  value |= mask;  /* turn on interrupts for all levels in mask */
53  *VME_interrupt_enable = value;
54}
Note: See TracBrowser for help on using the repository browser.