From 3e7af4a9665cdd7b30f61045cc0ae4c494d0c7a8 Mon Sep 17 00:00:00 2001 From: hm Date: Sun, 17 Mar 2002 09:33:15 +0000 Subject: Clean up the i4b kernel part: remove unmaintained #if(def)s for NetBSD, OpenBSD and BSD/OS and respective code, remove pre $FreeBSD CVS id's, remove #if(def)s and respective code for FreeBSD versions < 5 . --- sys/i4b/layer2/i4b_l2.c | 31 ++++--------------------------- 1 file changed, 4 insertions(+), 27 deletions(-) (limited to 'sys/i4b/layer2/i4b_l2.c') diff --git a/sys/i4b/layer2/i4b_l2.c b/sys/i4b/layer2/i4b_l2.c index 96a4a15..745b465 100644 --- a/sys/i4b/layer2/i4b_l2.c +++ b/sys/i4b/layer2/i4b_l2.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2001 Hellmuth Michaelis. All rights reserved. + * Copyright (c) 1997, 2002 Hellmuth Michaelis. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -29,15 +29,12 @@ * * $FreeBSD$ * - * last edit-date: [Fri Jan 12 16:43:31 2001] + * last edit-date: [Sat Mar 9 16:11:14 2002] * *---------------------------------------------------------------------------*/ -#ifdef __FreeBSD__ #include "i4bq921.h" -#else -#define NI4BQ921 1 -#endif + #if NI4BQ921 > 0 #include @@ -46,16 +43,7 @@ #include #include -#if defined(__NetBSD__) && __NetBSD_Version__ >= 104230000 -#include -#endif - -#ifdef __FreeBSD__ #include -#else -#include -#include -#endif #include #include @@ -276,29 +264,18 @@ i4b_mph_status_ind(int unit, int status, int parm) l2sc->unit = unit; l2sc->i_queue.ifq_maxlen = IQUEUE_MAXLEN; -#if defined(__FreeBSD__) && __FreeBSD__ > 4 if(!mtx_initialized(&l2sc->i_queue.ifq_mtx)) mtx_init(&l2sc->i_queue.ifq_mtx, "i4b_l2sc", MTX_DEF); -#endif + l2sc->ua_frame = NULL; bzero(&l2sc->stat, sizeof(lapdstat_t)); i4b_l2_unit_init(unit); -#if defined(__FreeBSD__) /* initialize the callout handles for timeout routines */ callout_handle_init(&l2sc->T200_callout); callout_handle_init(&l2sc->T202_callout); callout_handle_init(&l2sc->T203_callout); callout_handle_init(&l2sc->IFQU_callout); -#endif -#if defined(__NetBSD__) && __NetBSD_Version__ >= 104230000 - /* initialize the callout handles for timeout routines */ - callout_init(&l2sc->T200_callout); - callout_init(&l2sc->T202_callout); - callout_init(&l2sc->T203_callout); - callout_init(&l2sc->IFQU_callout); -#endif - break; case STI_L1STAT: /* state of layer 1 */ -- cgit v1.1