4.104.114.84.95
Last change
on this file since dac4208 was
dac4208,
checked in by Ralf Corsepius <ralf.corsepius@…>, on 03/31/04 at 03:47:07
|
2004-03-31 Ralf Corsepius <ralf_corsepius@…>
- PCI_bus/PCI.c, PCI_bus/PCI.h, PCI_bus/flash.c, PCI_bus/universe.c,
clock/clock.c, console/85c30.c, console/console.c,
console/consolebsp.h, include/bsp.h, include/gen2.h, startup/FPGA.c,
startup/Hwr_init.c, startup/bspstart.c, startup/genpvec.c,
startup/spurious.c, startup/vmeintr.c, timer/timer.c, tod/tod.c:
Convert to using c99 fixed size types.
|
-
Property mode set to
100644
|
File size:
1.3 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 <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 | #if 0 |
---|
33 | VME_interrupt_enable = ACC_VIE; |
---|
34 | #else |
---|
35 | VME_interrupt_enable = 0; |
---|
36 | #endif |
---|
37 | value = *VME_interrupt_enable; |
---|
38 | |
---|
39 | value &= ~mask; /* turn off interrupts for all levels in mask */ |
---|
40 | |
---|
41 | *VME_interrupt_enable = value; |
---|
42 | } |
---|
43 | |
---|
44 | /*PAGE |
---|
45 | * |
---|
46 | * VME_interrupt_Enable |
---|
47 | * |
---|
48 | */ |
---|
49 | |
---|
50 | void VME_interrupt_Enable ( |
---|
51 | VME_interrupt_Mask mask /* IN */ |
---|
52 | ) |
---|
53 | { |
---|
54 | volatile uint8_t *VME_interrupt_enable; |
---|
55 | uint8_t value; |
---|
56 | |
---|
57 | #if 0 |
---|
58 | VME_interrupt_enable = ACC_VIE; |
---|
59 | #else |
---|
60 | VME_interrupt_enable = 0; |
---|
61 | #endif |
---|
62 | value = *VME_interrupt_enable; |
---|
63 | |
---|
64 | value |= mask; /* turn on interrupts for all levels in mask */ |
---|
65 | |
---|
66 | *VME_interrupt_enable = value; |
---|
67 | } |
---|
68 | |
---|
69 | |
---|
Note: See
TracBrowser
for help on using the repository browser.