PERFORCE change 93222 for review
Marcel Moolenaar
marcel at FreeBSD.org
Mon Mar 13 02:33:49 UTC 2006
http://perforce.freebsd.org/chv.cgi?CH=93222
Change 93222 by marcel at 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_ */
More information about the p4-projects
mailing list