CVS log for src/sys/dev/ic/rtw.c
Up to [cvs.NetBSD.org] / src / sys / dev / ic
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
Revision 1.137: download - view: text, markup, annotated - select for diffs
Wed Nov 10 16:17:34 2021 UTC (5 years ago) by msaitoh
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.136: preferred, colored
Changes since revision 1.136: +3 -3
lines
s/desciptor/descriptor/ in comment.
Revision 1.135.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.135: preferred, colored; next MAIN 1.136: preferred, colored
Changes since revision 1.135: +3 -7
lines
Sync w/ HEAD.
Revision 1.136: 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.135: preferred, colored
Changes since revision 1.135: +3 -7
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.128.2.3: download - view: text, markup, annotated - select for diffs
Mon Apr 13 08:04:22 2020 UTC (6 years, 7 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.128.2.2: preferred, colored; branchpoint 1.128: preferred, colored; next MAIN 1.129: preferred, colored
Changes since revision 1.128.2.2: +2 -11
lines
Mostly merge changes from HEAD upto 20200411
Revision 1.128.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.128.2.1: preferred, colored; branchpoint 1.128: preferred, colored
Changes since revision 1.128.2.1: +11 -10
lines
Merge changes from current as of 20200406
Revision 1.134.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.134: preferred, colored; next MAIN 1.135: preferred, colored
Changes since revision 1.134: +11 -10
lines
Sync with head.
Revision 1.135: download - view: text, markup, annotated - select for diffs
Wed Jan 29 15:06:12 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.134: preferred, colored
Changes since revision 1.134: +11 -10
lines
Adopt <net/if_stats.h>.
Revision 1.134: 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.133: preferred, colored
Changes since revision 1.133: +4 -13
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.128.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 10 22:07:11 2019 UTC (7 years, 5 months ago) by christos
Branches: phil-wifi
Diff to: previous 1.128: preferred, colored
Changes since revision 1.128: +61 -58
lines
Sync with HEAD
Revision 1.133: 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.132: preferred, colored
Changes since revision 1.132: +4 -2
lines
Use ETHER_LOCK()/ETHER_UNLOCK() for all ethernet drivers to protect ec_multi*.
Revision 1.132: 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.131: preferred, colored
Changes since revision 1.131: +21 -21
lines
Whitespace fix (mainly tabify).
Revision 1.131: 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.130: preferred, colored
Changes since revision 1.130: +38 -37
lines
-No functional change:
- KNF
- u_int*_t -> uint*_t.
Revision 1.130: 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.129: preferred, colored
Changes since revision 1.129: +3 -4
lines
Remove very old IFF_NOTRAILERS flag.
Revision 1.129: download - view: text, markup, annotated - select for diffs
Sun Feb 3 03:19:27 2019 UTC (7 years, 9 months ago) by mrg
Branches: MAIN
Diff to: previous 1.128: preferred, colored
Changes since revision 1.128: +3 -2
lines
- add or adjust /* FALLTHROUGH */ where appropriate
- add __unreachable() after functions that can return but won't in
this case, and thus can't be marked __dead easily
Revision 1.127.2.1: download - view: text, markup, annotated - select for diffs
Sat Jul 28 04:37:45 2018 UTC (8 years, 3 months ago) by pgoyette
Branches: pgoyette-compat
CVS tags: pgoyette-compat-merge-20190127
Diff to: previous 1.127: preferred, colored; next MAIN 1.128: preferred, colored
Changes since revision 1.127: +6 -6
lines
Sync with HEAD
Revision 1.128: 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.127: preferred, colored
Changes since revision 1.127: +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.126.2.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.126: preferred, colored; next MAIN 1.127: preferred, colored
Changes since revision 1.126: +9 -3
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.119.12.2: download - view: text, markup, annotated - select for diffs
Sun Dec 3 11:37:04 2017 UTC (8 years, 11 months ago) by jdolecek
Branches: tls-maxphys
Diff to: previous 1.119.12.1: preferred, colored; branchpoint 1.119: preferred, colored; next MAIN 1.120: preferred, colored
Changes since revision 1.119.12.1: +87 -15
lines
update from HEAD
Revision 1.127: download - view: text, markup, annotated - select for diffs
Mon Oct 23 09:31:17 2017 UTC (9 years ago) by msaitoh
Branches: MAIN
CVS tags: tls-maxphys-base-20171202,
pgoyette-compat-base,
pgoyette-compat-0625,
pgoyette-compat-0521,
pgoyette-compat-0502,
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.126: preferred, colored
Changes since revision 1.126: +9 -3
lines
If if_initialize() failed in the attach function, free resources and return.
Revision 1.121.6.5: download - view: text, markup, annotated - select for diffs
Mon Aug 28 17:52:03 2017 UTC (9 years, 2 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.121.6.4: preferred, colored; branchpoint 1.121: preferred, colored; next MAIN 1.122: preferred, colored
Changes since revision 1.121.6.4: +4 -4
lines
Sync with HEAD
Revision 1.126: download - view: text, markup, annotated - select for diffs
Tue May 23 02:19:14 2017 UTC (9 years, 5 months ago) by ozaki-r
Branches: MAIN
CVS tags: perseant-stdc-iso10646-base,
perseant-stdc-iso10646,
nick-nhusb-base-20170825,
netbsd-8-base,
matt-nb8-mediatek-base,
matt-nb8-mediatek
Branch point for: netbsd-8
Diff to: previous 1.125: preferred, colored
Changes since revision 1.125: +4 -4
lines
Apply deferred if_start to more drivers
And annotate some XXX_start as it runs in softint to clarify that
it doesn't need deferred if_start.
Revision 1.124.2.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.124: preferred, colored; next MAIN 1.125: preferred, colored
Changes since revision 1.124: +76 -10
lines
Sync with HEAD
Revision 1.123.2.2: 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.123.2.1: preferred, colored; branchpoint 1.123: preferred, colored; next MAIN 1.124: preferred, colored
Changes since revision 1.123.2.1: +76 -10
lines
Sync with HEAD
Revision 1.121.6.4: download - view: text, markup, annotated - select for diffs
Sun Feb 5 13:40:28 2017 UTC (9 years, 9 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.121.6.3: preferred, colored; branchpoint 1.121: preferred, colored
Changes since revision 1.121.6.3: +76 -10
lines
Sync with HEAD
Revision 1.125: 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,
nick-nhusb-base-20170204,
jdolecek-ncq-base,
jdolecek-ncq,
bouyer-socketcan-base1
Diff to: previous 1.124: preferred, colored
Changes since revision 1.124: +76 -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.123.2.1: download - view: text, markup, annotated - select for diffs
Fri Nov 4 14:49:09 2016 UTC (10 years ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.123: preferred, colored
Changes since revision 1.123: +3 -3
lines
Sync with HEAD
Revision 1.121.6.3: download - view: text, markup, annotated - select for diffs
Wed Oct 5 20:55:41 2016 UTC (10 years, 1 month ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.121.6.2: preferred, colored; branchpoint 1.121: preferred, colored
Changes since revision 1.121.6.2: +3 -3
lines
Sync with HEAD
Revision 1.124: download - view: text, markup, annotated - select for diffs
Thu Sep 15 21:45:37 2016 UTC (10 years, 2 months ago) by jdolecek
Branches: MAIN
CVS tags: pgoyette-localcount-20170107,
pgoyette-localcount-20161104,
nick-nhusb-base-20161204,
nick-nhusb-base-20161004,
bouyer-socketcan-base
Branch point for: bouyer-socketcan
Diff to: previous 1.123: preferred, colored
Changes since revision 1.123: +3 -3
lines
remove last isolated islands using BUS_SPACE_BARRIER_SYNC and
BUS_SPACE_BARRIER_X_BEFORE_X - these were only ever defined for mips and ia64,
and never actually implemented even there
Revision 1.121.6.2: 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.121.6.1: preferred, colored; branchpoint 1.121: preferred, colored
Changes since revision 1.121.6.1: +3 -3
lines
Sync with HEAD
Revision 1.123: 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-20160806,
pgoyette-localcount-20160726,
nick-nhusb-base-20160907,
localcount-20160914
Branch point for: pgoyette-localcount
Diff to: previous 1.122: preferred, colored
Changes since revision 1.122: +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.121.6.1: 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.121: preferred, colored
Changes since revision 1.121: +5 -5
lines
Sync with HEAD
Revision 1.122: download - view: text, markup, annotated - select for diffs
Mon May 16 09:53:59 2016 UTC (10 years, 6 months ago) by ozaki-r
Branches: MAIN
CVS tags: nick-nhusb-base-20160529
Diff to: previous 1.121: preferred, colored
Changes since revision 1.121: +5 -5
lines
Use M_GETCTX and M_SETCTX instead of open-coding rcvif
No functional change.
Revision 1.119.12.1: download - view: text, markup, annotated - select for diffs
Wed Aug 20 00:03:38 2014 UTC (12 years, 3 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.119: preferred, colored
Changes since revision 1.119: +28 -11
lines
Rebase to HEAD as of a few days ago.
Revision 1.119.2.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.119: preferred, colored; next MAIN 1.120: preferred, colored
Changes since revision 1.119: +28 -11
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.119.16.1: download - view: text, markup, annotated - select for diffs
Sun May 18 17:45:38 2014 UTC (12 years, 6 months ago) by rmind
Branches: rmind-smpnet
Diff to: previous 1.119: preferred, colored; next MAIN 1.120: preferred, colored
Changes since revision 1.119: +28 -11
lines
sync with head
Revision 1.121: download - view: text, markup, annotated - select for diffs
Tue Feb 25 18:30:09 2014 UTC (12 years, 8 months ago) by pooka
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-20160422,
nick-nhusb-base-20160319,
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.120: preferred, colored
Changes since revision 1.120: +3 -8
lines
Ensure that the top level sysctl nodes (kern, vfs, net, ...) exist before
the sysctl link sets are processed, and remove redundancy.
Shaves >13kB off of an amd64 GENERIC, not to mention >1k duplicate
lines of code.
Revision 1.120: 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.119: preferred, colored
Changes since revision 1.119: +27 -5
lines
- remove unused variables
- move variables inside ifdef sections
- ifdef notdef unused code
- use __USE for debugging variables
Revision 1.119: download - view: text, markup, annotated - select for diffs
Mon Jul 4 16:06:17 2011 UTC (15 years, 4 months ago) by joerg
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,
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,
agc-symver-base,
agc-symver
Branch point for: yamt-pagecache,
tls-maxphys,
rmind-smpnet
Diff to: previous 1.118: preferred, colored
Changes since revision 1.118: +3 -3
lines
Fix memset usage.
Revision 1.114.2.2: download - view: text, markup, annotated - select for diffs
Sat Mar 5 20:53:20 2011 UTC (15 years, 8 months ago) by rmind
Branches: rmind-uvmplock
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: +3 -4
lines
sync with head
Revision 1.118: download - view: text, markup, annotated - select for diffs
Mon Nov 15 05:56:29 2010 UTC (16 years ago) by uebayasi
Branches: MAIN
CVS tags: rmind-uvmplock-nbase,
rmind-uvmplock-base,
matt-mips64-premerge-20101231,
jruoho-x86intr-base,
jruoho-x86intr,
cherry-xenmp-base,
cherry-xenmp,
bouyer-quota2-nbase,
bouyer-quota2-base,
bouyer-quota2
Diff to: previous 1.117: preferred, colored
Changes since revision 1.117: +1 -0
lines
Socket ioctl definitions need sys/sockio.h.
Revision 1.117: download - view: text, markup, annotated - select for diffs
Sat Nov 13 13:52:02 2010 UTC (16 years ago) by uebayasi
Branches: MAIN
Diff to: previous 1.116: preferred, colored
Changes since revision 1.116: +2 -4
lines
Don't pull in the whole uvm(9) API to access only PAGE_SIZE and
some other constants. These are provided by sys/param.h now.
Revision 1.104.4.3: download - view: text, markup, annotated - select for diffs
Wed Aug 11 22:53:30 2010 UTC (16 years, 3 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.104.4.2: preferred, colored; branchpoint 1.104: preferred, colored; next MAIN 1.105: preferred, colored
Changes since revision 1.104.4.2: +12 -14
lines
sync with head.
Revision 1.114.2.1: download - view: text, markup, annotated - select for diffs
Sun May 30 05:17:25 2010 UTC (16 years, 5 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.114: preferred, colored
Changes since revision 1.114: +12 -14
lines
sync with head
Revision 1.113.2.1: download - view: text, markup, annotated - select for diffs
Fri Apr 30 14:43:21 2010 UTC (16 years, 6 months ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.113: preferred, colored; next MAIN 1.114: preferred, colored
Changes since revision 1.113: +14 -16
lines
Sync with HEAD.
Revision 1.116: download - view: text, markup, annotated - select for diffs
Mon Apr 5 07:19:36 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.115: preferred, colored
Changes since revision 1.115: +8 -10
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.115: download - view: text, markup, annotated - select for diffs
Mon Mar 15 23:21:08 2010 UTC (16 years, 8 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.114: preferred, colored
Changes since revision 1.114: +6 -6
lines
Make this compile on sparc64:
1 s/next_tick/next_tint/ because next_tick shadows a global on sparc64.
2 Fix the bus-barrier helper routines, which had the tag & handle
swapped (!!). Move the helpers from rtwreg.h to rtwvar.h, and
change RTW_BARRIER() into an inline subroutine called rtw_barrier().
Revision 1.104.4.2: download - view: text, markup, annotated - select for diffs
Thu Mar 11 15:03:34 2010 UTC (16 years, 8 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.104.4.1: preferred, colored; branchpoint 1.104: preferred, colored
Changes since revision 1.104.4.1: +31 -35
lines
sync with head
Revision 1.114: 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.113: preferred, colored
Changes since revision 1.113: +4 -4
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.113: download - view: text, markup, annotated - select for diffs
Sun Jan 31 18:12:51 2010 UTC (16 years, 9 months ago) by dyoung
Branches: MAIN
CVS tags: uebayasi-xip-base
Branch point for: uebayasi-xip
Diff to: previous 1.112: preferred, colored
Changes since revision 1.112: +3 -3
lines
Add the missing newline to a verbose autoconf message.
Revision 1.112: download - view: text, markup, annotated - select for diffs
Tue Jan 19 22:06:25 2010 UTC (16 years, 10 months ago) by pooka
Branches: MAIN
Diff to: previous 1.111: preferred, colored
Changes since revision 1.111: +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.111: 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.110: preferred, colored
Changes since revision 1.110: +4 -4
lines
Expand PMF_FN_* macros.
Revision 1.110: download - view: text, markup, annotated - select for diffs
Mon Oct 19 23:19:39 2009 UTC (17 years, 1 month ago) by rmind
Branches: MAIN
CVS tags: matt-premerge-20091211,
jym-xensuspend-nbase
Diff to: previous 1.109: preferred, colored
Changes since revision 1.109: +2 -5
lines
Drop 3rd and 4th clauses from David Young's license.
Reviewed and approved by dyoung@ (copyright holder).
Revision 1.109: 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
Diff to: previous 1.108: preferred, colored
Changes since revision 1.108: +21 -11
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.106.4.1: download - view: text, markup, annotated - select for diffs
Wed May 13 17:19:24 2009 UTC (17 years, 6 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.106: preferred, colored; next MAIN 1.107: preferred, colored
Changes since revision 1.106: +16 -7
lines
Sync with HEAD.
Commit is split, to avoid a "too many arguments" protocol error.
Revision 1.104.4.1: download - view: text, markup, annotated - select for diffs
Mon May 4 08:12:43 2009 UTC (17 years, 6 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.104: preferred, colored
Changes since revision 1.104: +20 -9
lines
sync with head.
Revision 1.104.12.2: download - view: text, markup, annotated - select for diffs
Tue Apr 28 07:35:27 2009 UTC (17 years, 6 months ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.104.12.1: preferred, colored; branchpoint 1.104: preferred, colored; next MAIN 1.105: preferred, colored
Changes since revision 1.104.12.1: +16 -7
lines
Sync with HEAD.
Revision 1.108: download - view: text, markup, annotated - select for diffs
Tue Apr 7 18:02:04 2009 UTC (17 years, 7 months ago) by dyoung
Branches: MAIN
CVS tags: yamt-nfs-mp-base8,
yamt-nfs-mp-base7,
yamt-nfs-mp-base6,
yamt-nfs-mp-base5,
yamt-nfs-mp-base4,
yamt-nfs-mp-base3,
nick-hppapmap-base4,
nick-hppapmap-base3,
nick-hppapmap-base,
jymxensuspend-base,
jym-xensuspend-base
Diff to: previous 1.107: preferred, colored
Changes since revision 1.107: +2 -6
lines
Cosmetic: remove some dead code.
Revision 1.107: download - view: text, markup, annotated - select for diffs
Thu Apr 2 00:57:20 2009 UTC (17 years, 7 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.106: preferred, colored
Changes since revision 1.106: +20 -7
lines
Add the WEP capability to our net80211 capability flags, since we do
sort of support hardware WEP. Only change the WEP key index in a Tx
descriptor from 0 if the type of our transmit key is _WEP, not _TKIP:
i.e., only if we're really doing WEP crypto in the hardware.
Ignore a watchdog timeout on any Tx ring if we can collect some packets
from that ring. Restart both the receiver and the transmitter when a
watchdog timeout occurs instead of restarting only the transmitter.
Revision 1.104.12.1: download - view: text, markup, annotated - select for diffs
Mon Jan 19 13:17:56 2009 UTC (17 years, 10 months ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.104: preferred, colored
Changes since revision 1.104: +6 -4
lines
Sync with HEAD.
Revision 1.98.6.2: download - view: text, markup, annotated - select for diffs
Sat Jan 17 13:28:56 2009 UTC (17 years, 10 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.98.6.1: preferred, colored; branchpoint 1.98: preferred, colored; next MAIN 1.99: preferred, colored
Changes since revision 1.98.6.1: +4 -2
lines
Sync with HEAD.
Revision 1.104.10.1: download - view: text, markup, annotated - select for diffs
Sat Dec 13 01:14:14 2008 UTC (17 years, 11 months ago) by haad
Branches: haad-dm
Diff to: previous 1.104: preferred, colored; next MAIN 1.105: preferred, colored
Changes since revision 1.104: +6 -4
lines
Update haad-dm branch to haad-dm-base2.
Revision 1.106: download - view: text, markup, annotated - select for diffs
Wed Nov 12 12:36:11 2008 UTC (18 years ago) by ad
Branches: MAIN
CVS tags: nick-hppapmap-base2,
mjf-devfs2-base,
haad-nbase2,
haad-dm-base2,
haad-dm-base,
ad-audiomp2-base,
ad-audiomp2
Branch point for: jym-xensuspend
Diff to: previous 1.105: preferred, colored
Changes since revision 1.105: +3 -3
lines
Remove LKMs and switch to the module framework, pass 1.
Proposed on tech-kern@.
Revision 1.105: download - view: text, markup, annotated - select for diffs
Fri Nov 7 00:20:03 2008 UTC (18 years ago) by dyoung
Branches: MAIN
Diff to: previous 1.104: preferred, colored
Changes since revision 1.104: +5 -3
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.98.6.1: download - view: text, markup, annotated - select for diffs
Thu Apr 3 12:42:42 2008 UTC (18 years, 7 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.98: preferred, colored
Changes since revision 1.98: +117 -102
lines
Sync with HEAD.
Revision 1.98.2.1: download - view: text, markup, annotated - select for diffs
Mon Mar 24 07:15:17 2008 UTC (18 years, 7 months ago) by keiichi
Branches: keiichi-mipv6
Diff to: previous 1.98: preferred, colored; next MAIN 1.99: preferred, colored
Changes since revision 1.98: +117 -102
lines
sync with head.
Revision 1.89.8.3: download - view: text, markup, annotated - select for diffs
Sun Mar 23 02:04:39 2008 UTC (18 years, 7 months ago) by matt
Branches: matt-armv6
Diff to: previous 1.89.8.2: preferred, colored; branchpoint 1.89: preferred, colored; next MAIN 1.90: preferred, colored
Changes since revision 1.89.8.2: +117 -102
lines
sync with HEAD
Revision 1.50.2.8: download - view: text, markup, annotated - select for diffs
Mon Mar 17 09:14:43 2008 UTC (18 years, 8 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.50.2.7: preferred, colored; next MAIN 1.51: preferred, colored
Changes since revision 1.50.2.7: +117 -102
lines
sync with head.
Revision 1.104: download - view: text, markup, annotated - select for diffs
Sat Mar 15 00:21:12 2008 UTC (18 years, 8 months ago) by dyoung
Branches: MAIN
CVS tags: yamt-pf42-baseX,
yamt-pf42-base4,
yamt-pf42-base3,
yamt-pf42-base2,
yamt-pf42-base,
yamt-pf42,
yamt-nfs-mp-base2,
yamt-nfs-mp-base,
yamt-lazymbuf-base15,
yamt-lazymbuf-base14,
wrstuden-revivesa-base-4,
wrstuden-revivesa-base-3,
wrstuden-revivesa-base-2,
wrstuden-revivesa-base-1,
wrstuden-revivesa-base,
wrstuden-revivesa,
simonb-wapbl-nbase,
simonb-wapbl-base,
simonb-wapbl,
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,
matt-armv6-nbase,
keiichi-mipv6-nbase,
keiichi-mipv6-base,
hpcarm-cleanup-nbase,
haad-dm-base1,
ad-socklock-base1
Branch point for: yamt-nfs-mp,
nick-hppapmap,
haad-dm
Diff to: previous 1.103: preferred, colored
Changes since revision 1.103: +10 -6
lines
Cosmetic: make rtw_hw_keysupp() return a bool instead of int. In
rtw_wep_setkeys(), add a debug printf, and move the initialization
of keylen from the for-loop to the declaration.
Revision 1.103: download - view: text, markup, annotated - select for diffs
Fri Mar 14 23:59:01 2008 UTC (18 years, 8 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.102: preferred, colored
Changes since revision 1.102: +19 -8
lines
Extract subroutine rtw_tx_kick() from rtw_start(), and reuse it in
rtw_io_enable() to restart the transmitter after resetting it.
Revision 1.102: download - view: text, markup, annotated - select for diffs
Fri Mar 14 23:04:42 2008 UTC (18 years, 8 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.101: preferred, colored
Changes since revision 1.101: +9 -9
lines
Change tests for "impossible" keys to KASSERT()s. Get rid of a
temporary variable. In rtw_key_delete(), do not invalidate the
hardware keys unless a WEP key is deleted.
Revision 1.101: download - view: text, markup, annotated - select for diffs
Wed Mar 12 18:02:21 2008 UTC (18 years, 8 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.100: preferred, colored
Changes since revision 1.100: +79 -83
lines
Use device_t and its accessors throughout. Use aprint_*_dev().
Improve PMF-ability.
Add a 'flags' argument to suspend/resume handlers and
callers such as pmf_system_suspend().
Define a flag, PMF_F_SELF, which indicates to PMF that a
device is suspending/resuming itself. Add helper routines,
pmf_device_suspend_self(dev) and pmf_device_resume_self(dev),
that call pmf_device_suspend(dev, PMF_F_SELF) and
pmf_device_resume(dev, PMF_F_SELF), respectively. Use
PMF_F_SELF to suspend/resume self in ath(4), audio(4),
rtw(4), and sip(4).
In ath(4) and in rtw(4), replace the icky sc_enable/sc_disable
callbacks, provided by the bus front-end, with
self-suspension/resumption. Also, clean up the bus
front-ends. Make sure that the interrupt handler is
disestablished during suspension. Get rid of driver-private
flags (e.g., RTW_F_ENABLED, ath_softc->sc_invalid); use
device_is_active()/device_has_power() calls, instead.
In the network-class suspend handler, call if_stop(, 0)
instead of if_stop(, 1), because the latter is superfluous
(bus- and driver-suspension hooks will 'disable' the NIC),
and it may cause recursion.
In the network-class resume handler, prevent infinite
recursion through if_init() by getting out early if we are
self-suspending (PMF_F_SELF).
rtw(4) improvements:
Destroy rtw(4) callouts when we detach it. Make rtw at
pci detachable. Print some more information with the "rx
frame too long" warning.
Remove activate() methods:
Get rid of rtw_activate() and ath_activate(). The device
activate() methods are not good for much these days.
Make ath at cardbus resume with crypto functions intact:
Introduce a boolean device property, "pmf-powerdown". If
pmf-powerdown is present and false, it indicates that a
bus back-end should not remove power from a device.
Honor this property in cardbus_child_suspend().
Set this property to 'false' in ath_attach(), since removing
power from an ath at cardbus seems to lobotomize the WPA
crypto engine. XXX Should the pmf-powerdown property
propagate toward the root of the device tree?
Miscellaneous ath(4) changes:
Warn if ath(4) tries to write crypto keys to suspended
hardware.
Reduce differences between FreeBSD and NetBSD in ath(4)
multicast filter setup.
Make ath_printrxbuf() print an rx descriptor's status &
key index, to help debug crypto errors.
Shorten a staircase in ath_ioctl(). Don't check for
ieee80211_ioctl() return code ERESTART, it never happens.
Revision 1.100: download - view: text, markup, annotated - select for diffs
Wed Mar 12 15:47:49 2008 UTC (18 years, 8 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.99: preferred, colored
Changes since revision 1.99: +7 -4
lines
Print the TPPoll register when the Tx DMA engine doesn't shut down
in the time we allow.
Revision 1.99: download - view: text, markup, annotated - select for diffs
Mon Mar 3 12:30:57 2008 UTC (18 years, 8 months ago) by tsutsui
Branches: MAIN
Diff to: previous 1.98: preferred, colored
Changes since revision 1.98: +3 -2
lines
Explicitly include <sys/device.h> for device_t.
Revision 1.50.2.7: download - view: text, markup, annotated - select for diffs
Mon Jan 21 09:43:07 2008 UTC (18 years, 9 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.50.2.6: preferred, colored
Changes since revision 1.50.2.6: +145 -214
lines
sync with head
Revision 1.89.8.2: download - view: text, markup, annotated - select for diffs
Wed Jan 9 01:53:00 2008 UTC (18 years, 10 months ago) by matt
Branches: matt-armv6
Diff to: previous 1.89.8.1: preferred, colored; branchpoint 1.89: preferred, colored
Changes since revision 1.89.8.1: +193 -239
lines
sync with HEAD
Revision 1.94.6.1: download - view: text, markup, annotated - select for diffs
Wed Jan 2 21:54:15 2008 UTC (18 years, 10 months ago) by bouyer
Branches: bouyer-xeni386
CVS tags: bouyer-xeni386-merge1
Diff to: previous 1.94: preferred, colored; next MAIN 1.95: preferred, colored
Changes since revision 1.94: +145 -214
lines
Sync with HEAD
Revision 1.91.2.2: download - view: text, markup, annotated - select for diffs
Thu Dec 27 00:45:07 2007 UTC (18 years, 10 months ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.91.2.1: preferred, colored; branchpoint 1.91: preferred, colored; next MAIN 1.92: preferred, colored
Changes since revision 1.91.2.1: +145 -214
lines
Sync with HEAD.
Revision 1.94.2.1: download - view: text, markup, annotated - select for diffs
Wed Dec 26 19:46:23 2007 UTC (18 years, 10 months ago) by ad
Branches: vmlocking2
Diff to: previous 1.94: preferred, colored; next MAIN 1.95: preferred, colored
Changes since revision 1.94: +145 -214
lines
Sync with head.
Revision 1.98: download - view: text, markup, annotated - select for diffs
Fri Dec 21 18:22:43 2007 UTC (18 years, 11 months ago) by dyoung
Branches: MAIN
CVS tags: vmlocking2-base3,
nick-net80211-sync-base,
nick-net80211-sync,
mjf-devfs-base,
matt-armv6-base,
hpcarm-cleanup-base,
bouyer-xeni386-nbase,
bouyer-xeni386-base
Branch point for: mjf-devfs2,
keiichi-mipv6
Diff to: previous 1.97: preferred, colored
Changes since revision 1.97: +137 -125
lines
Do not embed a struct device in rtw_softc any longer. Register
both pci and cardbus attachments with CFATTACH_DECL_NEW(). Access
the softc through the device_t using device_private().
While I'm here, change a couple of KASSERT()s about the Rx buffer
length to a warning.
Revision 1.97: download - view: text, markup, annotated - select for diffs
Thu Dec 20 18:47:23 2007 UTC (18 years, 11 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.96: preferred, colored
Changes since revision 1.96: +4 -42
lines
Remove shutdown hooks. Use KASSERT().
Revision 1.96: download - view: text, markup, annotated - select for diffs
Sun Dec 16 21:39:33 2007 UTC (18 years, 11 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.95: preferred, colored
Changes since revision 1.95: +4 -4
lines
Fix a bug I introduced to rtw_chan2txpower() the other night.
Fix a bug in device detachment: change a break statement to a
/*FALLTHROUGH*/ in rtw_detach().
Revision 1.95: download - view: text, markup, annotated - select for diffs
Sun Dec 16 00:04:07 2007 UTC (18 years, 11 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.94: preferred, colored
Changes since revision 1.94: +16 -59
lines
Synchronize device detachment with network interrupts. Use the
pmf network class instead of powerhooks.
Revision 1.50.2.6: download - view: text, markup, annotated - select for diffs
Fri Dec 7 17:29:56 2007 UTC (18 years, 11 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.50.2.5: preferred, colored
Changes since revision 1.50.2.5: +52 -29
lines
sync with head
Revision 1.89.6.3: download - view: text, markup, annotated - select for diffs
Wed Nov 21 21:54:55 2007 UTC (18 years, 11 months ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.89.6.2: preferred, colored; branchpoint 1.89: preferred, colored; next MAIN 1.90: preferred, colored
Changes since revision 1.89.6.2: +52 -29
lines
Sync with HEAD.
Revision 1.91.2.1: download - view: text, markup, annotated - select for diffs
Mon Nov 19 00:47:56 2007 UTC (19 years ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.91: preferred, colored
Changes since revision 1.91: +52 -29
lines
Sync with HEAD.
Revision 1.90.2.2: download - view: text, markup, annotated - select for diffs
Sun Nov 18 19:35:26 2007 UTC (19 years ago) by bouyer
Branches: bouyer-xenamd64
Diff to: previous 1.90.2.1: preferred, colored; branchpoint 1.90: preferred, colored; next MAIN 1.91: preferred, colored
Changes since revision 1.90.2.1: +50 -27
lines
Sync with HEAD
Revision 1.94: download - view: text, markup, annotated - select for diffs
Sun Nov 18 12:40:15 2007 UTC (19 years ago) by jnemeth
Branches: MAIN
CVS tags: yamt-kmem-base3,
yamt-kmem-base2,
yamt-kmem-base,
yamt-kmem,
vmlocking2-base2,
vmlocking2-base1,
vmlocking-nbase,
reinoud-bufcleanup-nbase,
reinoud-bufcleanup-base,
jmcneill-pm-base,
cube-autoconf-base,
cube-autoconf,
bouyer-xenamd64-base2,
bouyer-xenamd64-base
Branch point for: vmlocking2,
bouyer-xeni386
Diff to: previous 1.93: preferred, colored
Changes since revision 1.93: +4 -4
lines
fix 'm' used unitialized
Revision 1.93: download - view: text, markup, annotated - select for diffs
Fri Nov 16 23:35:19 2007 UTC (19 years ago) by dyoung
Branches: MAIN
Diff to: previous 1.92: preferred, colored
Changes since revision 1.92: +44 -22
lines
Accommodate the variety of RF front-ends when radiotapping frames:
tap only RSSI when there is a Philips RF front-end. Tap both Barker
lock quality and RSSI when there is any other RF front-end.
Provide radiotap listeners a more complete picture of channel
activity:
in promiscuous mode, tap frames who do not pass the CRC32 check.
Flag packets that were received with a short preamble. Ask
the NIC to pass us 802.11 Control frames. Pass frames to
radiotap listeners before stripping the FCS. Re-order operations
in rtw_intr_rx() in order to accomplish all of this, taking
care not to pass a broken packet to net80211!
Do not provide a flags field when tapping xmitted frames.
Assert sane Rx packet lengths. Really should check and drop instead
of KASSERTing. I will revisit this, soon.
Update copyright.
Revision 1.92: download - view: text, markup, annotated - select for diffs
Thu Nov 15 22:55:50 2007 UTC (19 years ago) by dyoung
Branches: MAIN
Diff to: previous 1.91: preferred, colored
Changes since revision 1.91: +10 -9
lines
Fix order of operations:
rtw_rxdesc_init: before initializing a Rx descriptor's
control word, synchronize the Rx buffer
rtw_start, be paranoid: set the "NIC owns" bit on a Tx
descriptor dead last. Always reinitialize the "next
Tx descriptor" pointer, just in case it got clobbered
somehow.
Let the compiler decide whether to inline rtw_collect_txring or
not.
Revision 1.89.8.1: download - view: text, markup, annotated - select for diffs
Tue Nov 6 23:27:05 2007 UTC (19 years ago) by matt
Branches: matt-armv6
CVS tags: matt-armv6-prevmlocking
Diff to: previous 1.89: preferred, colored
Changes since revision 1.89: +6 -6
lines
sync with HEAD
Revision 1.50.2.5: download - view: text, markup, annotated - select for diffs
Sat Oct 27 11:31:00 2007 UTC (19 years ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.50.2.4: preferred, colored
Changes since revision 1.50.2.4: +6 -6
lines
sync with head.
Revision 1.89.6.2: download - view: text, markup, annotated - select for diffs
Fri Oct 26 15:44:59 2007 UTC (19 years ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.89.6.1: preferred, colored; branchpoint 1.89: preferred, colored
Changes since revision 1.89.6.1: +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.90.2.1: download - view: text, markup, annotated - select for diffs
Thu Oct 25 22:37:55 2007 UTC (19 years ago) by bouyer
Branches: bouyer-xenamd64
Diff to: previous 1.90: preferred, colored
Changes since revision 1.90: +4 -4
lines
Sync with HEAD.
Revision 1.85.2.4: download - view: text, markup, annotated - select for diffs
Tue Oct 23 20:07:42 2007 UTC (19 years ago) by ad
Branches: vmlocking
Diff to: previous 1.85.2.3: preferred, colored; branchpoint 1.85: preferred, colored; next MAIN 1.86: preferred, colored
Changes since revision 1.85.2.3: +4 -4
lines
Sync with head.
Revision 1.91: download - view: text, markup, annotated - select for diffs
Fri Oct 19 12:00:00 2007 UTC (19 years, 1 month ago) by ad
Branches: MAIN
CVS tags: jmcneill-base
Branch point for: mjf-devfs
Diff to: previous 1.90: preferred, colored
Changes since revision 1.90: +4 -4
lines
machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h
Revision 1.85.2.3: download - view: text, markup, annotated - select for diffs
Tue Oct 9 13:41:30 2007 UTC (19 years, 1 month ago) by ad
Branches: vmlocking
Diff to: previous 1.85.2.2: preferred, colored; branchpoint 1.85: preferred, colored
Changes since revision 1.85.2.2: +4 -4
lines
Sync with head.
Revision 1.89.10.1: download - view: text, markup, annotated - select for diffs
Sat Oct 6 15:31:17 2007 UTC (19 years, 1 month ago) by yamt
Branches: yamt-x86pmap
Diff to: previous 1.89: preferred, colored; next MAIN 1.90: preferred, colored
Changes since revision 1.89: +4 -4
lines
sync with head.
Revision 1.89.6.1: download - view: text, markup, annotated - select for diffs
Tue Oct 2 18:28:26 2007 UTC (19 years, 1 month ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.89: preferred, colored
Changes since revision 1.89: +4 -4
lines
Sync with HEAD.
Revision 1.90: download - view: text, markup, annotated - select for diffs
Sat Sep 29 18:32:51 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.89: preferred, colored
Changes since revision 1.89: +4 -4
lines
s/NPBFILTER/NBPFILTER/ in some #endif comments. No functional change.
Revision 1.50.2.4: download - view: text, markup, annotated - select for diffs
Mon Sep 3 14:35:09 2007 UTC (19 years, 2 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.50.2.3: preferred, colored
Changes since revision 1.50.2.3: +45 -65
lines
sync with head.
Revision 1.85.4.1: download - view: text, markup, annotated - select for diffs
Wed Jul 11 20:06:11 2007 UTC (19 years, 4 months ago) by mjf
Branches: mjf-ufs-trans
Diff to: previous 1.85: preferred, colored; next MAIN 1.86: preferred, colored
Changes since revision 1.85: +38 -58
lines
Sync with head.
Revision 1.89: download - view: text, markup, annotated - select for diffs
Mon Jul 9 21:00:39 2007 UTC (19 years, 4 months ago) by ad
Branches: MAIN
CVS tags: yamt-x86pmap-base,
nick-csl-alignment-base5,
nick-csl-alignment-base,
nick-csl-alignment,
mjf-ufs-trans-base,
matt-mips64-base,
matt-mips64,
hpcarm-cleanup
Branch point for: yamt-x86pmap,
matt-armv6,
jmcneill-pm
Diff to: previous 1.88: preferred, colored
Changes since revision 1.88: +5 -5
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.85.2.2: download - view: text, markup, annotated - select for diffs
Sun Jul 1 21:47:54 2007 UTC (19 years, 4 months ago) by ad
Branches: vmlocking
Diff to: previous 1.85.2.1: preferred, colored; branchpoint 1.85: preferred, colored
Changes since revision 1.85.2.1: +5 -5
lines
Adapt to callout API change.
Revision 1.85.2.1: download - view: text, markup, annotated - select for diffs
Sat Jun 9 23:57:51 2007 UTC (19 years, 5 months ago) by ad
Branches: vmlocking
Diff to: previous 1.85: preferred, colored
Changes since revision 1.85: +35 -55
lines
Sync with head.
Revision 1.88: download - view: text, markup, annotated - select for diffs
Tue May 29 18:38:20 2007 UTC (19 years, 5 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.87: preferred, colored
Changes since revision 1.87: +3 -3
lines
Fix rtw(4) on NetBSD/macppc: use bus_space_write_region_stream_4()
instead of bus_space_write_region_4() to write WEP Rx keys to the
NIC. Thanks macallan@ for detecting the bug and testing the fix.
Revision 1.87: download - view: text, markup, annotated - select for diffs
Tue May 29 18:33:38 2007 UTC (19 years, 5 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.86: preferred, colored
Changes since revision 1.86: +5 -8
lines
Cosmetic: simplify a memset() statement, use __arraycount(), and
remove a gratuitous return statement at the end of a void subroutine.
Revision 1.86: download - view: text, markup, annotated - select for diffs
Tue May 29 18:32:07 2007 UTC (19 years, 5 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.85: preferred, colored
Changes since revision 1.85: +31 -48
lines
Simplify multicast filter programming, and take care to avoid
gratuitous device resets when the kernel adds/deletes a multicast
address.
Revision 1.84.2.1: download - view: text, markup, annotated - select for diffs
Mon Mar 12 05:53:44 2007 UTC (19 years, 8 months ago) by rmind
Branches: yamt-idlelwp
Diff to: previous 1.84: preferred, colored; next MAIN 1.85: preferred, colored
Changes since revision 1.84: +9 -9
lines
Sync with HEAD.
Revision 1.85: download - view: text, markup, annotated - select for diffs
Sun Mar 4 06:02:00 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.84: preferred, colored
Changes since revision 1.84: +9 -9
lines
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
Revision 1.50.2.3: download - view: text, markup, annotated - select for diffs
Mon Feb 26 09:10:11 2007 UTC (19 years, 8 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.50.2.2: preferred, colored
Changes since revision 1.50.2.2: +121 -150
lines
sync with head.
Revision 1.76.2.3: download - view: text, markup, annotated - select for diffs
Thu Feb 1 08:48:20 2007 UTC (19 years, 9 months ago) by ad
Branches: newlock2
Diff to: previous 1.76.2.2: preferred, colored; branchpoint 1.76: preferred, colored; next MAIN 1.77: preferred, colored
Changes since revision 1.76.2.2: +4 -4
lines
Sync with head.
Revision 1.84: download - view: text, markup, annotated - select for diffs
Mon Jan 29 07:08:09 2007 UTC (19 years, 9 months ago) by dyoung
Branches: MAIN
CVS tags: post-newlock2-merge,
newlock2-nbase,
newlock2-base,
ad-audiomp-base,
ad-audiomp
Branch point for: yamt-idlelwp
Diff to: previous 1.83: preferred, colored
Changes since revision 1.83: +4 -4
lines
In rtw_dequeue(), initialize *mp to NULL before anything else, so
that it is either NULL or a valid mbuf. Previously, it was possible
for rtw_dequeue() to exit with 0 before initializing *mp. rtw_start()
would have used whatever trash was in *mp, which would lead to
problems later on.
Revision 1.76.2.2: download - view: text, markup, annotated - select for diffs
Fri Jan 12 00:57:36 2007 UTC (19 years, 10 months ago) by ad
Branches: newlock2
Diff to: previous 1.76.2.1: preferred, colored; branchpoint 1.76: preferred, colored
Changes since revision 1.76.2.1: +119 -148
lines
Sync with head.
Revision 1.83: download - view: text, markup, annotated - select for diffs
Sat Jan 6 08:27:53 2007 UTC (19 years, 10 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.82: preferred, colored
Changes since revision 1.82: +114 -150
lines
I have made a small change that suppresses "recovery" from (spurious?)
tx timeouts on the beacon queue. The driver's recovery process
badly disrupts the MAC's receiver. This needs a closer look, later.
Every other fix is by Charles M. Hannum. Charles writes:
"With these, the device is quite stable under load, does not experience
xmit timeouts, no longer mysteriously freezes, and does not spew
a lot of garbage. It does, however, continue to get some "tx fifo
underflow"s.
global, SYSCTL_SETUP():
a) Removed unused sysctl variables.
rtw_io_enable():
b) Change rtw_io_enable to take a softc, and make it call
rtw_txring_fixup().
c) Enable the PCI multiple read/write bit.
d) Always reset rdb_next to 0 when starting the receive engine.
rtw_intr_rx():
e) When processing receive packets, store the next pointer in rdb_next
and read it back on the next round, to fix a race condition vs.
rtw_tune() during AP discovery and association.
f) Remove the special "skip to 0th descriptor" code, because it is no
longer needed.
rtw_collect_txring():
g) In the "force" case, stop when we catch up to the hardware xmit
pointer.
rtw_intr_beacon():
h) Resetting tdb_next here looked fishy to me, in light of changes in
rtw_collect_txring(). XXX However, this is the one part I haven't
tested.
rtw_txring_fixup():
i) Add function and line arguments, so we can print out information
about the caller.
j) In addition to reading the hardware pointer, skip over any
additional packets with OWN set -- we may have queued more.
rtw_rxring_fixup():
k) Remove this, because it's completely wrong.
rtw_intr_ioerror():
l) Don't handle receive overruns here; handle them in the normal receive
path. Also changed RTW_INTR_RX and RTW_INTR_IOERROR accordingly.
m) Do not fiddle with CR; the transmit engine is still running just
fine.
n) Do not fiddle with IMR; it was unnecessary.
o) Don't touch the receive engine at all; not necessary now that we're
leaving CR alone.
p) Remove the rtw_do_chip_reset case; it was dangerous and not actually
used.
rtw_intr():
q) Don't mask off ISR bits when we pass down the ISR value; it's not
necessary, and sometimes the other bits useful in debugging output.
rtw_seg_too_short():
r) Don't spew here; the caller will do it if necessary. (Stops spewage
in an expected case.)
rtw_rxdesc_blk:
s) Minor change to make the elements have the same order as txdesc_blk.
general:
t) Added a bunch of debugging output, #ifdef RTW_DIAG, that was useful
while investigating the ring management problems. Also moved
rtw_txring_fixup() into RTW_DIAG, as I believe the transmit pointer
is always kept in sync now, and the function has potential race
conditions.
Revision 1.82: download - view: text, markup, annotated - select for diffs
Sat Jan 6 06:07:55 2007 UTC (19 years, 10 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.81: preferred, colored
Changes since revision 1.81: +11 -4
lines
After we examine a rx/tx descriptor and find that it's still owned
by the NIC, re-sync the descriptor so that a cacheline will not
"cover" the NIC's modifications to the descriptor when we next
examine it.
This compiles, but I have not tested it, yet.
Revision 1.50.2.2: download - view: text, markup, annotated - select for diffs
Sat Dec 30 20:48:04 2006 UTC (19 years, 10 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.50.2.1: preferred, colored
Changes since revision 1.50.2.1: +45 -44
lines
sync with head.
Revision 1.76.4.2: download - view: text, markup, annotated - select for diffs
Sun Dec 10 07:17:07 2006 UTC (19 years, 11 months ago) by yamt
Branches: yamt-splraiseipl
Diff to: previous 1.76.4.1: preferred, colored; branchpoint 1.76: preferred, colored; next MAIN 1.77: preferred, colored
Changes since revision 1.76.4.1: +16 -15
lines
sync with head.
Revision 1.76.2.1: download - view: text, markup, annotated - select for diffs
Sat Nov 18 21:34:14 2006 UTC (20 years ago) by ad
Branches: newlock2
Diff to: previous 1.76: preferred, colored
Changes since revision 1.76: +8 -7
lines
Sync with head.
Revision 1.81: download - view: text, markup, annotated - select for diffs
Thu Nov 16 01:32:52 2006 UTC (20 years 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,
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
Diff to: previous 1.80: preferred, colored
Changes since revision 1.80: +14 -14
lines
__unused removal on arguments; approved by core.
Revision 1.80: 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.79: preferred, colored
Changes since revision 1.79: +4 -3
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.76.4.1: download - view: text, markup, annotated - select for diffs
Sun Oct 22 06:05:45 2006 UTC (20 years ago) by yamt
Branches: yamt-splraiseipl
Diff to: previous 1.76: preferred, colored
Changes since revision 1.76: +16 -16
lines
sync with head
Revision 1.79: download - view: text, markup, annotated - select for diffs
Thu Oct 12 07:43:39 2006 UTC (20 years, 1 month ago) by xtraeme
Branches: MAIN
CVS tags: yamt-splraiseipl-base2
Diff to: previous 1.78: preferred, colored
Changes since revision 1.78: +5 -5
lines
Use __unused in function arguments where appropiate.
Revision 1.78: download - view: text, markup, annotated - select for diffs
Thu Oct 12 01:31:01 2006 UTC (20 years, 1 month ago) by christos
Branches: MAIN
Diff to: previous 1.77: preferred, colored
Changes since revision 1.77: +12 -12
lines
- sprinkle __unused on function decls.
- fix a couple of unused bugs
- no more -Wno-unused for i386
Revision 1.77: 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.76: preferred, colored
Changes since revision 1.76: +3 -3
lines
Add "name" parameter to powerhook_establish, to aid debugging. No objections
on tech-kern@
Revision 1.64.4.1: download - view: text, markup, annotated - select for diffs
Sat Sep 9 02:50:03 2006 UTC (20 years, 2 months ago) by rpaulo
Branches: rpaulo-netinet-merge-pcb
Diff to: previous 1.64: preferred, colored; next MAIN 1.65: preferred, colored
Changes since revision 1.64: +79 -71
lines
sync with head
Revision 1.67.2.5: download - view: text, markup, annotated - select for diffs
Sun Sep 3 15:23:57 2006 UTC (20 years, 2 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.67.2.4: preferred, colored; branchpoint 1.67: preferred, colored; next MAIN 1.68: preferred, colored
Changes since revision 1.67.2.4: +39 -39
lines
sync with head.
Revision 1.76: download - view: text, markup, annotated - select for diffs
Sun Sep 3 05:10:24 2006 UTC (20 years, 2 months ago) by christos
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.75: preferred, colored
Changes since revision 1.75: +7 -7
lines
- comment out impossible comparisons
- remove superfluous if statement
Revision 1.75: download - view: text, markup, annotated - select for diffs
Thu Aug 31 19:24:38 2006 UTC (20 years, 2 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.74: preferred, colored
Changes since revision 1.74: +34 -34
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.67.2.4: download - view: text, markup, annotated - select for diffs
Mon Jun 26 12:51:02 2006 UTC (20 years, 4 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.67.2.3: preferred, colored; branchpoint 1.67: preferred, colored
Changes since revision 1.67.2.3: +3 -3
lines
sync with head.
Revision 1.50.2.1: download - view: text, markup, annotated - select for diffs
Wed Jun 21 15:02:56 2006 UTC (20 years, 5 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +459 -303
lines
sync with head.
Revision 1.73.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 19 03:58:14 2006 UTC (20 years, 5 months ago) by chap
Branches: chap-midi
Diff to: previous 1.73: preferred, colored; next MAIN 1.74: preferred, colored
Changes since revision 1.73: +3 -3
lines
Sync with head.
Revision 1.64.6.2: download - view: text, markup, annotated - select for diffs
Thu Jun 1 22:36:26 2006 UTC (20 years, 5 months ago) by kardel
Branches: simonb-timecounters
CVS tags: simonb-timcounters-final
Diff to: previous 1.64.6.1: preferred, colored; next MAIN 1.65: preferred, colored
Changes since revision 1.64.6.1: +6 -6
lines
Sync with head.
Revision 1.74: download - view: text, markup, annotated - select for diffs
Fri May 26 13:01:53 2006 UTC (20 years, 5 months ago) by blymn
Branches: MAIN
CVS tags: yamt-pdpolicy-base7,
yamt-pdpolicy-base6,
simonb-timecounters-base,
gdamore-uart-base,
gdamore-uart,
chap-midi-nbase,
chap-midi-base,
abandoned-netbsd-4-base,
abandoned-netbsd-4
Diff to: previous 1.73: preferred, colored
Changes since revision 1.73: +3 -3
lines
Clean up bogus whitespace
Revision 1.69.2.2: download - view: text, markup, annotated - select for diffs
Wed May 24 15:50:25 2006 UTC (20 years, 5 months ago) by tron
Branches: peter-altq
Diff to: previous 1.69.2.1: preferred, colored; branchpoint 1.69: preferred, colored; next MAIN 1.70: preferred, colored
Changes since revision 1.69.2.1: +5 -5
lines
Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
Revision 1.67.2.3: download - view: text, markup, annotated - select for diffs
Wed May 24 10:57:42 2006 UTC (20 years, 5 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.67.2.2: preferred, colored; branchpoint 1.67: preferred, colored
Changes since revision 1.67.2.2: +5 -5
lines
sync with head.
Revision 1.73: download - view: text, markup, annotated - select for diffs
Sun May 14 05:42:43 2006 UTC (20 years, 6 months ago) by christos
Branches: MAIN
CVS tags: yamt-pdpolicy-base5
Branch point for: chap-midi
Diff to: previous 1.72: preferred, colored
Changes since revision 1.72: +5 -5
lines
XXX: GCC uninitialized
Revision 1.64.6.1: download - view: text, markup, annotated - select for diffs
Sat Apr 22 11:38:56 2006 UTC (20 years, 7 months ago) by simonb
Branches: simonb-timecounters
Diff to: previous 1.64: preferred, colored
Changes since revision 1.64: +68 -60
lines
Sync with head.
Revision 1.67.4.1: download - view: text, markup, annotated - select for diffs
Wed Apr 19 03:24:40 2006 UTC (20 years, 7 months ago) by elad
Branches: elad-kernelauth
Diff to: previous 1.67: preferred, colored; next MAIN 1.68: preferred, colored
Changes since revision 1.67: +43 -40
lines
sync with head.
Revision 1.67.2.2: download - view: text, markup, annotated - select for diffs
Sat Apr 1 12:06:59 2006 UTC (20 years, 7 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.67.2.1: preferred, colored; branchpoint 1.67: preferred, colored
Changes since revision 1.67.2.1: +13 -10
lines
sync with head.
Revision 1.69.2.1: download - view: text, markup, annotated - select for diffs
Tue Mar 28 09:42:11 2006 UTC (20 years, 7 months ago) by tron
Branches: peter-altq
Diff to: previous 1.69: preferred, colored
Changes since revision 1.69: +13 -10
lines
Merge 2006-03-28 NetBSD-current into the "peter-altq" branch.
Revision 1.72: 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-base4,
yamt-pdpolicy-base3,
elad-kernelauth-base
Diff to: previous 1.71: preferred, colored
Changes since revision 1.71: +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.71: download - view: text, markup, annotated - select for diffs
Mon Mar 27 22:03:36 2006 UTC (20 years, 7 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.70: preferred, colored
Changes since revision 1.70: +10 -7
lines
Set the channel frequency and flags in the radiotap headers in
rtw_tune instead of in rtw_start, rtw_intr_rx.
Revision 1.70: download - view: text, markup, annotated - select for diffs
Mon Mar 27 22:02:02 2006 UTC (20 years, 7 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.69: preferred, colored
Changes since revision 1.69: +4 -4
lines
Remove unused argument ifflagsp from rtw_dmamap_load_txbuf.
Revision 1.67.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.67: preferred, colored
Changes since revision 1.67: +32 -32
lines
sync with head.
Revision 1.69: 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
CVS tags: yamt-pdpolicy-base2,
peter-altq-base
Branch point for: peter-altq
Diff to: previous 1.68: preferred, colored
Changes since revision 1.68: +8 -8
lines
Change macro names to avoid collisions:
BIT -> __BIT
BITS -> __BITS
Revision 1.68: 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.67: preferred, colored
Changes since revision 1.67: +32 -32
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.64.2.2: download - view: text, markup, annotated - select for diffs
Wed Mar 1 09:28:13 2006 UTC (20 years, 8 months ago) by yamt
Branches: yamt-uio_vmspace
Diff to: previous 1.64.2.1: preferred, colored; next MAIN 1.65: preferred, colored
Changes since revision 1.64.2.1: +25 -20
lines
sync with head.
Revision 1.67: 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.66: preferred, colored
Changes since revision 1.66: +3 -3
lines
Use device_is_active() rather than testing dv_flags for DVF_ACTIVE
directly.
Revision 1.66: download - view: text, markup, annotated - select for diffs
Sun Feb 19 08:10:06 2006 UTC (20 years, 9 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.65: preferred, colored
Changes since revision 1.65: +24 -19
lines
When rtw_enable is called, power may have been removed and re-applied,
so invalidate the WEP key registers to force us to write the keys
back to the hardware.
Revamp key handling: use the hardware WEP engine for 40-bit and
104-bit keys, only; use software WEP for all other key lengths.
Set the hardware key length to the length of the default Tx key,
or if there is no default Tx key, use the length of the longest
WEP key.
Revision 1.64.2.1: download - view: text, markup, annotated - select for diffs
Sat Feb 18 15:39:05 2006 UTC (20 years, 9 months ago) by yamt
Branches: yamt-uio_vmspace
Diff to: previous 1.64: preferred, colored
Changes since revision 1.64: +4 -4
lines
sync with head.
Revision 1.65: download - view: text, markup, annotated - select for diffs
Sat Feb 4 23:22:27 2006 UTC (20 years, 9 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.64: preferred, colored
Changes since revision 1.64: +4 -4
lines
In rtw_{rx,tx}ring_fixup, do not set the tx/rx ring index to
something out of bounds if we read an invalid pointer form the
hardware. Prevents a panic when an rtw@cardbus is ejected.
Revision 1.64: download - view: text, markup, annotated - select for diffs
Thu Dec 29 22:27:17 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.63: preferred, colored
Changes since revision 1.63: +6 -2
lines
Add support for the GCT Semiconductor GRF5101 transceiver/synthesizer.
From OpenBSD.
GCT will not provide any documentation, so there are many magic
numbers in this code.
Revision 1.63: download - view: text, markup, annotated - select for diffs
Thu Dec 29 22:23:52 2005 UTC (20 years, 10 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.62: preferred, colored
Changes since revision 1.62: +8 -25
lines
Update rtw(4) for the new IBSS merge idiom, where ieee80211_ibss_merge()
does not return ENETRESET if the driver should change its BSSID,
but it makes a RUN->RUN transition, instead.
Revision 1.62: 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.61: preferred, colored
Changes since revision 1.61: +3 -3
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.61: download - view: text, markup, annotated - select for diffs
Sat Dec 24 20:27:30 2005 UTC (20 years, 10 months ago) by perry
Branches: MAIN
Diff to: previous 1.60: preferred, colored
Changes since revision 1.60: +34 -34
lines
Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete.
Revision 1.60: download - view: text, markup, annotated - select for diffs
Tue Dec 13 05:10:55 2005 UTC (20 years, 11 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.59: preferred, colored
Changes since revision 1.59: +3 -3
lines
Fix comments and debug printfs: Tx FIFOs underflow, they don't
overflow.
Revision 1.59: download - view: text, markup, annotated - select for diffs
Tue Dec 13 05:07:14 2005 UTC (20 years, 11 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +5 -6
lines
On a transmit FIFO overflow (err, actually an underflow...) reset
both the transmit & receive sections of the MAC.
Revision 1.1.2.9: download - view: text, markup, annotated - select for diffs
Sun Dec 11 10:28:51 2005 UTC (20 years, 11 months ago) by christos
Branches: ktrace-lwp
Diff to: previous 1.1.2.8: preferred, colored; next MAIN 1.2: preferred, colored
Changes since revision 1.1.2.8: +352 -195
lines
Sync with head.
Revision 1.56.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.56.6.1: preferred, colored; branchpoint 1.56: preferred, colored; next MAIN 1.57: preferred, colored
Changes since revision 1.56.6.1: +342 -156
lines
sync with head.
Revision 1.58: download - view: text, markup, annotated - select for diffs
Wed Nov 23 04:12:33 2005 UTC (20 years, 11 months ago) by dyoung
Branches: MAIN
CVS tags: yamt-readahead-base3,
ktrace-lwp-base
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +342 -156
lines
Miscellaneous Realtek RTL8180L driver improvements:
1 Added new sysctl controls for debugging.
2 Improve detection & support for hardware WEP.
3 Revamp handling of transmit descriptor rings.
4 Reliably IFF_OACTIVE when transmit descriptors are available, to
stop the transmit section of the driver from freezing up.
5 Fix beacon transmission in adhoc and hostap modes. XXX There is
a wart in hostap mode, where beacons are transmitted at 1/2 the
correct rate. Load beacon descriptors when the RTW_INTR_BINT
interrupt arrives; schedule RTW_INTR_BINT 1ms ahead of the target
beacon time.
6 Recover more gracefully from tx/rx errors: avoid
transmitter/receiver/chip resets. Try to re-synchronize software
state with hardware state---e.g., load next descriptor pointer
from hardware.
7 Activate the transmit watchdog timer for beacons as well as other
packets.
8 Introduce rtw_idle() that waits for transmit DMA to finish; call
it before resetting the transmitter.
Revision 1.56.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.56: preferred, colored
Changes since revision 1.56: +12 -41
lines
sync with head.
Revision 1.57: 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.56: preferred, colored
Changes since revision 1.56: +12 -41
lines
Adapt drivers to the new net80211(9).
Most of this is from dyoung@. Thanks!
Revision 1.1.2.8: download - view: text, markup, annotated - select for diffs
Thu Nov 10 14:04:15 2005 UTC (21 years ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.1.2.7: preferred, colored
Changes since revision 1.1.2.7: +276 -226
lines
Sync with HEAD. Here we go again...
Revision 1.56: download - view: text, markup, annotated - select for diffs
Thu Sep 22 16:15:20 2005 UTC (21 years, 1 month ago) by gdt
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.55: preferred, colored
Changes since revision 1.55: +3 -3
lines
Make arg of IFQ_SET_READY be &ifp->if_snd, to match all other drivers
and be compilable with altq enabled. Reviewed by dyoung@
Revision 1.55: download - view: text, markup, annotated - select for diffs
Wed Sep 7 05:25:41 2005 UTC (21 years, 2 months ago) by dogcow
Branches: MAIN
Diff to: previous 1.54: preferred, colored
Changes since revision 1.54: +7 -5
lines
With the assistance of dyoung, fix the following problems:
* some 8180L cards need a longer time for the srom to initialize; patch
suggested via OpenBSD.
* some cards give '0' for USA, some give '3'; for the meantime, accept both
as being USA locale cards.
* this is RTW, not ATW. :)
Revision 1.54: download - view: text, markup, annotated - select for diffs
Tue Sep 6 01:59:26 2005 UTC (21 years, 2 months ago) by dogcow
Branches: MAIN
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +5 -5
lines
make rtw.c compile again after the 22-jun-05 net80211 import
Revision 1.53: download - view: text, markup, annotated - select for diffs
Mon Jul 11 06:01:42 2005 UTC (21 years, 4 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +3 -2
lines
Add undefined variable 'ic' to rtw_attach.
Revision 1.52: 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.51: preferred, colored
Changes since revision 1.51: +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.51: download - view: text, markup, annotated - select for diffs
Wed Jul 6 23:44:16 2005 UTC (21 years, 4 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +3 -2
lines
Avoid an unnecessary API difference between NetBSD and FreeBSD:
back out my change to ieee80211_crypto_encap that made it free its
mbuf argument on error. I had thought it was a bug. It was not.
It's the drivers that are broken. Make an(4), atw(4), ipw(4),
iwi(4), ral(4), rtw(4), ural(4), and wi(4) free the mbuf when
ieee80211_crypto_encap returns NULL. Also, return ath(4) to the
way it was---i.e., free the mbuf.
Thanks to Sam Leffler to pointing out my mistake.
Revision 1.50: download - view: text, markup, annotated - select for diffs
Tue Jun 28 07:19:33 2005 UTC (21 years, 4 months ago) by dyoung
Branches: MAIN
Branch point for: yamt-lazymbuf
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +35 -9
lines
Here is a grotty hack that lets the RTL8180L handle WEP in the
receive direction, while software handles WEP in the transmit
direction. When net80211 calls rtw's rtw_key_set with a WEP key,
I point the key's wk_cipher at our "fake" cipher, rtw_cipher_wep,
which is alike to ieee80211_cipher_wep except it provides a different
crypto-decapsulation routine, rtw_wep_decap. rtw_wep_decap copies
the key passed to it by net80211, clears the key's SWCRYPT flag,
and then calls wep_decap. Now wep_decap will decapsulate, but it
will *not* re-decrypt.
XXX I need to check whether the hardware supports 40-bit WEP,
XXX 104-bit WEP, or both, and act accordingly.
Revision 1.49: download - view: text, markup, annotated - select for diffs
Mon Jun 27 05:49:13 2005 UTC (21 years, 4 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +131 -29
lines
rtw: Try to get hardware WEP to work. It seems to work in
the RX direction, but not in the TX direction. The
net80211 crypto framework doesn't seem to cope very well
with the assymetry (I'm probably missing something), so
I will use software WEP for now.
net80211: In ieee80211_compute_duration, figure out whether to add
the WEP header to the packet overhead by checking the
WEP bit in the Frame Control field of the 802.11 header,
instead of checking the IEEE80211_F_PRIVACY flag.
Also, if the WEP bit is present, assume that the frame
described by (wh, len) has already already been WEP
encapsulated, and adjust the payload length accordingly.
XXX that's a grotty hack that I will have to revisit,
later.
Revision 1.48: 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.47: preferred, colored
Changes since revision 1.47: +100 -186
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.47: download - view: text, markup, annotated - select for diffs
Mon Jun 20 02:49:18 2005 UTC (21 years, 5 months ago) by atatat
Branches: MAIN
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +3 -3
lines
Change the rest of the sysctl subsystem to use const consistently.
The __UNCONST macro is now used only where necessary and the RW macros
are gone. Most of the changes here are consumers of the
sysctl_createv(9) interface that now takes a pair of const pointers
which used not to be.
Revision 1.46: download - view: text, markup, annotated - select for diffs
Fri Jun 10 02:35:34 2005 UTC (21 years, 5 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +15 -12
lines
Sprinkle __UNCONST() and rename variables to quiet uiet -Wcast-qual,
-Wshadow complaints.
Revision 1.42.2.2: download - view: text, markup, annotated - select for diffs
Fri Apr 29 11:28:52 2005 UTC (21 years, 6 months ago) by kent
Branches: kent-audio2
Diff to: previous 1.42.2.1: preferred, colored; branchpoint 1.42: preferred, colored; next MAIN 1.43: preferred, colored
Changes since revision 1.42.2.1: +4121 -0
lines
sync with -current
Revision 1.42.4.2: download - view: text, markup, annotated - select for diffs
Sat Mar 19 08:34:03 2005 UTC (21 years, 8 months ago) by yamt
Branches: yamt-km
Diff to: previous 1.42.4.1: preferred, colored; branchpoint 1.42: preferred, colored; next MAIN 1.43: preferred, colored
Changes since revision 1.42.4.1: +110 -100
lines
sync with head. xen and whitespace. xen part is not finished.
Revision 1.1.2.7: download - view: text, markup, annotated - select for diffs
Fri Mar 4 16:41:32 2005 UTC (21 years, 8 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.1.2.6: preferred, colored
Changes since revision 1.1.2.6: +110 -100
lines
Sync with HEAD.
Hi Perry!
Revision 1.45: download - view: text, markup, annotated - select for diffs
Wed Mar 2 05:20:43 2005 UTC (21 years, 8 months ago) by dyoung
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.44: preferred, colored
Changes since revision 1.44: +93 -83
lines
Misc. changes to improve ad hoc mode and to enable hostap mode:
Fix the work-around for the NIC bug where it skips to rx
descriptor 0. The driver used to skip to rx descriptor 1.
Hopefully this stops the out-of-order packet reception that
Charles Hannum saw.
When debugging is enabled, print rx-descriptor status flags
before printing the rx bit rate.
Add a debug message for when a beacon tx buffer reclamation.
Reset IFF_OACTIVE when we reset the transmitter.
Pass the consolidated LED state, a struct rtw_led_state,
to rtw_led_attach.
Choose the bit-rate for management frames (1Mb/s) at the
same place we choose for all other frames.
Do not use the NIC's short preamble or RTS options for
management frames. Label beacons for the NIC.
Following a Linux driver, take care not to zero arbitrary
bits in the TPPOLL register.
Use the new idiom for IBSS merges: disable transmitter,
kick the state machine.
Add a second descriptor to the beacon ring. The NIC seems
to like this much better.
Revision 1.44: download - view: text, markup, annotated - select for diffs
Sun Feb 27 00:27:02 2005 UTC (21 years, 8 months ago) by perry
Branches: MAIN
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +19 -19
lines
nuke trailing whitespace
Revision 1.42.4.1: download - view: text, markup, annotated - select for diffs
Sat Feb 12 18:17:44 2005 UTC (21 years, 9 months ago) by yamt
Branches: yamt-km
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +5 -3
lines
sync with head.
Revision 1.1.2.6: download - view: text, markup, annotated - select for diffs
Fri Feb 4 11:45:27 2005 UTC (21 years, 9 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.1.2.5: preferred, colored
Changes since revision 1.1.2.5: +5 -3
lines
Sync with HEAD.
Revision 1.43: download - view: text, markup, annotated - select for diffs
Mon Jan 31 02:56:49 2005 UTC (21 years, 9 months ago) by thorpej
Branches: MAIN
CVS tags: yamt-km-base2
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +5 -3
lines
Eliminate use of M_HASFCS.
Revision 1.1.2.5: download - view: text, markup, annotated - select for diffs
Mon Jan 17 19:30:40 2005 UTC (21 years, 10 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.1.2.4: preferred, colored
Changes since revision 1.1.2.4: +1876 -679
lines
Sync with HEAD.
Revision 1.42.2.1
Sun Jan 16 11:50:43 2005 UTC (21 years, 10 months ago) by kent
Branches: kent-audio2
FILE REMOVED
Changes since revision 1.42: +0 -4109
lines
file rtw.c was added on branch kent-audio2 on 2005-04-29 11:28:52 +0000
Revision 1.42: download - view: text, markup, annotated - select for diffs
Sun Jan 16 11:50:43 2005 UTC (21 years, 10 months ago) by dyoung
Branches: MAIN
CVS tags: yamt-km-base
Branch point for: yamt-km,
kent-audio2
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +588 -113
lines
Move the register access mode into struct rtw_regs. Change
rtw_set_access, rtw_set_access1 to match.
Add a subroutine for setting WEP keys. WEP isn't quite finished,
because I have to add the WEP header to Tx packets. Implement the
SIOCS80211NWKEY ioctl for setting WEP keys.
Program the LEDs based on operating state and packet activity.
* On a Revision F RTL8180, blink LED1 at 1Hz to indicate
scan/authenticate/associate states. In the run state, turn LED1
on. In every state, blink LED1 at 5Hz to indicate non-beacon
tx/rx activity. I would like to use two LEDs, but in all my
Rev. F instances, LED0 is not wired to an LED; instead, the
first LED is wired to indicate that the card's power is on.
* On a Revision D RTL8180, program the LEDs so that LED0 indicates
Tx, and LED1 indicates Rx. The Rx LED will blink annoyingly if
there are beacons in the air, but at least the Tx LED is useful.
* Store the hardware revision in the softc to support my futile
attempt at programming LEDs for both Rev. D and Rev. F parts;
I never did get Rev. D LEDs to work right.
* Add a debug flag RTW_DEBUG_LED for the LED transitions.
Add RTW_TPPOLL_ALL, RTW_TPPOLL_SALL to start and stop, respectively,
all of the transmit rings.
In ad hoc mode, allocate a beacon and load it into the beacon ring.
Start the ring. In one trial, the card re-transmitted the beacon
ring's contents several times before stopping. More programming
and testing for ad hoc mode is necessary. I'm not setting the
beacon flag in the transmit descriptor.
Revamp the transmit section to make better use of all the transmit
rings: beacon queue, high-, low-, and medium-priority rings. Put
beacon frames on the beacon ring. All other management frames,
and data frames, go on the medium-priority ring. Power-save data
frames go on the high-priority ring. (Note that powersaving is
not implemented!) This is a work in progress.
Send all 802.11 Management frames at 1Mbps.
After we put a packet on a transmit ring, tickle the right bit in
the TPPOLL to tell RTL8180. Stop all rings on error and in rtw_stop.
Use the RF chip type, not the RTL8180 revision, to choose between
host- and MAC-controlled RF serial I/O. Now the Netgear MA521
works.
Remove bogus definition of bit RTW_TPPOLL_FSWINT.
Revision 1.41: download - view: text, markup, annotated - select for diffs
Tue Jan 4 01:04:52 2005 UTC (21 years, 10 months ago) by dyoung
Branches: MAIN
CVS tags: kent-audio1-beforemerge
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +1 -1
lines
Set initial conditions to guarantee that when read_seeprom toggles
Chip Select, it turns *on* rather than *off*.
Revision 1.40: download - view: text, markup, annotated - select for diffs
Tue Jan 4 01:00:30 2005 UTC (21 years, 10 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +29 -10
lines
Add the logic for IBSS merges.
Revision 1.39: download - view: text, markup, annotated - select for diffs
Mon Jan 3 03:25:06 2005 UTC (21 years, 10 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +15 -19
lines
sys/dev/ic/rtw.c:
Cosmetic: remove two short ladders from rtw_init. Fit the
NIC registers print-out onto one line using the RTW_PRINT_REGS
macro.
sys/dev/ic/rtwvar.h:
Add RTW_PRINT_REGS wrapper macro for rtw_print_regs. It
is a null op unless defined(RTW_DEBUG).
Revision 1.38: download - view: text, markup, annotated - select for diffs
Mon Jan 3 03:07:12 2005 UTC (21 years, 10 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +42 -51
lines
In sys/dev/ic/rtw.c:
Use clue from rtk(4) and re(4) to fix the rtw(4) packet
filter. Previously, I was using the wrong CRC32 function
to hash multicast addresses; to compensate, I set the
multicast filter to all 1s. Now that I hash the addresses
correctly, I do not any longer set the filter to all 1s.
In rtw_ioctl, avoid gratuitous re-initialization when the
interface flags change. If a !IFF_UP -> IFF_UP transition,
call rtw_init(); otherwise, only reload the packet filter.
In sys/dev/ic/rtwreg.h:
Put useful combinations of Receiver Control Register flags
in RTW_RCR_PKTFILT_MASK, RTW_RCR_MONITOR, and
RTW_RCR_PKTFILT_DEFAULT. (XXX RTW_RCR_MONITOR should be
called RTW_RCR_PKTFILT_MONITOR.)
Revision 1.37: download - view: text, markup, annotated - select for diffs
Sun Jan 2 04:23:03 2005 UTC (21 years, 10 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +40 -40
lines
Cosmetic: change u_int{8,16,32,64}_t to C99-style uint{8,16,32,64}_t,
which is preferred.
Revision 1.36: download - view: text, markup, annotated - select for diffs
Wed Dec 29 19:41:04 2004 UTC (21 years, 10 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +8 -4
lines
In rtw_detach, flag the rtw as "invalid" (RTW_F_INVALID). Do not
try to power-down the RF section of an invalid rtw.
The radiotap signal quality field is 16, not 8, bits wide. Convert
the byte order.
Revision 1.35: download - view: text, markup, annotated - select for diffs
Wed Dec 29 01:13:07 2004 UTC (21 years, 10 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +2 -70
lines
Remove some dead code.
Revision 1.34: download - view: text, markup, annotated - select for diffs
Wed Dec 29 01:06:52 2004 UTC (21 years, 10 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +289 -289
lines
I like the tlp/atw-style names for software descriptors, txsoft,
better than txctl. Change from rtw_txctl/rtw_rxctl to
rtw_txsoft/rtw_rxsoft. Change the descriptor blocks' names to
match: rtw_txctl_blk becomes rtw_txsoft_blk. Change the member-name
prefixes for both software and hardware descriptors.
Revision 1.33: download - view: text, markup, annotated - select for diffs
Wed Dec 29 00:21:37 2004 UTC (21 years, 10 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +76 -77
lines
Consolidate variables related to the rx ring in sc_rxdesc_blk,
which is a struct rtw_rxdesc_blk.
Put a copy of the DMA tag and the DMA map into the rx- and tx-ring
blocks so that I don't have to pass them to subroutines all of the
time.
Revision 1.32: download - view: text, markup, annotated - select for diffs
Tue Dec 28 22:30:07 2004 UTC (21 years, 10 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +58 -9
lines
Add bpf(4) packet taps to rtw(4). Now you can tap DLT_EN10MB
(Ethernet II), DLT_IEEE802_11 (802.11), and DLT_IEEE802_11_RADIO
(radiotap + 802.11).
Revision 1.31: download - view: text, markup, annotated - select for diffs
Tue Dec 28 22:21:15 2004 UTC (21 years, 10 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +92 -62
lines
If defined(RTW_DEBUG), provide a sysctl (hw.rtw.rxbufs_limit) for
limiting the number of rx buffers an rtw may allocate. Use this
sysctl to test the code that copes with buffer exhaustion.
Allocate at most RTW_RXQLEN rx buffers, stopping at the sysctl
limit. Record in sc_nrxdesc how many were allocated, and put the
end-of-ring indication on sc_rxdesc[sc_nrxdesc - 1]. In rtw_init,
if no rx buffers could be allocated, log a complaint, clear
IFF_RUNNING, and exit with an error.
Many changes to accomodate a short rx ring, mainly of the "add a
rx-ring length argument" variety. XXX I really should consolidate
all of the rx ring variables in one struct and pass that to the
rx-ring subroutines.
Bug fix: after calling MCLGET, use the (m->m_flags & M_EXT) idiom
to check for success, instead of m != NULL.
Bug fix: at the top of rtw_start, if IFF_RUNNING is not set, or
IFF_OACTIVE is, get out.
Revision 1.30: download - view: text, markup, annotated - select for diffs
Mon Dec 27 20:04:45 2004 UTC (21 years, 10 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +11 -17
lines
Use a table to convert the hardware's bit rates (0, 1, 2, 3) to
net80211 bit rates (2, 4, 11, 22).
Count input errors (if_ierrors++) for "DMA error/FIFO overflow"
and unknown bit rate.
Revision 1.29: download - view: text, markup, annotated - select for diffs
Mon Dec 27 19:49:16 2004 UTC (21 years, 10 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +19 -24
lines
Simplify the reset we do on a transmit timeout. Really, this could
be as simple as rtw_stop(, 0), rtw_init().
Revision 1.28: download - view: text, markup, annotated - select for diffs
Mon Dec 27 10:17:38 2004 UTC (21 years, 10 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +4 -5
lines
Use the last descriptor to count collisions and failed transmissions, too.
Revision 1.27: download - view: text, markup, annotated - select for diffs
Mon Dec 27 09:40:18 2004 UTC (21 years, 10 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +6 -7
lines
When checking if a split packet is completed, check the *last* segment, not
the first. Otherwise we can overwrite parts of the TX ring that we shouldn't.
Kluge the basic rate setting for now.
Minor simplification to the dequeueing logic.
Revision 1.26: download - view: text, markup, annotated - select for diffs
Mon Dec 27 06:12:28 2004 UTC (21 years, 10 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +3 -28
lines
Remove useless debug sysctls.
For AP scanning, change the channel dwell time from 1 second to
1/5 second.
Revision 1.25: 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.24: preferred, colored
Changes since revision 1.24: +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.24: download - view: text, markup, annotated - select for diffs
Sun Dec 26 22:59:41 2004 UTC (21 years, 10 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +17 -10
lines
Make rtw(4) build w/o RTW_DEBUG. Thanks to Charles Hannum for
pointing out my oversight.
Revision 1.23: download - view: text, markup, annotated - select for diffs
Sat Dec 25 07:45:53 2004 UTC (21 years, 10 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +7 -5
lines
The rx descriptor ring bug happens quite often, so printf'ing
occurrences is annoying. Only printf about it when rtw_debug
contains RTW_DEBUG_BUG.
Revision 1.22: download - view: text, markup, annotated - select for diffs
Sat Dec 25 07:24:17 2004 UTC (21 years, 10 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +15 -17
lines
IMPORTANT: set m->m_pkthdr.rcvif on rx'd packets. Illegal memory
references abound without this fix.
In rtw_intr_rx, skip to the next rx packet earlier if the rx packet
length is too short.
Also in rtw_intr_rx, if a packet is rx'd with unknown rate, printf
a warning, drop the packet, recycle the rx buffer, skip to next rx
packet.
Revision 1.21: download - view: text, markup, annotated - select for diffs
Sat Dec 25 06:58:37 2004 UTC (21 years, 10 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +334 -148
lines
Change rtw_debug from a debug level to a debug mask. Add a lot of
debug flags.
From Linux: handle an RTL8180 bug. Sometimes the NIC skips from
the middle of the ring to the 0th rx descriptor. Now the driver
resynchronizes.
Handle a receive descriptor underrun or Rx FIFO overflow condition
in the way that the Linux driver does. This kind of seems like
overkill, but whatever.
Protect rtw_ioctl with splnet().
Do not load a tx descriptor with a buffer shorter than 4 bytes.
Handle a transmit timeout less disruptively.
Revision 1.20: download - view: text, markup, annotated - select for diffs
Thu Dec 23 06:12:43 2004 UTC (21 years, 10 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +4 -2
lines
Oops, straggler from last commit: set the 802.11 Duration field
with the result from ieee80211_compute_duration.
Revision 1.19: download - view: text, markup, annotated - select for diffs
Thu Dec 23 06:08:52 2004 UTC (21 years, 10 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +6 -5
lines
Fix a bug in ieee80211_compute_duration: the 802.11 Duration field
in an 802.11 unicast data packet is equal to the duration of the
SIFS and Acknowledgement. That is, the amount of time reserved
*after* the packet has finished transmitting.
Change the arguments to ieee80211_compute_duration: pass the entire
packet length, not just the payload length. Add a 'debug' argument
to ieee80211_compute_duration and its helper subroutine,
ieee80211_compute_duration1.
If debug != 0, ieee80211_compute_duration printfs its arguments
and several local variables.
In rtw(4), load the 802.11 Duration field with the result from
ieee80211_compute_duration.
Revision 1.18: download - view: text, markup, annotated - select for diffs
Thu Dec 23 06:03:09 2004 UTC (21 years, 10 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +24 -7
lines
Bug fix: in rtw_rxbuf_alloc, unload the previous mbuf chain before
loading the new chain.
Revision 1.17: download - view: text, markup, annotated - select for diffs
Thu Dec 23 06:00:35 2004 UTC (21 years, 10 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +4 -2
lines
DMA-synchronize the Rx buffers before re-initializing them.
XXX not necessary?
Revision 1.16: download - view: text, markup, annotated - select for diffs
Thu Dec 23 05:57:18 2004 UTC (21 years, 10 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +40 -15
lines
Add more comprehensive debug messages as we setup transmit descriptors.
Also, dump packets if IFF_DEBUG|IFF_LINK2. Factor out a subroutine
for printing transmit-descriptor debug messages.
Revision 1.15: download - view: text, markup, annotated - select for diffs
Thu Dec 23 05:54:54 2004 UTC (21 years, 10 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +11 -4
lines
Disable interrupts and stop transmit DMA before disabling the
transmitter and receiver.
Revision 1.14: download - view: text, markup, annotated - select for diffs
Thu Dec 23 05:52:27 2004 UTC (21 years, 10 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +15 -15
lines
Shorten variables, s/txctl/ctl/. This is rtw_start, after all:
transmission is implied.
Revision 1.13: download - view: text, markup, annotated - select for diffs
Thu Dec 23 05:50:24 2004 UTC (21 years, 10 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +3 -3
lines
Do not indicate to the NIC that the host has appended the CRC32 to
Tx frames.
Revision 1.12: download - view: text, markup, annotated - select for diffs
Thu Dec 23 05:47:42 2004 UTC (21 years, 10 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +6 -4
lines
When we set up the supported rates table, mark 1Mb/s, 2Mb/s as
basic rates.
Revision 1.11: download - view: text, markup, annotated - select for diffs
Thu Dec 23 05:44:39 2004 UTC (21 years, 10 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +7 -7
lines
Extract the transmission status from a tx descriptor, and convert
to host byte-order, once.
Revision 1.10: download - view: text, markup, annotated - select for diffs
Mon Dec 20 23:05:41 2004 UTC (21 years, 11 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +186 -82
lines
Realtek sample sources are not consistent about the "Digital PHY"
bit in the SROM. It seems as if it is set to 1 when the PHY is
*analog*, not *digital*. Fix my sources.
In rtw_intr_rx, use units of 500kb/s instead of 100kb/s for rate,
to be consistent with net80211's expectations. Polish up some
debugging ugly messages. Dump raw 802.11 packets if IFF_DEBUG|IFF_LINK2
and RTW_DEBUG is defined.
Polish power-state (on/sleep/off) handling. Especially improve
support for RFMD (totally untested) and Maxim. For Philips, take
the Digital PHY property into account.
Call the net80211 watchdog function from rtw_watchdog, so that we
scan again if auth/assoc fails.
Be a little more cautious about writing register[RTW_TPPOLL], since
other drivers are.... Don't frob the high/low-priority queues
right now, since I don't use them.
Add rtw_join_bss which programs the card with the BSSID and other
properties of a BSS. Use it on state transitions. Factor out
rtw_set_nettype.
Make rtw_recv_beacon call ieee80211_recv_mgmt instead of dropping
beacons on the floor! TBD IBSS merges.
Change some rtw_debug=2 printfs to rtw_debug=3 (RTW_DPRINTF3)
printfs so the console doesn't get spammed so badly at rtw_debug=2.
Change some debugging printfs to RTW_DPRINTFs. E.g., print the
"RF programming method" only if debugging is enabled.
Revision 1.9: download - view: text, markup, annotated - select for diffs
Mon Dec 20 01:28:24 2004 UTC (21 years, 11 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +3 -3
lines
Fix bug in last commit: use &sc->sc_regs, regs is not defined.
Revision 1.8: download - view: text, markup, annotated - select for diffs
Mon Dec 20 01:13:45 2004 UTC (21 years, 11 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +32 -9
lines
Add some bus barriers. Remark where they are needed, e.g.,
read_eeprom.
Change some printfs to RTW_DPRINTF2s to quiet rtw(4) when debugging
is disabled.
Revision 1.7: download - view: text, markup, annotated - select for diffs
Mon Dec 20 00:28:02 2004 UTC (21 years, 11 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +49 -50
lines
Get rid of the silly char (*dvname)[IFNAMSIZ] pattern. Replace it
with const char *dvname. I'm not sure what I was thinking.
Revision 1.6: download - view: text, markup, annotated - select for diffs
Mon Dec 20 00:16:21 2004 UTC (21 years, 11 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +9 -4
lines
Assert that I'm DMA-syncing a non-negative number of transmit
descriptors.
As I free dirty transmit buffers, move them to the free list, not
back to the dirty list!
Add a 5-second transmit timeout.
Revision 1.5: download - view: text, markup, annotated - select for diffs
Sun Dec 19 08:19:25 2004 UTC (21 years, 11 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +389 -29
lines
Add the transmit section of rtw(4): build up and tear down transmit
descriptor rings, move packets from the transmit queues to the
transmit rings, handle transmission-completed interrupts. My
Linksys WPC11 ver. 4 with Maxim RF, generates interrupts like it
is successfully transmitting packets. Clearly there are bugs: my
G4 Powerbook locks up hard. I will debug tomorrow.
Revision 1.1.2.4: download - view: text, markup, annotated - select for diffs
Sat Dec 18 09:31:56 2004 UTC (21 years, 11 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.1.2.3: preferred, colored
Changes since revision 1.1.2.3: +394 -112
lines
Sync with HEAD.
Revision 1.4: download - view: text, markup, annotated - select for diffs
Mon Dec 13 00:48:02 2004 UTC (21 years, 11 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +197 -32
lines
At last, I have rtw w/ Philips RF receiving packets.
I added some sysctls to aid debugging:
* hw.rtw.debug -- enable debugging
* hw.rtw.flush_rfio -- Linux voodoo: possibly makes the MAC
"flush" bits down the serial bus to the RF
* hw.rtw.host_rfio: force the host to bang bits to the RF, instead
of the MAC banging bits
* hw.rtw.rfio_delay: after telling the MAC to bang bits to the
RF front-end, delay rfio_delay microseconds.
* hw.rtw.rfprog_fallback: there is this notion of the "RF
programming method." I believe the choice influences the
polarity/timing of the serial bus used to program the RF
front-end. I know the correct choice for Intersil/RFMD/Philips
front-ends, only. For all other front-ends, I "fallback" to
rfprog_fallback.
Make rtw_txdac_enable take an rtw_softc argument. I will probably
revert this change.
Add some Linux voodoo to rtw_continuous_tx_enable. I will probably
revert this change.
Important: add rtw_set_rfprog, which sets the correct RF programming
method. This change and the following change are probably responsible
for making the Philips RF work.
Important: RTW_CONFIG1 is an 8-bit register, treat it that way!
Important: RTW_BRSR is 16-bit, RTW_CRCOUNT, RTW_PHYDELAY, and
RTW_MSR are 8-bit: treat them that way!
Vastly simplify rtw_resume_ticks.
Note to self: set the LED state to match the power state.
Hedge against the possibility that RTW_MSR is protected as
RTW_CONFIG[0123] are, meanwhile reworking that section of rtw_init
a little.
Add sc_anaparm, which isn't used, yet....
Revision 1.3: download - view: text, markup, annotated - select for diffs
Sun Dec 12 06:37:59 2004 UTC (21 years, 11 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +206 -89
lines
Miscellaneous changes. Details below. Important changes flagged
with []. Using the driver with my Linksys WPC11 ver. 4, it seems
to be receiving packets for a change. The WPC11 ver. 4 has a Maxim
RF section. My no-name rtw with Philips RF section still does not
receive any packets.
Keep access-level (analog params > config[0123] registers > none)
in sc_access. Add rtw_set_access for changing the access level.
Make rtw_continuous_tx_enable and other subroutines use rtw_set_access
instead of rtw_config0123_enable and rtw_anaparm_enable.
Factor part of the chip-reset code into rtw_chip_reset1.
Change the 'struct foo (*bar)[N]'-style arguments to
'struct foo *bar'-style arguments.
Consolidate software/hardware Tx/Rx ring setup in rtw_hwring_setup,
rtw_swring_setup.
Add a new constant, SA2400_OPMODE_DEFAULTS, for the bits that we
*always* set in the SA2400 OPMODE register.
Factor some code out into rtw_sa2400_calibrate. (Inspired by the
Linux driver.)
[] When the receiver goes into underrun/overflow state, call a new
subroutine, rtw_kick() that stops the Rx/Tx processes, resets
the chip, reinitializes the Tx/Rx rings, and restarts Rx/Tx
processes. (Inspired by the Linux driver.)
[] In rtw_intr_rx, check for too-short packets before calling
ieee80211_find_rxnode. I believe this will prevent a repeat of
the MCHK exception I saw once on macppc.
[] Use seconds-elapased as well as microseconds-elapsed to set the
next "due date" for the timeout interrupt. This keeps the driver
from programming the timeout to expire too early.
[] In rtw_intr, read RTW_ISR at most 10 times, then get out. If
the interface is not enabled (RTW_F_ENABLED), then get out.
[] In rtw_stop, get out if the interface is not enabled (RTW_F_ENABLED).
Block IPL_NET interrupts. Don't read/write any registers if
the interface is invalid (RTW_F_INVALID).
[] Call rtw_stop in rtw_detach.
Revision 1.1.2.3: download - view: text, markup, annotated - select for diffs
Tue Nov 2 07:51:31 2004 UTC (22 years ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.1.2.2: preferred, colored
Changes since revision 1.1.2.2: +3 -3
lines
Sync with HEAD.
Revision 1.2: download - view: text, markup, annotated - select for diffs
Sat Oct 30 18:08:38 2004 UTC (22 years ago) by thorpej
Branches: MAIN
CVS tags: kent-audio1-base,
kent-audio1
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +3 -3
lines
When adding/deleting multicast addresses, only whack the address
filter if the interface is marked RUNNING.
Fixes kern/27678.
Revision 1.1.2.2: download - view: text, markup, annotated - select for diffs
Tue Oct 19 15:56:56 2004 UTC (22 years, 1 month ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.1.2.1: preferred, colored
Changes since revision 1.1.2.1: +2630 -0
lines
Sync with HEAD
Revision 1.1.2.1
Sun Sep 26 02:29:15 2004 UTC (22 years, 1 month ago) by skrll
Branches: ktrace-lwp
FILE REMOVED
Changes since revision 1.1: +0 -2630
lines
file rtw.c was added on branch ktrace-lwp on 2004-10-19 15:56:56 +0000
Revision 1.1: download - view: text, markup, annotated - select for diffs
Sun Sep 26 02:29:15 2004 UTC (22 years, 1 month ago) by dyoung
Branches: MAIN
Branch point for: ktrace-lwp
Add work-in-progress driver rtw(4) for Realtek RTL8180 MAC/baseband.
Add register definitions for Maxim MAX2820 and Philips SA2400 radio
front-ends.
CVSweb <webmaster@jp.NetBSD.org>