PERFORCE change 46737 for review

Scott Long scottl at FreeBSD.org
Mon Feb 9 21:54:39 PST 2004


http://perforce.freebsd.org/chv.cgi?CH=46737

Change 46737 by scottl at 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


More information about the p4-projects mailing list