Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 Feb 2004 21:54:38 -0800 (PST)
From:      Scott Long <scottl@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 46737 for review
Message-ID:  <200402100554.i1A5sclu033815@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=46737

Change 46737 by scottl@scottl-newint on 2004/02/09 21:53:50

	sys/sys/bus.h:
		Change the interrupt handler prototype and define some
		return values.  With this change, LINT will not compile
		until everything is converted.

Affected files ...

.. //depot/projects/newint/sys/sys/bus.h#2 edit

Differences ...

==== //depot/projects/newint/sys/sys/bus.h#2 (text+ko) ====

@@ -88,7 +88,14 @@
 typedef struct devclass		*devclass_t;
 #define device_method_t		kobj_method_t
 
-typedef void driver_intr_t(void*);
+enum intr_rtn {
+	INTR_RTN_NONE = 0,	/* No action.  Default compat for now */
+	INTR_RTN_OWNER = 1,	/* Driver hardware generated the interrupt */
+	INTR_RTN_HANDLED = 2,	/* Driver acknowledged the interrupt */
+	INTR_RTN_ITHREAD = 4	/* Driver wants to run its ithread */
+};
+
+typedef int driver_intr_t(void*);
 
 /*
  * Interrupt type bits.  These flags are used both by newbus interrupt



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200402100554.i1A5sclu033815>