Remove the cnw(4) driver. No one responded to calls to test it on current@

and stable@.  It also is a driver for an older non-802.11 wireless PC card
that is quite slow in comparison to say, wi(4).  I know Warner wants this
driver axed as well.
This commit is contained in:
John Baldwin 2008-07-04 19:13:15 +00:00
parent a58736493e
commit 67c58e8a6e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=180261
9 changed files with 0 additions and 1690 deletions

View file

@ -50,7 +50,6 @@ MAN= aac.4 \
ciss.4 \
cm.4 \
cmx.4 \
cnw.4 \
coda.4 \
${_coretemp.4} \
cpufreq.4 \
@ -442,7 +441,6 @@ MLINKS+=bce.4 if_bce.4
MLINKS+=bfe.4 if_bfe.4
MLINKS+=bge.4 if_bge.4
MLINKS+=bktr.4 brooktree.4
MLINKS+=cnw.4 if_cnw.4
MLINKS+=crypto.4 cryptodev.4
MLINKS+=cue.4 if_cue.4
MLINKS+=dc.4 if_dc.4

View file

@ -1,125 +0,0 @@
.\" $NetBSD: cnw.4,v 1.12 2001/09/12 18:19:17 wiz Exp $
.\"
.\" Copyright (c) 1997 Berkeley Software Design, Inc. All rights reserved.
.\"
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that this notice is retained,
.\" the conditions in the following notices are met, and terms applying
.\" to contributors in the following notices also apply to Berkeley
.\" Software Design, Inc.
.\"
.\" 1. Redistributions of source code must retain the above copyright
.\" notice, this list of conditions and the following disclaimer.
.\" 2. Redistributions in binary form must reproduce the above copyright
.\" notice, this list of conditions and the following disclaimer in the
.\" documentation and/or other materials provided with the distribution.
.\" 3. All advertising materials mentioning features or use of this software
.\" must display the following acknowledgement:
.\" This product includes software developed by
.\" Berkeley Software Design, Inc.
.\" 4. Neither the name of the Berkeley Software Design, Inc. nor the names
.\" of its contributors may be used to endorse or promote products derived
.\" from this software without specific prior written permission.
.\"
.\" THIS SOFTWARE IS PROVIDED BY BERKELEY SOFTWARE DESIGN, INC. ``AS IS'' AND
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
.\" ARE DISCLAIMED. IN NO EVENT SHALL BERKELEY SOFTWARE DESIGN, INC. BE LIABLE
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
.\" PAO2 Id: cnw.4,v 1.1.1.1 1997/12/11 14:46:23 itojun Exp
.\"
.\" $FreeBSD$
.\"
.Dd September 5, 2004
.Dt CNW 4
.Os
.Sh NAME
.Nm cnw
.Nd Netwave AirSurfer wireless network driver
.Sh SYNOPSIS
.Cd "device cnw"
.Sh DESCRIPTION
The
.Nm
interface provides access to a theoretical 1Mb/s wireless Ethernet network
based on the Netwave AirSurfer Wireless LAN (formerly known as the Xircom
Netwave Wireless LAN).
.Pp
Note that the driver does not support newer devices
such as the Netwave AirSurfer
.Dq Plus ,
or the BayStack 650/660.
.Pp
Netwave devices are not compatible with IEEE 802.11 wireless networks.
Also note that there are Netwave devices with different wireless frequency,
depending on the radio band plan in each country.
.Pp
The card uses 36K of I/O memory mapped to the card.
.\"The card uses 32K of I/O memory mapped to the card along with either 16 I/O ports
.\"or 4K of additional I/O memory for access to command registers.
.\"The driver currently only supports the use of the additional 4K of I/O memory.
You may need to increase memory space available to the PC Card controller.
See
.Xr pccard 4
for details.
.Pp
In use, the cards appear to achieve up to a 420Kb/s transfer rate, though
a transfer rate between 250Kb/s and 350Kb/s is typical.
.Pp
The card operates in the 2.4GHz frequency range and is subject to interference
from microwaves, IEEE 802.11 wireless network devices, as well as earth.
For example, it seems that IEEE 802.11 channel 14 conflicts with Netwave
(US frequency).
They interfere with each other if they are both operated
in the same geographic region, causing weird packet loss.
You may be able to avoid the interference with IEEE 802.11 devices,
by changing the IEEE 802.11 channel.
.Sh HARDWARE
Cards supported by the
.Nm
driver include:
.Pp
.Bl -bullet -compact
.It
Xircom CreditCard Netwave
.It
NetWave AirSurfer
.El
.Sh DIAGNOSTICS
.Bl -diag
.It "cnw0: can't map memory"
Indicates that the driver was not able to allocate enough PC Card bus
address space into which to map the device.
See
.Xr pccard 4
and increase memory available to the PC Card controller.
.El
.Sh SEE ALSO
.Xr arp 4 ,
.Xr inet 4 ,
.Xr intro 4 ,
.Xr pccard 4
.Sh HISTORY
The
.Nm
driver was ported from
.Nx
by
.An Hiroyuki Aizu Aq aizu@jaist.ac.jp .
It first appeared in
.Nx 1.4 .
The first
.Fx
release to include it was
.Fx 5.0 .
This manual page was adopted from
.Nx
by
.An Christian Brueffer Aq brueffer@FreeBSD.org .

View file

@ -1737,7 +1737,6 @@ device miibus
# the embedded gigE NICs on Dell PowerEdge 2550 servers.
# cm: Arcnet SMC COM90c26 / SMC COM90c56
# (and SMC COM90c66 in '56 compatibility mode) adapters.
# cnw: Xircom CNW/Netware Airsurfer PC Card adapter
# dc: Support for PCI fast ethernet adapters based on the DEC/Intel 21143
# and various workalikes including:
# the ADMtek AL981 Comet and AN985 Centaur, the ASIX Electronics
@ -1864,7 +1863,6 @@ hint.sn.0.at="isa"
hint.sn.0.port="0x300"
hint.sn.0.irq="10"
device an
device cnw
device wi
device xe

View file

@ -509,7 +509,6 @@ dev/ciss/ciss.c optional ciss
dev/cm/smc90cx6.c optional cm
dev/cmx/cmx.c optional cmx
dev/cmx/cmx_pccard.c optional cmx pccard
dev/cnw/if_cnw.c optional cnw pccard
dev/cpufreq/ichss.c optional cpufreq
dev/cs/if_cs.c optional cs
dev/cs/if_cs_isa.c optional cs isa

File diff suppressed because it is too large Load diff

View file

@ -1,114 +0,0 @@
/* $NetBSD: if_cnwioctl.h,v 1.2 1999/11/29 12:54:00 itojun Exp $ */
/* $FreeBSD$ */
/*-
* Copyright (c) 1996, 1997 Berkeley Software Design, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that this notice is retained,
* the conditions in the following notices are met, and terms applying
* to contributors in the following notices also apply to Berkeley
* Software Design, Inc.
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* 3. All advertising materials mentioning features or use of this software
* must display the following acknowledgement:
* This product includes software developed by
* Berkeley Software Design, Inc.
* 4. Neither the name of the Berkeley Software Design, Inc. nor the names
* of its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY BERKELEY SOFTWARE DESIGN, INC. ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL BERKELEY SOFTWARE DESIGN, INC. BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* PAO2 Id: if_cnwioctl.h,v 1.1.8.1 1998/12/05 22:47:11 itojun Exp
*
* Paul Borman, December 1996
*
* This driver is derived from a generic frame work which is
* Copyright(c) 1994,1995,1996
* Yoichi Shinoda, Yoshitaka Tokugawa, WIDE Project, Wildboar Project
* and Foretune. All rights reserved.
*
* A linux driver was used as the "hardware reference manual" (i.e.,
* to determine registers and a general outline of how the card works)
* That driver is publically available and copyright
*
* John Markus BjNxrndalen
* Department of Computer Science
* University of TromsNx
* Norway
* johnm@staff.cs.uit.no, http://www.cs.uit.no/~johnm/
*/
struct cnwstatus {
struct ifreq ifr;
u_char data[0x100];
};
struct cnwstats {
u_quad_t nws_rx;
u_quad_t nws_rxerr;
u_quad_t nws_rxoverflow;
u_quad_t nws_rxoverrun;
u_quad_t nws_rxcrcerror;
u_quad_t nws_rxframe;
u_quad_t nws_rxerrors;
u_quad_t nws_rxavail;
u_quad_t nws_rxone;
u_quad_t nws_tx;
u_quad_t nws_txokay;
u_quad_t nws_txabort;
u_quad_t nws_txlostcd;
u_quad_t nws_txerrors;
u_quad_t nws_txretries[16];
};
struct cnwistats {
struct ifreq ifr;
struct cnwstats stats;
};
struct cnwtrail {
u_char what;
u_char status;
u_short length;
struct timeval when;
struct timeval done;
};
struct cnwitrail {
struct ifreq ifr;
int head;
struct cnwtrail trail[128];
};
#if !defined(__FreeBSD__)
#define ifr_domain ifr_ifru.ifru_flags /* domain */
#define ifr_key ifr_ifru.ifru_flags /* scramble key */
#else
#define ifr_domain ifr_flags /* domain */
#define ifr_key ifr_flags /* scramble key */
#endif
#define SIOCSCNWDOMAIN _IOW('i', 254, struct ifreq) /* set domain */
#define SIOCGCNWDOMAIN _IOWR('i', 253, struct ifreq) /* get domain */
#define SIOCSCNWKEY _IOWR('i', 252, struct ifreq) /* set scramble key */
#define SIOCGCNWSTATUS _IOWR('i', 251, struct cnwstatus)/* get raw status */
#define SIOCGCNWSTATS _IOWR('i', 250, struct cnwistats)/* get stats */
#define SIOCGCNWTRAIL _IOWR('i', 249, struct cnwitrail)/* get trail */

View file

@ -1,147 +0,0 @@
/* $NetBSD: if_cnwreg.h,v 1.3 2000/07/05 18:42:19 itojun Exp $ */
/* $FreeBSD$ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
* All rights reserved.
*
* This code is derived from software contributed to The NetBSD Foundation
* by Michael Eriksson.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* 3. All advertising materials mentioning features or use of this software
* must display the following acknowledgement:
* This product includes software developed by the NetBSD
* Foundation, Inc. and its contributors.
* 4. Neither the name of The NetBSD Foundation nor the names of its
* contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
* ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
* BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/
/* I/O area */
#define CNW_IO_SIZE 0x10
/* I/O area can be accessed via mapped memory too */
#define CNW_IOM_ADDR 0x28000
#define CNW_IOM_SIZE CNW_IO_SIZE
#define CNW_IOM_OFF (CNW_IOM_ADDR - CNW_MEM_ADDR)
/* I/O registers */
#define CNW_REG_COR 0x0
# define CNW_COR_IENA 0x01 /* Interrupt enable */
# define CNW_COR_LVLREQ 0x40 /* Keep high */
#define CNW_REG_CCSR 0x2
#define CNW_REG_ASR 0x4
# define CNW_ASR_TXBA 0x01 /* Trasmit buffer available */
# define CNW_ASR_WOC 0x08 /* Write Operation Complete */
# define CNW_ASR_TXDN 0x20 /* Transmit done */
# define CNW_ASR_RXERR 0x40 /* Receive error */
# define CNW_ASR_RXRDY 0x80 /* Packet received */
#define CNW_REG_IOLOW 0x6
#define CNW_REG_IOHI 0x7
#define CNW_REG_IOCONTROL 0x8
#define CNW_REG_IMR 0xa
# define CNW_IMR_IENA 0x02 /* Interrupt enable */
# define CNW_IMR_RFU1 0x10 /* RFU intr mask, keep high */
#define CNW_REG_PMR 0xc
# define CNW_PMR_RESET 0x80
#define CNW_REG_DATA 0xf
/* Mapped memory */
#define CNW_MEM_ADDR 0x20000
#define CNW_MEM_SIZE 0x8000
/* Extended I/O registers (memory mapped) */
#define CNW_EREG_CB 0x100
#define CNW_EREG_ASCC 0x114
#define CNW_EREG_RSER 0x120
# define CNW_RSER_RXBIG 0x02
# define CNW_RSER_RXCRC 0x04
# define CNW_RSER_RXOVERRUN 0x08
# define CNW_RSER_RXOVERFLOW 0x10
# define CNW_RSER_RXERR 0x40
# define CNW_RSER_RXAVAIL 0x80
#define CNW_EREG_RSERW 0x124
#define CNW_EREG_TSER 0x130
# define CNW_TSER_RTRY 0x0f
# define CNW_TSER_TXERR 0x10
# define CNW_TSER_TXOK 0x20
# define CNW_TSER_TXNOAP 0x40
# define CNW_TSER_TXGU 0x80
# define CNW_TSER_ERROR (CNW_TSER_TXERR | CNW_TSER_TXNOAP | \
CNW_TSER_TXGU)
#define CNW_EREG_TSERW 0x134
#define CNW_EREG_TDP 0x140
#define CNW_EREG_LIF 0x14e
#define CNW_EREG_RDP 0x150
#define CNW_EREG_SPCQ 0x154
#define CNW_EREG_SPU 0x155
#define CNW_EREG_ISPLQ 0x156
#define CNW_EREG_HHC 0x158
#define CNW_EREG_PA 0x160
#define CNW_EREG_ARW 0x166
#define CNW_EREG_MHS 0x16b
#define CNW_EREG_NI 0x16e
#define CNW_EREG_CRBP 0x17a
#define CNW_EREG_EC 0x180
#define CNW_EREG_STAT_RXERR 0x184
#define CNW_EREG_STAT_FRAME 0x186
#define CNW_EREG_STAT_IBEAT 0x188
#define CNW_EREG_STAT_RXBUF 0x18e
#define CNW_EREG_STAT_RXMULTI 0x190
#define CNW_EREG_STAT_TXRETRY 0x192
#define CNW_EREG_STAT_TXABORT 0x194
#define CNW_EREG_STAT_OBEAT 0x198
#define CNW_EREG_STAT_TXOK 0x19a
#define CNW_EREG_STAT_TXSENT 0x19c
/*
* Commands used in the extended command buffer
* CNW_EREG_CB (0x100-0x10f)
*/
#define CNW_CMD_NOP 0x00
#define CNW_CMD_SRC 0x01
# define CNW_RXCONF_RXENA 0x80 /* Receive Enable */
# define CNW_RXCONF_MAC 0x20 /* MAC host receive mode */
# define CNW_RXCONF_PRO 0x10 /* Promiscuous */
# define CNW_RXCONF_AMP 0x08 /* Accept Multicast Packets */
# define CNW_RXCONF_BCAST 0x04 /* Accept Broadcast Packets */
#define CNW_CMD_STC 0x02
# define CNW_TXCONF_TXENA 0x80 /* Transmit Enable */
# define CNW_TXCONF_MAC 0x20 /* Host sends MAC mode */
# define CNW_TXCONF_EUD 0x10 /* Enable Uni-Data packets */
# define CNW_TXCONF_KEY 0x02 /* Scramble data packets */
# define CNW_TXCONF_LOOP 0x01 /* Loopback mode */
#define CNW_CMD_AMA 0x03
#define CNW_CMD_DMA 0x04
#define CNW_CMD_SAMA 0x05
#define CNW_CMD_ER 0x06
#define CNW_CMD_DR 0x07
#define CNW_CMD_TL 0x08
#define CNW_CMD_SRP 0x09
#define CNW_CMD_SSK 0x0a
#define CNW_CMD_SMD 0x0b
#define CNW_CMD_SAPD 0x0c
#define CNW_CMD_SSS 0x11
#define CNW_CMD_EOC 0x00 /* End-of-command marker */

View file

@ -53,7 +53,6 @@ SUBDIR= ${_3dfx} \
${_ciss} \
${_cm} \
${_cmx} \
${_cnw} \
coda \
coda5 \
${_coff} \
@ -455,7 +454,6 @@ _bios= bios
_ciss= ciss
_cm= cm
_cmx= cmx
_cnw= cnw
_coretemp= coretemp
_ctau= ctau
_cx= cx

View file

@ -1,8 +0,0 @@
# $FreeBSD$
.PATH: ${.CURDIR}/../../dev/cnw
KMOD = if_cnw
SRCS = if_cnw.c
SRCS += device_if.h bus_if.h card_if.h
.include <bsd.kmod.mk>