CVS log for src/sys/dev/ic/atw.c
Up to [cvs.NetBSD.org] / src / sys / dev / ic
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
Revision 1.172: download - view: text, markup, annotated - select for diffs
Tue Sep 21 14:42:01 2021 UTC (5 years, 1 month ago) by christos
Branches: MAIN
CVS tags: thorpej-ifq-base,
thorpej-ifq,
thorpej-altq-separation-base,
thorpej-altq-separation,
perseant-exfatfs-base-20261102,
perseant-exfatfs-base-20250801,
perseant-exfatfs-base-20240630,
perseant-exfatfs-base,
perseant-exfatfs,
netbsd-11-base,
netbsd-11-1-RELEASE,
netbsd-11-0-RELEASE,
netbsd-11-0-RC7,
netbsd-11-0-RC6,
netbsd-11-0-RC5,
netbsd-11-0-RC4,
netbsd-11-0-RC3,
netbsd-11-0-RC2,
netbsd-11-0-RC1,
netbsd-11,
netbsd-10-base,
netbsd-10-2-RELEASE,
netbsd-10-1-RELEASE,
netbsd-10-0-RELEASE,
netbsd-10-0-RC6,
netbsd-10-0-RC5,
netbsd-10-0-RC4,
netbsd-10-0-RC3,
netbsd-10-0-RC2,
netbsd-10-0-RC1,
netbsd-10,
bouyer-sunxi-drm-base,
bouyer-sunxi-drm,
HEAD
Diff to: previous 1.171: preferred, colored
Changes since revision 1.171: +4 -4
lines
don't opencode kauth_cred_get()
Revision 1.170.10.1: download - view: text, markup, annotated - select for diffs
Thu Jun 17 04:46:28 2021 UTC (5 years, 5 months ago) by thorpej
Branches: thorpej-i2c-spi-conf
Diff to: previous 1.170: preferred, colored; next MAIN 1.171: preferred, colored
Changes since revision 1.170: +3 -8
lines
Sync w/ HEAD.
Revision 1.171: download - view: text, markup, annotated - select for diffs
Wed Jun 16 00:21:18 2021 UTC (5 years, 5 months ago) by riastradh
Branches: MAIN
CVS tags: thorpej-i2c-spi-conf2-base,
thorpej-i2c-spi-conf2,
thorpej-i2c-spi-conf-base,
thorpej-futex2-base,
thorpej-futex2,
thorpej-cfargs2-base,
thorpej-cfargs2
Diff to: previous 1.170: preferred, colored
Changes since revision 1.170: +3 -8
lines
if_attach and if_initialize cannot fail, don't test return value
These were originally made failable back in 2017 when if_initialize
allocated a softint in every interface for link state changes, so
that it could fail gracefully instead of panicking:
https://mail-index.NetBSD.org/source-changes/2017/10/23/msg089053.html
However, this spawned many seldom- or never-tested error branches,
which are risky to have around. And that softint in every interface
has since been replaced by a single global workqueue, because link
state changes require thread context but not low latency or high
throughput:
https://mail-index.NetBSD.org/source-changes/2020/02/06/msg113759.html
So there is no longer any reason for if_initialize to fail. (The
subroutine if_stats_init can't fail because percpu_alloc can't fail
either.)
There is a snag: the softint_establish in if_percpuq_create could
fail, potentially leading to bad consequences later on trying to use
the softint. This change doesn't introduce any new bugs because of
the snag -- if_percpuq_attach was already broken. However, the snag
can be better addressed without spawning error branches, either by
using a single softint or making softints less scarce.
(Separate commit will change the signatures of if_attach and
if_initialize to return void, scheduled to ride whatever is the next
convenient kernel bump.)
Patch and testing on amd64 and evbmips64-eb by maya@; commit message
soliloquy, and compile-testing on evbppc/i386/earmv7hf, by me.
Revision 1.164.2.3: download - view: text, markup, annotated - select for diffs
Mon Apr 13 08:04:21 2020 UTC (6 years, 7 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.164.2.2: preferred, colored; branchpoint 1.164: preferred, colored; next MAIN 1.165: preferred, colored
Changes since revision 1.164.2.2: +1 -8
lines
Mostly merge changes from HEAD upto 20200411
Revision 1.164.2.2: download - view: text, markup, annotated - select for diffs
Wed Apr 8 14:08:06 2020 UTC (6 years, 7 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.164.2.1: preferred, colored; branchpoint 1.164: preferred, colored
Changes since revision 1.164.2.1: +16 -16
lines
Merge changes from current as of 20200406
Revision 1.169.2.1: download - view: text, markup, annotated - select for diffs
Sat Feb 29 20:19:08 2020 UTC (6 years, 8 months ago) by ad
Branches: ad-namecache
Diff to: previous 1.169: preferred, colored; next MAIN 1.170: preferred, colored
Changes since revision 1.169: +16 -16
lines
Sync with head.
Revision 1.170: download - view: text, markup, annotated - select for diffs
Wed Jan 29 14:09:58 2020 UTC (6 years, 9 months ago) by thorpej
Branches: MAIN
CVS tags: thorpej-futex-base,
thorpej-futex,
thorpej-cfargs-base,
thorpej-cfargs,
phil-wifi-20200421,
phil-wifi-20200411,
phil-wifi-20200406,
is-mlppp-base,
is-mlppp,
cjep_sun2x-base1,
cjep_sun2x-base,
cjep_sun2x,
cjep_staticlib_x-base1,
cjep_staticlib_x-base,
cjep_staticlib_x,
bouyer-xenpvh-base2,
bouyer-xenpvh-base1,
bouyer-xenpvh-base,
bouyer-xenpvh,
ad-namecache-base3
Branch point for: thorpej-i2c-spi-conf
Diff to: previous 1.169: preferred, colored
Changes since revision 1.169: +16 -16
lines
Adopt <net/if_stats.h>.
Revision 1.169: download - view: text, markup, annotated - select for diffs
Sun Nov 10 21:16:35 2019 UTC (7 years ago) by chs
Branches: MAIN
CVS tags: phil-wifi-20191119,
ad-namecache-base2,
ad-namecache-base1,
ad-namecache-base
Branch point for: ad-namecache
Diff to: previous 1.168: preferred, colored
Changes since revision 1.168: +3 -10
lines
in many device attach paths, allocate memory with M_WAITOK instead of M_NOWAIT
and remove code to handle failures that can no longer happen.
Revision 1.164.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 10 22:07:10 2019 UTC (7 years, 5 months ago) by christos
Branches: phil-wifi
Diff to: previous 1.164: preferred, colored
Changes since revision 1.164: +92 -83
lines
Sync with HEAD
Revision 1.168: download - view: text, markup, annotated - select for diffs
Tue May 28 07:41:48 2019 UTC (7 years, 5 months ago) by msaitoh
Branches: MAIN
CVS tags: phil-wifi-20190609,
netbsd-9-base,
netbsd-9-5-RELEASE,
netbsd-9-4-RELEASE,
netbsd-9-3-RELEASE,
netbsd-9-2-RELEASE,
netbsd-9-1-RELEASE,
netbsd-9-0-RELEASE,
netbsd-9-0-RC2,
netbsd-9-0-RC1,
netbsd-9
Diff to: previous 1.167: preferred, colored
Changes since revision 1.167: +7 -3
lines
Use ETHER_LOCK()/ETHER_UNLOCK() for all ethernet drivers to protect ec_multi*.
Revision 1.167: download - view: text, markup, annotated - select for diffs
Thu May 23 13:10:51 2019 UTC (7 years, 5 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.166: preferred, colored
Changes since revision 1.166: +18 -18
lines
Whitespace fix (mainly tabify).
Revision 1.166: download - view: text, markup, annotated - select for diffs
Thu May 23 10:57:28 2019 UTC (7 years, 5 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.165: preferred, colored
Changes since revision 1.165: +71 -65
lines
-No functional change:
- KNF
- u_int*_t -> uint*_t.
Revision 1.165: download - view: text, markup, annotated - select for diffs
Tue Feb 5 06:17:02 2019 UTC (7 years, 9 months ago) by msaitoh
Branches: MAIN
CVS tags: isaki-audio2-base,
isaki-audio2
Diff to: previous 1.164: preferred, colored
Changes since revision 1.164: +3 -4
lines
Remove very old IFF_NOTRAILERS flag.
Revision 1.162.2.2: download - view: text, markup, annotated - select for diffs
Sat Jul 28 04:37:44 2018 UTC (8 years, 3 months ago) by pgoyette
Branches: pgoyette-compat
CVS tags: pgoyette-compat-merge-20190127
Diff to: previous 1.162.2.1: preferred, colored; branchpoint 1.162: preferred, colored; next MAIN 1.163: preferred, colored
Changes since revision 1.162.2.1: +6 -6
lines
Sync with HEAD
Revision 1.164: download - view: text, markup, annotated - select for diffs
Tue Jun 26 06:48:00 2018 UTC (8 years, 4 months ago) by msaitoh
Branches: MAIN
CVS tags: phil-wifi-base,
pgoyette-compat-20190127,
pgoyette-compat-20190118,
pgoyette-compat-1226,
pgoyette-compat-1126,
pgoyette-compat-1020,
pgoyette-compat-0930,
pgoyette-compat-0906,
pgoyette-compat-0728,
jdolecek-ncqfixes-base,
jdolecek-ncqfixes
Branch point for: phil-wifi
Diff to: previous 1.163: preferred, colored
Changes since revision 1.163: +6 -6
lines
Implement the BPF direction filter (BIOC[GS]DIRECTION). It provides backward
compatibility with BIOC[GS]SEESENT ioctl. The userland interface is the same
as FreeBSD.
This change also fixes a bug that the direction is misunderstand on some
environment by passing the direction to bpf_mtap*() instead of checking
m->m_pkthdr.rcvif.
Revision 1.162.2.1: download - view: text, markup, annotated - select for diffs
Wed May 2 07:20:06 2018 UTC (8 years, 6 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.162: preferred, colored
Changes since revision 1.162: +4 -9
lines
Synch with HEAD
Revision 1.163: download - view: text, markup, annotated - select for diffs
Tue May 1 16:18:13 2018 UTC (8 years, 6 months ago) by maya
Branches: MAIN
CVS tags: pgoyette-compat-0625,
pgoyette-compat-0521,
pgoyette-compat-0502
Diff to: previous 1.162: preferred, colored
Changes since revision 1.162: +4 -9
lines
GC private 802.11 rateset declarations, use the standard ones.
Build tested only.
Revision 1.161.6.1: download - view: text, markup, annotated - select for diffs
Sun Dec 10 10:10:23 2017 UTC (8 years, 11 months ago) by snj
Branches: netbsd-8
CVS tags: netbsd-8-3-RELEASE,
netbsd-8-2-RELEASE,
netbsd-8-1-RELEASE,
netbsd-8-1-RC1,
netbsd-8-0-RELEASE,
netbsd-8-0-RC2,
netbsd-8-0-RC1
Diff to: previous 1.161: preferred, colored; next MAIN 1.162: preferred, colored
Changes since revision 1.161: +18 -12
lines
Pull up following revision(s) (requested by msaitoh in ticket #427):
sys/arch/amiga/dev/if_bah_zbus.c: 1.17
sys/arch/arm/broadcom/bcm53xx_eth.c: 1.30
sys/arch/powerpc/booke/dev/pq3etsec.c: 1.32
sys/arch/usermode/dev/if_veth.c: 1.9
sys/dev/ic/an.c: 1.66
sys/dev/ic/athn.c: 1.17
sys/dev/ic/atw.c: 1.162
sys/dev/ic/bwi.c: 1.33
sys/dev/ic/dwc_gmac.c: 1.41-1.42
sys/dev/ic/malo.c: 1.10
sys/dev/ic/rt2560.c: 1.31
sys/dev/ic/rt2661.c: 1.36
sys/dev/ic/rt2860.c: 1.29
sys/dev/ic/rtw.c: 1.127
sys/dev/ic/rtwvar.h: 1.46
sys/dev/ic/smc90cx6.c: 1.71
sys/dev/ic/smc90cx6var.h: 1.12
sys/dev/ic/wi.c: 1.244
sys/dev/pci/if_ipw.c: 1.66
sys/dev/pci/if_iwi.c: 1.104
sys/dev/pci/if_iwm.c: 1.76
sys/dev/pci/if_iwn.c: 1.86
sys/dev/pci/if_rtwn.c: 1.13
sys/dev/pci/if_wm.c: 1.541
sys/dev/pci/if_wpi.c: 1.79
sys/dev/pci/ixgbe/ixgbe.c: 1.106
sys/dev/pci/ixgbe/ixv.c: 1.73 via patch
sys/dev/pcmcia/if_malo_pcmcia.c: 1.15
sys/dev/scsipi/if_se.c: 1.95
sys/dev/usb/if_upl.c: 1.60
sys/net/if.c: 1.396
sys/net/if.h: 1.241
sys/net/if_arc.h: 1.23
sys/net/if_arcsubr.c: 1.78
sys/net/if_bridge.c: 1.136-1.137
sys/net/if_etherip.c: 1.39
sys/net/if_faith.c: 1.56
sys/net/if_gif.c: 1.131
sys/net/if_loop.c: 1.96
sys/net/if_mpls.c: 1.30
sys/net/if_pppoe.c: 1.129
sys/net/if_srt.c: 1.27
sys/net/if_stf.c: 1.102
sys/net/if_tap.c: 1.100
sys/net/if_vlan.c: 1.105
sys/netinet/ip_carp.c: 1.91
sys/rump/net/lib/libshmif/if_shmem.c: 1.73-1.74
sys/rump/net/lib/libvirtif/if_virt.c: 1.55-1.56
if_initalize() and if_attach() failed when resource allocation failed
(e.g. allocating softint). Without this change, it panics. It's bad because
resource shortage really occured when a lot of pseudo interface is created.
To avoid this problem, don't panic and change return value of if_initialize()
and if_attach() to int. Caller fanction will be recover from error cleanly by
checking the return value.
Return if bah_attach_subr() failed.
If if_attach() failed in the attach function, return.
- If if_initialize() failed in the attach function, free resources and return.
- Add some missing frees in bridge_clone_destroy().
- KNF
If error occured in bcmeth_ccb_attach(), free resources and return.
If error occured in pq3etsec_attach(), free resources and return.
If error occured in the attach function, free resources and return.
- If if_initialize() failed in athn_attach(), free resources and return.
- Add missing pmf_event_deregister() in athn_detach().
- Free resources correctly on some errors in atw_attach().
- Use apint*() insread of printf() in the attach function.
If if_initialize() failed in the attach function, return.
- If if_initialize() failed in the attach function, free resources and return.
- Add missing dwc_gmac_free_dma_rings() and mutex_destroy() when attach
failed.
- If if_initialize() failed in the attach function, free resources and return.
- ifp is always not NULL in iwi_detach(). Check correctly with ifp->if_softc.
- If if_initialize() failed in the attach function, free resources and return.
- Fix error path in the attach function correctly.
If if_initialize() failed in the attach function, free resources and return.
If if_attach() failed in the attach function, free resources and return.
- If if_initialize() failed in the attach function, free resources and return.
- KNF
- If if_attach() failed in the attach function, free resources and return.
- KNF
Fix compile error.
Fix compile error.
We don't need '&mii', but just 'mii' for mii_detach().
Don't free sc_rthash twice
Revision 1.153.14.2: download - view: text, markup, annotated - select for diffs
Sun Dec 3 11:37:03 2017 UTC (8 years, 11 months ago) by jdolecek
Branches: tls-maxphys
Diff to: previous 1.153.14.1: preferred, colored; branchpoint 1.153: preferred, colored; next MAIN 1.154: preferred, colored
Changes since revision 1.153.14.1: +90 -22
lines
update from HEAD
Revision 1.162: download - view: text, markup, annotated - select for diffs
Mon Oct 23 09:25:31 2017 UTC (9 years ago) by msaitoh
Branches: MAIN
CVS tags: tls-maxphys-base-20171202,
pgoyette-compat-base,
pgoyette-compat-0422,
pgoyette-compat-0415,
pgoyette-compat-0407,
pgoyette-compat-0330,
pgoyette-compat-0322,
pgoyette-compat-0315
Branch point for: pgoyette-compat
Diff to: previous 1.161: preferred, colored
Changes since revision 1.161: +18 -12
lines
- Free resources correctly on some errors in atw_attach().
- Use apint*() insread of printf() in the attach function.
Revision 1.160.4.1: download - view: text, markup, annotated - select for diffs
Fri Apr 21 16:53:46 2017 UTC (9 years, 6 months ago) by bouyer
Branches: bouyer-socketcan
Diff to: previous 1.160: preferred, colored; next MAIN 1.161: preferred, colored
Changes since revision 1.160: +70 -10
lines
Sync with HEAD
Revision 1.160.2.1: download - view: text, markup, annotated - select for diffs
Mon Mar 20 06:57:28 2017 UTC (9 years, 7 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.160: preferred, colored; next MAIN 1.161: preferred, colored
Changes since revision 1.160: +70 -10
lines
Sync with HEAD
Revision 1.156.6.4: download - view: text, markup, annotated - select for diffs
Sun Feb 5 13:40:27 2017 UTC (9 years, 9 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.156.6.3: preferred, colored; branchpoint 1.156: preferred, colored; next MAIN 1.157: preferred, colored
Changes since revision 1.156.6.3: +70 -10
lines
Sync with HEAD
Revision 1.161: download - view: text, markup, annotated - select for diffs
Thu Feb 2 10:05:35 2017 UTC (9 years, 9 months ago) by nonaka
Branches: MAIN
CVS tags: prg-localcount2-base3,
prg-localcount2-base2,
prg-localcount2-base1,
prg-localcount2-base,
prg-localcount2,
pgoyette-localcount-20170426,
pgoyette-localcount-20170320,
perseant-stdc-iso10646-base,
perseant-stdc-iso10646,
nick-nhusb-base-20170825,
nick-nhusb-base-20170204,
netbsd-8-base,
matt-nb8-mediatek-base,
matt-nb8-mediatek,
jdolecek-ncq-base,
jdolecek-ncq,
bouyer-socketcan-base1
Branch point for: netbsd-8
Diff to: previous 1.160: preferred, colored
Changes since revision 1.160: +70 -10
lines
wlan interfaces make interrupt routine running on softint context.
see http://mail-index.netbsd.org/tech-kern/2016/12/06/msg021281.html
tested device:
* ath at pci: AR5212, AR5424
* athn at pci: AR9287
* ipw at pci: 2100BG
* iwi at pci: 2915ABG
* iwm at pci: 3165, 7260, 8260
* iwn at pci: 4945, 6235
* ral at pci: RT2560
* rtwn at pci: RTL8192CE
Revision 1.156.6.3: download - view: text, markup, annotated - select for diffs
Sat Jul 9 20:25:02 2016 UTC (10 years, 4 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.156.6.2: preferred, colored; branchpoint 1.156: preferred, colored
Changes since revision 1.156.6.2: +3 -3
lines
Sync with HEAD
Revision 1.160: download - view: text, markup, annotated - select for diffs
Fri Jun 10 13:27:13 2016 UTC (10 years, 5 months ago) by ozaki-r
Branches: MAIN
CVS tags: pgoyette-localcount-base,
pgoyette-localcount-20170107,
pgoyette-localcount-20161104,
pgoyette-localcount-20160806,
pgoyette-localcount-20160726,
nick-nhusb-base-20161204,
nick-nhusb-base-20161004,
nick-nhusb-base-20160907,
localcount-20160914,
bouyer-socketcan-base
Branch point for: pgoyette-localcount,
bouyer-socketcan
Diff to: previous 1.159: preferred, colored
Changes since revision 1.159: +3 -3
lines
Introduce m_set_rcvif and m_reset_rcvif
The API is used to set (or reset) a received interface of a mbuf.
They are counterpart of m_get_rcvif, which will come in another
commit, hide internal of rcvif operation, and reduce the diff of
the upcoming change.
No functional change.
Revision 1.156.6.2: download - view: text, markup, annotated - select for diffs
Sun May 29 08:44:21 2016 UTC (10 years, 5 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.156.6.1: preferred, colored; branchpoint 1.156: preferred, colored
Changes since revision 1.156.6.1: +4 -4
lines
Sync with HEAD
Revision 1.159: download - view: text, markup, annotated - select for diffs
Thu May 26 05:04:46 2016 UTC (10 years, 5 months ago) by ozaki-r
Branches: MAIN
CVS tags: nick-nhusb-base-20160529
Diff to: previous 1.158: preferred, colored
Changes since revision 1.158: +3 -3
lines
Introduce M_CLEARCTX and use it instead of open-coding rcvif
No functional change.
Revision 1.158: download - view: text, markup, annotated - select for diffs
Thu May 26 05:01:12 2016 UTC (10 years, 5 months ago) by ozaki-r
Branches: MAIN
Diff to: previous 1.157: preferred, colored
Changes since revision 1.157: +3 -3
lines
Use M_GETCTX
No functional change.
Revision 1.156.6.1: download - view: text, markup, annotated - select for diffs
Sat Mar 19 11:30:09 2016 UTC (10 years, 8 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.156: preferred, colored
Changes since revision 1.156: +6 -4
lines
Sync with HEAD
Revision 1.157: download - view: text, markup, annotated - select for diffs
Tue Jan 26 16:00:12 2016 UTC (10 years, 9 months ago) by christos
Branches: MAIN
CVS tags: nick-nhusb-base-20160422,
nick-nhusb-base-20160319
Diff to: previous 1.156: preferred, colored
Changes since revision 1.156: +6 -4
lines
PR/50692: David Binderman: Set the right wake up bits.
Revision 1.153.14.1: download - view: text, markup, annotated - select for diffs
Wed Aug 20 00:03:37 2014 UTC (12 years, 3 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.153: preferred, colored
Changes since revision 1.153: +8 -9
lines
Rebase to HEAD as of a few days ago.
Revision 1.153.4.1: download - view: text, markup, annotated - select for diffs
Thu May 22 11:40:22 2014 UTC (12 years, 5 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.153: preferred, colored; next MAIN 1.154: preferred, colored
Changes since revision 1.153: +8 -9
lines
sync with head.
for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.
this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
Revision 1.153.18.1: download - view: text, markup, annotated - select for diffs
Sun May 18 17:45:37 2014 UTC (12 years, 6 months ago) by rmind
Branches: rmind-smpnet
Diff to: previous 1.153: preferred, colored; next MAIN 1.154: preferred, colored
Changes since revision 1.153: +8 -9
lines
sync with head
Revision 1.156: download - view: text, markup, annotated - select for diffs
Fri Nov 22 00:01:09 2013 UTC (12 years, 11 months ago) by riz
Branches: MAIN
CVS tags: yamt-pagecache-base9,
tls-maxphys-base,
tls-earlyentropy-base,
tls-earlyentropy,
rmind-smpnet-nbase,
rmind-smpnet-base,
riastradh-xf86-video-intel-2-7-1-pre-2-21-15,
riastradh-drm2-base3,
nick-nhusb-base-20151226,
nick-nhusb-base-20150921,
nick-nhusb-base-20150606,
nick-nhusb-base-20150406,
nick-nhusb-base,
netbsd-7-nhusb-base-20170116,
netbsd-7-nhusb-base,
netbsd-7-nhusb,
netbsd-7-base,
netbsd-7-2-RELEASE,
netbsd-7-1-RELEASE,
netbsd-7-1-RC2,
netbsd-7-1-RC1,
netbsd-7-1-2-RELEASE,
netbsd-7-1-1-RELEASE,
netbsd-7-1,
netbsd-7-0-RELEASE,
netbsd-7-0-RC3,
netbsd-7-0-RC2,
netbsd-7-0-RC1,
netbsd-7-0-2-RELEASE,
netbsd-7-0-1-RELEASE,
netbsd-7-0,
netbsd-7
Branch point for: nick-nhusb
Diff to: previous 1.155: preferred, colored
Changes since revision 1.155: +6 -4
lines
Put back and properly mark a variable which is used iff ATW_DEBUG.
Revision 1.155: download - view: text, markup, annotated - select for diffs
Thu Oct 17 21:24:24 2013 UTC (13 years, 1 month ago) by christos
Branches: MAIN
Diff to: previous 1.154: preferred, colored
Changes since revision 1.154: +4 -9
lines
- remove unused variables
- move variables inside ifdef sections
- ifdef notdef unused code
- use __USE for debugging variables
Revision 1.154: download - view: text, markup, annotated - select for diffs
Sat Sep 14 13:10:25 2013 UTC (13 years, 2 months ago) by joerg
Branches: MAIN
Diff to: previous 1.153: preferred, colored
Changes since revision 1.153: +4 -2
lines
Don't include atw_hw_decrypted, it is not used. Keep it for
documentation purposes.
Revision 1.152.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 6 09:07:51 2011 UTC (15 years, 5 months ago) by jruoho
Branches: jruoho-x86intr
Diff to: previous 1.152: preferred, colored; next MAIN 1.153: preferred, colored
Changes since revision 1.152: +3 -3
lines
Sync with HEAD.
Revision 1.150.2.3: download - view: text, markup, annotated - select for diffs
Thu Apr 21 01:41:47 2011 UTC (15 years, 7 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.150.2.2: preferred, colored; branchpoint 1.150: preferred, colored; next MAIN 1.151: preferred, colored
Changes since revision 1.150.2.2: +1 -1
lines
sync with head
Revision 1.153: download - view: text, markup, annotated - select for diffs
Sat Apr 2 08:11:32 2011 UTC (15 years, 7 months ago) by mbalmer
Branches: MAIN
CVS tags: yamt-pagecache-tag8,
yamt-pagecache-base8,
yamt-pagecache-base7,
yamt-pagecache-base6,
yamt-pagecache-base5,
yamt-pagecache-base4,
yamt-pagecache-base3,
yamt-pagecache-base2,
yamt-pagecache-base,
rmind-uvmplock-nbase,
rmind-uvmplock-base,
riastradh-drm2-base2,
riastradh-drm2-base1,
riastradh-drm2-base,
riastradh-drm2,
netbsd-6-base,
netbsd-6-1-RELEASE,
netbsd-6-1-RC4,
netbsd-6-1-RC3,
netbsd-6-1-RC2,
netbsd-6-1-RC1,
netbsd-6-1-5-RELEASE,
netbsd-6-1-4-RELEASE,
netbsd-6-1-3-RELEASE,
netbsd-6-1-2-RELEASE,
netbsd-6-1-1-RELEASE,
netbsd-6-1,
netbsd-6-0-RELEASE,
netbsd-6-0-RC2,
netbsd-6-0-RC1,
netbsd-6-0-6-RELEASE,
netbsd-6-0-5-RELEASE,
netbsd-6-0-4-RELEASE,
netbsd-6-0-3-RELEASE,
netbsd-6-0-2-RELEASE,
netbsd-6-0-1-RELEASE,
netbsd-6-0,
netbsd-6,
matt-nb6-plus-nbase,
matt-nb6-plus-base,
matt-nb6-plus,
khorben-n900,
jmcneill-usbmp-pre-base2,
jmcneill-usbmp-base9,
jmcneill-usbmp-base8,
jmcneill-usbmp-base7,
jmcneill-usbmp-base6,
jmcneill-usbmp-base5,
jmcneill-usbmp-base4,
jmcneill-usbmp-base3,
jmcneill-usbmp-base2,
jmcneill-usbmp-base10,
jmcneill-usbmp-base,
jmcneill-usbmp,
jmcneill-audiomp3-base,
jmcneill-audiomp3,
cherry-xenmp-base,
cherry-xenmp,
agc-symver-base,
agc-symver
Branch point for: yamt-pagecache,
tls-maxphys,
rmind-smpnet
Diff to: previous 1.152: preferred, colored
Changes since revision 1.152: +3 -3
lines
Fix misplaced parenthesis. From henning.petersen@t-online.de, thanks.
Revision 1.150.2.2: download - view: text, markup, annotated - select for diffs
Sat Mar 5 20:53:13 2011 UTC (15 years, 8 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.150.2.1: preferred, colored; branchpoint 1.150: preferred, colored
Changes since revision 1.150.2.1: +3 -4
lines
sync with head
Revision 1.152: download - view: text, markup, annotated - select for diffs
Sat Nov 13 08:54:23 2010 UTC (16 years ago) by uebayasi
Branches: MAIN
CVS tags: matt-mips64-premerge-20101231,
jruoho-x86intr-base,
bouyer-quota2-nbase,
bouyer-quota2-base,
bouyer-quota2
Branch point for: jruoho-x86intr
Diff to: previous 1.151: preferred, colored
Changes since revision 1.151: +3 -4
lines
Include sys/proc.h for curproc.
Revision 1.137.4.6: download - view: text, markup, annotated - select for diffs
Wed Aug 11 22:53:23 2010 UTC (16 years, 3 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.137.4.5: preferred, colored; branchpoint 1.137: preferred, colored; next MAIN 1.138: preferred, colored
Changes since revision 1.137.4.5: +9 -11
lines
sync with head.
Revision 1.150.2.1: download - view: text, markup, annotated - select for diffs
Sun May 30 05:17:21 2010 UTC (16 years, 5 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.150: preferred, colored
Changes since revision 1.150: +9 -11
lines
sync with head
Revision 1.149.2.1: download - view: text, markup, annotated - select for diffs
Fri Apr 30 14:43:13 2010 UTC (16 years, 6 months ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.149: preferred, colored; next MAIN 1.150: preferred, colored
Changes since revision 1.149: +10 -12
lines
Sync with HEAD.
Revision 1.151: download - view: text, markup, annotated - select for diffs
Mon Apr 5 07:19:33 2010 UTC (16 years, 7 months ago) by joerg
Branches: MAIN
CVS tags: yamt-nfs-mp-base11,
yamt-nfs-mp-base10,
uebayasi-xip-base4,
uebayasi-xip-base3,
uebayasi-xip-base2,
uebayasi-xip-base1
Diff to: previous 1.150: preferred, colored
Changes since revision 1.150: +9 -11
lines
Push the bpf_ops usage back into bpf.h. Push the common ifp->if_bpf
check into the inline functions as well the fourth argument for
bpf_attach.
Revision 1.137.4.5: download - view: text, markup, annotated - select for diffs
Thu Mar 11 15:03:29 2010 UTC (16 years, 8 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.137.4.4: preferred, colored; branchpoint 1.137: preferred, colored
Changes since revision 1.137.4.4: +69 -110
lines
sync with head
Revision 1.150: download - view: text, markup, annotated - select for diffs
Wed Feb 24 22:37:58 2010 UTC (16 years, 8 months ago) by dyoung
Branches: MAIN
CVS tags: yamt-nfs-mp-base9
Branch point for: rmind-uvmplock
Diff to: previous 1.149: preferred, colored
Changes since revision 1.149: +3 -3
lines
A pointer typedef entails trading too much flexibility to declare const
and non-const types, and the kernel uses both const and non-const
PMF qualifiers and device suspensors, so change the pmf_qual_t and
device_suspensor_t typedefs from "pointers to const" to non-pointer,
non-const types.
Revision 1.149: download - view: text, markup, annotated - select for diffs
Tue Jan 19 22:06:24 2010 UTC (16 years, 10 months ago) by pooka
Branches: MAIN
CVS tags: uebayasi-xip-base
Branch point for: uebayasi-xip
Diff to: previous 1.148: preferred, colored
Changes since revision 1.148: +9 -20
lines
Redefine bpf linkage through an always present op vector, i.e.
#if NBPFILTER is no longer required in the client. This change
doesn't yet add support for loading bpf as a module, since drivers
can register before bpf is attached. However, callers of bpf can
now be modularized.
Dynamically loadable bpf could probably be done fairly easily with
coordination from the stub driver and the real driver by registering
attachments in the stub before the real driver is loaded and doing
a handoff. ... and I'm not going to ponder the depths of unload
here.
Tested with i386/MONOLITHIC, modified MONOLITHIC without bpf and rump.
Revision 1.148: download - view: text, markup, annotated - select for diffs
Fri Jan 8 20:02:39 2010 UTC (16 years, 10 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.147: preferred, colored
Changes since revision 1.147: +3 -3
lines
Expand PMF_FN_* macros.
Revision 1.147: download - view: text, markup, annotated - select for diffs
Thu Nov 12 19:30:49 2009 UTC (17 years ago) by dyoung
Branches: MAIN
CVS tags: matt-premerge-20091211
Diff to: previous 1.146: preferred, colored
Changes since revision 1.146: +5 -11
lines
Simplify activation hook.
Revision 1.146: download - view: text, markup, annotated - select for diffs
Wed Sep 16 16:34:50 2009 UTC (17 years, 2 months ago) by dyoung
Branches: MAIN
CVS tags: jym-xensuspend-nbase
Diff to: previous 1.145: preferred, colored
Changes since revision 1.145: +59 -83
lines
In pmf(9), improve the implementation of device self-suspension
and make suspension by self, by drvctl(8), and by ACPI system sleep
play nice together. Start solidifying some temporary API changes.
1. Extract a new header file, <sys/device_if.h>, from <sys/device.h> and
#include it from <sys/pmf.h> instead of <sys/device.h> to break the
circular dependency between <sys/device.h> and <sys/pmf.h>.
2. Introduce pmf_qual_t, an aggregate of qualifications on a PMF
suspend/resume call. Start to replace instances of PMF_FN_PROTO,
PMF_FN_ARGS, et cetera, with a pmf_qual_t.
3. Introduce the notion of a "suspensor," an entity that holds a
device in suspension. More than one suspensor may hold a device
at once. A device stays suspended as long as at least one
suspensor holds it. A device resumes when the last suspensor
releases it.
Currently, the kernel defines three suspensors,
3a the system-suspensor: for system suspension, initiated
by 'sysctl -w machdep.sleep_state=3', by lid closure, by
power-button press, et cetera,
3b the drvctl-suspensor: for device suspension by /dev/drvctl
ioctl, e.g., drvctl -S sip0.
3c the system self-suspensor: for device drivers that suspend
themselves and their children. Several drivers for network
interfaces put the network device to sleep while it is not
administratively up, that is, after the kernel calls if_stop(,
1). The self-suspensor should not be used directly. See
the description of suspensor delegates, below.
A suspensor can have one or more "delegates". A suspensor can
release devices that its delegates hold suspended. Right now,
only the system self-suspensor has delegates. For each device
that a self-suspending driver attaches, it creates the device's
self-suspensor, a delegate of the system self-suspensor.
Suspensors stop a system-wide suspend/resume cycle from waking
devices that the operator put to sleep with drvctl before the cycle.
They also help self-suspension to work more simply, safely, and in
accord with expectations.
4. Add the notion of device activation level, devact_level_t,
and a routine for checking the current activation level,
device_activation(). Current activation levels are DEVACT_LEVEL_BUS,
DEVACT_LEVEL_DRIVER, and DEVACT_LEVEL_CLASS, which respectively
indicate that the device's bus is active, that the bus and device are
active, and that the bus, device, and the functions of the device's
class (network, audio) are active.
Suspend/resume calls can be qualified with a devact_level_t.
The power-management framework treats a devact_level_t that
qualifies a device suspension as the device's current activation
level; it only runs hooks to reduce the activation level from
the presumed current level to the fully suspended state. The
framework treats a devact_level_t qualifying device resumption
as the target activation level; it only runs hooks to raise the
activation level to the target.
5. Use pmf_qual_t, devact_level_t, and self-suspensors in several
drivers.
6. Temporarily add an unused power-management workqueue that I will
remove or replace, soon.
Revision 1.137.4.4: download - view: text, markup, annotated - select for diffs
Wed Sep 16 13:37:47 2009 UTC (17 years, 2 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.137.4.3: preferred, colored; branchpoint 1.137: preferred, colored
Changes since revision 1.137.4.3: +149 -71
lines
sync with head
Revision 1.145: download - view: text, markup, annotated - select for diffs
Sun Sep 13 22:07:34 2009 UTC (17 years, 2 months ago) by dyoung
Branches: MAIN
CVS tags: yamt-nfs-mp-base8
Diff to: previous 1.144: preferred, colored
Changes since revision 1.144: +146 -68
lines
Experimental support for fragmentation and RTS/CTS.
Delete unused atw_voodoo and constants.
Export Tx/Rx statistics with evcnt(9).
Correct the Short Inter-Frame Space (SIFS) that we write to ADM8211's
registers; I do not recall if that corrected the SIFS that I observed
"on the air." Use the constant IEEE80211_DUR_DS_EIFS to configure
the ADM8211's EIFS, instead of writing the same "magic" number,
0x64, that my reference driver wrote.
Do not clear OACTIVE in atw_init(), because atw_stop() cleared it
previously by calling atw_txdrain().
Use the net80211 short-preamble flag and instead of ATW_SHPREAMBLE.
Add an ADM8211 workaround from the reference driver, atw_workaround1(),
but don't compile it right now.
In at_intr(), don't stop processing the interrupt status after
restarting the receive ring, but process Tx interrupt status. If
a packet's Tx lifetime is exceeded, reinitialize the device to get
packets moving again. If the Tx FIFO underflows, restart the
transmitter, not the receiver!
Avoid losing synchronization with the Rx ring by replicating one
of Charles Hannum's fixes to rtw(4) here: receiving a management
packet may, as a side-effect, reset the Rx ring, so refer to the
softc's Rx ring pointer, sc_rxptr, every time through the loop in
atw_rxintr(), instead of refering to a pointer on the stack, i.
Re-synchronize DMA after reading the OWN bit on an Rx/Tx descriptor.
XXX This needs more work.
Reset sc_tx_timer as Tx descriptors are reclaimed from the device.
Shorten staircases in atw_watchdog().
Remove from softc an unused member, sc_intr_ack.
Revision 1.144: download - view: text, markup, annotated - select for diffs
Sat Sep 5 14:19:30 2009 UTC (17 years, 2 months ago) by tsutsui
Branches: MAIN
Diff to: previous 1.143: preferred, colored
Changes since revision 1.143: +5 -5
lines
Invert logic around nested pmf(9) registrations for readability.
Revision 1.142.2.1: download - view: text, markup, annotated - select for diffs
Thu Jul 23 23:31:47 2009 UTC (17 years, 3 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.142: preferred, colored; next MAIN 1.143: preferred, colored
Changes since revision 1.142: +17 -12
lines
Sync with HEAD.
Revision 1.137.4.3: download - view: text, markup, annotated - select for diffs
Sat Jun 20 07:20:21 2009 UTC (17 years, 5 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.137.4.2: preferred, colored; branchpoint 1.137: preferred, colored
Changes since revision 1.137.4.2: +17 -12
lines
sync with head
Revision 1.143: download - view: text, markup, annotated - select for diffs
Tue May 26 23:57:34 2009 UTC (17 years, 5 months ago) by dyoung
Branches: MAIN
CVS tags: yamt-nfs-mp-base7,
yamt-nfs-mp-base6,
yamt-nfs-mp-base5,
jymxensuspend-base
Diff to: previous 1.142: preferred, colored
Changes since revision 1.142: +17 -12
lines
Wrap some long lines. No functional change intended.
Revision 1.137.4.2: download - view: text, markup, annotated - select for diffs
Mon May 4 08:12:40 2009 UTC (17 years, 6 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.137.4.1: preferred, colored; branchpoint 1.137: preferred, colored
Changes since revision 1.137.4.1: +93 -91
lines
sync with head.
Revision 1.140.2.1: download - view: text, markup, annotated - select for diffs
Mon Jan 19 13:17:54 2009 UTC (17 years, 10 months ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.140: preferred, colored; next MAIN 1.141: preferred, colored
Changes since revision 1.140: +6 -4
lines
Sync with HEAD.
Revision 1.134.14.4: download - view: text, markup, annotated - select for diffs
Sat Jan 17 13:28:54 2009 UTC (17 years, 10 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.134.14.3: preferred, colored; branchpoint 1.134: preferred, colored; next MAIN 1.135: preferred, colored
Changes since revision 1.134.14.3: +4 -2
lines
Sync with HEAD.
Revision 1.142: download - view: text, markup, annotated - select for diffs
Tue Dec 16 22:35:30 2008 UTC (17 years, 11 months ago) by christos
Branches: MAIN
CVS tags: yamt-nfs-mp-base4,
yamt-nfs-mp-base3,
nick-hppapmap-base4,
nick-hppapmap-base3,
nick-hppapmap-base2,
nick-hppapmap-base,
mjf-devfs2-base,
jym-xensuspend-base
Branch point for: jym-xensuspend
Diff to: previous 1.141: preferred, colored
Changes since revision 1.141: +4 -4
lines
replace bitmask_snprintf(9) with snprintb(3)
Revision 1.139.6.2: download - view: text, markup, annotated - select for diffs
Sat Dec 13 01:14:13 2008 UTC (17 years, 11 months ago) by haad
Branches: haad-dm
Diff to: previous 1.139.6.1: preferred, colored; branchpoint 1.139: preferred, colored; next MAIN 1.140: preferred, colored
Changes since revision 1.139.6.1: +4 -2
lines
Update haad-dm branch to haad-dm-base2.
Revision 1.141: download - view: text, markup, annotated - select for diffs
Fri Nov 7 00:20:02 2008 UTC (18 years ago) by dyoung
Branches: MAIN
CVS tags: haad-nbase2,
haad-dm-base2,
haad-dm-base,
ad-audiomp2-base,
ad-audiomp2
Diff to: previous 1.140: preferred, colored
Changes since revision 1.140: +4 -2
lines
*** Summary ***
When a link-layer address changes (e.g., ifconfig ex0 link
02:de:ad:be:ef:02 active), send a gratuitous ARP and/or a Neighbor
Advertisement to update the network-/link-layer address bindings
on our LAN peers.
Refuse a change of ethernet address to the address 00:00:00:00:00:00
or to any multicast/broadcast address. (Thanks matt@.)
Reorder ifnet ioctl operations so that driver ioctls may inherit
the functions of their "class"---ether_ioctl(), fddi_ioctl(), et
cetera---and the class ioctls may inherit from the generic ioctl,
ifioctl_common(), but both driver- and class-ioctls may override
the generic behavior. Make network drivers share more code.
Distinguish a "factory" link-layer address from others for the
purposes of both protecting that address from deletion and computing
EUI64.
Return consistent, appropriate error codes from network drivers.
Improve readability. KNF.
*** Details ***
In if_attach(), always initialize the interface ioctl routine,
ifnet->if_ioctl, if the driver has not already initialized it.
Delete if_ioctl == NULL tests everywhere else, because it cannot
happen.
In the ioctl routines of network interfaces, inherit common ioctl
behaviors by calling either ifioctl_common() or whichever ioctl
routine is appropriate for the class of interface---e.g., ether_ioctl()
for ethernets.
Stop (ab)using SIOCSIFADDR and start to use SIOCINITIFADDR. In
the user->kernel interface, SIOCSIFADDR's argument was an ifreq,
but on the protocol->ifnet interface, SIOCSIFADDR's argument was
an ifaddr. That was confusing, and it would work against me as I
make it possible for a network interface to overload most ioctls.
On the protocol->ifnet interface, replace SIOCSIFADDR with
SIOCINITIFADDR. In ifioctl(), return EPERM if userland tries to
invoke SIOCINITIFADDR.
In ifioctl(), give the interface the first shot at handling most
interface ioctls, and give the protocol the second shot, instead
of the other way around. Finally, let compatibility code (COMPAT_OSOCK)
take a shot.
Pull device initialization out of switch statements under
SIOCINITIFADDR. For example, pull ..._init() out of any switch
statement that looks like this:
switch (...->sa_family) {
case ...:
..._init();
...
break;
...
default:
..._init();
...
break;
}
Rewrite many if-else clauses that handle all permutations of IFF_UP
and IFF_RUNNING to use a switch statement,
switch (x & (IFF_UP|IFF_RUNNING)) {
case 0:
...
break;
case IFF_RUNNING:
...
break;
case IFF_UP:
...
break;
case IFF_UP|IFF_RUNNING:
...
break;
}
unifdef lots of code containing #ifdef FreeBSD, #ifdef NetBSD, and
#ifdef SIOCSIFMTU, especially in fwip(4) and in ndis(4).
In ipw(4), remove an if_set_sadl() call that is out of place.
In nfe(4), reuse the jumbo MTU logic in ether_ioctl().
Let ethernets register a callback for setting h/w state such as
promiscuous mode and the multicast filter in accord with a change
in the if_flags: ether_set_ifflags_cb() registers a callback that
returns ENETRESET if the caller should reset the ethernet by calling
if_init(), 0 on success, != 0 on failure. Pull common code from
ex(4), gem(4), nfe(4), sip(4), tlp(4), vge(4) into ether_ioctl(),
and register if_flags callbacks for those drivers.
Return ENOTTY instead of EINVAL for inappropriate ioctls. In
zyd(4), use ENXIO instead of ENOTTY to indicate that the device is
not any longer attached.
Add to if_set_sadl() a boolean 'factory' argument that indicates
whether a link-layer address was assigned by the factory or some
other source. In a comment, recommend using the factory address
for generating an EUI64, and update in6_get_hw_ifid() to prefer a
factory address to any other link-layer address.
Add a routing message, RTM_LLINFO_UPD, that tells protocols to
update the binding of network-layer addresses to link-layer addresses.
Implement this message in IPv4 and IPv6 by sending a gratuitous
ARP or a neighbor advertisement, respectively. Generate RTM_LLINFO_UPD
messages on a change of an interface's link-layer address.
In ether_ioctl(), do not let SIOCALIFADDR set a link-layer address
that is broadcast/multicast or equal to 00:00:00:00:00:00.
Make ether_ioctl() call ifioctl_common() to handle ioctls that it
does not understand.
In gif(4), initialize if_softc and use it, instead of assuming that
the gif_softc and ifp overlap.
Let ifioctl_common() handle SIOCGIFADDR.
Sprinkle rtcache_invariants(), which checks on DIAGNOSTIC kernels
that certain invariants on a struct route are satisfied.
In agr(4), rewrite agr_ioctl_filter() to be a bit more explicit
about the ioctls that we do not allow on an agr(4) member interface.
bzero -> memset. Delete unnecessary casts to void *. Use
sockaddr_in_init() and sockaddr_in6_init(). Compare pointers with
NULL instead of "testing truth". Replace some instances of (type
*)0 with NULL. Change some K&R prototypes to ANSI C, and join
lines.
Revision 1.139.6.1: download - view: text, markup, annotated - select for diffs
Sun Oct 19 22:16:25 2008 UTC (18 years, 1 month ago) by haad
Branches: haad-dm
Diff to: previous 1.139: preferred, colored
Changes since revision 1.139: +89 -89
lines
Sync with HEAD.
Revision 1.134.14.3: download - view: text, markup, annotated - select for diffs
Sun Sep 28 10:40:22 2008 UTC (18 years, 1 month ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.134.14.2: preferred, colored; branchpoint 1.134: preferred, colored
Changes since revision 1.134.14.2: +87 -87
lines
Sync with HEAD.
Revision 1.139.2.1: download - view: text, markup, annotated - select for diffs
Thu Sep 18 04:35:03 2008 UTC (18 years, 2 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.139: preferred, colored; next MAIN 1.140: preferred, colored
Changes since revision 1.139: +89 -89
lines
Sync with wrstuden-revivesa-base-2.
Revision 1.139.4.1: download - view: text, markup, annotated - select for diffs
Fri Jul 18 16:37:32 2008 UTC (18 years, 4 months ago) by simonb
Branches: simonb-wapbl
Diff to: previous 1.139: preferred, colored; next MAIN 1.140: preferred, colored
Changes since revision 1.139: +89 -89
lines
Sync with head.
Revision 1.140: download - view: text, markup, annotated - select for diffs
Wed Jul 9 20:07:19 2008 UTC (18 years, 4 months ago) by joerg
Branches: MAIN
CVS tags: wrstuden-revivesa-base-4,
wrstuden-revivesa-base-3,
wrstuden-revivesa-base-2,
simonb-wapbl-nbase,
simonb-wapbl-base,
netbsd-5-base,
netbsd-5-2-RELEASE,
netbsd-5-2-RC1,
netbsd-5-2-3-RELEASE,
netbsd-5-2-2-RELEASE,
netbsd-5-2-1-RELEASE,
netbsd-5-2,
netbsd-5-1-RELEASE,
netbsd-5-1-RC4,
netbsd-5-1-RC3,
netbsd-5-1-RC2,
netbsd-5-1-RC1,
netbsd-5-1-5-RELEASE,
netbsd-5-1-4-RELEASE,
netbsd-5-1-3-RELEASE,
netbsd-5-1-2-RELEASE,
netbsd-5-1-1-RELEASE,
netbsd-5-1,
netbsd-5-0-RELEASE,
netbsd-5-0-RC4,
netbsd-5-0-RC3,
netbsd-5-0-RC2,
netbsd-5-0-RC1,
netbsd-5-0-2-RELEASE,
netbsd-5-0-1-RELEASE,
netbsd-5-0,
netbsd-5,
matt-nb5-pq3-base,
matt-nb5-pq3,
matt-nb5-mips64-u2-k2-k4-k7-k8-k9,
matt-nb5-mips64-u1-k1-k5,
matt-nb5-mips64-premerge-20101231,
matt-nb5-mips64-premerge-20091211,
matt-nb5-mips64-k15,
matt-nb5-mips64,
matt-nb4-mips64-k7-u2a-k9b,
matt-mips64-base2,
haad-dm-base1
Branch point for: nick-hppapmap
Diff to: previous 1.139: preferred, colored
Changes since revision 1.139: +89 -89
lines
- device/softc split
Revision 1.134.14.2: download - view: text, markup, annotated - select for diffs
Mon Jun 2 13:23:19 2008 UTC (18 years, 5 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.134.14.1: preferred, colored; branchpoint 1.134: preferred, colored
Changes since revision 1.134.14.1: +92 -102
lines
Sync with HEAD.
Revision 1.137.2.1: download - view: text, markup, annotated - select for diffs
Sun May 18 12:33:41 2008 UTC (18 years, 6 months ago) by yamt
Branches: yamt-pf42
Diff to: previous 1.137: preferred, colored; next MAIN 1.138: preferred, colored
Changes since revision 1.137: +3 -10
lines
sync with head.
Revision 1.137.4.1: download - view: text, markup, annotated - select for diffs
Fri May 16 02:24:02 2008 UTC (18 years, 6 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.137: preferred, colored
Changes since revision 1.137: +3 -10
lines
sync with head.
Revision 1.139: download - view: text, markup, annotated - select for diffs
Wed Apr 30 14:07:13 2008 UTC (18 years, 6 months ago) by ad
Branches: MAIN
CVS tags: yamt-pf42-base4,
yamt-pf42-base3,
yamt-pf42-base2,
yamt-nfs-mp-base2,
wrstuden-revivesa-base-1,
wrstuden-revivesa-base,
hpcarm-cleanup-nbase
Branch point for: wrstuden-revivesa,
simonb-wapbl,
haad-dm
Diff to: previous 1.138: preferred, colored
Changes since revision 1.138: +3 -3
lines
Make various bits of debug code compile again.
Revision 1.138: download - view: text, markup, annotated - select for diffs
Mon Apr 28 20:23:49 2008 UTC (18 years, 6 months ago) by martin
Branches: MAIN
Diff to: previous 1.137: preferred, colored
Changes since revision 1.137: +2 -9
lines
Remove clause 3 and 4 from TNF licenses
Revision 1.137: download - view: text, markup, annotated - select for diffs
Tue Apr 8 12:07:25 2008 UTC (18 years, 7 months ago) by cegger
Branches: MAIN
CVS tags: yamt-pf42-baseX,
yamt-pf42-base,
yamt-nfs-mp-base
Branch point for: yamt-pf42,
yamt-nfs-mp
Diff to: previous 1.136: preferred, colored
Changes since revision 1.136: +94 -97
lines
use aprint_*_dev and device_xname
Revision 1.134.14.1: download - view: text, markup, annotated - select for diffs
Thu Apr 3 12:42:39 2008 UTC (18 years, 7 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.134: preferred, colored
Changes since revision 1.134: +19 -74
lines
Sync with HEAD.
Revision 1.134.10.1: download - view: text, markup, annotated - select for diffs
Mon Mar 24 07:15:16 2008 UTC (18 years, 7 months ago) by keiichi
Branches: keiichi-mipv6
Diff to: previous 1.134: preferred, colored; next MAIN 1.135: preferred, colored
Changes since revision 1.134: +19 -74
lines
sync with head.
Revision 1.127.8.3: download - view: text, markup, annotated - select for diffs
Sun Mar 23 02:04:37 2008 UTC (18 years, 7 months ago) by matt
Branches: matt-armv6
Diff to: previous 1.127.8.2: preferred, colored; branchpoint 1.127: preferred, colored; next MAIN 1.128: preferred, colored
Changes since revision 1.127.8.2: +19 -74
lines
sync with HEAD
Revision 1.87.2.6: download - view: text, markup, annotated - select for diffs
Mon Mar 17 09:14:41 2008 UTC (18 years, 8 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.87.2.5: preferred, colored; next MAIN 1.88: preferred, colored
Changes since revision 1.87.2.5: +19 -74
lines
sync with head.
Revision 1.136: download - view: text, markup, annotated - select for diffs
Tue Mar 11 23:58:06 2008 UTC (18 years, 8 months ago) by dyoung
Branches: MAIN
CVS tags: yamt-lazymbuf-base15,
yamt-lazymbuf-base14,
matt-armv6-nbase,
keiichi-mipv6-nbase,
keiichi-mipv6-base,
ad-socklock-base1
Diff to: previous 1.135: preferred, colored
Changes since revision 1.135: +6 -8
lines
Prepare for PMF self-suspension: in the if_stop() methods, clear
IFF_UP and IFF_RUNNING before running the 'disable' step, instead
of after. Soon I will handle the 'disable' step by calling into
PMF, which may call if_stop(, 0). Ordinarily, that is harmless.
This change lets the if_stop() routines exit early when they find
on entry that IFF_RUNNING is not set.
Revision 1.135: download - view: text, markup, annotated - select for diffs
Fri Mar 7 22:04:00 2008 UTC (18 years, 8 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.134: preferred, colored
Changes since revision 1.134: +15 -68
lines
Use device_t and accessors. Use PMF instead of legacy power
management. Establish the shutdown hook using PMF.
Revision 1.127.8.2: download - view: text, markup, annotated - select for diffs
Wed Jan 9 01:52:48 2008 UTC (18 years, 10 months ago) by matt
Branches: matt-armv6
Diff to: previous 1.127.8.1: preferred, colored; branchpoint 1.127: preferred, colored
Changes since revision 1.127.8.1: +97 -55
lines
sync with HEAD
Revision 1.87.2.5: download - view: text, markup, annotated - select for diffs
Fri Dec 7 17:29:51 2007 UTC (18 years, 11 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.87.2.4: preferred, colored
Changes since revision 1.87.2.4: +97 -55
lines
sync with head
Revision 1.127.6.4: download - view: text, markup, annotated - select for diffs
Wed Nov 21 21:54:47 2007 UTC (18 years, 11 months ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.127.6.3: preferred, colored; branchpoint 1.127: preferred, colored; next MAIN 1.128: preferred, colored
Changes since revision 1.127.6.3: +97 -55
lines
Sync with HEAD.
Revision 1.130.2.1: download - view: text, markup, annotated - select for diffs
Mon Nov 19 00:47:51 2007 UTC (19 years ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.130: preferred, colored; next MAIN 1.131: preferred, colored
Changes since revision 1.130: +97 -55
lines
Sync with HEAD.
Revision 1.129.2.2: download - view: text, markup, annotated - select for diffs
Sun Nov 18 19:35:22 2007 UTC (19 years ago) by bouyer
Branches: bouyer-xenamd64
Diff to: previous 1.129.2.1: preferred, colored; branchpoint 1.129: preferred, colored; next MAIN 1.130: preferred, colored
Changes since revision 1.129.2.1: +95 -53
lines
Sync with HEAD
Revision 1.134: download - view: text, markup, annotated - select for diffs
Fri Nov 16 23:51:02 2007 UTC (19 years ago) by dyoung
Branches: MAIN
CVS tags: yamt-kmem-base3,
yamt-kmem-base2,
yamt-kmem-base,
yamt-kmem,
vmlocking2-base3,
vmlocking2-base2,
vmlocking2-base1,
vmlocking2,
vmlocking-nbase,
reinoud-bufcleanup-nbase,
reinoud-bufcleanup-base,
nick-net80211-sync-base,
nick-net80211-sync,
mjf-devfs-base,
matt-armv6-base,
jmcneill-pm-base,
hpcarm-cleanup-base,
cube-autoconf-base,
cube-autoconf,
bouyer-xeni386-nbase,
bouyer-xeni386-merge1,
bouyer-xeni386-base,
bouyer-xeni386,
bouyer-xenamd64-base2,
bouyer-xenamd64-base
Branch point for: mjf-devfs2,
keiichi-mipv6
Diff to: previous 1.133: preferred, colored
Changes since revision 1.133: +82 -29
lines
Count received frames, Rx PLCP errors, Rx FCS (CRC32) errors, and
Rx ICV errors using evcnt(9).
In promiscuous mode, and when scanning (hmm), ask the NIC for bad
packets (e.g., those that do not pass CRC32). Pass bad packets to
radiotap listeners. Pass packets to radiotap listeners before
stripping FCS. Re-order operations in atw_rxintr() to accomplish
all of this without passing bad packets up to net80211.
Set radiotap channel once in atw_tune() instead of in atw_rxintr().
Fix an endianness bug: it_len is little-endian, but bpf_mtap2()'s
argument needs to be in host order.
Revision 1.133: download - view: text, markup, annotated - select for diffs
Fri Nov 16 05:53:16 2007 UTC (19 years ago) by dyoung
Branches: MAIN
Diff to: previous 1.132: preferred, colored
Changes since revision 1.132: +12 -19
lines
Cosmetic: rename some variables and constants. Move some constants
from atw.c to atwreg.h.
Revision 1.132: download - view: text, markup, annotated - select for diffs
Fri Nov 16 04:58:38 2007 UTC (19 years ago) by dyoung
Branches: MAIN
Diff to: previous 1.131: preferred, colored
Changes since revision 1.131: +8 -9
lines
Replace some magic numbers with HFA3861A register names.
Do not alias the Rx descriptor word ar_ctl to ar_rssi with a #define.
Instead, call the member ar_ctlrssi.
Convert the ugly macro ATW_RXDESC_INIT() to an inline subroutine,
atw_rxdesc_init().
Do not load an empty IEEE80211_RADIOTAP_FLAGS field into the Tx
radiotap header.
Revision 1.131: download - view: text, markup, annotated - select for diffs
Thu Nov 15 22:49:46 2007 UTC (19 years ago) by dyoung
Branches: MAIN
Diff to: previous 1.130: preferred, colored
Changes since revision 1.130: +3 -6
lines
Use __arraycount().
Revision 1.127.8.1: download - view: text, markup, annotated - select for diffs
Tue Nov 6 23:26:26 2007 UTC (19 years ago) by matt
Branches: matt-armv6
CVS tags: matt-armv6-prevmlocking
Diff to: previous 1.127: preferred, colored
Changes since revision 1.127: +6 -10
lines
sync with HEAD
Revision 1.87.2.4: download - view: text, markup, annotated - select for diffs
Sat Oct 27 11:30:32 2007 UTC (19 years ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.87.2.3: preferred, colored
Changes since revision 1.87.2.3: +5 -5
lines
sync with head.
Revision 1.127.6.3: download - view: text, markup, annotated - select for diffs
Fri Oct 26 15:44:38 2007 UTC (19 years ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.127.6.2: preferred, colored; branchpoint 1.127: preferred, colored
Changes since revision 1.127.6.2: +4 -4
lines
Sync with HEAD.
Follow the merge of pmap.c on i386 and amd64 and move
pmap_init_tmp_pgtbl into arch/x86/x86/pmap.c. Modify the ACPI wakeup
code to restore CR4 before jumping back into kernel space as the large
page option might cover that.
Revision 1.129.2.1: download - view: text, markup, annotated - select for diffs
Thu Oct 25 22:37:32 2007 UTC (19 years ago) by bouyer
Branches: bouyer-xenamd64
Diff to: previous 1.129: preferred, colored
Changes since revision 1.129: +4 -4
lines
Sync with HEAD.
Revision 1.126.2.3: download - view: text, markup, annotated - select for diffs
Tue Oct 23 20:07:15 2007 UTC (19 years ago) by ad
Branches: vmlocking
Diff to: previous 1.126.2.2: preferred, colored; branchpoint 1.126: preferred, colored; next MAIN 1.127: preferred, colored
Changes since revision 1.126.2.2: +4 -4
lines
Sync with head.
Revision 1.130: download - view: text, markup, annotated - select for diffs
Fri Oct 19 11:59:48 2007 UTC (19 years, 1 month ago) by ad
Branches: MAIN
CVS tags: jmcneill-base
Branch point for: mjf-devfs
Diff to: previous 1.129: preferred, colored
Changes since revision 1.129: +4 -4
lines
machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h
Revision 1.126.2.2: download - view: text, markup, annotated - select for diffs
Tue Oct 9 13:41:21 2007 UTC (19 years, 1 month ago) by ad
Branches: vmlocking
Diff to: previous 1.126.2.1: preferred, colored; branchpoint 1.126: preferred, colored
Changes since revision 1.126.2.1: +4 -8
lines
Sync with head.
Revision 1.128.2.1: download - view: text, markup, annotated - select for diffs
Sat Oct 6 15:31:10 2007 UTC (19 years, 1 month ago) by yamt
Branches: yamt-x86pmap
Diff to: previous 1.128: preferred, colored; next MAIN 1.129: preferred, colored
Changes since revision 1.128: +3 -3
lines
sync with head.
Revision 1.127.6.2: download - view: text, markup, annotated - select for diffs
Tue Oct 2 18:28:23 2007 UTC (19 years, 1 month ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.127.6.1: preferred, colored; branchpoint 1.127: preferred, colored
Changes since revision 1.127.6.1: +3 -3
lines
Sync with HEAD.
Revision 1.129: download - view: text, markup, annotated - select for diffs
Sat Sep 29 18:32:50 2007 UTC (19 years, 1 month ago) by scw
Branches: MAIN
CVS tags: yamt-x86pmap-base4,
yamt-x86pmap-base3,
yamt-x86pmap-base2,
vmlocking-base
Branch point for: bouyer-xenamd64
Diff to: previous 1.128: preferred, colored
Changes since revision 1.128: +3 -3
lines
s/NPBFILTER/NBPFILTER/ in some #endif comments. No functional change.
Revision 1.127.6.1: download - view: text, markup, annotated - select for diffs
Mon Sep 3 16:47:58 2007 UTC (19 years, 2 months ago) by jmcneill
Branches: jmcneill-pm
Diff to: previous 1.127: preferred, colored
Changes since revision 1.127: +3 -7
lines
Sync with HEAD.
Revision 1.87.2.3: download - view: text, markup, annotated - select for diffs
Mon Sep 3 14:34:22 2007 UTC (19 years, 2 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.87.2.2: preferred, colored
Changes since revision 1.87.2.2: +13 -17
lines
sync with head.
Revision 1.127.2.1: download - view: text, markup, annotated - select for diffs
Mon Sep 3 10:20:18 2007 UTC (19 years, 2 months ago) by skrll
Branches: nick-csl-alignment
Diff to: previous 1.127: preferred, colored; next MAIN 1.128: preferred, colored
Changes since revision 1.127: +3 -7
lines
Sync with HEAD.
Revision 1.128: download - view: text, markup, annotated - select for diffs
Sat Sep 1 07:32:25 2007 UTC (19 years, 2 months ago) by dyoung
Branches: MAIN
CVS tags: yamt-x86pmap-base,
nick-csl-alignment-base5
Branch point for: yamt-x86pmap
Diff to: previous 1.127: preferred, colored
Changes since revision 1.127: +3 -7
lines
Change a bazillion occurrences of code resembling this,
error = (cmd == SIOCADDMULTI) ?
ether_addmulti(ifr, &sc->sc_ec) :
ether_delmulti(ifr, &sc->sc_ec);
if (error == ENETRESET) {
to this,
if ((error = ether_ioctl(ifp, cmd, data)) == ENETRESET) {
which does the same thing.
(A bazillion is a very large number. This seems to make the i386
ALL kernel smaller by 3kB to 4kB.)
Use ifreq_getaddr() twice in es(4).
Whitespace nits.
Revision 1.126.4.1: download - view: text, markup, annotated - select for diffs
Wed Jul 11 20:05:42 2007 UTC (19 years, 4 months ago) by mjf
Branches: mjf-ufs-trans
Diff to: previous 1.126: preferred, colored; next MAIN 1.127: preferred, colored
Changes since revision 1.126: +3 -3
lines
Sync with head.
Revision 1.127: download - view: text, markup, annotated - select for diffs
Mon Jul 9 21:00:34 2007 UTC (19 years, 4 months ago) by ad
Branches: MAIN
CVS tags: nick-csl-alignment-base,
mjf-ufs-trans-base,
matt-mips64-base,
matt-mips64,
hpcarm-cleanup
Branch point for: nick-csl-alignment,
matt-armv6,
jmcneill-pm
Diff to: previous 1.126: preferred, colored
Changes since revision 1.126: +3 -3
lines
Merge some of the less invasive changes from the vmlocking branch:
- kthread, callout, devsw API changes
- select()/poll() improvements
- miscellaneous MT safety improvements
Revision 1.126.2.1: download - view: text, markup, annotated - select for diffs
Sun Jul 1 21:47:46 2007 UTC (19 years, 4 months ago) by ad
Branches: vmlocking
Diff to: previous 1.126: preferred, colored
Changes since revision 1.126: +3 -3
lines
Adapt to callout API change.
Revision 1.125.4.1: download - view: text, markup, annotated - select for diffs
Mon Mar 12 05:53:27 2007 UTC (19 years, 8 months ago) by rmind
Branches: yamt-idlelwp
Diff to: previous 1.125: preferred, colored; next MAIN 1.126: preferred, colored
Changes since revision 1.125: +11 -11
lines
Sync with HEAD.
Revision 1.126: download - view: text, markup, annotated - select for diffs
Sun Mar 4 06:01:50 2007 UTC (19 years, 8 months ago) by christos
Branches: MAIN
CVS tags: yamt-idlelwp-base8,
thorpej-atomic-base,
thorpej-atomic,
reinoud-bufcleanup
Branch point for: vmlocking,
mjf-ufs-trans
Diff to: previous 1.125: preferred, colored
Changes since revision 1.125: +11 -11
lines
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
Revision 1.119.2.2: download - view: text, markup, annotated - select for diffs
Fri Jan 12 00:57:35 2007 UTC (19 years, 10 months ago) by ad
Branches: newlock2
Diff to: previous 1.119.2.1: preferred, colored; branchpoint 1.119: preferred, colored; next MAIN 1.120: preferred, colored
Changes since revision 1.119.2.1: +3 -3
lines
Sync with head.
Revision 1.87.2.2: download - view: text, markup, annotated - select for diffs
Sat Dec 30 20:48:01 2006 UTC (19 years, 10 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.87.2.1: preferred, colored
Changes since revision 1.87.2.1: +108 -102
lines
sync with head.
Revision 1.119.4.2: download - view: text, markup, annotated - select for diffs
Sun Dec 10 07:17:04 2006 UTC (19 years, 11 months ago) by yamt
Branches: yamt-splraiseipl
Diff to: previous 1.119.4.1: preferred, colored; branchpoint 1.119: preferred, colored; next MAIN 1.120: preferred, colored
Changes since revision 1.119.4.1: +8 -8
lines
sync with head.
Revision 1.125: download - view: text, markup, annotated - select for diffs
Fri Nov 24 19:46:59 2006 UTC (19 years, 11 months ago) by christos
Branches: MAIN
CVS tags: yamt-splraiseipl-base5,
yamt-splraiseipl-base4,
yamt-splraiseipl-base3,
wrstuden-fixsa-newbase,
wrstuden-fixsa-base-1,
wrstuden-fixsa-base,
wrstuden-fixsa,
post-newlock2-merge,
newlock2-nbase,
newlock2-base,
netbsd-4-base,
netbsd-4-0-RELEASE,
netbsd-4-0-RC5,
netbsd-4-0-RC4,
netbsd-4-0-RC3,
netbsd-4-0-RC2,
netbsd-4-0-RC1,
netbsd-4-0-1-RELEASE,
netbsd-4-0,
netbsd-4,
matt-nb4-arm-base,
matt-nb4-arm,
ad-audiomp-base,
ad-audiomp
Branch point for: yamt-idlelwp
Diff to: previous 1.124: preferred, colored
Changes since revision 1.124: +3 -3
lines
fix spelling of accommodate; from Zapher.
Revision 1.119.2.1: download - view: text, markup, annotated - select for diffs
Sat Nov 18 21:34:09 2006 UTC (20 years ago) by ad
Branches: newlock2
Diff to: previous 1.119: preferred, colored
Changes since revision 1.119: +11 -8
lines
Sync with head.
Revision 1.124: download - view: text, markup, annotated - select for diffs
Thu Nov 16 01:32:51 2006 UTC (20 years ago) by christos
Branches: MAIN
Diff to: previous 1.123: preferred, colored
Changes since revision 1.123: +4 -4
lines
__unused removal on arguments; approved by core.
Revision 1.123: download - view: text, markup, annotated - select for diffs
Mon Nov 13 03:35:59 2006 UTC (20 years ago) by dyoung
Branches: MAIN
Diff to: previous 1.122: preferred, colored
Changes since revision 1.122: +5 -5
lines
Stop using typeof() in the bit-twiddling macros, per yamt@'s
suggestion. This change requires that I use the __PRIuBITS format
string in atw and rtw, so do that.
Revision 1.119.4.1: download - view: text, markup, annotated - select for diffs
Sun Oct 22 06:05:43 2006 UTC (20 years ago) by yamt
Branches: yamt-splraiseipl
Diff to: previous 1.119: preferred, colored
Changes since revision 1.119: +10 -7
lines
sync with head
Revision 1.122: download - view: text, markup, annotated - select for diffs
Thu Oct 12 01:31:00 2006 UTC (20 years, 1 month ago) by christos
Branches: MAIN
CVS tags: yamt-splraiseipl-base2
Diff to: previous 1.121: preferred, colored
Changes since revision 1.121: +4 -4
lines
- sprinkle __unused on function decls.
- fix a couple of unused bugs
- no more -Wno-unused for i386
Revision 1.121: download - view: text, markup, annotated - select for diffs
Wed Oct 4 15:03:25 2006 UTC (20 years, 1 month ago) by christos
Branches: MAIN
Diff to: previous 1.120: preferred, colored
Changes since revision 1.120: +6 -4
lines
prevent empty if.
Revision 1.120: download - view: text, markup, annotated - select for diffs
Sun Sep 24 03:53:08 2006 UTC (20 years, 1 month ago) by jmcneill
Branches: MAIN
Diff to: previous 1.119: preferred, colored
Changes since revision 1.119: +4 -3
lines
Add "name" parameter to powerhook_establish, to aid debugging. No objections
on tech-kern@
Revision 1.105.4.1: download - view: text, markup, annotated - select for diffs
Sat Sep 9 02:50:01 2006 UTC (20 years, 2 months ago) by rpaulo
Branches: rpaulo-netinet-merge-pcb
Diff to: previous 1.105: preferred, colored; next MAIN 1.106: preferred, colored
Changes since revision 1.105: +156 -137
lines
sync with head
Revision 1.109.2.4: download - view: text, markup, annotated - select for diffs
Sun Sep 3 15:23:56 2006 UTC (20 years, 2 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.109.2.3: preferred, colored; branchpoint 1.109: preferred, colored; next MAIN 1.110: preferred, colored
Changes since revision 1.109.2.3: +99 -96
lines
sync with head.
Revision 1.119: download - view: text, markup, annotated - select for diffs
Thu Aug 31 19:24:37 2006 UTC (20 years, 2 months ago) by dyoung
Branches: MAIN
CVS tags: yamt-splraiseipl-base,
yamt-pdpolicy-base9,
yamt-pdpolicy-base8,
rpaulo-netinet-merge-pcb-base
Branch point for: yamt-splraiseipl,
newlock2
Diff to: previous 1.118: preferred, colored
Changes since revision 1.118: +97 -96
lines
Per discussion on tech-kern and tech-userlevel, move the bit-twiddling
macros, __BIT, __BITS, SHIFTIN, SHIFTOUT, and __arraycount() from
lib/libkern/libkern.h to sys/cdefs.h. Add a __-prefix to SHIFTIN
and SHIFTOUT, and add a manual page for the bit-twiddling macros,
bits(3).
Make the __BIT and __BITS macros "widthless," as best I can, by
changing their type to uintmax_t from uint32_t. XXX The manual
page lags this change by a bit.
Define __PRIxBIT and __PRIxBITS printf(3) format strings.
Revision 1.118: download - view: text, markup, annotated - select for diffs
Thu Aug 17 17:11:27 2006 UTC (20 years, 3 months ago) by christos
Branches: MAIN
Diff to: previous 1.117: preferred, colored
Changes since revision 1.117: +4 -2
lines
Fix all the -D*DEBUG* code that it was rotting away and did not even compile.
Mostly from Arnaud Lacombe, many thanks!
Revision 1.87.2.1: download - view: text, markup, annotated - select for diffs
Wed Jun 21 15:02:53 2006 UTC (20 years, 5 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.87: preferred, colored
Changes since revision 1.87: +265 -348
lines
sync with head.
Revision 1.114.2.2: download - view: text, markup, annotated - select for diffs
Wed May 24 15:50:24 2006 UTC (20 years, 5 months ago) by tron
Branches: peter-altq
Diff to: previous 1.114.2.1: preferred, colored; branchpoint 1.114: preferred, colored; next MAIN 1.115: preferred, colored
Changes since revision 1.114.2.1: +7 -7
lines
Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
Revision 1.105.6.1: download - view: text, markup, annotated - select for diffs
Sat Apr 22 11:38:55 2006 UTC (20 years, 7 months ago) by simonb
Branches: simonb-timecounters
CVS tags: simonb-timcounters-final
Diff to: previous 1.105: preferred, colored; next MAIN 1.106: preferred, colored
Changes since revision 1.105: +152 -136
lines
Sync with head.
Revision 1.109.4.1: download - view: text, markup, annotated - select for diffs
Wed Apr 19 03:24:37 2006 UTC (20 years, 7 months ago) by elad
Branches: elad-kernelauth
Diff to: previous 1.109: preferred, colored; next MAIN 1.110: preferred, colored
Changes since revision 1.109: +127 -127
lines
sync with head.
Revision 1.109.2.3: download - view: text, markup, annotated - select for diffs
Tue Apr 11 11:55:13 2006 UTC (20 years, 7 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.109.2.2: preferred, colored; branchpoint 1.109: preferred, colored
Changes since revision 1.109.2.2: +7 -7
lines
sync with head
Revision 1.117: download - view: text, markup, annotated - select for diffs
Thu Apr 6 06:08:26 2006 UTC (20 years, 7 months ago) by dyoung
Branches: MAIN
CVS tags: yamt-pdpolicy-base7,
yamt-pdpolicy-base6,
yamt-pdpolicy-base5,
yamt-pdpolicy-base4,
simonb-timecounters-base,
gdamore-uart-base,
gdamore-uart,
elad-kernelauth-base,
chap-midi-nbase,
chap-midi-base,
chap-midi,
abandoned-netbsd-4-base,
abandoned-netbsd-4
Diff to: previous 1.116: preferred, colored
Changes since revision 1.116: +4 -5
lines
In atw_start, do not initialize lasttx with -1, but initialize it
with the next free transmit descriptor. Now, it is more obvious
that lasttx is not an illegal negative index into the descriptor
ring. Remove a superfluous assertion.
Addresses Coverity CID 1319.
Revision 1.116: download - view: text, markup, annotated - select for diffs
Thu Apr 6 05:47:23 2006 UTC (20 years, 7 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.115: preferred, colored
Changes since revision 1.115: +5 -4
lines
Correct sc_bbptype, sc_rftype bounds checks. Fixes Coverity CID
1541.
Revision 1.109.2.2: download - view: text, markup, annotated - select for diffs
Sat Apr 1 12:06:57 2006 UTC (20 years, 7 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.109.2.1: preferred, colored; branchpoint 1.109: preferred, colored
Changes since revision 1.109.2.1: +3 -3
lines
sync with head.
Revision 1.114.2.1: download - view: text, markup, annotated - select for diffs
Tue Mar 28 09:42:10 2006 UTC (20 years, 7 months ago) by tron
Branches: peter-altq
Diff to: previous 1.114: preferred, colored
Changes since revision 1.114: +3 -3
lines
Merge 2006-03-28 NetBSD-current into the "peter-altq" branch.
Revision 1.115: download - view: text, markup, annotated - select for diffs
Tue Mar 28 00:48:10 2006 UTC (20 years, 7 months ago) by dyoung
Branches: MAIN
CVS tags: yamt-pdpolicy-base3
Diff to: previous 1.114: preferred, colored
Changes since revision 1.114: +3 -3
lines
Revamp ieee80211_get_rate. Now it does not use the rateset in the
ic->ic_bss, but it uses the rateset in its new ieee80211_node
argument, instead. If the rate is fixed by ic->ic_fixed_rate, but
the fixed rate is not in the node's rateset, choose a reasonable
default: prefer the lowest basic rate or, if there is no basic
rate, prefer the lowest rate, period.
Change a printf complaint to a debug message.
Adapt drivers to suit new ieee80211_get_rate calling convention.
XXX I really need to replace ieee80211_get_rate with a bitrate
XXX adaptation algorithm. Soon, soon....
Revision 1.109.2.1: download - view: text, markup, annotated - select for diffs
Mon Mar 13 09:07:20 2006 UTC (20 years, 8 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.109: preferred, colored
Changes since revision 1.109: +121 -121
lines
sync with head.
Revision 1.114: download - view: text, markup, annotated - select for diffs
Sun Mar 12 03:22:02 2006 UTC (20 years, 8 months ago) by dyoung
Branches: MAIN
CVS tags: yamt-pdpolicy-base2,
peter-altq-base
Branch point for: peter-altq
Diff to: previous 1.113: preferred, colored
Changes since revision 1.113: +10 -10
lines
Note in radiotap header file and manual page that radiotap fields
are little-endian. Fix wi(4) and atw(4) to reflect this fact.
Revision 1.113: download - view: text, markup, annotated - select for diffs
Wed Mar 8 23:46:24 2006 UTC (20 years, 8 months ago) by lukem
Branches: MAIN
Diff to: previous 1.112: preferred, colored
Changes since revision 1.112: +19 -19
lines
Use the SI capitalization for "Hz", "kHz", and "MHz" in comments and strings.
Add a space between numbers and Hz unit.
Revision 1.112: download - view: text, markup, annotated - select for diffs
Wed Mar 8 08:26:50 2006 UTC (20 years, 8 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.111: preferred, colored
Changes since revision 1.111: +4 -4
lines
Change macro names to avoid collisions:
BIT -> __BIT
BITS -> __BITS
Revision 1.111: download - view: text, markup, annotated - select for diffs
Wed Mar 8 00:26:43 2006 UTC (20 years, 8 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.110: preferred, colored
Changes since revision 1.110: +3 -3
lines
Straggler from previous commit: rename macro LSHIFT->SHIFTIN.
Revision 1.110: download - view: text, markup, annotated - select for diffs
Wed Mar 8 00:24:06 2006 UTC (20 years, 8 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.109: preferred, colored
Changes since revision 1.109: +94 -94
lines
Move my bit-twiddling macros to libkern.h from my drivers, where
I had duplicated them. Improve the macros' names. Simplify their
implementation.
A brief description of each macro is below.
BIT(n): Return a bitmask with bit m set, where the least
significant bit is bit 0.
BITS(m, n): Return a bitmask with bits m through n, inclusive,
set. It does not matter whether m>n or m<=n.
The least significant bit is bit 0.
A "bitfield" is a span of consecutive bits defined by a
bitmask, where 1s select the bits in the bitfield. SHIFTIN,
SHIFTOUT, and SHIFTOUT_MASK help read and write bitfields
from device registers.
SHIFTIN(v, mask): Left-shift bits `v' into the bitfield
defined by `mask', and return them. No
side-effects.
SHIFTOUT(v, mask): Extract and return the bitfield selected
by `mask' from `v', right-shifting the
bits so that the rightmost selected bit
is at bit 0. No side-effects.
SHIFTOUT_MASK(mask): Right-shift the bits in `mask' so that
the rightmost non-zero bit is at bit
0. This is useful for finding the
greatest unsigned value that a bitfield
can hold. No side-effects. Note that
SHIFTOUT_MASK(m) = SHIFTOUT(m, m).
Examples:
/*
* Register definitions taken from the RFMD RF3000 manual.
*/
#define RF3000_GAINCTL 0x11 /* TX variable gain control */
#define RF3000_GAINCTL_TXVGC_MASK BITS(7, 2)
#define RF3000_GAINCTL_SCRAMBLER BIT(1)
/*
* Shift the transmit power into the transmit-power field of the
* gain-control register and write it to the baseband processor.
*/
atw_rf3000_write(sc, RF3000_GAINCTL,
SHIFTIN(txpower, RF3000_GAINCTL_TXVGC_MASK));
/*
* Register definitions taken from the ADMtek ADM8211 manual.
*
*/
#define ATW_RXSTAT_OWN BIT(31) /* 1: NIC may fill descriptor */
/* ... */
#define ATW_RXSTAT_DA1 BIT(17) /* DA bit 1, admin'd address */
#define ATW_RXSTAT_DA0 BIT(16) /* DA bit 0, group address */
#define ATW_RXSTAT_RXDR_MASK BITS(15,12) /* RX data rate */
#define ATW_RXSTAT_FL_MASK BITS(11,0) /* RX frame length, last
* descriptor only
*/
/* Extract the frame length from the Rx descriptor's
* status field.
*/
len = SHIFTOUT(rxstat, ATW_RXSTAT_FL_MASK);
Revision 1.105.2.1: download - view: text, markup, annotated - select for diffs
Wed Mar 1 09:28:12 2006 UTC (20 years, 8 months ago) by yamt
Branches: yamt-uio_vmspace
Diff to: previous 1.105: preferred, colored; next MAIN 1.106: preferred, colored
Changes since revision 1.105: +27 -11
lines
sync with head.
Revision 1.109: download - view: text, markup, annotated - select for diffs
Mon Feb 20 16:50:37 2006 UTC (20 years, 9 months ago) by thorpej
Branches: MAIN
CVS tags: yamt-uio_vmspace-base5,
yamt-pdpolicy-base
Branch point for: yamt-pdpolicy,
elad-kernelauth
Diff to: previous 1.108: preferred, colored
Changes since revision 1.108: +4 -4
lines
Use device_is_active() rather than testing dv_flags for DVF_ACTIVE
directly.
Revision 1.108: download - view: text, markup, annotated - select for diffs
Sun Feb 19 08:02:46 2006 UTC (20 years, 9 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.107: preferred, colored
Changes since revision 1.107: +20 -9
lines
ADM8211 hardware WEP is not working (probably due to a bug in 802.11
Duration / PLCP Length calculation), so temporarily switch to
software WEP, which is working.
Revision 1.107: download - view: text, markup, annotated - select for diffs
Sat Feb 18 22:12:01 2006 UTC (20 years, 9 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.106: preferred, colored
Changes since revision 1.106: +6 -2
lines
When atw_enable is called, power may have been removed and re-applied,
so invalidate the WEP SRAM to force us to write the keys back to
the hardware.
Revision 1.106: download - view: text, markup, annotated - select for diffs
Sat Feb 18 22:07:11 2006 UTC (20 years, 9 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.105: preferred, colored
Changes since revision 1.105: +3 -2
lines
Fix serious regression in AP-client mode: program adapter's BSSID
as we enter the IEEE80211_S_AUTH and IEEE80211_S_ASSOC states, so
that we don't send 802.11 Authentication and Association frames
with BSSID=00:00:00:00:00:00.
Revision 1.105: download - view: text, markup, annotated - select for diffs
Thu Dec 29 22:20:03 2005 UTC (20 years, 10 months ago) by dyoung
Branches: MAIN
Branch point for: yamt-uio_vmspace,
simonb-timecounters,
rpaulo-netinet-merge-pcb
Diff to: previous 1.104: preferred, colored
Changes since revision 1.104: +2 -3
lines
Remove declaration of deleted subroutine, atw_change_ibss().
Revision 1.104: download - view: text, markup, annotated - select for diffs
Thu Dec 29 22:04:21 2005 UTC (20 years, 10 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.103: preferred, colored
Changes since revision 1.103: +14 -8
lines
Extract subroutine is_running().
If ieee80211_ioctl() returns ERESTART, reinitialize interface with
atw_init().
Don't discard the error returned by atw_init() in atw_media_change().
Revision 1.103: download - view: text, markup, annotated - select for diffs
Thu Dec 29 22:01:43 2005 UTC (20 years, 10 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.102: preferred, colored
Changes since revision 1.102: +5 -7
lines
atw_start() need not update IFF_OACTIVE if it hasn't put a new
packet on the transmit ring, so don't do that.
Revision 1.102: download - view: text, markup, annotated - select for diffs
Thu Dec 29 21:59:07 2005 UTC (20 years, 10 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.101: preferred, colored
Changes since revision 1.101: +11 -3
lines
Assert consistency of IFF_OACTIVE / out of sw/hw transmit descriptors
state.
Revision 1.101: download - view: text, markup, annotated - select for diffs
Thu Dec 29 21:51:43 2005 UTC (20 years, 10 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.100: preferred, colored
Changes since revision 1.100: +5 -2
lines
Always tickle the Receive Demand Register (ATW_RDR) after re-enabling
the receiver.
Revision 1.100: download - view: text, markup, annotated - select for diffs
Thu Dec 29 21:49:59 2005 UTC (20 years, 10 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.99: preferred, colored
Changes since revision 1.99: +6 -9
lines
A couple changes to the hardware reset:
Wait for the SWR bit in ATW_PAR to turn to 0, instead of waiting
for the whole register to turn to 0.
For ease of comparison with a reference driver, re-order operations.
Revision 1.99: download - view: text, markup, annotated - select for diffs
Thu Dec 29 21:45:56 2005 UTC (20 years, 10 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.98: preferred, colored
Changes since revision 1.98: +5 -6
lines
Cosmetic: make a three-step staircase out of a four-step staircase.
Revision 1.98: download - view: text, markup, annotated - select for diffs
Thu Dec 29 21:44:33 2005 UTC (20 years, 10 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.97: preferred, colored
Changes since revision 1.97: +18 -11
lines
Revamp state machine:
1 Only stop beacon generation on an ->INIT transition.
2 Merge AUTH and ASSOC cases, they do the same thing (tune
a new channel).
3 Start beacon generation in IBSS, AP, *and* "adhoc demo"
mode.
Cosmetic tweak: rewrap a statement.
Revision 1.97: download - view: text, markup, annotated - select for diffs
Thu Dec 29 21:40:41 2005 UTC (20 years, 10 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.96: preferred, colored
Changes since revision 1.96: +7 -16
lines
Adapt atw(4) to the new IBSS merge idiom, where ieee80211_ibss_merge()
does not return ENETRESET to indicate the station should adopt a
new BSSID, but it triggers a RUN->RUN transition, instead.
Revision 1.96: download - view: text, markup, annotated - select for diffs
Thu Dec 29 21:37:27 2005 UTC (20 years, 10 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.95: preferred, colored
Changes since revision 1.95: +3 -17
lines
Delete atw_media_status(). Let SIOCGIFMEDIA call ieee80211_media_status()
directly for media status.
Revision 1.95: download - view: text, markup, annotated - select for diffs
Thu Dec 29 21:34:53 2005 UTC (20 years, 10 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.94: preferred, colored
Changes since revision 1.94: +4 -4
lines
Use the fragmentation threshold in the ieee80211com.
XXX Need to condition on frame type = data.
Revision 1.94: download - view: text, markup, annotated - select for diffs
Thu Dec 29 21:32:06 2005 UTC (20 years, 10 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.93: preferred, colored
Changes since revision 1.93: +3 -4
lines
In atw_init(), always call atw_write_wep() to write the WEP state
to the h/w. This prevents a spurious call to atw_write_wep() later,
in IEEE80211_S_RUN state, when net80211 times-out ieee80211_nodes.
It is important to avoid a spurious atw_write_wep() call because
in IBSS mode, at least, WEP re-initialization reliably locks up
the transmitter.
XXX There must be a bug in atw_write_wep() that causes it to lock
XXX up the transmitter. I will revisit it later.
Revision 1.93: download - view: text, markup, annotated - select for diffs
Thu Dec 29 21:08:26 2005 UTC (20 years, 10 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.92: preferred, colored
Changes since revision 1.92: +34 -95
lines
In atw(4), use ieee80211_compute_duration() to compute IEEE 802.11
Duration and PLCP Length fields, and delete the abominable
atw_frame_setdurs() subroutine.
Make rtw(4) use the new ieee80211_compute_duration() calling
convention.
Add an ieee80211_key argument to ieee80211_compute_duration() and
lightly constify arguments. Get the crypto header length from the
key argument instead of blithely assuming a WEP header. Add some
inline documentation. Account for data padding (IEEE80211_F_DATAPAD).
Revision 1.92: download - view: text, markup, annotated - select for diffs
Sat Dec 24 20:27:29 2005 UTC (20 years, 10 months ago) by perry
Branches: MAIN
Diff to: previous 1.91: preferred, colored
Changes since revision 1.91: +5 -5
lines
Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete.
Revision 1.78.2.11: download - view: text, markup, annotated - select for diffs
Sun Dec 11 10:28:50 2005 UTC (20 years, 11 months ago) by christos
Branches: ktrace-lwp
Diff to: previous 1.78.2.10: preferred, colored; next MAIN 1.79: preferred, colored
Changes since revision 1.78.2.10: +33 -69
lines
Sync with head.
Revision 1.89.6.2: download - view: text, markup, annotated - select for diffs
Tue Nov 29 21:23:08 2005 UTC (20 years, 11 months ago) by yamt
Branches: yamt-readahead
Diff to: previous 1.89.6.1: preferred, colored; branchpoint 1.89: preferred, colored; next MAIN 1.90: preferred, colored
Changes since revision 1.89.6.1: +9 -5
lines
sync with head.
Revision 1.91: download - view: text, markup, annotated - select for diffs
Wed Nov 23 01:11:23 2005 UTC (20 years, 11 months ago) by dyoung
Branches: MAIN
CVS tags: yamt-readahead-base3,
ktrace-lwp-base
Diff to: previous 1.90: preferred, colored
Changes since revision 1.90: +9 -5
lines
Misc. bug fixes:
1 Reset both IFF_OACTIVE and the transmit watchdog timer in
appropriate places to avoid both wedging the transmit section
and spurious transmit timeouts.
2 Reset IFF_ALLMULTI at the top of atw_filter_setup so that the
NIC will filter the multicast packets we are not interested in
after we come out of promiscuous mode.
3 In atw_txdrain, count drained transmit descriptors to avoid
descriptor exhaustion.
Revision 1.89.6.1: download - view: text, markup, annotated - select for diffs
Tue Nov 22 16:08:07 2005 UTC (20 years, 11 months ago) by yamt
Branches: yamt-readahead
Diff to: previous 1.89: preferred, colored
Changes since revision 1.89: +26 -66
lines
sync with head.
Revision 1.90: download - view: text, markup, annotated - select for diffs
Fri Nov 18 16:53:56 2005 UTC (21 years ago) by skrll
Branches: MAIN
CVS tags: yamt-readahead-base2
Diff to: previous 1.89: preferred, colored
Changes since revision 1.89: +26 -66
lines
Adapt drivers to the new net80211(9).
Most of this is from dyoung@. Thanks!
Revision 1.78.2.10: download - view: text, markup, annotated - select for diffs
Thu Nov 10 14:04:14 2005 UTC (21 years ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.78.2.9: preferred, colored
Changes since revision 1.78.2.9: +165 -67
lines
Sync with HEAD. Here we go again...
Revision 1.89: download - view: text, markup, annotated - select for diffs
Thu Jul 7 00:12:22 2005 UTC (21 years, 4 months ago) by dyoung
Branches: MAIN
CVS tags: yamt-vop-base3,
yamt-vop-base2,
yamt-vop-base,
yamt-vop,
yamt-readahead-pervnode,
yamt-readahead-perfile,
yamt-readahead-base,
thorpej-vnode-attr-base,
thorpej-vnode-attr
Branch point for: yamt-readahead
Diff to: previous 1.88: preferred, colored
Changes since revision 1.88: +6 -2
lines
Don't write WEP keys to the chip unless it is enabled.
Suspend and restart the transmit/receive engines while writing WEP
keys.
Revision 1.88: download - view: text, markup, annotated - select for diffs
Wed Jul 6 23:58:14 2005 UTC (21 years, 4 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.87: preferred, colored
Changes since revision 1.87: +3 -2
lines
Historically, an(4), ath(4), atw(4), rtw(4), and wi(4) have printed
out their modes and rates at boot. Revert to the historical
behavior.
Revision 1.87: download - view: text, markup, annotated - select for diffs
Sun Jun 26 04:37:25 2005 UTC (21 years, 4 months ago) by dyoung
Branches: MAIN
Branch point for: yamt-lazymbuf
Diff to: previous 1.86: preferred, colored
Changes since revision 1.86: +4 -2
lines
Do not build AP support if 'options IEEE80211_NO_HOSTAP' is in the
kernel configuration.
Revision 1.86: download - view: text, markup, annotated - select for diffs
Sat Jun 25 03:41:50 2005 UTC (21 years, 4 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.85: preferred, colored
Changes since revision 1.85: +3 -4
lines
Cosmetic: join lines.
Revision 1.85: download - view: text, markup, annotated - select for diffs
Wed Jun 22 06:15:51 2005 UTC (21 years, 5 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.84: preferred, colored
Changes since revision 1.84: +159 -67
lines
Resolve conflicts in importation of 18-May-2005 ath(4) / net80211(9)
from FreeBSD. Introduce compatibility shims (sys/dev/ic/ath_netbsd.[ch],
sys/net80211/ieee80211_netbsd.[ch]). Update drivers (an, atu, atw,
awi, ipw, iwi, rtw, wi) for the new net80211(9) API.
Revision 1.82.2.1: download - view: text, markup, annotated - select for diffs
Fri Apr 29 11:28:49 2005 UTC (21 years, 6 months ago) by kent
Branches: kent-audio2
Diff to: previous 1.82: preferred, colored; next MAIN 1.83: preferred, colored
Changes since revision 1.82: +22 -22
lines
sync with -current
Revision 1.82.4.2: download - view: text, markup, annotated - select for diffs
Sat Mar 19 08:34:01 2005 UTC (21 years, 8 months ago) by yamt
Branches: yamt-km
Diff to: previous 1.82.4.1: preferred, colored; branchpoint 1.82: preferred, colored; next MAIN 1.83: preferred, colored
Changes since revision 1.82.4.1: +21 -21
lines
sync with head. xen and whitespace. xen part is not finished.
Revision 1.78.2.9: download - view: text, markup, annotated - select for diffs
Fri Mar 4 16:41:26 2005 UTC (21 years, 8 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.78.2.8: preferred, colored
Changes since revision 1.78.2.8: +21 -21
lines
Sync with HEAD.
Hi Perry!
Revision 1.84: download - view: text, markup, annotated - select for diffs
Sun Feb 27 00:27:00 2005 UTC (21 years, 8 months ago) by perry
Branches: MAIN
CVS tags: yamt-km-base4,
yamt-km-base3,
netbsd-3-base,
netbsd-3-1-RELEASE,
netbsd-3-1-RC4,
netbsd-3-1-RC3,
netbsd-3-1-RC2,
netbsd-3-1-RC1,
netbsd-3-1-1-RELEASE,
netbsd-3-1,
netbsd-3-0-RELEASE,
netbsd-3-0-RC6,
netbsd-3-0-RC5,
netbsd-3-0-RC4,
netbsd-3-0-RC3,
netbsd-3-0-RC2,
netbsd-3-0-RC1,
netbsd-3-0-3-RELEASE,
netbsd-3-0-2-RELEASE,
netbsd-3-0-1-RELEASE,
netbsd-3-0,
netbsd-3,
kent-audio2-base
Diff to: previous 1.83: preferred, colored
Changes since revision 1.83: +21 -21
lines
nuke trailing whitespace
Revision 1.82.4.1: download - view: text, markup, annotated - select for diffs
Sat Feb 12 18:17:43 2005 UTC (21 years, 9 months ago) by yamt
Branches: yamt-km
Diff to: previous 1.82: preferred, colored
Changes since revision 1.82: +3 -3
lines
sync with head.
Revision 1.78.2.8: download - view: text, markup, annotated - select for diffs
Fri Feb 4 11:45:24 2005 UTC (21 years, 9 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.78.2.7: preferred, colored
Changes since revision 1.78.2.7: +3 -3
lines
Sync with HEAD.
Revision 1.83: download - view: text, markup, annotated - select for diffs
Mon Jan 31 03:06:40 2005 UTC (21 years, 9 months ago) by thorpej
Branches: MAIN
CVS tags: yamt-km-base2
Diff to: previous 1.82: preferred, colored
Changes since revision 1.82: +3 -3
lines
Eliminate use of M_HASFCS.
Revision 1.24.2.2.2.1: download - view: text, markup, annotated - select for diffs
Mon Jan 24 21:38:46 2005 UTC (21 years, 9 months ago) by he
Branches: netbsd-2
CVS tags: netbsd-2-1-RELEASE,
netbsd-2-1-RC6,
netbsd-2-1-RC5,
netbsd-2-1-RC4,
netbsd-2-1-RC3,
netbsd-2-1-RC2,
netbsd-2-1-RC1,
netbsd-2-1
Diff to: previous 1.24.2.2: preferred, colored; next MAIN 1.25: preferred, colored
Changes since revision 1.24.2.2: +3 -3
lines
Pull up revision 1.80 (requested by thorpej in ticket #939):
When adding or deleting multicast addresses, only change
the address filter if the interface is marked RUNNING.
Fixes PR#27678.
Revision 1.78.2.7: download - view: text, markup, annotated - select for diffs
Mon Jan 17 19:30:39 2005 UTC (21 years, 10 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.78.2.6: preferred, colored
Changes since revision 1.78.2.6: +5 -4
lines
Sync with HEAD.
Revision 1.82: download - view: text, markup, annotated - select for diffs
Tue Jan 4 00:56:51 2005 UTC (21 years, 10 months ago) by dyoung
Branches: MAIN
CVS tags: yamt-km-base,
kent-audio1-beforemerge
Branch point for: yamt-km,
kent-audio2
Diff to: previous 1.81: preferred, colored
Changes since revision 1.81: +4 -3
lines
IBSS-merge clean-up, inspired by some Linux patches from Jon Anderson
(mail@janderson.ca): remove ieee80211_ibss_merge's TSFT argument.
Do the TSFT comparison in the drivers (ath, atw). Remove a lot of
extraneous debug statements from ieee80211_ibss_merge.
Set the ieee80211_node's state to IEEE80211_STA_BSS after it's been
copied to the ic_bss, not before.
In struct ieee80211_node, make the ni_tstamp field a union of a
uint64_t and the 8 TSF octets so that it's easier to compare a
neighbor's TSF with the local TSF.
Log IBSS merges (Greg Troxel's suggestion). Also log IBSS creation.
These are rare and important events that deserve to be logged.
Revision 1.81: download - view: text, markup, annotated - select for diffs
Mon Dec 27 01:51:49 2004 UTC (21 years, 10 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.80: preferred, colored
Changes since revision 1.80: +3 -3
lines
Replace d_plcp_svc with d_residue. The latter is the number of whole
empty/unused octets to fill out the data time slot. The value is constrained
by math to 0 for <= 5.5Mb, 0-1 for 11Mb, and 0-2 for 22Mb. It is used to
signal to the MAC that there is residue.
Revision 1.78.2.6: download - view: text, markup, annotated - select for diffs
Tue Nov 2 07:51:30 2004 UTC (22 years ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.78.2.5: preferred, colored
Changes since revision 1.78.2.5: +3 -3
lines
Sync with HEAD.
Revision 1.80: download - view: text, markup, annotated - select for diffs
Sat Oct 30 18:08:36 2004 UTC (22 years ago) by thorpej
Branches: MAIN
CVS tags: kent-audio1-base,
kent-audio1
Diff to: previous 1.79: preferred, colored
Changes since revision 1.79: +3 -3
lines
When adding/deleting multicast addresses, only whack the address
filter if the interface is marked RUNNING.
Fixes kern/27678.
Revision 1.78.2.5: download - view: text, markup, annotated - select for diffs
Tue Sep 21 13:27:53 2004 UTC (22 years, 2 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.78.2.4: preferred, colored
Changes since revision 1.78.2.4: +2 -2
lines
Fix the sync with head I botched.
Revision 1.78.2.4: download - view: text, markup, annotated - select for diffs
Sat Sep 18 14:45:56 2004 UTC (22 years, 2 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.78.2.3: preferred, colored
Changes since revision 1.78.2.3: +2 -2
lines
Sync with HEAD.
Revision 1.78.2.3: download - view: text, markup, annotated - select for diffs
Thu Aug 12 11:41:23 2004 UTC (22 years, 3 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.78.2.2: preferred, colored
Changes since revision 1.78.2.2: +6 -9
lines
Sync with HEAD.
Revision 1.79: download - view: text, markup, annotated - select for diffs
Tue Aug 10 00:57:20 2004 UTC (22 years, 3 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.78: preferred, colored
Changes since revision 1.78: +6 -9
lines
Make the node table into an LRU cache: least-recently used nodes
are at the end of the node queue. Change the reference-counting
discipline: ni->ni_refcnt indicates how many times net80211 has
granted ni to the driver. Every node in the table with ni_refcnt=0
is eligible to be garbage-collected. The mere presence of a node
in the table does not any longer indicate its auth/assoc state;
nodes have a ni_state variable, now. A sysctl,
net.link.ieee80211.maxnodecache, controls the maximum LRU cache
size.
While I am here, patch ieee80211_find_node_for_beacon to do a "best
match" by bssid/ssid/channel, not a "perfect match." This keeps
net80211 from caching duplicate nodes in the table.
Revision 1.78.2.2: download - view: text, markup, annotated - select for diffs
Tue Aug 3 10:46:11 2004 UTC (22 years, 3 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.78.2.1: preferred, colored
Changes since revision 1.78.2.1: +3907 -0
lines
Sync with HEAD
Revision 1.78.2.1
Wed Jul 28 08:12:49 2004 UTC (22 years, 3 months ago) by skrll
Branches: ktrace-lwp
FILE REMOVED
Changes since revision 1.78: +0 -3907
lines
file atw.c was added on branch ktrace-lwp on 2004-08-03 10:46:11 +0000
Revision 1.78: download - view: text, markup, annotated - select for diffs
Wed Jul 28 08:12:49 2004 UTC (22 years, 3 months ago) by dyoung
Branches: MAIN
Branch point for: ktrace-lwp
Diff to: previous 1.77: preferred, colored
Changes since revision 1.77: +39 -53
lines
Vastly simplify ieee80211_ibss_merge, eliminating the needless
callbacks. Change the reference IBSS-merge implementation in atw
to match.
Revision 1.77: download - view: text, markup, annotated - select for diffs
Tue Jul 27 23:57:02 2004 UTC (22 years, 3 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.76: preferred, colored
Changes since revision 1.76: +4 -2
lines
Cancel scan callout when the device detaches. Pointed out by Todd
Miller.
Revision 1.76: download - view: text, markup, annotated - select for diffs
Sat Jul 24 23:53:49 2004 UTC (22 years, 3 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.75: preferred, colored
Changes since revision 1.75: +47 -147
lines
Pull the IBSS merge logic out of atw and into net80211, since ath
will eventually share it.
In the IBSS merge logic, check conditions in a different order so
that they run faster in the common case---no merge. Fix the
rate-limiting on the debug outputs (enabled by IFF_LINK0).
Revision 1.75: download - view: text, markup, annotated - select for diffs
Sat Jul 24 04:59:01 2004 UTC (22 years, 3 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.74: preferred, colored
Changes since revision 1.74: +4 -2
lines
Doh, we really do need to set bit ATW_NAR_MM in ATW_NAR, or else
no multicast packets are let through.
Revision 1.74: download - view: text, markup, annotated - select for diffs
Sat Jul 24 01:26:20 2004 UTC (22 years, 3 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.73: preferred, colored
Changes since revision 1.73: +53 -53
lines
Add atw_nar_init, atw_next_scan prototypes (thanks Todd Miller)
and sort prototypes.
In-line atw_tsft.
Revision 1.73: download - view: text, markup, annotated - select for diffs
Fri Jul 23 10:15:13 2004 UTC (22 years, 3 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.72: preferred, colored
Changes since revision 1.72: +3 -4
lines
Cleanup of ieee80211_node from madwifi:
* Don't use ifp pointers; use ieee80211com.
* Implement the locking macros that are used under FreeBSD and Linux.
Revision 1.72: download - view: text, markup, annotated - select for diffs
Fri Jul 23 08:36:01 2004 UTC (22 years, 3 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.71: preferred, colored
Changes since revision 1.71: +3 -3
lines
Fix mismerge.
Revision 1.71: download - view: text, markup, annotated - select for diffs
Fri Jul 23 08:34:11 2004 UTC (22 years, 3 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.70: preferred, colored
Changes since revision 1.70: +4 -4
lines
IEEE80211_F_WEPON -> IEEE80211_F_PRIVACY
Revision 1.70: download - view: text, markup, annotated - select for diffs
Fri Jul 23 07:20:44 2004 UTC (22 years, 3 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.69: preferred, colored
Changes since revision 1.69: +29 -20
lines
Instrument atw(4) delays so that I can experiment and shorten the
conservative delays that I derived from the reference driver.
Revision 1.69: download - view: text, markup, annotated - select for diffs
Fri Jul 23 07:07:55 2004 UTC (22 years, 3 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.68: preferred, colored
Changes since revision 1.68: +109 -22
lines
Print and store Cardbus/PCI revision number.
Begin conditioning device configuration on revision number. Four
revisions are known:
1.1/1.5 -> ADM8211A,
2.0 -> ADM8211B,
3.0 -> ADM8211C.
The B and C parts, which are not supported yet, have AP capability.
Revision 1.68: download - view: text, markup, annotated - select for diffs
Fri Jul 23 06:57:50 2004 UTC (22 years, 3 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.67: preferred, colored
Changes since revision 1.67: +62 -40
lines
Fix IBSS merges in atw(4).
Revision 1.67: download - view: text, markup, annotated - select for diffs
Fri Jul 23 05:06:26 2004 UTC (22 years, 3 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.66: preferred, colored
Changes since revision 1.66: +3 -3
lines
Use the new SRAM size constants.
Revision 1.66: download - view: text, markup, annotated - select for diffs
Fri Jul 16 23:13:27 2004 UTC (22 years, 4 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.65: preferred, colored
Changes since revision 1.65: +18 -7
lines
The RSSI field in the Rx descriptor is the unadulterated content
of the DIVCTL/RSSI register on the RF3000 baseband. Mask all but
the RSSI bits.
Revision 1.65: download - view: text, markup, annotated - select for diffs
Thu Jul 15 07:31:05 2004 UTC (22 years, 4 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.64: preferred, colored
Changes since revision 1.64: +4 -10
lines
Insist that callers use atw_write_sram to copy even-length buffers
to even offsets in the ADM8211 SRAM.
assert->KASSERT
Revision 1.64: download - view: text, markup, annotated - select for diffs
Thu Jul 15 07:26:17 2004 UTC (22 years, 4 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.63: preferred, colored
Changes since revision 1.63: +194 -139
lines
Totally revamp device initialization using clue from the reference
driver. I also have re-organized the code a lot.
Revision 1.63: download - view: text, markup, annotated - select for diffs
Thu Jul 15 07:25:40 2004 UTC (22 years, 4 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.62: preferred, colored
Changes since revision 1.62: +39 -8
lines
Totally revamp device resets using clue from the reference driver.
Revision 1.62: download - view: text, markup, annotated - select for diffs
Thu Jul 15 07:25:06 2004 UTC (22 years, 4 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.61: preferred, colored
Changes since revision 1.61: +3 -3
lines
Make atw_read_srom static.
Revision 1.61: download - view: text, markup, annotated - select for diffs
Thu Jul 15 07:22:13 2004 UTC (22 years, 4 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.60: preferred, colored
Changes since revision 1.60: +70 -43
lines
Re-organize, add new, and remove old prototypes.
Revision 1.60: download - view: text, markup, annotated - select for diffs
Thu Jul 15 07:20:46 2004 UTC (22 years, 4 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.59: preferred, colored
Changes since revision 1.59: +2 -4
lines
Once again, stop calling the bus front-end's interrupt-acknowledgement
callback.
Revision 1.59: download - view: text, markup, annotated - select for diffs
Thu Jul 15 07:19:46 2004 UTC (22 years, 4 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +136 -134
lines
Totally revamp the way that I program the synthesizer and baseband.
Revision 1.58: download - view: text, markup, annotated - select for diffs
Thu Jul 15 07:13:44 2004 UTC (22 years, 4 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +6 -20
lines
Take the paranoia out of the code for writing baseband registers.
Revision 1.57: download - view: text, markup, annotated - select for diffs
Thu Jul 15 07:11:23 2004 UTC (22 years, 4 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.56: preferred, colored
Changes since revision 1.56: +24 -38
lines
Simplify the Rx filter setup, following the AL981 code in tlp(4).
Revision 1.56: download - view: text, markup, annotated - select for diffs
Thu Jul 15 07:10:25 2004 UTC (22 years, 4 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +73 -46
lines
Countdown correctly to the Target Beacon Transmission Time.
Borrowing an idea from the reference driver, use no 64-bit arithmetic.
Revision 1.55: download - view: text, markup, annotated - select for diffs
Thu Jul 15 07:01:20 2004 UTC (22 years, 4 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.54: preferred, colored
Changes since revision 1.54: +28 -16
lines
In atw_start_beacon, set CAP0 as well as BCNT and CAP1.
Revision 1.54: download - view: text, markup, annotated - select for diffs
Thu Jul 15 07:00:43 2004 UTC (22 years, 4 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +7 -14
lines
Simplify IBSS merge code.
Revision 1.53: download - view: text, markup, annotated - select for diffs
Thu Jul 15 06:53:11 2004 UTC (22 years, 4 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +7 -4
lines
Only write the SSID buffer to the ADM8211 SRAM up to the end of
the SSID, not up to the end of the buffer. Given the (too
conservative?) delays involved, this should save some time when we
join a new network.
Revision 1.52: download - view: text, markup, annotated - select for diffs
Thu Jul 15 06:50:34 2004 UTC (22 years, 4 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +8 -8
lines
Change the order in which I write the BSSID registers on the ADM8211,
to match the reference driver. This probably does not make any
functional difference.
Revision 1.51: download - view: text, markup, annotated - select for diffs
Thu Jul 15 06:48:45 2004 UTC (22 years, 4 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +5 -4
lines
Set up the Tx descriptor ring more safely. Fix an endianness bug.
"It's a wonder this ever worked." (Actually, it's not.)
Revision 1.50: download - view: text, markup, annotated - select for diffs
Thu Jul 15 06:46:08 2004 UTC (22 years, 4 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +2 -4
lines
Re-synchronize TSFT after an IBSS merge.
Revision 1.49: download - view: text, markup, annotated - select for diffs
Thu Jul 15 06:38:46 2004 UTC (22 years, 4 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +8 -4
lines
Delay for tens of milliseconds lot after writing the Network Access
Register. I am slavishly imitating the reference driver, here.
I will come back and lower the delays later.
Revision 1.48: download - view: text, markup, annotated - select for diffs
Thu Jul 15 06:37:22 2004 UTC (22 years, 4 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +6 -4
lines
In the transmit interrupt handler, do not unnecessarily synchronize
all the descriptors for a buffer chain. Just synchronize the last
one, which has the interesting stuff.
I still synchronize all the descriptors for the buffer chain if
super-verbose debugging is enabled, since the driver will print
all the descriptors for the chain.
Revision 1.47: download - view: text, markup, annotated - select for diffs
Thu Jul 15 06:34:24 2004 UTC (22 years, 4 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +2 -3
lines
Remove a less-than-helpful comment.
Revision 1.46: download - view: text, markup, annotated - select for diffs
Thu Jul 15 06:33:43 2004 UTC (22 years, 4 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +3 -3
lines
Clamp the length of a received packet, just in case the chip lies.
Revision 1.45: download - view: text, markup, annotated - select for diffs
Thu Jul 15 06:32:42 2004 UTC (22 years, 4 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +6 -6
lines
When super-verbose debugging is enabled, convert Rx descriptors'
endianness before printing them.
Revision 1.44: download - view: text, markup, annotated - select for diffs
Thu Jul 15 06:31:43 2004 UTC (22 years, 4 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +2 -10
lines
Delete some dead code.
Don't call back into the bus-specific code for resets any longer.
It does not seem to be necessary.
Revision 1.43: download - view: text, markup, annotated - select for diffs
Thu Jul 15 06:30:12 2004 UTC (22 years, 4 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +8 -6
lines
During scans, initialize the BSSID to ff:ff:ff:ff:ff:ff before
sending the first probe request.
Revision 1.42: download - view: text, markup, annotated - select for diffs
Thu Jul 15 06:28:37 2004 UTC (22 years, 4 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +2 -12
lines
Clear dead code out of atw_clear_sram.
Revision 1.41: download - view: text, markup, annotated - select for diffs
Thu Jul 15 06:20:58 2004 UTC (22 years, 4 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +5 -2
lines
Don't send data packets until the interface is in state RUN. This
stops ARP and IPv6 Neighbor Discovery packets from trickling out
the interface before it is time.
Revision 1.40: download - view: text, markup, annotated - select for diffs
Thu Jul 15 06:06:53 2004 UTC (22 years, 4 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +2 -45
lines
I'm not treating the lost beacon count specially any more. It is
kind of a dumb way to track the link condition, anyway....
Revision 1.39: download - view: text, markup, annotated - select for diffs
Thu Jul 15 05:54:13 2004 UTC (22 years, 4 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +14 -27
lines
Rid atw of some dead code and some test instrumentation.
Revision 1.38: download - view: text, markup, annotated - select for diffs
Thu Jul 15 05:43:50 2004 UTC (22 years, 4 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +2 -9
lines
In ad hoc mode, don't set the mysterious EA bit in the Network
Access Register. ADMtek's reference driver does not use it at all,
and it does not seem to make any difference whether I leave it in
or take it out.
Revision 1.24.2.2: download - view: text, markup, annotated - select for diffs
Sun Jun 27 08:30:49 2004 UTC (22 years, 4 months ago) by jdc
Branches: netbsd-2-0
CVS tags: netbsd-2-base,
netbsd-2-0-RELEASE,
netbsd-2-0-RC5,
netbsd-2-0-RC4,
netbsd-2-0-RC3,
netbsd-2-0-RC2,
netbsd-2-0-RC1,
netbsd-2-0-3-RELEASE,
netbsd-2-0-2-RELEASE,
netbsd-2-0-1-RELEASE
Branch point for: netbsd-2
Diff to: previous 1.24.2.1: preferred, colored; branchpoint 1.24: preferred, colored; next MAIN 1.25: preferred, colored
Changes since revision 1.24.2.1: +28 -17
lines
Pull up revisions 1.36-1.37 (requested by dyoung in ticket #552).
After we wait for the MAC's transmit section to idle, drain the
transmit queue and cancel the watchdog timer. This ends the annoying
"atw0: transmit timeout" messages that disrupted my WiFi tonight.
Only drain the transmit queue if we are idling the transmit section.
Revision 1.24.2.1: download - view: text, markup, annotated - select for diffs
Sun Jun 27 08:25:58 2004 UTC (22 years, 4 months ago) by jdc
Branches: netbsd-2-0
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +2 -5
lines
Pull up revision 1.34 (requested by dyoung in ticket #551).
Don't skip the reset! atw was not getting reset at device attachment.
atw seems to work better now that it gets this right: for one thing,
the RSSI can be seen to change as I walk around the office with my
laptop.
Thanks to Todd C. Miller for pointing out my mistake.
Revision 1.37: download - view: text, markup, annotated - select for diffs
Wed Jun 23 09:41:54 2004 UTC (22 years, 4 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +4 -3
lines
Only drain the transmit queue if we are idling the transmit section.
Revision 1.36: download - view: text, markup, annotated - select for diffs
Wed Jun 23 09:27:59 2004 UTC (22 years, 4 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +27 -17
lines
After we wait for the MAC's transmit section to idle, drain the
transmit queue and cancel the watchdog timer. This ends the annoying
"atw0: transmit timeout" messages that disrupted my WiFi tonight.
Revision 1.35: download - view: text, markup, annotated - select for diffs
Wed Jun 23 09:05:50 2004 UTC (22 years, 4 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +6 -2
lines
Fix a commit-o: handle all cases in the switch-statement.
Revision 1.34: download - view: text, markup, annotated - select for diffs
Wed Jun 23 08:12:28 2004 UTC (22 years, 4 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +2 -5
lines
Don't skip the reset! atw was not getting reset at device attachment.
atw seems to work better now that it gets this right: for one thing,
the RSSI can be seen to change as I walk around the office with my
laptop.
Thanks to Todd C. Miller for pointing out my mistake.
Revision 1.33: download - view: text, markup, annotated - select for diffs
Wed Jun 23 08:05:01 2004 UTC (22 years, 4 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +5 -5
lines
Fix typo: change ATW_RFTYPE_RFMD and family to ATW_BBPTYPE_RFMD.
This does not make any functional difference: each manufacturer's
RF type-number is the same as its BBP type-number.
Revision 1.32: download - view: text, markup, annotated - select for diffs
Sun Jun 6 04:38:33 2004 UTC (22 years, 5 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +5 -15
lines
In ad hoc mode, ignore the MAC's link up/down indication, since it
does not appear to be reliable.
Revision 1.31: download - view: text, markup, annotated - select for diffs
Sat Jun 5 07:12:45 2004 UTC (22 years, 5 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +3 -5
lines
No need to detect and exit on short 802.11 packets, since
ieee80211_input will do that (and tap the packet).
Revision 1.30: download - view: text, markup, annotated - select for diffs
Mon May 31 11:28:48 2004 UTC (22 years, 5 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +2 -3
lines
It's only necessary to set do_encrypt in one place, so do that.
Revision 1.29: download - view: text, markup, annotated - select for diffs
Mon May 31 11:28:03 2004 UTC (22 years, 5 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +4 -4
lines
Cosmetic: fix comment typo, change bit-test style.
Revision 1.28: download - view: text, markup, annotated - select for diffs
Mon May 31 10:49:32 2004 UTC (22 years, 5 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +4 -3
lines
Name the shift, txpower << 2 -> LSHIFT(txpower, RF3000_GAINCTL_TXVGC_MASK).
Revision 1.27: download - view: text, markup, annotated - select for diffs
Mon May 31 09:05:01 2004 UTC (22 years, 5 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +4 -4
lines
Wrap a line. Remove a useless comment.
Revision 1.26: download - view: text, markup, annotated - select for diffs
Mon May 31 09:00:24 2004 UTC (22 years, 5 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +14 -14
lines
Describe Tx/Rx state a little better using clue from the ADM8211C/CR
datasheet.
Revision 1.25: download - view: text, markup, annotated - select for diffs
Mon May 31 08:52:53 2004 UTC (22 years, 5 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +6 -17
lines
Use bpf_mtap2.
Revision 1.24: download - view: text, markup, annotated - select for diffs
Tue Feb 17 21:20:55 2004 UTC (22 years, 9 months ago) by dyoung
Branches: MAIN
CVS tags: netbsd-2-0-base
Branch point for: netbsd-2-0
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +15 -6
lines
Move the RF Microdevices RF3000 & Silicon Laboratories SI4126/SI4136
register sets into their own header files for re-use by future
drivers.
Revision 1.23: download - view: text, markup, annotated - select for diffs
Thu Jan 29 10:25:49 2004 UTC (22 years, 9 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +61 -114
lines
Get rid of __P.
Revision 1.22: download - view: text, markup, annotated - select for diffs
Thu Jan 29 10:02:24 2004 UTC (22 years, 9 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +5 -3
lines
Only pass 802.11 frames up if they are greater than the minimum
size or else if monitor mode is enabled.
Revision 1.21: download - view: text, markup, annotated - select for diffs
Thu Jan 29 10:01:14 2004 UTC (22 years, 9 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +7 -5
lines
Avoid division by zero when computing the link-lost lost-beacons
threshold.
Revision 1.20: download - view: text, markup, annotated - select for diffs
Thu Jan 29 09:59:57 2004 UTC (22 years, 9 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +5 -4
lines
Deal with the RSSI as an unsigned value.
Revision 1.19: download - view: text, markup, annotated - select for diffs
Tue Jan 13 23:37:29 2004 UTC (22 years, 10 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +3 -3
lines
NetBSD's KASSERT takes just one argument while FreeBSD's takes two,
so I have added IASSERT(cond, complaint) to the compatibility header
file and s/KASSERT/IASSERT/'d.
Revision 1.18: download - view: text, markup, annotated - select for diffs
Sat Jan 10 07:54:55 2004 UTC (22 years, 10 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +4 -6
lines
Rounding to the nearest multiple of 2 with roundup(constant, 2) is
easier to read than `constant + 1'.
Revision 1.17: download - view: text, markup, annotated - select for diffs
Sat Jan 10 07:51:16 2004 UTC (22 years, 10 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +4 -4
lines
In atw_rf3000_tune, enable I/O with the modem and RF front-end
"just in time" instead of at the top of the function.
Revision 1.16: download - view: text, markup, annotated - select for diffs
Sat Jan 10 07:47:02 2004 UTC (22 years, 10 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +7 -4
lines
Do not set IEEE80211_F_IBSSON in hostap mode. Treat hostap-mode
when the link condition changes by returning.
Note that hostap mode still does not work in atw, and ADMtek has
told me that the hardware will not support it, but I remain hopeful.
Revision 1.15: download - view: text, markup, annotated - select for diffs
Sat Jan 10 07:41:18 2004 UTC (22 years, 10 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +8 -7
lines
Report received-early interrupt with a debug printf.
Print the Serial EEPROM and the MAC address it contains when
atw_debug > 0, because atw_debug > 1 is a little too strict.
Revision 1.14: download - view: text, markup, annotated - select for diffs
Sat Jan 10 07:03:28 2004 UTC (22 years, 10 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +20 -12
lines
Misc. cosmetic changes.
Add a debug printf to the input path.
Revision 1.13: download - view: text, markup, annotated - select for diffs
Sat Jan 10 06:30:35 2004 UTC (22 years, 10 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +4 -5
lines
Use new docs provided by RFMD to give some meaning to
previously-undocumented registers and magic numbers on the RF3000
baseband.
Revision 1.12: download - view: text, markup, annotated - select for diffs
Sun Nov 16 09:02:42 2003 UTC (23 years ago) by dyoung
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +56 -19
lines
Add data-link type DLT_IEEE802_11_RADIO to wi and atw. DLT_IEEE802_11_RADIO
lets you monitor radio stats like received signal strength, which
diversity antenna was used, channel/frequency, modulation, and data
rate.
Revision 1.11: download - view: text, markup, annotated - select for diffs
Sun Nov 2 02:14:33 2003 UTC (23 years ago) by dyoung
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +3 -3
lines
No need to check which state we're changing FROM when we deactivate
the scan callout.
Revision 1.10: download - view: text, markup, annotated - select for diffs
Sun Nov 2 02:05:15 2003 UTC (23 years ago) by dyoung
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +7 -14
lines
Get a clue from ath(4) and move the ieee80211_new_state() calls in
atw_init to one place.
Revision 1.9: download - view: text, markup, annotated - select for diffs
Sun Nov 2 01:58:22 2003 UTC (23 years ago) by dyoung
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +3 -3
lines
Fix thinko that breaks IBSS merges in atw(4). sc->sc_opmode !=
ic->ic_opmode!
Revision 1.8: download - view: text, markup, annotated - select for diffs
Sun Nov 2 01:55:40 2003 UTC (23 years ago) by dyoung
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +3 -8
lines
Use ieee80211_find_rxnode to attribute Rx packets to the write
ieee80211_node. This reduces code duplication. It will help us
support passive scanning and rate adaptation.
Revision 1.7: download - view: text, markup, annotated - select for diffs
Sat Oct 25 21:32:44 2003 UTC (23 years ago) by christos
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +3 -3
lines
make this compile again. I should really rename the FreeBSD KASSERT to
KASSERT2 or something.
Revision 1.6: download - view: text, markup, annotated - select for diffs
Sat Oct 25 19:41:44 2003 UTC (23 years ago) by christos
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +3 -3
lines
KASSERT takes 2 arguments here.
Revision 1.5: download - view: text, markup, annotated - select for diffs
Sat Oct 25 18:35:42 2003 UTC (23 years ago) by christos
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +4 -3
lines
Fix uninitialized variable warnings
Revision 1.4: download - view: text, markup, annotated - select for diffs
Thu Oct 16 10:04:14 2003 UTC (23 years, 1 month ago) by dyoung
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +4 -8
lines
Cosmetic change: shorten 6 lines to 2.
Revision 1.3: download - view: text, markup, annotated - select for diffs
Mon Oct 13 08:22:19 2003 UTC (23 years, 1 month ago) by dyoung
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +269 -206
lines
Adapt atw(4) to the new 802.11 layer.
Simplify atw_start, atw_newstate.
Synchronize access to atw_start by bracketing the call to
ieee80211_next_scan in atw_next_scan with splnet()/splx().
Revision 1.2: download - view: text, markup, annotated - select for diffs
Sat Sep 20 01:03:30 2003 UTC (23 years, 2 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +3 -3
lines
Allow channels 1-14 in MMK2, for real. Fixes PR 22530 from
FUKAUMI Naoki.
Revision 1.1: download - view: text, markup, annotated - select for diffs
Sun Jul 6 22:58:08 2003 UTC (23 years, 4 months ago) by dyoung
Branches: MAIN
Oops. Add the atw(4) sources, too.
CVSweb <webmaster@jp.NetBSD.org>