diff options
32 files changed, 36 insertions, 12 deletions
diff --git a/sys/dev/hea/eni_intr.c b/sys/dev/hea/eni_intr.c index 4450627..f5f2f58 100644 --- a/sys/dev/hea/eni_intr.c +++ b/sys/dev/hea/eni_intr.c @@ -36,6 +36,7 @@ */ #include <sys/param.h> +#include <sys/systm.h> #include <sys/socket.h> #include <sys/syslog.h> #include <net/if.h> diff --git a/sys/dev/hea/eni_vcm.c b/sys/dev/hea/eni_vcm.c index ec3cd55..0af1f32 100644 --- a/sys/dev/hea/eni_vcm.c +++ b/sys/dev/hea/eni_vcm.c @@ -37,6 +37,7 @@ #include <sys/param.h> +#include <sys/systm.h> #include <sys/socket.h> #include <net/if.h> #include <netatm/port.h> diff --git a/sys/dev/hfa/fore_intr.c b/sys/dev/hfa/fore_intr.c index eebc6ec..2193a51 100644 --- a/sys/dev/hfa/fore_intr.c +++ b/sys/dev/hfa/fore_intr.c @@ -157,13 +157,8 @@ fore_intr(arg) /* * Clear the device interrupt */ - switch (fup->fu_config.ac_device) { - - case DEV_FORE_PCA200E: + if (fup->fu_config.ac_device == DEV_FORE_PCA200E) PCA200E_HCR_SET(*fup->fu_ctlreg, PCA200E_CLR_HBUS_INT); - break; - - } aap->aali_intr_sent = CP_WRITE(0); /* diff --git a/sys/dev/hfa/fore_load.c b/sys/dev/hfa/fore_load.c index 7043345..be58689 100644 --- a/sys/dev/hfa/fore_load.c +++ b/sys/dev/hfa/fore_load.c @@ -499,18 +499,14 @@ fore_reset(fup) if (fup->fu_ctlreg) { - switch (fup->fu_config.ac_device) { - - case DEV_FORE_PCA200E: + if (fup->fu_config.ac_device == DEV_FORE_PCA200E) { /* * Reset i960 by setting and clearing RESET */ PCA200E_HCR_INIT(*fup->fu_ctlreg, PCA200E_RESET); DELAY(10000); PCA200E_HCR_CLR(*fup->fu_ctlreg, PCA200E_RESET); - break; - - } + } } (void) splx(s); diff --git a/sys/netatm/atm_if.c b/sys/netatm/atm_if.c index 42bec3e..0260ee0 100644 --- a/sys/netatm/atm_if.c +++ b/sys/netatm/atm_if.c @@ -36,6 +36,7 @@ */ #include <sys/param.h> +#include <sys/systm.h> #include <sys/sockio.h> #include <sys/socket.h> #include <sys/socketvar.h> @@ -543,6 +544,9 @@ atm_physif_ioctl(code, data, arg) case MEDIA_UTP155: ifp->if_baudrate = 155000000; break; + case MEDIA_UNKNOWN: + ifp->if_baudrate = 9600; + break; } #endif diff --git a/sys/netatm/atm_signal.c b/sys/netatm/atm_signal.c index 2e107b5..dc31cfe 100644 --- a/sys/netatm/atm_signal.c +++ b/sys/netatm/atm_signal.c @@ -36,6 +36,7 @@ */ #include <sys/param.h> +#include <sys/systm.h> #include <sys/socket.h> #include <sys/socketvar.h> #include <net/if.h> diff --git a/sys/netatm/atm_socket.c b/sys/netatm/atm_socket.c index 649ec89..6d87791 100644 --- a/sys/netatm/atm_socket.c +++ b/sys/netatm/atm_socket.c @@ -36,6 +36,7 @@ */ #include <sys/param.h> +#include <sys/systm.h> #include <sys/malloc.h> #include <sys/socket.h> #include <sys/socketvar.h> diff --git a/sys/netatm/atm_usrreq.c b/sys/netatm/atm_usrreq.c index 41c2fd9..6965d9c 100644 --- a/sys/netatm/atm_usrreq.c +++ b/sys/netatm/atm_usrreq.c @@ -36,6 +36,7 @@ */ #include <sys/param.h> +#include <sys/systm.h> #include <sys/sockio.h> #include <sys/protosw.h> #include <sys/socket.h> diff --git a/sys/netatm/ipatm/ipatm_event.c b/sys/netatm/ipatm/ipatm_event.c index 7effe3f..5471ef2 100644 --- a/sys/netatm/ipatm/ipatm_event.c +++ b/sys/netatm/ipatm/ipatm_event.c @@ -37,6 +37,7 @@ #include <sys/param.h> #include <sys/types.h> +#include <sys/systm.h> #include <sys/time.h> #include <sys/socket.h> #include <sys/socketvar.h> diff --git a/sys/netatm/ipatm/ipatm_if.c b/sys/netatm/ipatm/ipatm_if.c index 7e002af..d0f381c 100644 --- a/sys/netatm/ipatm/ipatm_if.c +++ b/sys/netatm/ipatm/ipatm_if.c @@ -37,6 +37,7 @@ #include <sys/param.h> #include <sys/types.h> +#include <sys/systm.h> #include <sys/errno.h> #include <sys/time.h> #include <sys/socket.h> diff --git a/sys/netatm/ipatm/ipatm_load.c b/sys/netatm/ipatm/ipatm_load.c index 242692c..7112b3b 100644 --- a/sys/netatm/ipatm/ipatm_load.c +++ b/sys/netatm/ipatm/ipatm_load.c @@ -41,6 +41,7 @@ #include <sys/param.h> #include <sys/types.h> +#include <sys/systm.h> #include <sys/errno.h> #include <sys/time.h> #include <sys/kernel.h> diff --git a/sys/netatm/ipatm/ipatm_output.c b/sys/netatm/ipatm/ipatm_output.c index 50b8c2f..431f9ff 100644 --- a/sys/netatm/ipatm/ipatm_output.c +++ b/sys/netatm/ipatm/ipatm_output.c @@ -37,6 +37,7 @@ #include <sys/param.h> #include <sys/types.h> +#include <sys/systm.h> #include <sys/errno.h> #include <sys/time.h> #include <sys/socket.h> diff --git a/sys/netatm/ipatm/ipatm_vcm.c b/sys/netatm/ipatm/ipatm_vcm.c index 710de5c..aceb804 100644 --- a/sys/netatm/ipatm/ipatm_vcm.c +++ b/sys/netatm/ipatm/ipatm_vcm.c @@ -37,6 +37,7 @@ #include <sys/param.h> #include <sys/types.h> +#include <sys/systm.h> #include <sys/errno.h> #include <sys/time.h> #include <sys/socket.h> diff --git a/sys/netatm/spans/spans_cls.c b/sys/netatm/spans/spans_cls.c index 1d63c654..aff39b2 100644 --- a/sys/netatm/spans/spans_cls.c +++ b/sys/netatm/spans/spans_cls.c @@ -37,6 +37,7 @@ #include <sys/param.h> #include <sys/types.h> +#include <sys/systm.h> #include <sys/errno.h> #include <sys/time.h> #include <sys/socket.h> diff --git a/sys/netatm/spans/spans_subr.c b/sys/netatm/spans/spans_subr.c index b536ed3..5dbee5e 100644 --- a/sys/netatm/spans/spans_subr.c +++ b/sys/netatm/spans/spans_subr.c @@ -37,6 +37,7 @@ #include <sys/param.h> #include <sys/types.h> +#include <sys/systm.h> #include <sys/errno.h> #include <sys/time.h> #include <sys/socket.h> diff --git a/sys/netatm/uni/sscf_uni.c b/sys/netatm/uni/sscf_uni.c index d0ebf9d..de9c32a 100644 --- a/sys/netatm/uni/sscf_uni.c +++ b/sys/netatm/uni/sscf_uni.c @@ -37,6 +37,7 @@ #include <sys/param.h> #include <sys/types.h> +#include <sys/systm.h> #include <sys/errno.h> #include <sys/time.h> #include <sys/socket.h> diff --git a/sys/netatm/uni/sscf_uni_lower.c b/sys/netatm/uni/sscf_uni_lower.c index 02ffa6b..d8c3677 100644 --- a/sys/netatm/uni/sscf_uni_lower.c +++ b/sys/netatm/uni/sscf_uni_lower.c @@ -37,6 +37,7 @@ #include <sys/param.h> #include <sys/types.h> +#include <sys/systm.h> #include <sys/time.h> #include <sys/socket.h> #include <sys/socketvar.h> diff --git a/sys/netatm/uni/sscf_uni_upper.c b/sys/netatm/uni/sscf_uni_upper.c index d88f65d..8f4d0c8 100644 --- a/sys/netatm/uni/sscf_uni_upper.c +++ b/sys/netatm/uni/sscf_uni_upper.c @@ -37,6 +37,7 @@ #include <sys/param.h> #include <sys/types.h> +#include <sys/systm.h> #include <sys/time.h> #include <sys/socket.h> #include <sys/socketvar.h> diff --git a/sys/netatm/uni/sscop.c b/sys/netatm/uni/sscop.c index 3de4ef0..9381077 100644 --- a/sys/netatm/uni/sscop.c +++ b/sys/netatm/uni/sscop.c @@ -37,6 +37,7 @@ #include <sys/param.h> #include <sys/types.h> +#include <sys/systm.h> #include <sys/errno.h> #include <sys/time.h> #include <sys/socket.h> diff --git a/sys/netatm/uni/sscop_lower.c b/sys/netatm/uni/sscop_lower.c index dbaf1c4..bfb8eb7 100644 --- a/sys/netatm/uni/sscop_lower.c +++ b/sys/netatm/uni/sscop_lower.c @@ -37,6 +37,7 @@ #include <sys/param.h> #include <sys/types.h> +#include <sys/systm.h> #include <sys/time.h> #include <sys/socket.h> #include <sys/socketvar.h> diff --git a/sys/netatm/uni/sscop_subr.c b/sys/netatm/uni/sscop_subr.c index 3d4beb4..7981813 100644 --- a/sys/netatm/uni/sscop_subr.c +++ b/sys/netatm/uni/sscop_subr.c @@ -37,6 +37,7 @@ #include <sys/param.h> #include <sys/types.h> +#include <sys/systm.h> #include <sys/time.h> #include <sys/socket.h> #include <sys/socketvar.h> diff --git a/sys/netatm/uni/sscop_upper.c b/sys/netatm/uni/sscop_upper.c index d1e7c7a..107c974 100644 --- a/sys/netatm/uni/sscop_upper.c +++ b/sys/netatm/uni/sscop_upper.c @@ -37,6 +37,7 @@ #include <sys/param.h> #include <sys/types.h> +#include <sys/systm.h> #include <sys/time.h> #include <sys/socket.h> #include <sys/socketvar.h> diff --git a/sys/netatm/uni/uni_load.c b/sys/netatm/uni/uni_load.c index fddc8f2..a035254 100644 --- a/sys/netatm/uni/uni_load.c +++ b/sys/netatm/uni/uni_load.c @@ -41,6 +41,7 @@ #include <sys/param.h> #include <sys/types.h> +#include <sys/systm.h> #include <sys/errno.h> #include <sys/time.h> #include <sys/kernel.h> diff --git a/sys/netatm/uni/uniarp_input.c b/sys/netatm/uni/uniarp_input.c index e6f42f4..271fcfd 100644 --- a/sys/netatm/uni/uniarp_input.c +++ b/sys/netatm/uni/uniarp_input.c @@ -37,6 +37,7 @@ #include <sys/param.h> #include <sys/types.h> +#include <sys/systm.h> #include <sys/time.h> #include <sys/socket.h> #include <sys/socketvar.h> diff --git a/sys/netatm/uni/uniarp_output.c b/sys/netatm/uni/uniarp_output.c index efc6cbd..c83a78f 100644 --- a/sys/netatm/uni/uniarp_output.c +++ b/sys/netatm/uni/uniarp_output.c @@ -37,6 +37,7 @@ #include <sys/param.h> #include <sys/types.h> +#include <sys/systm.h> #include <sys/time.h> #include <sys/socket.h> #include <sys/socketvar.h> diff --git a/sys/netatm/uni/uniarp_vcm.c b/sys/netatm/uni/uniarp_vcm.c index 95c3c3e..5903e04 100644 --- a/sys/netatm/uni/uniarp_vcm.c +++ b/sys/netatm/uni/uniarp_vcm.c @@ -37,6 +37,7 @@ #include <sys/param.h> #include <sys/types.h> +#include <sys/systm.h> #include <sys/time.h> #include <sys/socket.h> #include <sys/socketvar.h> diff --git a/sys/netatm/uni/unisig_encode.c b/sys/netatm/uni/unisig_encode.c index d2e0383..227130a 100644 --- a/sys/netatm/uni/unisig_encode.c +++ b/sys/netatm/uni/unisig_encode.c @@ -37,6 +37,7 @@ #include <sys/param.h> #include <sys/types.h> +#include <sys/systm.h> #include <sys/errno.h> #include <sys/time.h> #include <sys/socket.h> diff --git a/sys/netatm/uni/unisig_mbuf.c b/sys/netatm/uni/unisig_mbuf.c index f5d90cf..5123ecc 100644 --- a/sys/netatm/uni/unisig_mbuf.c +++ b/sys/netatm/uni/unisig_mbuf.c @@ -37,6 +37,7 @@ #include <sys/param.h> #include <sys/types.h> +#include <sys/systm.h> #include <sys/errno.h> #include <sys/time.h> #include <sys/socket.h> diff --git a/sys/netatm/uni/unisig_msg.c b/sys/netatm/uni/unisig_msg.c index 246191d..542ce18 100644 --- a/sys/netatm/uni/unisig_msg.c +++ b/sys/netatm/uni/unisig_msg.c @@ -37,6 +37,7 @@ #include <sys/param.h> #include <sys/types.h> +#include <sys/systm.h> #include <sys/errno.h> #include <sys/time.h> #include <sys/socket.h> diff --git a/sys/netatm/uni/unisig_print.c b/sys/netatm/uni/unisig_print.c index 37abbe5..a429da2 100644 --- a/sys/netatm/uni/unisig_print.c +++ b/sys/netatm/uni/unisig_print.c @@ -37,6 +37,7 @@ #include <sys/param.h> #include <sys/types.h> +#include <sys/systm.h> #include <sys/time.h> #include <sys/socket.h> #include <net/if.h> diff --git a/sys/netatm/uni/unisig_proto.c b/sys/netatm/uni/unisig_proto.c index 8422b9a..65a9d04 100644 --- a/sys/netatm/uni/unisig_proto.c +++ b/sys/netatm/uni/unisig_proto.c @@ -37,6 +37,7 @@ #include <sys/param.h> #include <sys/types.h> +#include <sys/systm.h> #include <sys/time.h> #include <sys/socket.h> #include <sys/socketvar.h> diff --git a/sys/netatm/uni/unisig_sigmgr_state.c b/sys/netatm/uni/unisig_sigmgr_state.c index 4de204c..f1ada5a 100644 --- a/sys/netatm/uni/unisig_sigmgr_state.c +++ b/sys/netatm/uni/unisig_sigmgr_state.c @@ -37,6 +37,7 @@ #include <sys/param.h> #include <sys/types.h> +#include <sys/systm.h> #include <sys/malloc.h> #include <sys/time.h> #include <sys/socket.h> |