Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Mar 2006 02:33:48 GMT
From:      Marcel Moolenaar <marcel@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 93222 for review
Message-ID:  <200603130233.k2D2XmDP067881@repoman.freebsd.org>

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

Change 93222 by marcel@marcel_nfs on 2006/03/13 02:33:37

	o  Make the serial interrupt sources visible to the
	   kernel only.
	o  source-specific interrupt handlers return an int
	   to indicate if the interrupt condition was cleared
	   or not. Create the serdev_intr_t type for them.

Affected files ...

.. //depot/projects/uart/sys/serial.h#5 edit

Differences ...

==== //depot/projects/uart/sys/serial.h#5 (text+ko) ====

@@ -65,6 +65,7 @@
 
 #define	SER_MASK_DELTA	SER_DELTA(SER_MASK_STATE)
 
+#ifdef _KERNEL
 /*
  * Specification of interrupt sources typical for serial ports. These are
  * useful when some umbrella driver like scc(4) has enough knowledge of
@@ -82,4 +83,10 @@
 #define	SER_INT_MASK	0xff0000
 #define	SER_INT_SIGMASK	(SER_MASK_DELTA | SER_MASK_STATE)
 
+#ifndef LOCORE
+typedef int serdev_intr_t(void*);
+#endif
+
+#endif	/* _KERNEL */
+
 #endif /* !_SYS_SERIAL_H_ */



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