1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-20 11:11:24 +00:00
freebsd/sys/dev/awi
Jonathan Lemon df5e198723 Lock down the network interface queues. The queue mutex must be obtained
before adding/removing packets from the queue.  Also, the if_obytes and
if_omcasts fields should only be manipulated under protection of the mutex.

IF_ENQUEUE, IF_PREPEND, and IF_DEQUEUE perform all necessary locking on
the queue.  An IF_LOCK macro is provided, as well as the old (mutex-less)
versions of the macros in the form _IF_ENQUEUE, _IF_QFULL, for code which
needs them, but their use is discouraged.

Two new macros are introduced: IF_DRAIN() to drain a queue, and IF_HANDOFF,
which takes care of locking/enqueue, and also statistics updating/start
if necessary.
2000-11-25 07:35:38 +00:00
..
am79c930.c
am79c930reg.h
am79c930var.h
awi_wep.c Move suser() and suser_xxx() prototypes and a related #define from 2000-10-29 16:06:56 +00:00
awi_wicfg.c Move suser() and suser_xxx() prototypes and a related #define from 2000-10-29 16:06:56 +00:00
awi.c Lock down the network interface queues. The queue mutex must be obtained 2000-11-25 07:35:38 +00:00
awireg.h
awivar.h Bite the bullet and provde memcmp() and memset(), this will be cheaper 2000-09-02 13:34:52 +00:00
if_awi_pccard.c Remove unneeded #include <machine/clock.h> 2000-10-15 14:19:01 +00:00
README

# $Id: README,v 1.19 2000/03/24 08:13:24 onoe Exp $
# $FreeBSD$

===== Configuration
	ifconfig awi0 link0
		changes to encapsulation from 802.2 LLC/SNAP (default) to
		ether encapsulation.  MELCO access point and PAO's ux driver 
		use this.

===== Supported Cards
	Any IEEE 802.11 cards use AMD Am79C930 and Harris (Intersil) Chipset
	with PCnetMobile firmware by AMD.
	   BayStack 650   1Mbps Frequency Hopping PCCARD adapter
	   BayStack 660   2Mbps Direct Sequence PCCARD adapter
	   Icom SL-200    2Mbps Direct Sequence PCCARD adapter
	   Melco WLI-PCM  2Mbps Direct Sequence PCCARD adapter
	   NEL SSMagic    2Mbps Direct Sequence PCCARD adapter
	   Netwave AirSurfer Plus
			  1Mbps Frequency Hopping PCCARD adapter
	   Netwave AirSurfer Pro
			  2Mbps Direct Sequence PCCARD adapter

===== Known Problems
	WEP is not supported.
	Does not create IBSS itself.

	Cannot configure at all on FreeBSD:
		selection of infrastructure/adhoc mode
		ESSID
		...

===== How to add

*** NetBSD current
	already merged into current source tree.

        pcmcia: update the awi driver, which now supports AMD 79c930-based 
                802.11DS cards as well as 802.11FH cards, and can operate
                in infrastructure mode, adhoc mode, and wi(4) compatible
                adhoc mode. [onoe 20000322]

*** FreeBSD-current
	make directory /sys/dev/awi and put all files there.
	move if_ieee80211.h to /sys/net
	add following lines to /sys/conf/files
		dev/awi/am79c930.c	optional awi
		dev/awi/awi.c		optional awi
		dev/awi/if_awi_pccard.c	optional awi card
	add following line to config file
		device		awi0
	config and make kernel

	add description of your card to /etc/pccard.conf
	    ex.
		card "AMD" "Am79C930"
			config 0x1 "awi0" ?
		card "Icom" "SL-200"
			config 0x1 "awi0" ?
		card "Bay Networks" "BayStack 650 Wireless LAN"
			config 0x1 "awi0" ?