summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1997-06-01 16:05:14 +0000
committerpeter <peter@FreeBSD.org>1997-06-01 16:05:14 +0000
commit2bd86002940242337411d0d4913c56ac516fc671 (patch)
treeee951eb21e5d555e53d116182892ecb809503d22
parent21260a709da4bca5e550812c416b27274dea1a53 (diff)
downloadFreeBSD-src-2bd86002940242337411d0d4913c56ac516fc671.zip
FreeBSD-src-2bd86002940242337411d0d4913c56ac516fc671.tar.gz
Move "typedef struct intrec {} intrec" from sys/interrupt.h to kern_intr.c
since that's the only place that it's used. Submitted by: se (apparently on suggestion from dfr)
-rw-r--r--sys/kern/kern_intr.c15
-rw-r--r--sys/sys/interrupt.h27
2 files changed, 21 insertions, 21 deletions
diff --git a/sys/kern/kern_intr.c b/sys/kern/kern_intr.c
index 56880d9..3f7feaf 100644
--- a/sys/kern/kern_intr.c
+++ b/sys/kern/kern_intr.c
@@ -23,7 +23,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: kern_intr.c,v 1.2 1997/05/28 22:11:00 se Exp $
+ * $Id: kern_intr.c,v 1.3 1997/05/31 09:30:39 peter Exp $
*
*/
@@ -46,6 +46,19 @@
#include "vector.h"
+typedef struct intrec {
+ intrmask_t mask;
+ inthand2_t *handler;
+ void *argument;
+ struct intrec *next;
+ void *devdata;
+ int intr;
+ intrmask_t *maskptr;
+ int flags;
+#define INTR_FAST 0x00000001 /* fast interrupt handler */
+#define INTR_EXCL 0x00010000 /* excl. intr, default is shared */
+} intrec;
+
/*
* The interrupt multiplexer calls each of the handlers in turn,
* and applies the associated interrupt mask to "cpl", which is
diff --git a/sys/sys/interrupt.h b/sys/sys/interrupt.h
index 7e7fcb1..10082f8 100644
--- a/sys/sys/interrupt.h
+++ b/sys/sys/interrupt.h
@@ -23,30 +23,17 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: interrupt.h,v 1.1 1997/05/26 14:37:31 se Exp $
- *
+ * $Id: interrupt.h,v 1.2 1997/05/31 09:33:29 peter Exp $
*/
-typedef struct intrec {
- intrmask_t mask;
- inthand2_t *handler;
- void *argument;
- struct intrec *next;
- void *devdata;
- int intr;
- intrmask_t *maskptr;
- int flags;
-#define INTR_FAST 0x00000001 /* fast interrupt handler */
-#define INTR_EXCL 0x00010000 /* excl. intr, default is shared */
-} intrec;
-
/* XXX currently dev_instance must be set to the ISA device_id or -1 for PCI */
-intrec *intr_create(void *dev_instance, int irq, inthand2_t handler,
- void *arg, intrmask_t *maskptr, int flags);
-int intr_destroy(intrec *idesc);
+struct intrec *intr_create(void *dev_instance, int irq, inthand2_t handler,
+ void *arg, intrmask_t *maskptr, int flags);
+
+int intr_destroy(struct intrec *idesc);
-int intr_connect(intrec *idesc);
-int intr_disconnect(intrec *idesc);
+int intr_connect(struct intrec *idesc);
+int intr_disconnect(struct intrec *idesc);
/* XXX emulate old interface for now ... */
int register_intr __P((int intr, int device_id, u_int flags,
OpenPOWER on IntegriCloud