diff options
author | marcel <marcel@FreeBSD.org> | 2006-03-30 17:24:42 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2006-03-30 17:24:42 +0000 |
commit | 2801d7e75db117349d0c242e9d29ce4976370bbc (patch) | |
tree | 4bd939b7b2864b7d16a6104a129aaf847066b20b | |
parent | 8e9f421e3387bd0f074dddaff054b1ce0e7c049b (diff) | |
download | FreeBSD-src-2801d7e75db117349d0c242e9d29ce4976370bbc.zip FreeBSD-src-2801d7e75db117349d0c242e9d29ce4976370bbc.tar.gz |
o Don't make the SER_INT_* defines visible to userland. They
are related to internals, not user-visible state.
o Add a typedef for serdev_intr_t and protect it with !LOCORE.
-rw-r--r-- | sys/sys/serial.h | 7 |
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_ */ |