| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | /* $NetBSD: ifpga_intr.h,v 1.8 2008/04/27 18:58:46 matt Exp $ */ | | 1 | /* $NetBSD: ifpga_intr.h,v 1.8.10.1 2009/03/15 19:47:22 snj Exp $ */ |
2 | | | 2 | |
3 | /* | | 3 | /* |
4 | * Copyright (c) 2001, 2002 Wasabi Systems, Inc. | | 4 | * Copyright (c) 2001, 2002 Wasabi Systems, Inc. |
5 | * All rights reserved. | | 5 | * All rights reserved. |
6 | * | | 6 | * |
7 | * Written by Jason R. Thorpe for Wasabi Systems, Inc. | | 7 | * Written by Jason R. Thorpe for Wasabi Systems, Inc. |
8 | * | | 8 | * |
9 | * Redistribution and use in source and binary forms, with or without | | 9 | * Redistribution and use in source and binary forms, with or without |
10 | * modification, are permitted provided that the following conditions | | 10 | * modification, are permitted provided that the following conditions |
11 | * are met: | | 11 | * are met: |
12 | * 1. Redistributions of source code must retain the above copyright | | 12 | * 1. Redistributions of source code must retain the above copyright |
13 | * notice, this list of conditions and the following disclaimer. | | 13 | * notice, this list of conditions and the following disclaimer. |
14 | * 2. Redistributions in binary form must reproduce the above copyright | | 14 | * 2. Redistributions in binary form must reproduce the above copyright |
| @@ -32,26 +32,27 @@ | | | @@ -32,26 +32,27 @@ |
32 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN | | 32 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN |
33 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | | 33 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
34 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | | 34 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
35 | * POSSIBILITY OF SUCH DAMAGE. | | 35 | * POSSIBILITY OF SUCH DAMAGE. |
36 | */ | | 36 | */ |
37 | | | 37 | |
38 | #ifndef _IFPGA_INTR_H_ | | 38 | #ifndef _IFPGA_INTR_H_ |
39 | #define _IFPGA_INTR_H_ | | 39 | #define _IFPGA_INTR_H_ |
40 | | | 40 | |
41 | #define ARM_IRQ_HANDLER _C_LABEL(ifpga_intr_dispatch) | | 41 | #define ARM_IRQ_HANDLER _C_LABEL(ifpga_intr_dispatch) |
42 | | | 42 | |
43 | #ifndef _LOCORE | | 43 | #ifndef _LOCORE |
44 | | | 44 | |
| | | 45 | #include <arm/cpu.h> |
45 | #include <arm/armreg.h> | | 46 | #include <arm/armreg.h> |
46 | #include <arm/cpufunc.h> | | 47 | #include <arm/cpufunc.h> |
47 | | | 48 | |
48 | #include <evbarm/ifpga/ifpgareg.h> | | 49 | #include <evbarm/ifpga/ifpgareg.h> |
49 | #include <evbarm/ifpga/ifpgavar.h> | | 50 | #include <evbarm/ifpga/ifpgavar.h> |
50 | | | 51 | |
51 | static inline void __attribute__((__unused__)) | | 52 | static inline void __attribute__((__unused__)) |
52 | ifpga_set_intrmask(void) | | 53 | ifpga_set_intrmask(void) |
53 | { | | 54 | { |
54 | extern volatile uint32_t intr_enabled; | | 55 | extern volatile uint32_t intr_enabled; |
55 | extern struct ifpga_softc *ifpga_sc; | | 56 | extern struct ifpga_softc *ifpga_sc; |
56 | uint32_t mask = intr_enabled; | | 57 | uint32_t mask = intr_enabled; |
57 | | | 58 | |