4.9
Last change
on this file since 978eba3 was
978eba3,
checked in by Joel Sherrill <joel.sherrill@…>, on 09/30/08 at 23:17:15
|
2008-09-30 Jennifer Averett <jennifer.averett@…>
- Makefile.am, preinstall.am, PCI_bus/universe.c, console/console.c,
include/bsp.h, irq/FPGA.c, irq/irq.c, startup/Hwr_init.c,
startup/bspstart.c, startup/vmeintr.c: Modifications required to run
on hardware. Some cleanup.
- include/irq-config.h: New file.
- startup/spurious.c: Removed.
|
-
Property mode set to
100644
|
File size:
1.1 KB
|
Line | |
---|
1 | /* vmeintr.c |
---|
2 | * |
---|
3 | * VMEbus support routines for the Generation I board. |
---|
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 <rtems/vmeintr.h> |
---|
18 | |
---|
19 | /*PAGE |
---|
20 | * |
---|
21 | * VME_interrupt_Disable |
---|
22 | * |
---|
23 | */ |
---|
24 | |
---|
25 | void 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 = 0; |
---|
33 | value = *VME_interrupt_enable; |
---|
34 | value &= ~mask; /* turn off interrupts for all levels in mask */ |
---|
35 | *VME_interrupt_enable = value; |
---|
36 | } |
---|
37 | |
---|
38 | /*PAGE |
---|
39 | * |
---|
40 | * VME_interrupt_Enable |
---|
41 | * |
---|
42 | */ |
---|
43 | |
---|
44 | void VME_interrupt_Enable ( |
---|
45 | VME_interrupt_Mask mask /* IN */ |
---|
46 | ) |
---|
47 | { |
---|
48 | volatile uint8_t *VME_interrupt_enable; |
---|
49 | uint8_t value; |
---|
50 | |
---|
51 | VME_interrupt_enable = 0; |
---|
52 | value = *VME_interrupt_enable; |
---|
53 | value |= mask; /* turn on interrupts for all levels in mask */ |
---|
54 | *VME_interrupt_enable = value; |
---|
55 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.