1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-11 14:10:34 +00:00

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.
This commit is contained in:
Marcel Moolenaar 2006-03-30 17:24:42 +00:00
parent 8346951353
commit 1d9c4393ff
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=157298

View File

@ -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_ */