From 5906e69ac2512d8d617d3b64ecf9b439db30df0e Mon Sep 17 00:00:00 2001 From: Brooks Davis Date: Mon, 2 Sep 2002 00:52:11 +0000 Subject: [PATCH] Continue de-counting i4b. Devices i4bctl, i4bcapi, iavc, i4bq921, i4bq931, i4b, isic, iwic, ifpi, ifpi2, ifpnp, ihfc, and itjc are no longer count devices. Also remove a few other instances of N being used to control compilation of whole files. Reviewed by: hm --- sys/conf/files | 18 ++++----- sys/conf/files.i386 | 14 +++---- sys/conf/files.pc98 | 14 +++---- sys/i386/conf/NOTES | 26 ++++++------- sys/i4b/capi/capi_l4if.c | 5 --- sys/i4b/capi/capi_llif.c | 5 --- sys/i4b/capi/capi_msgs.c | 5 --- sys/i4b/capi/iavc/iavc_card.c | 7 ---- sys/i4b/capi/iavc/iavc_isa.c | 7 ---- sys/i4b/capi/iavc/iavc_lli.c | 7 ---- sys/i4b/capi/iavc/iavc_pci.c | 7 ---- sys/i4b/driver/i4b_ctl.c | 10 ----- sys/i4b/driver/i4b_ing.c | 4 -- sys/i4b/driver/i4b_ipr.c | 4 -- sys/i4b/driver/i4b_isppp.c | 4 -- sys/i4b/driver/i4b_rbch.c | 4 -- sys/i4b/driver/i4b_tel.c | 4 -- sys/i4b/driver/i4b_trace.c | 4 -- sys/i4b/layer1/i4b_l1dmux.c | 50 ------------------------- sys/i4b/layer1/ifpi/i4b_ifpi_isac.c | 6 --- sys/i4b/layer1/ifpi/i4b_ifpi_l1.c | 6 --- sys/i4b/layer1/ifpi/i4b_ifpi_l1fsm.c | 6 --- sys/i4b/layer1/ifpi/i4b_ifpi_pci.c | 6 --- sys/i4b/layer1/ifpi2/i4b_ifpi2_isacsx.c | 6 --- sys/i4b/layer1/ifpi2/i4b_ifpi2_l1.c | 6 --- sys/i4b/layer1/ifpi2/i4b_ifpi2_l1fsm.c | 6 --- sys/i4b/layer1/ifpi2/i4b_ifpi2_pci.c | 6 --- sys/i4b/layer1/ifpnp/i4b_ifpnp_avm.c | 5 --- sys/i4b/layer1/ifpnp/i4b_ifpnp_isac.c | 6 --- sys/i4b/layer1/ifpnp/i4b_ifpnp_l1.c | 6 --- sys/i4b/layer1/ifpnp/i4b_ifpnp_l1fsm.c | 6 --- sys/i4b/layer1/ihfc/i4b_ihfc_drv.c | 6 --- sys/i4b/layer1/ihfc/i4b_ihfc_l1if.c | 6 --- sys/i4b/layer1/ihfc/i4b_ihfc_pnp.c | 6 --- sys/i4b/layer1/isic/i4b_asuscom_ipac.c | 5 +-- sys/i4b/layer1/isic/i4b_avm_a1.c | 5 +-- sys/i4b/layer1/isic/i4b_bchan.c | 6 --- sys/i4b/layer1/isic/i4b_ctx_s0P.c | 5 +-- sys/i4b/layer1/isic/i4b_diva.c | 5 +-- sys/i4b/layer1/isic/i4b_drn_ngo.c | 5 +-- sys/i4b/layer1/isic/i4b_dynalink.c | 5 +-- sys/i4b/layer1/isic/i4b_elsa_pcc16.c | 5 +-- sys/i4b/layer1/isic/i4b_elsa_qs1i.c | 5 +-- sys/i4b/layer1/isic/i4b_elsa_qs1p.c | 5 +-- sys/i4b/layer1/isic/i4b_hscx.c | 6 --- sys/i4b/layer1/isic/i4b_isac.c | 6 --- sys/i4b/layer1/isic/i4b_isic.c | 6 --- sys/i4b/layer1/isic/i4b_isic_isa.c | 4 -- sys/i4b/layer1/isic/i4b_isic_pnp.c | 4 -- sys/i4b/layer1/isic/i4b_itk_ix1.c | 5 +-- sys/i4b/layer1/isic/i4b_l1.c | 6 --- sys/i4b/layer1/isic/i4b_l1fsm.c | 7 ---- sys/i4b/layer1/isic/i4b_siemens_isurf.c | 5 +-- sys/i4b/layer1/isic/i4b_sws.c | 5 +-- sys/i4b/layer1/isic/i4b_tel_s016.c | 6 +-- sys/i4b/layer1/isic/i4b_tel_s0163.c | 6 +-- sys/i4b/layer1/isic/i4b_tel_s08.c | 6 +-- sys/i4b/layer1/isic/i4b_usr_sti.c | 5 +-- sys/i4b/layer1/itjc/i4b_itjc_isac.c | 6 --- sys/i4b/layer1/itjc/i4b_itjc_l1.c | 6 --- sys/i4b/layer1/itjc/i4b_itjc_l1fsm.c | 6 --- sys/i4b/layer1/itjc/i4b_itjc_pci.c | 5 --- sys/i4b/layer1/iwic/i4b_iwic_bchan.c | 5 --- sys/i4b/layer1/iwic/i4b_iwic_dchan.c | 5 --- sys/i4b/layer1/iwic/i4b_iwic_fsm.c | 5 --- sys/i4b/layer1/iwic/i4b_iwic_l1if.c | 5 --- sys/i4b/layer1/iwic/i4b_iwic_pci.c | 5 --- sys/i4b/layer2/i4b_iframe.c | 6 --- sys/i4b/layer2/i4b_l2.c | 6 --- sys/i4b/layer2/i4b_l2fsm.c | 6 --- sys/i4b/layer2/i4b_l2timer.c | 6 --- sys/i4b/layer2/i4b_lme.c | 6 --- sys/i4b/layer2/i4b_sframe.c | 6 --- sys/i4b/layer2/i4b_tei.c | 6 --- sys/i4b/layer2/i4b_uframe.c | 6 --- sys/i4b/layer2/i4b_util.c | 7 ---- sys/i4b/layer3/i4b_l2if.c | 6 --- sys/i4b/layer3/i4b_l3fsm.c | 6 --- sys/i4b/layer3/i4b_l3timer.c | 7 ---- sys/i4b/layer3/i4b_l4if.c | 6 --- sys/i4b/layer3/i4b_q931.c | 6 --- sys/i4b/layer3/i4b_q932fac.c | 6 --- sys/i4b/layer4/i4b_i4bdrv.c | 9 ----- sys/i4b/layer4/i4b_l4.c | 5 --- sys/i4b/layer4/i4b_l4mgmt.c | 6 --- sys/i4b/layer4/i4b_l4timer.c | 6 --- 86 files changed, 70 insertions(+), 512 deletions(-) diff --git a/sys/conf/files b/sys/conf/files index ba608e961649..4d2e14b417d3 100644 --- a/sys/conf/files +++ b/sys/conf/files @@ -817,23 +817,23 @@ i4b/driver/i4b_rbch.c count i4brbch i4b/driver/i4b_tel.c count i4btel i4b/driver/i4b_ipr.c count i4bipr net/slcompress.c optional i4bipr -i4b/driver/i4b_ctl.c count i4bctl +i4b/driver/i4b_ctl.c optional i4bctl i4b/driver/i4b_ing.c count i4bing i4b/driver/i4b_isppp.c count i4bisppp net/slcompress.c optional i4bisppp # # isdn4bsd CAPI driver # -i4b/capi/capi_l4if.c count i4bcapi +i4b/capi/capi_l4if.c optional i4bcapi i4b/capi/capi_llif.c optional i4bcapi i4b/capi/capi_msgs.c optional i4bcapi # # isdn4bsd AVM B1/T1 CAPI driver # -i4b/capi/iavc/iavc_pci.c count iavc pci -i4b/capi/iavc/iavc_isa.c optional iavc -i4b/capi/iavc/iavc_lli.c optional iavc -i4b/capi/iavc/iavc_card.c optional iavc +i4b/capi/iavc/iavc_pci.c optional iavc i4bcapi pci +i4b/capi/iavc/iavc_isa.c optional iavc i4bcapi isa +i4b/capi/iavc/iavc_lli.c optional iavc i4bcapi +i4b/capi/iavc/iavc_card.c optional iavc i4bcapi # # isdn4bsd support # @@ -841,7 +841,7 @@ i4b/layer2/i4b_mbuf.c optional i4btrc # # isdn4bsd Q.921 handler # -i4b/layer2/i4b_l2.c count i4bq921 +i4b/layer2/i4b_l2.c optional i4bq921 i4b/layer2/i4b_l2fsm.c optional i4bq921 i4b/layer2/i4b_uframe.c optional i4bq921 i4b/layer2/i4b_tei.c optional i4bq921 @@ -853,7 +853,7 @@ i4b/layer2/i4b_lme.c optional i4bq921 # # isdn4bsd Q.931 handler # -i4b/layer3/i4b_q931.c count i4bq931 +i4b/layer3/i4b_q931.c optional i4bq931 i4b/layer3/i4b_l3fsm.c optional i4bq931 i4b/layer3/i4b_l3timer.c optional i4bq931 i4b/layer3/i4b_l2if.c optional i4bq931 @@ -862,7 +862,7 @@ i4b/layer3/i4b_q932fac.c optional i4bq931 # # isdn4bsd control device driver, interface to isdnd # -i4b/layer4/i4b_i4bdrv.c count i4b +i4b/layer4/i4b_i4bdrv.c optional i4b i4b/layer4/i4b_l4.c optional i4b i4b/layer4/i4b_l4mgmt.c optional i4b i4b/layer4/i4b_l4timer.c optional i4b diff --git a/sys/conf/files.i386 b/sys/conf/files.i386 index 64457159612a..9148b832371b 100644 --- a/sys/conf/files.i386 +++ b/sys/conf/files.i386 @@ -332,7 +332,7 @@ i4b/layer1/isic/i4b_elsa_qs1p.c optional isic pci i4b/layer1/isic/i4b_elsa_pcc16.c optional isic i4b/layer1/isic/i4b_hscx.c optional isic i4b/layer1/isic/i4b_isac.c optional isic -i4b/layer1/isic/i4b_isic.c count isic +i4b/layer1/isic/i4b_isic.c optional isic i4b/layer1/isic/i4b_isic_isa.c optional isic i4b/layer1/isic/i4b_isic_pnp.c optional isic i4b/layer1/isic/i4b_itk_ix1.c optional isic @@ -348,7 +348,7 @@ i4b/layer1/isic/i4b_diva.c optional isic # # isdn4bsd, iwic # -i4b/layer1/iwic/i4b_iwic_pci.c count iwic pci +i4b/layer1/iwic/i4b_iwic_pci.c optional iwic pci i4b/layer1/iwic/i4b_iwic_dchan.c optional iwic pci i4b/layer1/iwic/i4b_iwic_bchan.c optional iwic pci i4b/layer1/iwic/i4b_iwic_fsm.c optional iwic pci @@ -356,34 +356,34 @@ i4b/layer1/iwic/i4b_iwic_l1if.c optional iwic pci # # isdn4bsd, ifpi # -i4b/layer1/ifpi/i4b_ifpi_pci.c count ifpi pci +i4b/layer1/ifpi/i4b_ifpi_pci.c optional ifpi pci i4b/layer1/ifpi/i4b_ifpi_isac.c optional ifpi pci i4b/layer1/ifpi/i4b_ifpi_l1.c optional ifpi pci i4b/layer1/ifpi/i4b_ifpi_l1fsm.c optional ifpi pci # # isdn4bsd, ifpi2 # -i4b/layer1/ifpi2/i4b_ifpi2_pci.c count ifpi2 pci +i4b/layer1/ifpi2/i4b_ifpi2_pci.c optional ifpi2 pci i4b/layer1/ifpi2/i4b_ifpi2_isacsx.c optional ifpi2 pci i4b/layer1/ifpi2/i4b_ifpi2_l1.c optional ifpi2 pci i4b/layer1/ifpi2/i4b_ifpi2_l1fsm.c optional ifpi2 pci # # isdn4bsd, ifpnp # -i4b/layer1/ifpnp/i4b_ifpnp_avm.c count ifpnp +i4b/layer1/ifpnp/i4b_ifpnp_avm.c optional ifpnp i4b/layer1/ifpnp/i4b_ifpnp_isac.c optional ifpnp i4b/layer1/ifpnp/i4b_ifpnp_l1.c optional ifpnp i4b/layer1/ifpnp/i4b_ifpnp_l1fsm.c optional ifpnp # # isdn4bsd, ihfc # -i4b/layer1/ihfc/i4b_ihfc_l1if.c count ihfc +i4b/layer1/ihfc/i4b_ihfc_l1if.c optional ihfc i4b/layer1/ihfc/i4b_ihfc_pnp.c optional ihfc i4b/layer1/ihfc/i4b_ihfc_drv.c optional ihfc # # isdn4bsd, itjc # -i4b/layer1/itjc/i4b_itjc_pci.c count itjc +i4b/layer1/itjc/i4b_itjc_pci.c optional itjc i4b/layer1/itjc/i4b_itjc_isac.c optional itjc i4b/layer1/itjc/i4b_itjc_l1.c optional itjc i4b/layer1/itjc/i4b_itjc_l1fsm.c optional itjc diff --git a/sys/conf/files.pc98 b/sys/conf/files.pc98 index f10f6f7af4f9..1906595e59cf 100644 --- a/sys/conf/files.pc98 +++ b/sys/conf/files.pc98 @@ -298,7 +298,7 @@ i4b/layer1/isic/i4b_elsa_qs1p.c optional isic pci i4b/layer1/isic/i4b_elsa_pcc16.c optional isic i4b/layer1/isic/i4b_hscx.c optional isic i4b/layer1/isic/i4b_isac.c optional isic -i4b/layer1/isic/i4b_isic.c count isic +i4b/layer1/isic/i4b_isic.c optional isic i4b/layer1/isic/i4b_isic_isa.c optional isic i4b/layer1/isic/i4b_isic_pnp.c optional isic i4b/layer1/isic/i4b_itk_ix1.c optional isic @@ -314,7 +314,7 @@ i4b/layer1/isic/i4b_diva.c optional isic # # isdn4bsd, iwic # -i4b/layer1/iwic/i4b_iwic_pci.c count iwic pci +i4b/layer1/iwic/i4b_iwic_pci.c optional iwic pci i4b/layer1/iwic/i4b_iwic_dchan.c optional iwic pci i4b/layer1/iwic/i4b_iwic_bchan.c optional iwic pci i4b/layer1/iwic/i4b_iwic_fsm.c optional iwic pci @@ -322,34 +322,34 @@ i4b/layer1/iwic/i4b_iwic_l1if.c optional iwic pci # # isdn4bsd, ifpi # -i4b/layer1/ifpi/i4b_ifpi_pci.c count ifpi pci +i4b/layer1/ifpi/i4b_ifpi_pci.c optional ifpi pci i4b/layer1/ifpi/i4b_ifpi_isac.c optional ifpi pci i4b/layer1/ifpi/i4b_ifpi_l1.c optional ifpi pci i4b/layer1/ifpi/i4b_ifpi_l1fsm.c optional ifpi pci # # isdn4bsd, ifpi2 # -i4b/layer1/ifpi2/i4b_ifpi2_pci.c count ifpi2 pci +i4b/layer1/ifpi2/i4b_ifpi2_pci.c optional ifpi2 pci i4b/layer1/ifpi2/i4b_ifpi2_isacsx.c optional ifpi2 pci i4b/layer1/ifpi2/i4b_ifpi2_l1.c optional ifpi2 pci i4b/layer1/ifpi2/i4b_ifpi2_l1fsm.c optional ifpi2 pci # # isdn4bsd, ifpnp # -i4b/layer1/ifpnp/i4b_ifpnp_avm.c count ifpnp +i4b/layer1/ifpnp/i4b_ifpnp_avm.c optional ifpnp i4b/layer1/ifpnp/i4b_ifpnp_isac.c optional ifpnp i4b/layer1/ifpnp/i4b_ifpnp_l1.c optional ifpnp i4b/layer1/ifpnp/i4b_ifpnp_l1fsm.c optional ifpnp # # isdn4bsd, ihfc # -i4b/layer1/ihfc/i4b_ihfc_l1if.c count ihfc +i4b/layer1/ihfc/i4b_ihfc_l1if.c optional ihfc i4b/layer1/ihfc/i4b_ihfc_pnp.c optional ihfc i4b/layer1/ihfc/i4b_ihfc_drv.c optional ihfc # # isdn4bsd, itjc # -i4b/layer1/itjc/i4b_itjc_pci.c count itjc +i4b/layer1/itjc/i4b_itjc_pci.c optional itjc i4b/layer1/itjc/i4b_itjc_isac.c optional itjc i4b/layer1/itjc/i4b_itjc_l1.c optional itjc i4b/layer1/itjc/i4b_itjc_l1fsm.c optional itjc diff --git a/sys/i386/conf/NOTES b/sys/i386/conf/NOTES index ad6e6ec31778..d64c9fe60326 100644 --- a/sys/i386/conf/NOTES +++ b/sys/i386/conf/NOTES @@ -664,7 +664,7 @@ hint.pcf.0.irq="5" #--------------------------------------------------------------------------- # isic driver (Siemens/Infineon chipsets) # -device isic 1 +device isic # # ISA bus non-PnP Cards: # ---------------------- @@ -763,7 +763,7 @@ options ELSA_QS1PCI # ifpnp driver for AVM Fritz!Card PnP # # AVM Fritz!Card PnP -device ifpnp 1 +device ifpnp # #--------------------------------------------------------------------------- # ihfc driver for Cologne Chip ISA chipsets (experimental!) @@ -771,37 +771,37 @@ device ifpnp 1 # Teles 16.3c ISA PnP # AcerISDN P10 ISA PnP # TELEINT ISDN SPEED No.1 -device ihfc 1 +device ihfc # #--------------------------------------------------------------------------- # ifpi driver for AVM Fritz!Card PCI # # AVM Fritz!Card PCI -device ifpi 1 +device ifpi # #--------------------------------------------------------------------------- # ifpi2 driver for AVM Fritz!Card PCI version 2 # # AVM Fritz!Card PCI version 2 -device "ifpi2" 1 +device "ifpi2" # #--------------------------------------------------------------------------- # iwic driver for Winbond W6692 chipset # # ASUSCOM P-IN100-ST-D (and other Winbond W6692 based cards) -device iwic 1 +device iwic # #--------------------------------------------------------------------------- # itjc driver for Simens ISAC / TJNet Tiger300/320 chipset # # Traverse Technologies NETjet-S # Teles PCI-TJ -device itjc 1 +device itjc # #--------------------------------------------------------------------------- # iavc driver (AVM active cards, needs i4bcapi driver!) # -device iavc 1 +device iavc # # AVM B1 ISA bus (PnP mode not supported!) # ---------------------------------------- @@ -813,13 +813,13 @@ hint.iavc.0.irq="5" # ISDN Protocol Stack - mandatory for all hardware drivers # # Q.921 / layer 2 - i4b passive cards D channel handling -device "i4bq921" 1 +device "i4bq921" # # Q.931 / layer 3 - i4b passive cards D channel handling -device "i4bq931" 1 +device "i4bq931" # # layer 4 - i4b common passive and active card handling -device "i4b" 1 +device "i4b" # #--------------------------------------------------------------------------- # ISDN devices - mandatory for all hardware drivers @@ -828,7 +828,7 @@ device "i4b" 1 device "i4btrc" 4 # # userland driver to control the whole thing -device "i4bctl" 1 +device "i4bctl" # #--------------------------------------------------------------------------- # ISDN devices - optional @@ -854,7 +854,7 @@ device "i4bisppp" 4 device "i4bing" 2 # # CAPI driver needed for active ISDN cards (see iavc driver above) -device "i4bcapi" 1 +device "i4bcapi" # #--------------------------------------------------------------------------- diff --git a/sys/i4b/capi/capi_l4if.c b/sys/i4b/capi/capi_l4if.c index f68eff761236..9664e3b0f6f9 100644 --- a/sys/i4b/capi/capi_l4if.c +++ b/sys/i4b/capi/capi_l4if.c @@ -27,9 +27,6 @@ * $FreeBSD$ */ -#include "i4bcapi.h" -#if NI4BCAPI > 0 - #include #include #include @@ -446,5 +443,3 @@ n_download(int unit, int numprotos, struct isdn_dr_prot *protocols) return(0); } - -#endif /* NI4BCAPI > 0 */ diff --git a/sys/i4b/capi/capi_llif.c b/sys/i4b/capi/capi_llif.c index a02286143f7f..37ba9676ced7 100644 --- a/sys/i4b/capi/capi_llif.c +++ b/sys/i4b/capi/capi_llif.c @@ -27,9 +27,6 @@ * $FreeBSD$ */ -#include "i4bcapi.h" -#if NI4BCAPI > 0 - #include #include #include @@ -162,5 +159,3 @@ capi_ll_receive(capi_softc_t *sc, struct mbuf *m) i4b_Dfreembuf(m); return(0); } - -#endif /* NI4BCAPI > 0*/ diff --git a/sys/i4b/capi/capi_msgs.c b/sys/i4b/capi/capi_msgs.c index 5c1698f35dcc..e2031ecf72f2 100644 --- a/sys/i4b/capi/capi_msgs.c +++ b/sys/i4b/capi/capi_msgs.c @@ -27,9 +27,6 @@ * $FreeBSD$ */ -#include "i4bcapi.h" -#if NI4BCAPI > 0 - #include #include #include @@ -949,5 +946,3 @@ void capi_disconnect_ind(capi_softc_t *sc, struct mbuf *m_in) sc->send(sc, m); } - -#endif /* NI4BCAPI > 0 */ diff --git a/sys/i4b/capi/iavc/iavc_card.c b/sys/i4b/capi/iavc/iavc_card.c index 70bb66fd03f0..da2b671fe01f 100644 --- a/sys/i4b/capi/iavc/iavc_card.c +++ b/sys/i4b/capi/iavc/iavc_card.c @@ -28,11 +28,6 @@ * $FreeBSD$ */ -#include "iavc.h" -#include "i4bcapi.h" - -#if (NIAVC > 0) && (NI4BCAPI > 0) - #include #include #include @@ -287,5 +282,3 @@ void t1_reset(iavc_softc_t *sc) iavc_write_port(sc, T1_IRQMASTER, 0x00); iavc_write_port(sc, T1_RESETBOARD, 0x0f); } - -#endif diff --git a/sys/i4b/capi/iavc/iavc_isa.c b/sys/i4b/capi/iavc/iavc_isa.c index b1d53be28770..1027f284b59e 100644 --- a/sys/i4b/capi/iavc/iavc_isa.c +++ b/sys/i4b/capi/iavc/iavc_isa.c @@ -25,11 +25,6 @@ * $FreeBSD$ */ -#include "iavc.h" -#include "i4bcapi.h" - -#if (NIAVC > 0) && (NI4BCAPI > 0) - #include #include #include @@ -293,5 +288,3 @@ iavc_isa_intr(struct iavc_softc *sc) { iavc_handle_intr(sc); } - -#endif diff --git a/sys/i4b/capi/iavc/iavc_lli.c b/sys/i4b/capi/iavc/iavc_lli.c index 26af86a492c7..b29254c308ae 100644 --- a/sys/i4b/capi/iavc/iavc_lli.c +++ b/sys/i4b/capi/iavc/iavc_lli.c @@ -28,11 +28,6 @@ * $FreeBSD$ */ -#include "iavc.h" -#include "i4bcapi.h" - -#if (NIAVC > 0) && (NI4BCAPI > 0) - #include #include #include @@ -830,5 +825,3 @@ static void iavc_start_tx(iavc_softc_t *sc) AMCC_WRITE(sc, AMCC_INTCSR, sc->sc_csr); } } - -#endif diff --git a/sys/i4b/capi/iavc/iavc_pci.c b/sys/i4b/capi/iavc/iavc_pci.c index 8162f98d3a08..8cef025c864a 100644 --- a/sys/i4b/capi/iavc/iavc_pci.c +++ b/sys/i4b/capi/iavc/iavc_pci.c @@ -28,11 +28,6 @@ * $FreeBSD$ */ -#include "iavc.h" -#include "i4bcapi.h" - -#if (NIAVC > 0) && (NI4BCAPI > 0) - #include #include #include @@ -277,5 +272,3 @@ iavc_pci_intr(struct iavc_softc *sc) { iavc_handle_intr(sc); } - -#endif diff --git a/sys/i4b/driver/i4b_ctl.c b/sys/i4b/driver/i4b_ctl.c index ad32408223e5..bafe362536d1 100644 --- a/sys/i4b/driver/i4b_ctl.c +++ b/sys/i4b/driver/i4b_ctl.c @@ -33,14 +33,6 @@ * *---------------------------------------------------------------------------*/ -#include "i4bctl.h" - -#if NI4BCTL > 1 -#error "only 1 (one) i4bctl device allowed!" -#endif - -#if NI4BCTL > 0 - #include #include #include @@ -240,5 +232,3 @@ i4bctlpoll (dev_t dev, int events, struct thread *td) { return (ENODEV); } - -#endif /* NI4BCTL > 0 */ diff --git a/sys/i4b/driver/i4b_ing.c b/sys/i4b/driver/i4b_ing.c index c82dabc4e787..ec4eeb7a716a 100644 --- a/sys/i4b/driver/i4b_ing.c +++ b/sys/i4b/driver/i4b_ing.c @@ -35,8 +35,6 @@ #include "i4bing.h" -#if NI4BING > 0 - #include "opt_i4b.h" #include @@ -864,5 +862,3 @@ ng_ing_disconnect(hook_p hook) } /*===========================================================================*/ - -#endif /* NI4BING > 0 */ diff --git a/sys/i4b/driver/i4b_ipr.c b/sys/i4b/driver/i4b_ipr.c index e86a9cb00dba..f8283c2cfef5 100644 --- a/sys/i4b/driver/i4b_ipr.c +++ b/sys/i4b/driver/i4b_ipr.c @@ -58,8 +58,6 @@ #include "i4bipr.h" -#if NI4BIPR > 0 - #include "opt_i4b.h" #include @@ -1033,5 +1031,3 @@ ipr_init_linktab(int unit) } /*===========================================================================*/ - -#endif /* NI4BIPR > 0 */ diff --git a/sys/i4b/driver/i4b_isppp.c b/sys/i4b/driver/i4b_isppp.c index 5a922e3f8fed..8485f23216d9 100644 --- a/sys/i4b/driver/i4b_isppp.c +++ b/sys/i4b/driver/i4b_isppp.c @@ -42,10 +42,6 @@ #include "i4bisppp.h" -#if NI4BISPPP == 0 -# error "You need to define `device sppp ' with options ISPPP" -#endif - #include #include #include diff --git a/sys/i4b/driver/i4b_rbch.c b/sys/i4b/driver/i4b_rbch.c index ae5ed80cb620..3b85c9a2b92e 100644 --- a/sys/i4b/driver/i4b_rbch.c +++ b/sys/i4b/driver/i4b_rbch.c @@ -35,8 +35,6 @@ #include "i4brbch.h" -#if NI4BRBCH > 0 - #include #include #include @@ -846,5 +844,3 @@ rbch_init_linktab(int unit) } /*===========================================================================*/ - -#endif /* NI4BRBCH > 0 */ diff --git a/sys/i4b/driver/i4b_tel.c b/sys/i4b/driver/i4b_tel.c index e8513db3313f..22a1dc1d8581 100644 --- a/sys/i4b/driver/i4b_tel.c +++ b/sys/i4b/driver/i4b_tel.c @@ -35,8 +35,6 @@ #include "i4btel.h" -#if NI4BTEL > 0 - #undef I4BTELDEBUG #include @@ -1686,5 +1684,3 @@ static u_char sinetab[8000] = { 213, 213, 213, 213, 213, 213, 213, 212, 84, 84, 84, 84, 85, 85, 85, 85, 85, 85, 90, 90, 90 }; /*===========================================================================*/ - -#endif /* NI4BTEL > 0 */ diff --git a/sys/i4b/driver/i4b_trace.c b/sys/i4b/driver/i4b_trace.c index ebfc277fe4f1..2fc244382b83 100644 --- a/sys/i4b/driver/i4b_trace.c +++ b/sys/i4b/driver/i4b_trace.c @@ -37,8 +37,6 @@ #include "i4btrc.h" -#if NI4BTRC > 0 - #include #include #include @@ -451,5 +449,3 @@ i4btrcioctl(dev_t dev, u_long cmd, caddr_t data, int flag, struct thread *td) } return(error); } - -#endif /* NI4BTRC > 0 */ diff --git a/sys/i4b/layer1/i4b_l1dmux.c b/sys/i4b/layer1/i4b_l1dmux.c index 2b310fe98900..b554aebce8f9 100644 --- a/sys/i4b/layer1/i4b_l1dmux.c +++ b/sys/i4b/layer1/i4b_l1dmux.c @@ -33,14 +33,6 @@ * *---------------------------------------------------------------------------*/ -#include "isic.h" -#include "iwic.h" -#include "ifpi.h" -#include "ifpi2.h" -#include "ifpnp.h" -#include "ihfc.h" -#include "itjc.h" - #include #include @@ -84,33 +76,19 @@ unsigned int i4b_l1_debug = L1_DEBUG_DEFAULT; -#if NISIC > 0 static int l1isicunittab[MAXL1UNITS]; -#endif -#if NIWIC > 0 static int l1iwicunittab[MAXL1UNITS]; -#endif -#if NIFPI > 0 static int l1ifpiunittab[MAXL1UNITS]; -#endif -#if NIFPI2 > 0 static int l1ifpi2unittab[MAXL1UNITS]; -#endif -#if NIHFC > 0 static int l1ihfcunittab[MAXL1UNITS]; -#endif -#if NIFPNP > 0 static int l1ifpnpunittab[MAXL1UNITS]; -#endif -#if NITJC > 0 static int l1itjcunittab[MAXL1UNITS]; -#endif static int numl1units = 0; @@ -167,41 +145,27 @@ getl1tab(int drv) { switch(drv) { -#if NISIC > 0 case L1DRVR_ISIC: return(l1isicunittab); break; -#endif -#if NIWIC > 0 case L1DRVR_IWIC: return(l1iwicunittab); break; -#endif -#if NIFPI > 0 case L1DRVR_IFPI: return(l1ifpiunittab); break; -#endif -#if NIFPI2 > 0 case L1DRVR_IFPI2: return(l1ifpi2unittab); break; -#endif -#if NIHFC > 0 case L1DRVR_IHFC: return(l1ihfcunittab); break; -#endif -#if NIFPNP > 0 case L1DRVR_IFPNP: return(l1ifpnpunittab); break; -#endif -#if NITJC > 0 case L1DRVR_ITJC: return(l1itjcunittab); break; -#endif default: return(NULL); break; @@ -310,41 +274,27 @@ i4b_l1_mph_status_ind(int drv_unit, int status, int parm, struct i4b_l1mux_func switch(L0DRVR(drv_unit)) { -#if NISIC > 0 case L1DRVR_ISIC: printf("isic%d: passive stack unit %d\n", L0UNIT(drv_unit), numl1units); break; -#endif -#if NIWIC > 0 case L1DRVR_IWIC: printf("iwic%d: passive stack unit %d\n", L0UNIT(drv_unit), numl1units); break; -#endif -#if NIFPI > 0 case L1DRVR_IFPI: printf("ifpi%d: passive stack unit %d\n", L0UNIT(drv_unit), numl1units); break; -#endif -#if NIFPI2 > 0 case L1DRVR_IFPI2: printf("ifpi2-%d: passive stack unit %d\n", L0UNIT(drv_unit), numl1units); break; -#endif -#if NIFPNP > 0 case L1DRVR_IFPNP: printf("ifpnp%d: passive stack unit %d\n", L0UNIT(drv_unit), numl1units); break; -#endif -#if NIHFC > 0 case L1DRVR_IHFC: printf("ihfc%d: passive stack unit %d\n", L0UNIT(drv_unit), numl1units); break; -#endif -#if NITJC > 0 case L1DRVR_ITJC: printf("itjc%d: passive stack unit %d\n", L0UNIT(drv_unit), numl1units); break; -#endif } NDBGL1(L1_PRIM, "ATTACH drv %d, drvunit %d -> unit %d", L0DRVR(drv_unit), L0UNIT(drv_unit), numl1units); diff --git a/sys/i4b/layer1/ifpi/i4b_ifpi_isac.c b/sys/i4b/layer1/ifpi/i4b_ifpi_isac.c index a9dd71908c42..fc749f8f9473 100644 --- a/sys/i4b/layer1/ifpi/i4b_ifpi_isac.c +++ b/sys/i4b/layer1/ifpi/i4b_ifpi_isac.c @@ -35,10 +35,6 @@ * *---------------------------------------------------------------------------*/ -#include "ifpi.h" - -#if (NIFPI > 0) - #include "opt_i4b.h" #include @@ -661,5 +657,3 @@ ifpi_isac_init(struct l1_softc *sc) return(0); } - -#endif /* NIFPI > 0 */ diff --git a/sys/i4b/layer1/ifpi/i4b_ifpi_l1.c b/sys/i4b/layer1/ifpi/i4b_ifpi_l1.c index b384e45f1d42..418825d739a2 100644 --- a/sys/i4b/layer1/ifpi/i4b_ifpi_l1.c +++ b/sys/i4b/layer1/ifpi/i4b_ifpi_l1.c @@ -35,10 +35,6 @@ * *---------------------------------------------------------------------------*/ -#include "ifpi.h" - -#if (NIFPI > 0) - #include #include #include @@ -239,5 +235,3 @@ ifpi_mph_command_req(int unit, int command, void *parm) return(0); } - -#endif /* NIFPI > 0 */ diff --git a/sys/i4b/layer1/ifpi/i4b_ifpi_l1fsm.c b/sys/i4b/layer1/ifpi/i4b_ifpi_l1fsm.c index dd2e65095e69..66c66a37c7cc 100644 --- a/sys/i4b/layer1/ifpi/i4b_ifpi_l1fsm.c +++ b/sys/i4b/layer1/ifpi/i4b_ifpi_l1fsm.c @@ -35,10 +35,6 @@ * *---------------------------------------------------------------------------*/ -#include "ifpi.h" - -#if (NIFPI > 0) - #include #include #include @@ -512,5 +508,3 @@ ifpi_printstate(struct l1_softc *sc) return((char *) state_text[sc->sc_I430state]); } #endif - -#endif /* NIFPI > 0 */ diff --git a/sys/i4b/layer1/ifpi/i4b_ifpi_pci.c b/sys/i4b/layer1/ifpi/i4b_ifpi_pci.c index a26f3eb59d4e..8ff860e46aba 100644 --- a/sys/i4b/layer1/ifpi/i4b_ifpi_pci.c +++ b/sys/i4b/layer1/ifpi/i4b_ifpi_pci.c @@ -41,11 +41,8 @@ * *---------------------------------------------------------------------------*/ -#include "ifpi.h" #include "opt_i4b.h" -#if (NIFPI > 0) - #include #include #include @@ -1496,6 +1493,3 @@ ifpi_recover(struct l1_softc *sc) DELAY(100); ISAC_WRITE(I_MASK, ISAC_IMASK); } - - -#endif /* NIFPI > 0 */ diff --git a/sys/i4b/layer1/ifpi2/i4b_ifpi2_isacsx.c b/sys/i4b/layer1/ifpi2/i4b_ifpi2_isacsx.c index 8c1bcd08d179..2550686c401f 100644 --- a/sys/i4b/layer1/ifpi2/i4b_ifpi2_isacsx.c +++ b/sys/i4b/layer1/ifpi2/i4b_ifpi2_isacsx.c @@ -35,10 +35,6 @@ * *---------------------------------------------------------------------------*/ -#include "ifpi2.h" - -#if (NIFPI2 > 0) - #include "opt_i4b.h" #include @@ -595,5 +591,3 @@ ifpi2_isacsx_init(struct l1_softc *sc) return(0); } - -#endif /* NIFPI2 > 0 */ diff --git a/sys/i4b/layer1/ifpi2/i4b_ifpi2_l1.c b/sys/i4b/layer1/ifpi2/i4b_ifpi2_l1.c index 251cda7ea3a7..2dad8b04ae9b 100644 --- a/sys/i4b/layer1/ifpi2/i4b_ifpi2_l1.c +++ b/sys/i4b/layer1/ifpi2/i4b_ifpi2_l1.c @@ -35,10 +35,6 @@ * *---------------------------------------------------------------------------*/ -#include "ifpi2.h" - -#if (NIFPI2 > 0) - #include #include #include @@ -239,5 +235,3 @@ ifpi2_mph_command_req(int unit, int command, void *parm) return(0); } - -#endif /* NIFPI2 > 0 */ diff --git a/sys/i4b/layer1/ifpi2/i4b_ifpi2_l1fsm.c b/sys/i4b/layer1/ifpi2/i4b_ifpi2_l1fsm.c index 2cfdc2173da5..7004e284fcb4 100644 --- a/sys/i4b/layer1/ifpi2/i4b_ifpi2_l1fsm.c +++ b/sys/i4b/layer1/ifpi2/i4b_ifpi2_l1fsm.c @@ -34,10 +34,6 @@ * *---------------------------------------------------------------------------*/ -#include "ifpi2.h" - -#if (NIFPI2 > 0) - #include #include #include @@ -511,5 +507,3 @@ ifpi2_printstate(struct l1_softc *sc) return((char *) state_text[sc->sc_I430state]); } #endif - -#endif /* NIFPI2 > 0 */ diff --git a/sys/i4b/layer1/ifpi2/i4b_ifpi2_pci.c b/sys/i4b/layer1/ifpi2/i4b_ifpi2_pci.c index 1adf4af4b01c..e0f855f5999a 100644 --- a/sys/i4b/layer1/ifpi2/i4b_ifpi2_pci.c +++ b/sys/i4b/layer1/ifpi2/i4b_ifpi2_pci.c @@ -40,11 +40,8 @@ * *---------------------------------------------------------------------------*/ -#include "ifpi2.h" #include "opt_i4b.h" -#if (NIFPI2 > 0) - #include #include #include @@ -1444,6 +1441,3 @@ ifpi2_recover(struct l1_softc *sc) ISAC_WRITE(I_MASK, isacsx_imask); #endif } - - -#endif /* NIFPI2 > 0 */ diff --git a/sys/i4b/layer1/ifpnp/i4b_ifpnp_avm.c b/sys/i4b/layer1/ifpnp/i4b_ifpnp_avm.c index bb8c5f19d2c8..01cfc69f1e45 100644 --- a/sys/i4b/layer1/ifpnp/i4b_ifpnp_avm.c +++ b/sys/i4b/layer1/ifpnp/i4b_ifpnp_avm.c @@ -39,11 +39,8 @@ * *---------------------------------------------------------------------------*/ -#include "ifpnp.h" #include "opt_i4b.h" -#if (NIFPNP > 0) - #include #include #include @@ -1391,5 +1388,3 @@ ifpnp_recover(struct l1_softc *sc) DELAY(100); ISAC_WRITE(I_MASK, ISAC_IMASK); } - -#endif /* NIFPNP > 0 */ diff --git a/sys/i4b/layer1/ifpnp/i4b_ifpnp_isac.c b/sys/i4b/layer1/ifpnp/i4b_ifpnp_isac.c index 83fe1bf7ef58..64b41f71df22 100644 --- a/sys/i4b/layer1/ifpnp/i4b_ifpnp_isac.c +++ b/sys/i4b/layer1/ifpnp/i4b_ifpnp_isac.c @@ -36,10 +36,6 @@ * *---------------------------------------------------------------------------*/ -#include "ifpnp.h" - -#if (NIFPNP > 0) - #include "opt_i4b.h" #include @@ -662,5 +658,3 @@ ifpnp_isac_init(struct l1_softc *sc) return(0); } - -#endif /* NIFPNP > 0 */ diff --git a/sys/i4b/layer1/ifpnp/i4b_ifpnp_l1.c b/sys/i4b/layer1/ifpnp/i4b_ifpnp_l1.c index f2b4ad228397..c7843d933e25 100644 --- a/sys/i4b/layer1/ifpnp/i4b_ifpnp_l1.c +++ b/sys/i4b/layer1/ifpnp/i4b_ifpnp_l1.c @@ -36,10 +36,6 @@ * *---------------------------------------------------------------------------*/ -#include "ifpnp.h" - -#if (NIFPNP > 0) - #include #include #include @@ -240,5 +236,3 @@ ifpnp_mph_command_req(int unit, int command, void *parm) return(0); } - -#endif /* NIFPNP > 0 */ diff --git a/sys/i4b/layer1/ifpnp/i4b_ifpnp_l1fsm.c b/sys/i4b/layer1/ifpnp/i4b_ifpnp_l1fsm.c index 26b154031b5e..d119717c7d01 100644 --- a/sys/i4b/layer1/ifpnp/i4b_ifpnp_l1fsm.c +++ b/sys/i4b/layer1/ifpnp/i4b_ifpnp_l1fsm.c @@ -36,10 +36,6 @@ * *---------------------------------------------------------------------------*/ -#include "ifpnp.h" - -#if (NIFPNP > 0) - #include #include #include @@ -513,5 +509,3 @@ ifpnp_printstate(struct l1_softc *sc) return((char *) state_text[sc->sc_I430state]); } #endif - -#endif /* NIFPNP > 0 */ diff --git a/sys/i4b/layer1/ihfc/i4b_ihfc_drv.c b/sys/i4b/layer1/ihfc/i4b_ihfc_drv.c index 14b4c8007e46..16c8b9d04fa1 100644 --- a/sys/i4b/layer1/ihfc/i4b_ihfc_drv.c +++ b/sys/i4b/layer1/ihfc/i4b_ihfc_drv.c @@ -36,10 +36,6 @@ * *---------------------------------------------------------------------------*/ -#include "ihfc.h" - -#if (NIHFC > 0) - #include #include #include @@ -1761,5 +1757,3 @@ ihfc_test_Bread (ihfc_sc_t *sc, u_char chan) S_HDLC_TMP = error; S_HDLC_FLAG = ecount; } - -#endif /* NIHFC > 0 */ diff --git a/sys/i4b/layer1/ihfc/i4b_ihfc_l1if.c b/sys/i4b/layer1/ihfc/i4b_ihfc_l1if.c index 10c639569ab8..11dc25afba02 100644 --- a/sys/i4b/layer1/ihfc/i4b_ihfc_l1if.c +++ b/sys/i4b/layer1/ihfc/i4b_ihfc_l1if.c @@ -40,10 +40,6 @@ * *---------------------------------------------------------------------------*/ -#include "ihfc.h" - -#if (NIHFC > 0) - #include #include #include @@ -513,5 +509,3 @@ ihfc_B_linkinit(ihfc_sc_t *sc) S_BLINK.rx_mbuf = &S_MBUFDUMMY; } } - -#endif /* NIHFC > 0 */ diff --git a/sys/i4b/layer1/ihfc/i4b_ihfc_pnp.c b/sys/i4b/layer1/ihfc/i4b_ihfc_pnp.c index ac5658b4a57c..f97f50df8540 100644 --- a/sys/i4b/layer1/ihfc/i4b_ihfc_pnp.c +++ b/sys/i4b/layer1/ihfc/i4b_ihfc_pnp.c @@ -39,10 +39,6 @@ * *---------------------------------------------------------------------------*/ -#include "ihfc.h" - -#if (NIHFC > 0) - #include #include #include @@ -437,5 +433,3 @@ ihfc_pnp_detach (device_t dev, u_int flag) return 0; } - -#endif /* NIHFC > 0 */ diff --git a/sys/i4b/layer1/isic/i4b_asuscom_ipac.c b/sys/i4b/layer1/isic/i4b_asuscom_ipac.c index 9d440b35c333..cf01aaee8b8e 100644 --- a/sys/i4b/layer1/isic/i4b_asuscom_ipac.c +++ b/sys/i4b/layer1/isic/i4b_asuscom_ipac.c @@ -46,10 +46,9 @@ * *---------------------------------------------------------------------------*/ -#include "isic.h" #include "opt_i4b.h" -#if (NISIC > 0) && defined (ASUSCOM_IPAC) +#if defined (ASUSCOM_IPAC) #include #include @@ -230,4 +229,4 @@ isic_attach_asi(device_t dev) return(0); } -#endif /* (NISIC > 0) && defined (ASUSCOM_IPAC) */ +#endif /* defined (ASUSCOM_IPAC) */ diff --git a/sys/i4b/layer1/isic/i4b_avm_a1.c b/sys/i4b/layer1/isic/i4b_avm_a1.c index 3fbfafbf2cc6..6e747c8a16ee 100644 --- a/sys/i4b/layer1/isic/i4b_avm_a1.c +++ b/sys/i4b/layer1/isic/i4b_avm_a1.c @@ -41,10 +41,9 @@ * *---------------------------------------------------------------------------*/ -#include "isic.h" #include "opt_i4b.h" -#if NISIC > 0 && defined(AVM_A1) +#if defined(AVM_A1) #include #include @@ -407,4 +406,4 @@ isic_attach_avma1(device_t dev) return(0); } -#endif /* NISIC > 0 && defined(AVM_A1) */ +#endif /* defined(AVM_A1) */ diff --git a/sys/i4b/layer1/isic/i4b_bchan.c b/sys/i4b/layer1/isic/i4b_bchan.c index 580e9a9aa609..39d28471229d 100644 --- a/sys/i4b/layer1/isic/i4b_bchan.c +++ b/sys/i4b/layer1/isic/i4b_bchan.c @@ -33,10 +33,6 @@ * *---------------------------------------------------------------------------*/ -#include "isic.h" - -#if NISIC > 0 - #include #include #include @@ -399,5 +395,3 @@ isic_init_linktab(struct l1_softc *sc) /* used by HDLC data transfers, i.e. ipr and isp drivers */ lt->rx_mbuf = &chan->in_mbuf; } - -#endif /* NISIC > 0 */ diff --git a/sys/i4b/layer1/isic/i4b_ctx_s0P.c b/sys/i4b/layer1/isic/i4b_ctx_s0P.c index 5e0f21042bcd..96ad4c684956 100644 --- a/sys/i4b/layer1/isic/i4b_ctx_s0P.c +++ b/sys/i4b/layer1/isic/i4b_ctx_s0P.c @@ -40,10 +40,9 @@ * *---------------------------------------------------------------------------*/ -#include "isic.h" #include "opt_i4b.h" -#if (NISIC > 0) && (defined(CRTX_S0_P) || defined(TEL_S0_16_3_P) || defined(COMPAQ_M610)) +#if (defined(CRTX_S0_P) || defined(TEL_S0_16_3_P) || defined(COMPAQ_M610)) #include #include @@ -312,5 +311,5 @@ isic_attach_Cs0P(device_t dev) return 0; } -#endif /* (NISIC > 0) && (defined(CRTX_S0_P) || defined(TEL_S0_16_3_P) || defined(COMPAQ_M610)) */ +#endif /* (defined(CRTX_S0_P) || defined(TEL_S0_16_3_P) || defined(COMPAQ_M610)) */ diff --git a/sys/i4b/layer1/isic/i4b_diva.c b/sys/i4b/layer1/isic/i4b_diva.c index 0177961653ff..811e091bf93b 100644 --- a/sys/i4b/layer1/isic/i4b_diva.c +++ b/sys/i4b/layer1/isic/i4b_diva.c @@ -33,10 +33,9 @@ * *---------------------------------------------------------------------------*/ -#include "isic.h" #include "opt_i4b.h" -#if NISIC > 0 && defined EICON_DIVA +#if defined EICON_DIVA #include #include @@ -395,4 +394,4 @@ isic_attach_diva(device_t dev) return(0); } -#endif /* NISIC > 0 && defined EICON_DIVA */ +#endif /* defined EICON_DIVA */ diff --git a/sys/i4b/layer1/isic/i4b_drn_ngo.c b/sys/i4b/layer1/isic/i4b_drn_ngo.c index ae9b58980fd6..0cb4cfa9be84 100644 --- a/sys/i4b/layer1/isic/i4b_drn_ngo.c +++ b/sys/i4b/layer1/isic/i4b_drn_ngo.c @@ -33,10 +33,9 @@ * *---------------------------------------------------------------------------*/ -#include "isic.h" #include "opt_i4b.h" -#if (NISIC > 0) && defined(DRN_NGO) +#if defined(DRN_NGO) #include #include @@ -257,4 +256,4 @@ isic_attach_drnngo(device_t dev) return (0); } -#endif /* (NISIC > 0) && defined(DRN_NGO) */ +#endif /* defined(DRN_NGO) */ diff --git a/sys/i4b/layer1/isic/i4b_dynalink.c b/sys/i4b/layer1/isic/i4b_dynalink.c index 3ed0aea3bcbb..fc4012465740 100644 --- a/sys/i4b/layer1/isic/i4b_dynalink.c +++ b/sys/i4b/layer1/isic/i4b_dynalink.c @@ -67,10 +67,9 @@ This driver might also work for Asuscom cards. */ -#include "isic.h" #include "opt_i4b.h" -#if (NISIC > 0) && defined(DYNALINK) +#if defined(DYNALINK) #include #include @@ -230,4 +229,4 @@ isic_attach_Dyn(device_t dev) return 0; } -#endif /* (NISIC > 0) && defined(DYNALINK) */ +#endif /* defined(DYNALINK) */ diff --git a/sys/i4b/layer1/isic/i4b_elsa_pcc16.c b/sys/i4b/layer1/isic/i4b_elsa_pcc16.c index f7fb3d5dffe8..0d2521a3ae15 100644 --- a/sys/i4b/layer1/isic/i4b_elsa_pcc16.c +++ b/sys/i4b/layer1/isic/i4b_elsa_pcc16.c @@ -33,10 +33,9 @@ * *---------------------------------------------------------------------------*/ -#include "isic.h" #include "opt_i4b.h" -#if (NISIC > 0) && defined(ELSA_PCC16) +#if defined(ELSA_PCC16) #include #include @@ -388,4 +387,4 @@ isic_attach_Epcc16(device_t dev) return 0; } -#endif /* (NISIC > 0) && defined(ELSA_PCC16) */ +#endif /* defined(ELSA_PCC16) */ diff --git a/sys/i4b/layer1/isic/i4b_elsa_qs1i.c b/sys/i4b/layer1/isic/i4b_elsa_qs1i.c index 9b184e90992e..b6980fcca962 100644 --- a/sys/i4b/layer1/isic/i4b_elsa_qs1i.c +++ b/sys/i4b/layer1/isic/i4b_elsa_qs1i.c @@ -33,10 +33,9 @@ * *---------------------------------------------------------------------------*/ -#include "isic.h" #include "opt_i4b.h" -#if (NISIC > 0) && defined(ELSA_QS1ISA) +#if defined(ELSA_QS1ISA) #include #include @@ -234,4 +233,4 @@ isic_attach_Eqs1pi(device_t dev) return 0; } -#endif /* (NISIC > 0) && defined(ELSA_QS1ISA) */ +#endif /* defined(ELSA_QS1ISA) */ diff --git a/sys/i4b/layer1/isic/i4b_elsa_qs1p.c b/sys/i4b/layer1/isic/i4b_elsa_qs1p.c index 85169d99c046..03bd9a401eae 100644 --- a/sys/i4b/layer1/isic/i4b_elsa_qs1p.c +++ b/sys/i4b/layer1/isic/i4b_elsa_qs1p.c @@ -35,10 +35,9 @@ * *---------------------------------------------------------------------------*/ -#include "isic.h" #include "opt_i4b.h" -#if (NISIC > 0) && defined(ELSA_QS1PCI) +#if defined(ELSA_QS1PCI) #include #include @@ -349,4 +348,4 @@ eqs1p_pci_attach(device_t dev) return(0); } -#endif /* (NISIC > 0) && && defined(ELSA_QS1PCI) */ +#endif /* defined(ELSA_QS1PCI) */ diff --git a/sys/i4b/layer1/isic/i4b_hscx.c b/sys/i4b/layer1/isic/i4b_hscx.c index 03eb3c46c363..30dd0bdd7cb4 100644 --- a/sys/i4b/layer1/isic/i4b_hscx.c +++ b/sys/i4b/layer1/isic/i4b_hscx.c @@ -33,10 +33,6 @@ * *---------------------------------------------------------------------------*/ -#include "isic.h" - -#if NISIC > 0 - #include #include #include @@ -649,5 +645,3 @@ isic_hscx_waitxfw(struct l1_softc *sc, int h_chan) NDBGL1(L1_H_XFRERR, "HSCX wait for XFW time: %d uS", (WAITTO-timeout)*50); } } - -#endif /* NISIC > 0 */ diff --git a/sys/i4b/layer1/isic/i4b_isac.c b/sys/i4b/layer1/isic/i4b_isac.c index f66aaa0cc6fd..1bdf33119f06 100644 --- a/sys/i4b/layer1/isic/i4b_isac.c +++ b/sys/i4b/layer1/isic/i4b_isac.c @@ -33,10 +33,6 @@ * *---------------------------------------------------------------------------*/ -#include "isic.h" - -#if NISIC > 0 - #include "opt_i4b.h" #include @@ -656,5 +652,3 @@ isic_isac_init(struct l1_softc *sc) return(0); } - -#endif /* NISIC > 0 */ diff --git a/sys/i4b/layer1/isic/i4b_isic.c b/sys/i4b/layer1/isic/i4b_isic.c index 751c568cd5dd..56fe7335a149 100644 --- a/sys/i4b/layer1/isic/i4b_isic.c +++ b/sys/i4b/layer1/isic/i4b_isic.c @@ -33,11 +33,8 @@ * *---------------------------------------------------------------------------*/ -#include "isic.h" #include "opt_i4b.h" -#if NISIC > 0 - #include #include #include @@ -494,6 +491,3 @@ isic_detach_common(device_t dev) } } } - -#endif /* NISIC > 0 */ - diff --git a/sys/i4b/layer1/isic/i4b_isic_isa.c b/sys/i4b/layer1/isic/i4b_isic_isa.c index 87c9f0477cd5..2f60c2287501 100644 --- a/sys/i4b/layer1/isic/i4b_isic_isa.c +++ b/sys/i4b/layer1/isic/i4b_isic_isa.c @@ -33,11 +33,8 @@ * *---------------------------------------------------------------------------*/ -#include "isic.h" #include "opt_i4b.h" -#if NISIC > 0 - #include #include #include @@ -206,4 +203,3 @@ isic_isa_attach(device_t dev) return(ret); } -#endif /* NISIC > 0 */ diff --git a/sys/i4b/layer1/isic/i4b_isic_pnp.c b/sys/i4b/layer1/isic/i4b_isic_pnp.c index f5e1bcc32935..dc6c70c762ef 100644 --- a/sys/i4b/layer1/isic/i4b_isic_pnp.c +++ b/sys/i4b/layer1/isic/i4b_isic_pnp.c @@ -43,11 +43,8 @@ * *---------------------------------------------------------------------------*/ -#include "isic.h" #include "opt_i4b.h" -#if (NISIC > 0) - #include #include #include @@ -327,4 +324,3 @@ isic_pnp_attach(device_t dev) return 0; } } -#endif /* (NISIC > 0) */ diff --git a/sys/i4b/layer1/isic/i4b_itk_ix1.c b/sys/i4b/layer1/isic/i4b_itk_ix1.c index cccee8165bb6..6158b2bf896d 100644 --- a/sys/i4b/layer1/isic/i4b_itk_ix1.c +++ b/sys/i4b/layer1/isic/i4b_itk_ix1.c @@ -60,10 +60,9 @@ * *---------------------------------------------------------------------------*/ -#include "isic.h" #include "opt_i4b.h" -#if NISIC > 0 && defined(ITKIX1) +#if defined(ITKIX1) #include #include @@ -394,4 +393,4 @@ isic_attach_itkix1(device_t dev) return 0; } -#endif /* ITKIX1 */ +#endif /* defined(ITKIX1) */ diff --git a/sys/i4b/layer1/isic/i4b_l1.c b/sys/i4b/layer1/isic/i4b_l1.c index d68a480b2281..623b2ef8bb27 100644 --- a/sys/i4b/layer1/isic/i4b_l1.c +++ b/sys/i4b/layer1/isic/i4b_l1.c @@ -33,10 +33,6 @@ * *---------------------------------------------------------------------------*/ -#include "isic.h" - -#if NISIC > 0 - #include #include #include @@ -250,5 +246,3 @@ isic_mph_command_req(int unit, int command, void *parm) return(0); } - -#endif /* NISIC > 0 */ diff --git a/sys/i4b/layer1/isic/i4b_l1fsm.c b/sys/i4b/layer1/isic/i4b_l1fsm.c index 11c261d9e377..5c64996f87be 100644 --- a/sys/i4b/layer1/isic/i4b_l1fsm.c +++ b/sys/i4b/layer1/isic/i4b_l1fsm.c @@ -33,10 +33,6 @@ * *---------------------------------------------------------------------------*/ -#include "isic.h" - -#if NISIC > 0 - #include #include #include @@ -507,6 +503,3 @@ isic_printstate(struct l1_softc *sc) return((char *) state_text[sc->sc_I430state]); } #endif - -#endif /* NISIC > 0 */ - diff --git a/sys/i4b/layer1/isic/i4b_siemens_isurf.c b/sys/i4b/layer1/isic/i4b_siemens_isurf.c index d846d437503e..4f1e746e9b03 100644 --- a/sys/i4b/layer1/isic/i4b_siemens_isurf.c +++ b/sys/i4b/layer1/isic/i4b_siemens_isurf.c @@ -42,10 +42,9 @@ * *---------------------------------------------------------------------------*/ -#include "isic.h" #include "opt_i4b.h" -#if NISIC > 0 && defined(SIEMENS_ISURF2) +#if defined(SIEMENS_ISURF2) #include #include @@ -227,4 +226,4 @@ isic_attach_siemens_isurf(device_t dev) return(0); } -#endif /* NISIC > 0 && defined(SIEMENS_ISURF2) */ +#endif /* defined(SIEMENS_ISURF2) */ diff --git a/sys/i4b/layer1/isic/i4b_sws.c b/sys/i4b/layer1/isic/i4b_sws.c index cfe9372ca7d2..e239660d7860 100644 --- a/sys/i4b/layer1/isic/i4b_sws.c +++ b/sys/i4b/layer1/isic/i4b_sws.c @@ -50,10 +50,9 @@ * *---------------------------------------------------------------------------*/ -#include "isic.h" #include "opt_i4b.h" -#if defined (SEDLBAUER) && NISIC > 0 +#if defined (SEDLBAUER) #define SWS_RESON 0 /* reset on */ #define SWS_RESOFF 1 /* reset off */ @@ -209,4 +208,4 @@ isic_attach_sws(device_t dev) return(0); } -#endif /* defined(SEDLBAUER) && NISIC > 0 */ +#endif /* defined(SEDLBAUER) */ diff --git a/sys/i4b/layer1/isic/i4b_tel_s016.c b/sys/i4b/layer1/isic/i4b_tel_s016.c index 4e2b67fc1874..b84da2cb84ab 100644 --- a/sys/i4b/layer1/isic/i4b_tel_s016.c +++ b/sys/i4b/layer1/isic/i4b_tel_s016.c @@ -43,10 +43,9 @@ * *---------------------------------------------------------------------------*/ -#include "isic.h" #include "opt_i4b.h" -#if NISIC > 0 && defined(TEL_S0_16) +#if defined(TEL_S0_16) #include #include @@ -367,4 +366,5 @@ isic_attach_s016(device_t dev) return 0; } -#endif /* ISIC > 0 */ + +#endif /* defined(TEL_S0_16) */ diff --git a/sys/i4b/layer1/isic/i4b_tel_s0163.c b/sys/i4b/layer1/isic/i4b_tel_s0163.c index 150306df8861..6a567b7c35a0 100644 --- a/sys/i4b/layer1/isic/i4b_tel_s0163.c +++ b/sys/i4b/layer1/isic/i4b_tel_s0163.c @@ -43,10 +43,9 @@ * *---------------------------------------------------------------------------*/ -#include "isic.h" #include "opt_i4b.h" -#if NISIC > 0 && defined(TEL_S0_16_3) +#if defined(TEL_S0_16_3) #include #include @@ -371,5 +370,4 @@ isic_attach_s0163(device_t dev) return (0); } -#endif /* ISIC > 0 */ - +#endif /* defined(TEL_S0_16_3) */ diff --git a/sys/i4b/layer1/isic/i4b_tel_s08.c b/sys/i4b/layer1/isic/i4b_tel_s08.c index d1d69b2f631a..a789e66450f4 100644 --- a/sys/i4b/layer1/isic/i4b_tel_s08.c +++ b/sys/i4b/layer1/isic/i4b_tel_s08.c @@ -43,10 +43,9 @@ * *---------------------------------------------------------------------------*/ -#include "isic.h" #include "opt_i4b.h" -#if NISIC > 0 && defined(TEL_S0_8) +#if defined(TEL_S0_8) #include #include @@ -300,4 +299,5 @@ isic_attach_s08(device_t dev) return 0; } -#endif /* ISIC > 0 */ + +#endif /* defined(TEL_S0_8) */ diff --git a/sys/i4b/layer1/isic/i4b_usr_sti.c b/sys/i4b/layer1/isic/i4b_usr_sti.c index 4a3a0e024568..cd1594899cbe 100644 --- a/sys/i4b/layer1/isic/i4b_usr_sti.c +++ b/sys/i4b/layer1/isic/i4b_usr_sti.c @@ -33,10 +33,9 @@ * *---------------------------------------------------------------------------*/ -#include "isic.h" #include "opt_i4b.h" -#if (NISIC > 0) && defined(USR_STI) +#if defined(USR_STI) #include #include @@ -495,4 +494,4 @@ isic_attach_usrtai(device_t dev) return (0); } -#endif /* ISIC > 0 */ +#endif /* defined(USR_STI) */ diff --git a/sys/i4b/layer1/itjc/i4b_itjc_isac.c b/sys/i4b/layer1/itjc/i4b_itjc_isac.c index 8ff79cb3b24c..07718a66f022 100644 --- a/sys/i4b/layer1/itjc/i4b_itjc_isac.c +++ b/sys/i4b/layer1/itjc/i4b_itjc_isac.c @@ -33,10 +33,6 @@ * *---------------------------------------------------------------------------*/ -#include "itjc.h" - -#if (NITJC > 0) - #include "opt_i4b.h" #include @@ -547,5 +543,3 @@ itjc_isac_init(struct l1_softc *sc) return(0); } - -#endif /* NITJC > 0 */ diff --git a/sys/i4b/layer1/itjc/i4b_itjc_l1.c b/sys/i4b/layer1/itjc/i4b_itjc_l1.c index 76b8ef57fbf8..98ffba8b37fb 100644 --- a/sys/i4b/layer1/itjc/i4b_itjc_l1.c +++ b/sys/i4b/layer1/itjc/i4b_itjc_l1.c @@ -33,10 +33,6 @@ * *---------------------------------------------------------------------------*/ -#include "itjc.h" - -#if (NITJC > 0) - #include #include #include @@ -238,5 +234,3 @@ itjc_mph_command_req(int unit, int command, void *parm) return(0); } - -#endif /* NITJC > 0 */ diff --git a/sys/i4b/layer1/itjc/i4b_itjc_l1fsm.c b/sys/i4b/layer1/itjc/i4b_itjc_l1fsm.c index afb1bc65c442..663d111fb88a 100644 --- a/sys/i4b/layer1/itjc/i4b_itjc_l1fsm.c +++ b/sys/i4b/layer1/itjc/i4b_itjc_l1fsm.c @@ -33,10 +33,6 @@ * *---------------------------------------------------------------------------*/ -#include "itjc.h" - -#if (NITJC > 0) - #include #include #include @@ -515,5 +511,3 @@ itjc_printstate(struct l1_softc *sc) return((char *) state_text[sc->sc_I430state]); } #endif - -#endif /* NITJC > 0 */ diff --git a/sys/i4b/layer1/itjc/i4b_itjc_pci.c b/sys/i4b/layer1/itjc/i4b_itjc_pci.c index ad5d45ba278a..4a13ee2139b7 100644 --- a/sys/i4b/layer1/itjc/i4b_itjc_pci.c +++ b/sys/i4b/layer1/itjc/i4b_itjc_pci.c @@ -39,11 +39,8 @@ * *---------------------------------------------------------------------------*/ -#include "itjc.h" #include "opt_i4b.h" -#if (NITJC > 0) - #include #include #include @@ -2131,5 +2128,3 @@ itjc_recover(struct l1_softc *sc) DELAY(100); ISAC_WRITE(I_MASK, ISAC_IMASK); } - -#endif /* NITJC > 0 */ diff --git a/sys/i4b/layer1/iwic/i4b_iwic_bchan.c b/sys/i4b/layer1/iwic/i4b_iwic_bchan.c index 2b5ac66da352..89595c2665d0 100644 --- a/sys/i4b/layer1/iwic/i4b_iwic_bchan.c +++ b/sys/i4b/layer1/iwic/i4b_iwic_bchan.c @@ -35,11 +35,8 @@ * *---------------------------------------------------------------------------*/ -#include "iwic.h" #include "opt_i4b.h" -#if (NIWIC > 0) - #include #include #include @@ -768,5 +765,3 @@ iwic_init_linktab(struct iwic_softc *sc) /* used by HDLC data transfers, i.e. ipr and isp drivers */ lt->rx_mbuf = &chan->in_mbuf; } - -#endif /* NIWIC > 0 */ diff --git a/sys/i4b/layer1/iwic/i4b_iwic_dchan.c b/sys/i4b/layer1/iwic/i4b_iwic_dchan.c index 68cede6d4ba2..ebee109c8fef 100644 --- a/sys/i4b/layer1/iwic/i4b_iwic_dchan.c +++ b/sys/i4b/layer1/iwic/i4b_iwic_dchan.c @@ -33,11 +33,8 @@ * *---------------------------------------------------------------------------*/ -#include "iwic.h" #include "opt_i4b.h" -#if (NIWIC > 0) - #include #include #include @@ -468,5 +465,3 @@ iwic_dchan_transmit(struct iwic_softc *sc) sc->sc_dchan.tx_ready = 0; IWIC_WRITE(sc, D_CMDR, cmd); } - -#endif /* (NIWIC > 0) */ diff --git a/sys/i4b/layer1/iwic/i4b_iwic_fsm.c b/sys/i4b/layer1/iwic/i4b_iwic_fsm.c index 79faa2973095..6d316f6c8221 100644 --- a/sys/i4b/layer1/iwic/i4b_iwic_fsm.c +++ b/sys/i4b/layer1/iwic/i4b_iwic_fsm.c @@ -33,11 +33,8 @@ * *---------------------------------------------------------------------------*/ -#include "iwic.h" #include "opt_i4b.h" -#if (NIWIC > 0) - #include #include #include @@ -223,5 +220,3 @@ iwic_printstate(struct iwic_softc *sc) return((char *)state_names[sc->sc_I430state]); } #endif - -#endif diff --git a/sys/i4b/layer1/iwic/i4b_iwic_l1if.c b/sys/i4b/layer1/iwic/i4b_iwic_l1if.c index 359502f1bcda..7d465dac955c 100644 --- a/sys/i4b/layer1/iwic/i4b_iwic_l1if.c +++ b/sys/i4b/layer1/iwic/i4b_iwic_l1if.c @@ -33,11 +33,8 @@ * *---------------------------------------------------------------------------*/ -#include "iwic.h" #include "opt_i4b.h" -#if (NIWIC > 0) - #include #include #include @@ -148,5 +145,3 @@ iwic_set_linktab (int unit, int channel, drvr_link_t *dlt) bchan->iwic_drvr_linktab = dlt; } - -#endif diff --git a/sys/i4b/layer1/iwic/i4b_iwic_pci.c b/sys/i4b/layer1/iwic/i4b_iwic_pci.c index 175295c8e581..53e0510bb408 100644 --- a/sys/i4b/layer1/iwic/i4b_iwic_pci.c +++ b/sys/i4b/layer1/iwic/i4b_iwic_pci.c @@ -33,11 +33,8 @@ * *---------------------------------------------------------------------------*/ -#include "iwic.h" #include "opt_i4b.h" -#if (NIWIC > 0) - #include #include #include @@ -312,5 +309,3 @@ iwic_pci_intr(struct iwic_softc *sc) } } } - -#endif diff --git a/sys/i4b/layer2/i4b_iframe.c b/sys/i4b/layer2/i4b_iframe.c index 7d5cbd196287..e9da4b766217 100644 --- a/sys/i4b/layer2/i4b_iframe.c +++ b/sys/i4b/layer2/i4b_iframe.c @@ -33,10 +33,6 @@ * *---------------------------------------------------------------------------*/ -#include "i4bq921.h" - -#if NI4BQ921 > 0 - #include #include #include @@ -271,5 +267,3 @@ i4b_i_frame_queued_up(l2_softc_t *l2sc) i4b_T200_start(l2sc); } } - -#endif /* NI4BQ921 > 0 */ diff --git a/sys/i4b/layer2/i4b_l2.c b/sys/i4b/layer2/i4b_l2.c index 9b3640276e26..d37d5f3d2455 100644 --- a/sys/i4b/layer2/i4b_l2.c +++ b/sys/i4b/layer2/i4b_l2.c @@ -33,10 +33,6 @@ * *---------------------------------------------------------------------------*/ -#include "i4bq921.h" - -#if NI4BQ921 > 0 - #include #include #include @@ -385,5 +381,3 @@ i4b_ph_data_ind(int unit, struct mbuf *m) } return(0); } - -#endif /* NI4BQ921 > 0 */ diff --git a/sys/i4b/layer2/i4b_l2fsm.c b/sys/i4b/layer2/i4b_l2fsm.c index 9e0725459a1a..311c9dfd2247 100644 --- a/sys/i4b/layer2/i4b_l2fsm.c +++ b/sys/i4b/layer2/i4b_l2fsm.c @@ -33,10 +33,6 @@ * *---------------------------------------------------------------------------*/ -#include "i4bq921.h" - -#if NI4BQ921 > 0 - #include #include #include @@ -1579,5 +1575,3 @@ F_TR20(l2_softc_t *l2sc) l2sc->l3initiated = 0; } - -#endif /* NI4BQ921 > 0 */ diff --git a/sys/i4b/layer2/i4b_l2timer.c b/sys/i4b/layer2/i4b_l2timer.c index c3cbf1d1a9df..22c19f37a238 100644 --- a/sys/i4b/layer2/i4b_l2timer.c +++ b/sys/i4b/layer2/i4b_l2timer.c @@ -33,10 +33,6 @@ * *---------------------------------------------------------------------------*/ -#include "i4bq921.h" - -#if NI4BQ921 > 0 - #include #include #include @@ -233,5 +229,3 @@ i4b_T203_restart(l2_softc_t *l2sc) NDBGL2(L2_T_MSG, "unit %d", l2sc->unit); #endif } - -#endif /* NI4BQ921 > 0 */ diff --git a/sys/i4b/layer2/i4b_lme.c b/sys/i4b/layer2/i4b_lme.c index fce37121d810..7c77659b8b1a 100644 --- a/sys/i4b/layer2/i4b_lme.c +++ b/sys/i4b/layer2/i4b_lme.c @@ -33,10 +33,6 @@ * *---------------------------------------------------------------------------*/ -#include "i4bq921.h" - -#if NI4BQ921 > 0 - #include #include #include @@ -136,5 +132,3 @@ i4b_mdl_error_ind(l2_softc_t *l2sc, char *where, int errorcode) break; } } - -#endif /* NI4BQ921 > 0 */ diff --git a/sys/i4b/layer2/i4b_sframe.c b/sys/i4b/layer2/i4b_sframe.c index 0b4c6c63c20c..3f2faf58cedf 100644 --- a/sys/i4b/layer2/i4b_sframe.c +++ b/sys/i4b/layer2/i4b_sframe.c @@ -33,10 +33,6 @@ * *---------------------------------------------------------------------------*/ -#include "i4bq921.h" - -#if NI4BQ921 > 0 - #include #include #include @@ -208,5 +204,3 @@ i4b_build_s_frame(l2_softc_t *l2sc, crbit_to_nt_t crbit, pbit_t pbit, u_char typ return(m); } - -#endif /* NI4BQ921 > 0 */ diff --git a/sys/i4b/layer2/i4b_tei.c b/sys/i4b/layer2/i4b_tei.c index 1e5cfa8ba605..43c15aca59fc 100644 --- a/sys/i4b/layer2/i4b_tei.c +++ b/sys/i4b/layer2/i4b_tei.c @@ -33,10 +33,6 @@ * *---------------------------------------------------------------------------*/ -#include "i4bq921.h" - -#if NI4BQ921 > 0 - #include #include #include @@ -279,5 +275,3 @@ i4b_make_rand_ri(l2_softc_t *l2sc) l2sc->last_rih = (val >> 8) & 0x00ff; l2sc->last_ril = val & 0x00ff; } - -#endif /* NI4BQ921 > 0 */ diff --git a/sys/i4b/layer2/i4b_uframe.c b/sys/i4b/layer2/i4b_uframe.c index f7c89c29b6dc..8b1d2421b5f9 100644 --- a/sys/i4b/layer2/i4b_uframe.c +++ b/sys/i4b/layer2/i4b_uframe.c @@ -33,10 +33,6 @@ * *---------------------------------------------------------------------------*/ -#include "i4bq921.h" - -#if NI4BQ921 > 0 - #include #include #include @@ -278,5 +274,3 @@ i4b_tx_frmr(l2_softc_t *l2sc, fbit_t fbit) m = i4b_build_u_frame(l2sc, CR_RSP_TO_NT, fbit, FRMR); PH_Data_Req(l2sc->unit, m, MBUF_FREE); } - -#endif /* NI4BQ921 > 0 */ diff --git a/sys/i4b/layer2/i4b_util.c b/sys/i4b/layer2/i4b_util.c index 511df7d8aa77..114f3a6cadd1 100644 --- a/sys/i4b/layer2/i4b_util.c +++ b/sys/i4b/layer2/i4b_util.c @@ -33,10 +33,6 @@ * *---------------------------------------------------------------------------*/ -#include "i4bq921.h" - -#if NI4BQ921 > 0 - #include #include #include @@ -306,6 +302,3 @@ i4b_l2_nr_ok(int nr, int va, int vs) } return 1; /* good */ } - -#endif /* NI4BQ921 > 0 */ - diff --git a/sys/i4b/layer3/i4b_l2if.c b/sys/i4b/layer3/i4b_l2if.c index 0a8584b61f61..842d23f4d446 100644 --- a/sys/i4b/layer3/i4b_l2if.c +++ b/sys/i4b/layer3/i4b_l2if.c @@ -33,10 +33,6 @@ * *---------------------------------------------------------------------------*/ -#include "i4bq931.h" - -#if NI4BQ931 > 0 - #include #include #include @@ -681,5 +677,3 @@ i4b_l3_tx_alert(call_desc_t *cd) DL_Data_Req(ctrl_desc[cd->controller].unit, m); } - -#endif /* NI4BQ931 > 0 */ diff --git a/sys/i4b/layer3/i4b_l3fsm.c b/sys/i4b/layer3/i4b_l3fsm.c index 77b3204aea16..11b97e8767fb 100644 --- a/sys/i4b/layer3/i4b_l3fsm.c +++ b/sys/i4b/layer3/i4b_l3fsm.c @@ -33,10 +33,6 @@ * *---------------------------------------------------------------------------*/ -#include "i4bq931.h" - -#if NI4BQ931 > 0 - #include #include #include @@ -1038,5 +1034,3 @@ static void F_DLRIA(call_desc_t *cd) DL_Est_Req(ctrl_desc[cd->controller].unit); } - -#endif /* NI4BQ931 > 0 */ diff --git a/sys/i4b/layer3/i4b_l3timer.c b/sys/i4b/layer3/i4b_l3timer.c index ec408b6deaa6..50487e1bb566 100644 --- a/sys/i4b/layer3/i4b_l3timer.c +++ b/sys/i4b/layer3/i4b_l3timer.c @@ -33,10 +33,6 @@ * *---------------------------------------------------------------------------*/ -#include "i4bq931.h" - -#if NI4BQ931 > 0 - #include #include #include @@ -326,6 +322,3 @@ T313_stop(call_desc_t *cd) NDBGL3(L3_T_MSG, "cr = %d", cd->cr); } - -#endif /* NI4BQ931 > 0 */ - diff --git a/sys/i4b/layer3/i4b_l4if.c b/sys/i4b/layer3/i4b_l4if.c index 34ddad8b82f0..da925e8fc159 100644 --- a/sys/i4b/layer3/i4b_l4if.c +++ b/sys/i4b/layer3/i4b_l4if.c @@ -33,10 +33,6 @@ * *---------------------------------------------------------------------------*/ -#include "i4bq931.h" - -#if NI4BQ931 > 0 - #include #include #include @@ -323,5 +319,3 @@ n_alert_request(u_int cdid) next_l3state(cd, EV_ALERTRQ); } - -#endif /* NI4BQ931 > 0 */ diff --git a/sys/i4b/layer3/i4b_q931.c b/sys/i4b/layer3/i4b_q931.c index a3647aa7f193..626328d8c77a 100644 --- a/sys/i4b/layer3/i4b_q931.c +++ b/sys/i4b/layer3/i4b_q931.c @@ -33,10 +33,6 @@ * *---------------------------------------------------------------------------*/ -#include "i4bq931.h" - -#if NI4BQ931 > 0 - #include #include #include @@ -715,5 +711,3 @@ i4b_decode_q931_message(int unit, call_desc_t *cd, u_char message_type) NDBGL3(L3_PRIM, "%s: unit %d, cr = 0x%02x\n", m, unit, cd->cr); } } - -#endif /* NI4BQ931 > 0 */ diff --git a/sys/i4b/layer3/i4b_q932fac.c b/sys/i4b/layer3/i4b_q932fac.c index 38bf5dac8205..98114a3a3151 100644 --- a/sys/i4b/layer3/i4b_q932fac.c +++ b/sys/i4b/layer3/i4b_q932fac.c @@ -33,10 +33,6 @@ * *---------------------------------------------------------------------------*/ -#include "i4bq931.h" - -#if NI4BQ931 > 0 - #include #include #include @@ -542,5 +538,3 @@ next_state(int class, int form, int code, int val) } } } - -#endif /* NI4BQ931 > 0 */ diff --git a/sys/i4b/layer4/i4b_i4bdrv.c b/sys/i4b/layer4/i4b_i4bdrv.c index f9c77266231f..1dffc0f4625d 100644 --- a/sys/i4b/layer4/i4b_i4bdrv.c +++ b/sys/i4b/layer4/i4b_i4bdrv.c @@ -33,16 +33,9 @@ * *---------------------------------------------------------------------------*/ -#include "i4b.h" #include "i4bipr.h" #include "i4btel.h" -#if NI4B > 1 -#error "only 1 (one) i4b device possible!" -#endif - -#if NI4B > 0 - #include #include #include @@ -891,5 +884,3 @@ i4bputqueue_hipri(struct mbuf *m) selwakeup(&select_rd_info); } } - -#endif /* NI4B > 0 */ diff --git a/sys/i4b/layer4/i4b_l4.c b/sys/i4b/layer4/i4b_l4.c index 517ee10b3ba5..7b0616b33991 100644 --- a/sys/i4b/layer4/i4b_l4.c +++ b/sys/i4b/layer4/i4b_l4.c @@ -33,11 +33,8 @@ * *---------------------------------------------------------------------------*/ -#include "i4b.h" #include "i4bipr.h" -#if NI4B > 0 - #include #include #include @@ -1102,5 +1099,3 @@ i4b_idle_check_var_unit(call_desc_t *cd) break; } } - -#endif /* NI4B > 0 */ diff --git a/sys/i4b/layer4/i4b_l4mgmt.c b/sys/i4b/layer4/i4b_l4mgmt.c index 1368fb94f770..8556e3776ec8 100644 --- a/sys/i4b/layer4/i4b_l4mgmt.c +++ b/sys/i4b/layer4/i4b_l4mgmt.c @@ -33,10 +33,6 @@ * *---------------------------------------------------------------------------*/ -#include "i4b.h" - -#if NI4B > 0 - #include #include #include @@ -433,5 +429,3 @@ i4b_print_cdaa(void) } #endif /* I4B_CD_DEBUG_PRINT */ - -#endif /* NI4BQ931 > 0 */ diff --git a/sys/i4b/layer4/i4b_l4timer.c b/sys/i4b/layer4/i4b_l4timer.c index 327ad9234759..5be778d086e3 100644 --- a/sys/i4b/layer4/i4b_l4timer.c +++ b/sys/i4b/layer4/i4b_l4timer.c @@ -33,10 +33,6 @@ * *---------------------------------------------------------------------------*/ -#include "i4b.h" - -#if NI4B > 0 - #include #include #include @@ -90,5 +86,3 @@ T400_stop(call_desc_t *cd) CRIT_END; NDBGL4(L4_MSG, "cr = %d", cd->cr); } - -#endif /* NI4B > 0 */