summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/sys/serial.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/sys/serial.h b/sys/sys/serial.h
index e8f455e..1a149a9 100644
--- a/sys/sys/serial.h
+++ b/sys/sys/serial.h
@@ -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_ */
OpenPOWER on IntegriCloud