| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | /* $NetBSD: ibm4xx_intr.h,v 1.17 2010/03/18 13:47:04 kiyohara Exp $ */ | | 1 | /* $NetBSD: ibm4xx_intr.h,v 1.18 2010/04/24 09:46:22 kiyohara Exp $ */ |
2 | | | 2 | |
3 | /*- | | 3 | /*- |
4 | * Copyright (c) 1998, 2007 The NetBSD Foundation, Inc. | | 4 | * Copyright (c) 1998, 2007 The NetBSD Foundation, Inc. |
5 | * All rights reserved. | | 5 | * All rights reserved. |
6 | * | | 6 | * |
7 | * This code is derived from software contributed to The NetBSD Foundation | | 7 | * This code is derived from software contributed to The NetBSD Foundation |
8 | * by Charles M. Hannum. | | 8 | * by Charles M. Hannum. |
9 | * | | 9 | * |
10 | * Redistribution and use in source and binary forms, with or without | | 10 | * Redistribution and use in source and binary forms, with or without |
11 | * modification, are permitted provided that the following conditions | | 11 | * modification, are permitted provided that the following conditions |
12 | * are met: | | 12 | * are met: |
13 | * 1. Redistributions of source code must retain the above copyright | | 13 | * 1. Redistributions of source code must retain the above copyright |
14 | * notice, this list of conditions and the following disclaimer. | | 14 | * notice, this list of conditions and the following disclaimer. |
| @@ -54,27 +54,28 @@ | | | @@ -54,27 +54,28 @@ |
54 | | | 54 | |
55 | #define CLKF_BASEPRI(frame) ((frame)->pri == 0) | | 55 | #define CLKF_BASEPRI(frame) ((frame)->pri == 0) |
56 | | | 56 | |
57 | void *intr_establish(int, int, int, int (*)(void *), void *); | | 57 | void *intr_establish(int, int, int, int (*)(void *), void *); |
58 | void intr_disestablish(void *); | | 58 | void intr_disestablish(void *); |
59 | void intr_init(void); | | 59 | void intr_init(void); |
60 | int uic_add(u_int, int); | | 60 | int uic_add(u_int, int); |
61 | void ext_intr(void); /* for machdep */ | | 61 | void ext_intr(void); /* for machdep */ |
62 | int splraise(int); | | 62 | int splraise(int); |
63 | int spllower(int); | | 63 | int spllower(int); |
64 | void splx(int); | | 64 | void splx(int); |
65 | void softintr(int); | | 65 | void softintr(int); |
66 | | | 66 | |
67 | extern volatile u_int imask[NIPL]; | | 67 | typedef u_int imask_t; |
| | | 68 | extern volatile imask_t imask[NIPL]; |
68 | extern const int mask_clock; /* for clock.c */ | | 69 | extern const int mask_clock; /* for clock.c */ |
69 | extern const int mask_statclock; /* for clock.c */ | | 70 | extern const int mask_statclock; /* for clock.c */ |
70 | | | 71 | |
71 | #define spllowersoftclock() spllower(imask[IPL_SOFTCLOCK]) | | 72 | #define spllowersoftclock() spllower(imask[IPL_SOFTCLOCK]) |
72 | | | 73 | |
73 | typedef int ipl_t; | | 74 | typedef int ipl_t; |
74 | typedef struct { | | 75 | typedef struct { |
75 | ipl_t _ipl; | | 76 | ipl_t _ipl; |
76 | } ipl_cookie_t; | | 77 | } ipl_cookie_t; |
77 | | | 78 | |
78 | static inline ipl_cookie_t | | 79 | static inline ipl_cookie_t |
79 | makeiplcookie(ipl_t ipl) | | 80 | makeiplcookie(ipl_t ipl) |
80 | { | | 81 | { |