The NetBSD Project

CVS log for src/sys/dev/ic/rt2661.c

[BACK] Up to [cvs.NetBSD.org] / src / sys / dev / ic

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.43.10.1 / (download) - annotate - [select for diffs], Thu Jun 17 04:46:28 2021 UTC (2 years, 10 months ago) by thorpej
Branch: thorpej-i2c-spi-conf
Changes since 1.43: +3 -9 lines
Diff to previous 1.43 (colored) next main 1.44 (colored)

Sync w/ HEAD.

Revision 1.44 / (download) - annotate - [select for diffs], Wed Jun 16 00:21:18 2021 UTC (2 years, 10 months ago) by riastradh
Branch: MAIN
CVS Tags: thorpej-ifq-base, thorpej-ifq, thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-futex2-base, thorpej-futex2, thorpej-cfargs2-base, thorpej-cfargs2, thorpej-altq-separation-base, thorpej-altq-separation, netbsd-10-base, 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
Changes since 1.43: +3 -9 lines
Diff to previous 1.43 (colored)

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.39.2.3 / (download) - annotate - [select for diffs], Mon Apr 13 08:04:22 2020 UTC (4 years ago) by martin
Branch: phil-wifi
Changes since 1.39.2.2: +2 -14 lines
Diff to previous 1.39.2.2 (colored) to branchpoint 1.39 (colored) next main 1.40 (colored)

Mostly merge changes from HEAD upto 20200411

Revision 1.39.2.2 / (download) - annotate - [select for diffs], Wed Apr 8 14:08:06 2020 UTC (4 years ago) by martin
Branch: phil-wifi
Changes since 1.39.2.1: +14 -14 lines
Diff to previous 1.39.2.1 (colored) to branchpoint 1.39 (colored)

Merge changes from current as of 20200406

Revision 1.42.2.1 / (download) - annotate - [select for diffs], Sat Feb 29 20:19:08 2020 UTC (4 years, 1 month ago) by ad
Branch: ad-namecache
Changes since 1.42: +14 -14 lines
Diff to previous 1.42 (colored) next main 1.43 (colored)

Sync with head.

Revision 1.43 / (download) - annotate - [select for diffs], Wed Jan 29 15:06:12 2020 UTC (4 years, 2 months ago) by thorpej
Branch: 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
Changes since 1.42: +14 -14 lines
Diff to previous 1.42 (colored)

Adopt <net/if_stats.h>.

Revision 1.42 / (download) - annotate - [select for diffs], Sun Nov 10 21:16:35 2019 UTC (4 years, 5 months ago) by chs
Branch: MAIN
CVS Tags: phil-wifi-20191119, ad-namecache-base2, ad-namecache-base1, ad-namecache-base
Branch point for: ad-namecache
Changes since 1.41: +4 -16 lines
Diff to previous 1.41 (colored)

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.39.2.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:07:11 2019 UTC (4 years, 10 months ago) by christos
Branch: phil-wifi
Changes since 1.39: +6 -6 lines
Diff to previous 1.39 (colored)

Sync with HEAD

Revision 1.36.2.4 / (download) - annotate - [select for diffs], Wed Dec 26 14:01:48 2018 UTC (5 years, 3 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.36.2.3: +3 -3 lines
Diff to previous 1.36.2.3 (colored) to branchpoint 1.36 (colored) next main 1.37 (colored)

Sync with HEAD, resolve a few conflicts

Revision 1.41 / (download) - annotate - [select for diffs], Sat Dec 22 14:07:53 2018 UTC (5 years, 3 months ago) by maxv
Branch: MAIN
CVS Tags: phil-wifi-20190609, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, netbsd-9-base, 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, isaki-audio2-base, isaki-audio2
Changes since 1.40: +3 -3 lines
Diff to previous 1.40 (colored)

Replace: M_COPY_PKTHDR -> m_copy_pkthdr. No functional change, since the
former is a macro to the latter.

Revision 1.36.2.3 / (download) - annotate - [select for diffs], Thu Sep 6 06:55:50 2018 UTC (5 years, 7 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.36.2.2: +5 -5 lines
Diff to previous 1.36.2.2 (colored) to branchpoint 1.36 (colored)

Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)

Revision 1.40 / (download) - annotate - [select for diffs], Mon Sep 3 16:29:31 2018 UTC (5 years, 7 months ago) by riastradh
Branch: MAIN
CVS Tags: pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906
Changes since 1.39: +5 -5 lines
Diff to previous 1.39 (colored)

Rename min/max -> uimin/uimax for better honesty.

These functions are defined on unsigned int.  The generic name
min/max should not silently truncate to 32 bits on 64-bit systems.
This is purely a name change -- no functional change intended.

HOWEVER!  Some subsystems have

	#define min(a, b)	((a) < (b) ? (a) : (b))
	#define max(a, b)	((a) > (b) ? (a) : (b))

even though our standard name for that is MIN/MAX.  Although these
may invite multiple evaluation bugs, these do _not_ cause integer
truncation.

To avoid `fixing' these cases, I first changed the name in libkern,
and then compile-tested every file where min/max occurred in order to
confirm that it failed -- and thus confirm that nothing shadowed
min/max -- before changing it.

I have left a handful of bootloaders that are too annoying to
compile-test, and some dead code:

cobalt ews4800mips hp300 hppa ia64 luna68k vax
acorn32/if_ie.c (not included in any kernels)
macppc/if_gm.c (superseded by gem(4))

It should be easy to fix the fallout once identified -- this way of
doing things fails safe, and the goal here, after all, is to _avoid_
silent integer truncations, not introduce them.

Maybe one day we can reintroduce min/max as type-generic things that
never silently truncate.  But we should avoid doing that for a while,
so that existing code has a chance to be detected by the compiler for
conversion to uimin/uimax without changing the semantics until we can
properly audit it all.  (Who knows, maybe in some cases integer
truncation is actually intended!)

Revision 1.35.2.2 / (download) - annotate - [select for diffs], Tue Jul 31 16:20:33 2018 UTC (5 years, 8 months ago) by martin
Branch: netbsd-8
CVS Tags: netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1
Changes since 1.35.2.1: +3 -3 lines
Diff to previous 1.35.2.1 (colored) to branchpoint 1.35 (colored) next main 1.36 (colored)

Pull up following revision(s) (requested by msaitoh in ticket #951):

	sys/dev/ic/rt2661.c: revision 1.38

bpf_mtap*() before ieee80211_encap() should be bpf_mtap() rather than
bpf_mtap3(). bpf_mtap3() is for raw bpf and be used after ieee80211_encap().

Revision 1.36.2.2 / (download) - annotate - [select for diffs], Sat Jul 28 04:37:45 2018 UTC (5 years, 8 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.36.2.1: +9 -8 lines
Diff to previous 1.36.2.1 (colored) to branchpoint 1.36 (colored)

Sync with HEAD

Revision 1.39 / (download) - annotate - [select for diffs], Tue Jun 26 06:48:00 2018 UTC (5 years, 9 months ago) by msaitoh
Branch: MAIN
CVS Tags: phil-wifi-base, pgoyette-compat-0728, jdolecek-ncqfixes-base, jdolecek-ncqfixes
Branch point for: phil-wifi
Changes since 1.38: +9 -8 lines
Diff to previous 1.38 (colored)

 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.38 / (download) - annotate - [select for diffs], Tue Jun 26 06:16:09 2018 UTC (5 years, 9 months ago) by msaitoh
Branch: MAIN
Changes since 1.37: +3 -3 lines
Diff to previous 1.37 (colored)

 bpf_mtap*() before ieee80211_encap() should be bpf_mtap() rather than
bpf_mtap3(). bpf_mtap3() is for raw bpf and be used after ieee80211_encap().

Revision 1.36.2.1 / (download) - annotate - [select for diffs], Wed May 2 07:20:06 2018 UTC (5 years, 11 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.36: +6 -18 lines
Diff to previous 1.36 (colored)

Synch with HEAD

Revision 1.37 / (download) - annotate - [select for diffs], Tue May 1 16:18:13 2018 UTC (5 years, 11 months ago) by maya
Branch: MAIN
CVS Tags: pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502
Changes since 1.36: +6 -18 lines
Diff to previous 1.36 (colored)

GC private 802.11 rateset declarations, use the standard ones.

Build tested only.

Revision 1.35.2.1 / (download) - annotate - [select for diffs], Sun Dec 10 10:10:23 2017 UTC (6 years, 4 months ago) by snj
Branch: netbsd-8
CVS Tags: netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1
Changes since 1.35: +9 -3 lines
Diff to previous 1.35 (colored)

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.29.2.1 / (download) - annotate - [select for diffs], Sun Dec 3 11:37:04 2017 UTC (6 years, 4 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.29: +70 -17 lines
Diff to previous 1.29 (colored) next main 1.30 (colored)

update from HEAD

Revision 1.36 / (download) - annotate - [select for diffs], Mon Oct 23 09:31:17 2017 UTC (6 years, 5 months ago) by msaitoh
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202, pgoyette-compat-base, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315
Branch point for: pgoyette-compat
Changes since 1.35: +9 -3 lines
Diff to previous 1.35 (colored)

 If if_initialize() failed in the attach function, free resources and return.

Revision 1.29.16.5 / (download) - annotate - [select for diffs], Mon Aug 28 17:52:03 2017 UTC (6 years, 7 months ago) by skrll
Branch: nick-nhusb
Changes since 1.29.16.4: +3 -3 lines
Diff to previous 1.29.16.4 (colored) to branchpoint 1.29 (colored) next main 1.30 (colored)

Sync with HEAD

Revision 1.35 / (download) - annotate - [select for diffs], Tue May 23 02:19:14 2017 UTC (6 years, 10 months ago) by ozaki-r
Branch: 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
Changes since 1.34: +3 -3 lines
Diff to previous 1.34 (colored)

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.33.4.1 / (download) - annotate - [select for diffs], Fri Apr 21 16:53:46 2017 UTC (6 years, 11 months ago) by bouyer
Branch: bouyer-socketcan
Changes since 1.33: +57 -10 lines
Diff to previous 1.33 (colored) next main 1.34 (colored)

Sync with HEAD

Revision 1.33.2.1 / (download) - annotate - [select for diffs], Mon Mar 20 06:57:28 2017 UTC (7 years ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.33: +57 -10 lines
Diff to previous 1.33 (colored) next main 1.34 (colored)

Sync with HEAD

Revision 1.29.16.4 / (download) - annotate - [select for diffs], Sun Feb 5 13:40:28 2017 UTC (7 years, 2 months ago) by skrll
Branch: nick-nhusb
Changes since 1.29.16.3: +57 -10 lines
Diff to previous 1.29.16.3 (colored) to branchpoint 1.29 (colored)

Sync with HEAD

Revision 1.34 / (download) - annotate - [select for diffs], Thu Feb 2 10:05:35 2017 UTC (7 years, 2 months ago) by nonaka
Branch: 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
Changes since 1.33: +57 -10 lines
Diff to previous 1.33 (colored)

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.29.16.3 / (download) - annotate - [select for diffs], Sat Jul 9 20:25:02 2016 UTC (7 years, 9 months ago) by skrll
Branch: nick-nhusb
Changes since 1.29.16.2: +3 -3 lines
Diff to previous 1.29.16.2 (colored) to branchpoint 1.29 (colored)

Sync with HEAD

Revision 1.33 / (download) - annotate - [select for diffs], Fri Jun 10 13:27:13 2016 UTC (7 years, 10 months ago) by ozaki-r
Branch: MAIN
CVS Tags: pgoyette-localcount-base, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, nick-nhusb-base-20161204, nick-nhusb-base-20161004, nick-nhusb-base-20160907, localcount-20160914, bouyer-socketcan-base
Branch point for: pgoyette-localcount, bouyer-socketcan
Changes since 1.32: +3 -3 lines
Diff to previous 1.32 (colored)

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.29.16.2 / (download) - annotate - [select for diffs], Sun May 29 08:44:21 2016 UTC (7 years, 10 months ago) by skrll
Branch: nick-nhusb
Changes since 1.29.16.1: +4 -4 lines
Diff to previous 1.29.16.1 (colored) to branchpoint 1.29 (colored)

Sync with HEAD

Revision 1.32 / (download) - annotate - [select for diffs], Thu May 26 05:04:46 2016 UTC (7 years, 10 months ago) by ozaki-r
Branch: MAIN
CVS Tags: nick-nhusb-base-20160529
Changes since 1.31: +3 -3 lines
Diff to previous 1.31 (colored)

Introduce M_CLEARCTX and use it instead of open-coding rcvif

No functional change.

Revision 1.31 / (download) - annotate - [select for diffs], Thu May 26 05:01:12 2016 UTC (7 years, 10 months ago) by ozaki-r
Branch: MAIN
Changes since 1.30: +3 -3 lines
Diff to previous 1.30 (colored)

Use M_GETCTX

No functional change.

Revision 1.29.16.1 / (download) - annotate - [select for diffs], Mon Apr 6 15:18:09 2015 UTC (9 years ago) by skrll
Branch: nick-nhusb
Changes since 1.29: +5 -5 lines
Diff to previous 1.29 (colored)

Sync with HEAD

Revision 1.30 / (download) - annotate - [select for diffs], Wed Jan 7 07:05:48 2015 UTC (9 years, 3 months ago) by ozaki-r
Branch: MAIN
CVS Tags: nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226, nick-nhusb-base-20150921, nick-nhusb-base-20150606, nick-nhusb-base-20150406
Changes since 1.29: +5 -5 lines
Diff to previous 1.29 (colored)

Pass a correct firmware size (instead of 0) to firmware_free

firmware_free now uses kmem_free(9) instead of free(9),
so we need to pass a correct size to it.

Revision 1.28.8.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:07:36 2012 UTC (12 years ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.28: +51 -51 lines
Diff to previous 1.28 (colored) next main 1.29 (colored)

sync with head

Revision 1.28.12.1 / (download) - annotate - [select for diffs], Fri Feb 24 09:11:41 2012 UTC (12 years, 1 month ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.28: +51 -51 lines
Diff to previous 1.28 (colored) next main 1.29 (colored)

sync to -current.

Revision 1.29 / (download) - annotate - [select for diffs], Sat Feb 18 13:38:36 2012 UTC (12 years, 2 months ago) by drochner
Branch: MAIN
CVS Tags: yamt-pagecache-base9, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, rmind-smpnet-nbase, rmind-smpnet-base, rmind-smpnet, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, 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, khorben-n900, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base10, agc-symver-base, agc-symver
Branch point for: tls-maxphys, nick-nhusb
Changes since 1.28: +51 -51 lines
Diff to previous 1.28 (colored)

split device_t/softc

Revision 1.23.4.5 / (download) - annotate - [select for diffs], Wed Aug 11 22:53:30 2010 UTC (13 years, 8 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.23.4.4: +9 -13 lines
Diff to previous 1.23.4.4 (colored) to branchpoint 1.23 (colored) next main 1.24 (colored)

sync with head.

Revision 1.27.4.1 / (download) - annotate - [select for diffs], Sun May 30 05:17:24 2010 UTC (13 years, 10 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.27: +9 -13 lines
Diff to previous 1.27 (colored) next main 1.28 (colored)

sync with head

Revision 1.27.2.1 / (download) - annotate - [select for diffs], Fri Apr 30 14:43:20 2010 UTC (13 years, 11 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.27: +9 -13 lines
Diff to previous 1.27 (colored) next main 1.28 (colored)

Sync with HEAD.

Revision 1.28 / (download) - annotate - [select for diffs], Mon Apr 5 07:19:36 2010 UTC (14 years ago) by joerg
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, uebayasi-xip-base1, rmind-uvmplock-nbase, rmind-uvmplock-base, 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, matt-mips64-premerge-20101231, jruoho-x86intr-base, jruoho-x86intr, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base2, jmcneill-usbmp-base, jmcneill-audiomp3-base, jmcneill-audiomp3, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: yamt-pagecache, jmcneill-usbmp
Changes since 1.27: +9 -13 lines
Diff to previous 1.27 (colored)

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.23.4.4 / (download) - annotate - [select for diffs], Thu Mar 11 15:03:34 2010 UTC (14 years, 1 month ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.23.4.3: +11 -31 lines
Diff to previous 1.23.4.3 (colored) to branchpoint 1.23 (colored)

sync with head

Revision 1.27 / (download) - annotate - [select for diffs], Tue Jan 19 22:06:25 2010 UTC (14 years, 3 months ago) by pooka
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9, uebayasi-xip-base
Branch point for: uebayasi-xip, rmind-uvmplock
Changes since 1.26: +11 -31 lines
Diff to previous 1.26 (colored)

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.23.4.3 / (download) - annotate - [select for diffs], Wed Sep 16 13:37:48 2009 UTC (14 years, 7 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.23.4.2: +6 -5 lines
Diff to previous 1.23.4.2 (colored) to branchpoint 1.23 (colored)

sync with head

Revision 1.26 / (download) - annotate - [select for diffs], Sat Sep 5 14:19:30 2009 UTC (14 years, 7 months ago) by tsutsui
Branch: MAIN
CVS Tags: yamt-nfs-mp-base8, matt-premerge-20091211, jym-xensuspend-nbase
Changes since 1.25: +6 -5 lines
Diff to previous 1.25 (colored)

Invert logic around nested pmf(9) registrations for readability.

Revision 1.23.4.2 / (download) - annotate - [select for diffs], Mon May 4 08:12:43 2009 UTC (14 years, 11 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.23.4.1: +4 -2 lines
Diff to previous 1.23.4.1 (colored) to branchpoint 1.23 (colored)

sync with head.

Revision 1.13.2.1 / (download) - annotate - [select for diffs], Tue Mar 31 18:08:24 2009 UTC (15 years ago) by bouyer
Branch: netbsd-4
Changes since 1.13: +13 -2 lines
Diff to previous 1.13 (colored) next main 1.14 (colored)

Pull up following revision(s) (requested by msaitoh in ticket #1298):
	sys/dev/usb/if_ural.c: revision 1.26 via patch
	sys/dev/usb/if_rum.c: revision 1.17 via patch
	sys/dev/ic/rt2661.c: revision 1.20 via patch
	sys/dev/ic/rt2560.c: revision 1.14 via patch
Fix a number of driver which doesn't check wep flag in *_tx_mgt.
It is incorrect because we need to encrypt some management frame in case of
shared authentification.

Revision 1.24.8.1 / (download) - annotate - [select for diffs], Mon Jan 19 13:17:56 2009 UTC (15 years, 3 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.24: +4 -2 lines
Diff to previous 1.24 (colored) next main 1.25 (colored)

Sync with HEAD.

Revision 1.21.10.3 / (download) - annotate - [select for diffs], Sat Jan 17 13:28:56 2009 UTC (15 years, 3 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.21.10.2: +2 -0 lines
Diff to previous 1.21.10.2 (colored) to branchpoint 1.21 (colored) next main 1.22 (colored)

Sync with HEAD.

Revision 1.24.6.1 / (download) - annotate - [select for diffs], Sat Dec 13 01:14:14 2008 UTC (15 years, 4 months ago) by haad
Branch: haad-dm
Changes since 1.24: +4 -2 lines
Diff to previous 1.24 (colored) next main 1.25 (colored)

Update haad-dm branch to haad-dm-base2.

Revision 1.25 / (download) - annotate - [select for diffs], Fri Nov 7 00:20:03 2008 UTC (15 years, 5 months ago) by dyoung
Branch: MAIN
CVS Tags: 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-base2, nick-hppapmap-base, mjf-devfs2-base, jymxensuspend-base, jym-xensuspend-base, jym-xensuspend, haad-nbase2, haad-dm-base2, haad-dm-base, ad-audiomp2-base, ad-audiomp2
Changes since 1.24: +4 -2 lines
Diff to previous 1.24 (colored)

*** 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.21.10.2 / (download) - annotate - [select for diffs], Mon Jun 2 13:23:26 2008 UTC (15 years, 10 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.21.10.1: +311 -406 lines
Diff to previous 1.21.10.1 (colored) to branchpoint 1.21 (colored)

Sync with HEAD.

Revision 1.23.2.1 / (download) - annotate - [select for diffs], Sun May 18 12:33:45 2008 UTC (15 years, 11 months ago) by yamt
Branch: yamt-pf42
Changes since 1.23: +267 -329 lines
Diff to previous 1.23 (colored) next main 1.24 (colored)

sync with head.

Revision 1.23.4.1 / (download) - annotate - [select for diffs], Fri May 16 02:24:06 2008 UTC (15 years, 11 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.23: +267 -329 lines
Diff to previous 1.23 (colored)

sync with head.

Revision 1.24 / (download) - annotate - [select for diffs], Tue Apr 29 22:21:45 2008 UTC (15 years, 11 months ago) by scw
Branch: MAIN
CVS Tags: yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-nfs-mp-base2, 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, hpcarm-cleanup-nbase, haad-dm-base1
Branch point for: nick-hppapmap, haad-dm
Changes since 1.23: +267 -329 lines
Diff to previous 1.23 (colored)

Pull in some more changes from OpenBSD:

- replace rssadapt(9) with amrr for automatic rate control.
- don't blindly IFQ_DEQUEUE() then drop a Tx packet if there are no
  available Tx resources.
- move default MAC/BBP/RF settings from rt2661.c to rt2661reg.h.
- enable packet bursting when operating as a STA.
- implement new ic_updateslot() callback.
- in hostap mode, we defer update of the slot time until all associated
  STAs are notified with updated beacons.
- 802.11a uses a 16 microseconds short interframe space.
- Fix rt2661_set_macaddr() so that we don't override the "unicast to me"
  flag in RT2661_MAC_CSR3 when setting the MAC address.
- fix index of ERP information element in beacons.

Add a couple of tweaks of my own:

- The RX/TX BUSY flag should be the last thing written to a descriptor.
- Check and service any additional h/w interrupts before returning
  from the isr.

Tested in STA, AP, and Monitor modes. Tested with WEP, WPA, and WPA2 crypto.

Additional testing by xtraeme@

Revision 1.23 / (download) - annotate - [select for diffs], Tue Apr 8 12:07:27 2008 UTC (16 years ago) by cegger
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base, yamt-nfs-mp-base
Branch point for: yamt-pf42, yamt-nfs-mp
Changes since 1.22: +48 -81 lines
Diff to previous 1.22 (colored)

use aprint_*_dev and device_xname

Revision 1.21.10.1 / (download) - annotate - [select for diffs], Thu Apr 3 12:42:42 2008 UTC (16 years ago) by mjf
Branch: mjf-devfs2
Changes since 1.21: +16 -9 lines
Diff to previous 1.21 (colored)

Sync with HEAD.

Revision 1.9.4.7 / (download) - annotate - [select for diffs], Mon Mar 24 09:38:50 2008 UTC (16 years ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.9.4.6: +16 -9 lines
Diff to previous 1.9.4.6 (colored) to branchpoint 1.9 (colored) next main 1.10 (colored)

sync with head.

Revision 1.21.6.1 / (download) - annotate - [select for diffs], Mon Mar 24 07:15:17 2008 UTC (16 years ago) by keiichi
Branch: keiichi-mipv6
Changes since 1.21: +16 -9 lines
Diff to previous 1.21 (colored) next main 1.22 (colored)

sync with head.

Revision 1.16.2.3 / (download) - annotate - [select for diffs], Sun Mar 23 02:04:39 2008 UTC (16 years ago) by matt
Branch: matt-armv6
Changes since 1.16.2.2: +16 -9 lines
Diff to previous 1.16.2.2 (colored) next main 1.17 (colored)

sync with HEAD

Revision 1.22 / (download) - annotate - [select for diffs], Mon Mar 17 17:22:49 2008 UTC (16 years, 1 month ago) by xtraeme
Branch: MAIN
CVS Tags: yamt-lazymbuf-base15, yamt-lazymbuf-base14, matt-armv6-nbase, keiichi-mipv6-nbase, keiichi-mipv6-base, ad-socklock-base1
Changes since 1.21: +16 -9 lines
Diff to previous 1.21 (colored)

Merge some changes from OpenBSD:

RT2560+RT2661: update the physical address in the RX descriptor after
bus_dmamap_load() in the case where the same mbuf is reloaded.

modify interrupt handlers to exit early and return 0 on shared interrupts.

RT2661:
flags for register TXRX_CSR4 were shifted one bit too much on the left.
this has probably affected short preamble support as well as hardware
multi-rate retries settings.

fix handling of the SIOCS80211CHANNEL ioctl in monitor mode:
don't call xxx_set_chan() if the interface is not up&running.

Tested with the following hw:

ral0 at pci5 dev 0 function 0: Ralink Technologies RT2561 802.11b/g (rev. 0x00)
ral0: interrupting at ioapic0 pin 20 (irq 10)
ral0: 802.11 address 00:80:5a:4f:ab:e2
ral0: MAC/BBP RT2561C, RF RT2527

Revision 1.9.4.6 / (download) - annotate - [select for diffs], Mon Jan 21 09:43:06 2008 UTC (16 years, 2 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.9.4.5: +10 -2 lines
Diff to previous 1.9.4.5 (colored) to branchpoint 1.9 (colored)

sync with head

Revision 1.16.2.2 / (download) - annotate - [select for diffs], Wed Jan 9 01:52:59 2008 UTC (16 years, 3 months ago) by matt
Branch: matt-armv6
Changes since 1.16.2.1: +10 -2 lines
Diff to previous 1.16.2.1 (colored)

sync with HEAD

Revision 1.20.4.1 / (download) - annotate - [select for diffs], Wed Dec 26 19:46:22 2007 UTC (16 years, 3 months ago) by ad
Branch: vmlocking2
Changes since 1.20: +10 -2 lines
Diff to previous 1.20 (colored) next main 1.21 (colored)

Sync with head.

Revision 1.20.6.1 / (download) - annotate - [select for diffs], Tue Dec 11 15:27:41 2007 UTC (16 years, 4 months ago) by yamt
Branch: yamt-kmem
Changes since 1.20: +10 -2 lines
Diff to previous 1.20 (colored) next main 1.21 (colored)

sync with head.

Revision 1.21 / (download) - annotate - [select for diffs], Sun Dec 9 20:27:58 2007 UTC (16 years, 4 months ago) by jmcneill
Branch: MAIN
CVS Tags: yamt-kmem-base3, yamt-kmem-base2, vmlocking2-base3, nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, matt-armv6-base, hpcarm-cleanup-base, cube-autoconf-base, cube-autoconf, bouyer-xeni386-nbase, bouyer-xeni386-merge1, bouyer-xeni386-base, bouyer-xeni386
Branch point for: mjf-devfs2, keiichi-mipv6
Changes since 1.20: +10 -2 lines
Diff to previous 1.20 (colored)

Merge jmcneill-pm branch.

Revision 1.15.6.5 / (download) - annotate - [select for diffs], Sat Dec 8 16:21:10 2007 UTC (16 years, 4 months ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.15.6.4: +5 -5 lines
Diff to previous 1.15.6.4 (colored) to branchpoint 1.15 (colored) next main 1.16 (colored)

Rename pnp(9) -> pmf(9), as requested by many.

Revision 1.16.2.1 / (download) - annotate - [select for diffs], Tue Nov 6 23:27:03 2007 UTC (16 years, 5 months ago) by matt
Branch: matt-armv6
CVS Tags: matt-armv6-prevmlocking
Changes since 1.16: +22 -16 lines
Diff to previous 1.16 (colored)

sync with HEAD

Revision 1.15.6.4 / (download) - annotate - [select for diffs], Tue Nov 6 14:27:18 2007 UTC (16 years, 5 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.15.6.3: +10 -2 lines
Diff to previous 1.15.6.3 (colored) to branchpoint 1.15 (colored)

Refactor PNP API:
- Make suspend/resume directly a device functionality. It consists of
  three layers (class logic, device logic, bus logic), all of them being
  optional. This replaces D0/D3 transitions.
- device_is_active returns true if the device was not disabled and was
  not suspended (even partially), device_is_enabled returns true if the
  device was enabled.
- Change pnp_global_transition into pnp_system_suspend and
  pnp_system_resume. Before running any suspend/resume handlers, check
  that all currently attached devices support power management and bail
  out otherwise. The latter is not done for the shutdown/panic case.
- Make the former bus-specific generic network handlers a class handler.
- Make PNP message like volume up/down/toogle PNP events. Each device
  can register what events they are interested in and whether the handler
  should be global or not.
- Introduce device_active API for devices to mark themselve in use from
  either the system or the device. Use this to implement the idle handling
  for audio and input devices. This is intended to replace most ad-hoc
  watchdogs as well.
- Fix somes situations in which audio resume would lose mixer settings.
- Make USB host controllers better deal with suspend in the light of
  shared interrupts.
- Flush filesystem cache on suspend.
- Flush disk caches on suspend. Put ATA disks into standby on suspend as
  well.
- Adopt drivers to use the new PNP API.
- Fix a critical bug in the generic cardbus layer that made D0->D3
  break.
- Fix ral(4) to set if_stop.
- Convert cbb(4) to the new PNP API.
- Apply the PCI Express SCI fix on resume again.

Revision 1.9.4.5 / (download) - annotate - [select for diffs], Sat Oct 27 11:30:59 2007 UTC (16 years, 5 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.9.4.4: +20 -8 lines
Diff to previous 1.9.4.4 (colored) to branchpoint 1.9 (colored)

sync with head.

Revision 1.15.6.3 / (download) - annotate - [select for diffs], Fri Oct 26 15:44:58 2007 UTC (16 years, 5 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.15.6.2: +15 -4 lines
Diff to previous 1.15.6.2 (colored) to branchpoint 1.15 (colored)

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.18.2.1 / (download) - annotate - [select for diffs], Thu Oct 25 22:37:54 2007 UTC (16 years, 5 months ago) by bouyer
Branch: bouyer-xenamd64
Changes since 1.18: +15 -4 lines
Diff to previous 1.18 (colored) next main 1.19 (colored)

Sync with HEAD.

Revision 1.14.2.3 / (download) - annotate - [select for diffs], Tue Oct 23 20:07:40 2007 UTC (16 years, 5 months ago) by ad
Branch: vmlocking
Changes since 1.14.2.2: +4 -4 lines
Diff to previous 1.14.2.2 (colored) to branchpoint 1.14 (colored) next main 1.15 (colored)

Sync with head.

Revision 1.20 / (download) - annotate - [select for diffs], Sun Oct 21 17:03:37 2007 UTC (16 years, 6 months ago) by degroote
Branch: MAIN
CVS Tags: yamt-kmem-base, vmlocking2-base2, vmlocking2-base1, vmlocking-nbase, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, mjf-devfs, jmcneill-pm-base, jmcneill-base, bouyer-xenamd64-base2, bouyer-xenamd64-base
Branch point for: yamt-kmem, vmlocking2
Changes since 1.19: +13 -2 lines
Diff to previous 1.19 (colored)

Fix a number of driver which doesn't check wep flag in *_tx_mgt.
It is incorrect because we need to encrypt some management frame in case of
shared authentification.

Revision 1.19 / (download) - annotate - [select for diffs], Fri Oct 19 11:59:59 2007 UTC (16 years, 6 months ago) by ad
Branch: MAIN
Changes since 1.18: +4 -4 lines
Diff to previous 1.18 (colored)

machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h

Revision 1.14.2.2 / (download) - annotate - [select for diffs], Tue Oct 9 13:41:30 2007 UTC (16 years, 6 months ago) by ad
Branch: vmlocking
Changes since 1.14.2.1: +10 -15 lines
Diff to previous 1.14.2.1 (colored) to branchpoint 1.14 (colored)

Sync with head.

Revision 1.17.2.1 / (download) - annotate - [select for diffs], Sat Oct 6 15:31:16 2007 UTC (16 years, 6 months ago) by yamt
Branch: yamt-x86pmap
Changes since 1.17: +7 -6 lines
Diff to previous 1.17 (colored) next main 1.18 (colored)

sync with head.

Revision 1.15.6.2 / (download) - annotate - [select for diffs], Tue Oct 2 18:28:26 2007 UTC (16 years, 6 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.15.6.1: +7 -6 lines
Diff to previous 1.15.6.1 (colored) to branchpoint 1.15 (colored)

Sync with HEAD.

Revision 1.18 / (download) - annotate - [select for diffs], Sat Sep 29 18:30:22 2007 UTC (16 years, 6 months ago) by scw
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, vmlocking-base
Branch point for: bouyer-xenamd64
Changes since 1.17: +7 -6 lines
Diff to previous 1.17 (colored)

- Fix bpf radiotap: s/NPBFILTER/NBPFILTER/
- In rt2661_set_chan(), handle the case where there is no previous channel.
  (Can happen if we go directly to monitor mode before UP'ing the i/f)

Revision 1.15.6.1 / (download) - annotate - [select for diffs], Mon Sep 3 16:48:06 2007 UTC (16 years, 7 months ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.15: +5 -11 lines
Diff to previous 1.15 (colored)

Sync with HEAD.

Revision 1.9.4.4 / (download) - annotate - [select for diffs], Mon Sep 3 14:35:07 2007 UTC (16 years, 7 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.9.4.3: +14 -20 lines
Diff to previous 1.9.4.3 (colored) to branchpoint 1.9 (colored)

sync with head.

Revision 1.15.2.1 / (download) - annotate - [select for diffs], Mon Sep 3 10:20:25 2007 UTC (16 years, 7 months ago) by skrll
Branch: nick-csl-alignment
Changes since 1.15: +5 -11 lines
Diff to previous 1.15 (colored) next main 1.16 (colored)

Sync with HEAD.

Revision 1.17 / (download) - annotate - [select for diffs], Sat Sep 1 07:32:27 2007 UTC (16 years, 7 months ago) by dyoung
Branch: MAIN
CVS Tags: yamt-x86pmap-base, nick-csl-alignment-base5
Branch point for: yamt-x86pmap
Changes since 1.16: +4 -10 lines
Diff to previous 1.16 (colored)

Change a bazillion occurrences of code resembling this,

	error = (cmd == SIOCADDMULTI) ?
	    ether_addmulti(ifr, &sc->sc_ec) :
	    ether_delmulti(ifr, &sc->sc_ec);

	if (error == ENETRESET) {

to this,

	if ((error = ether_ioctl(ifp, cmd, data)) == ENETRESET) {

which does the same thing.

(A bazillion is a very large number.  This seems to make the i386
ALL kernel smaller by 3kB to 4kB.)

Use ifreq_getaddr() twice in es(4).

Whitespace nits.

Revision 1.16 / (download) - annotate - [select for diffs], Sun Aug 26 22:45:56 2007 UTC (16 years, 7 months ago) by dyoung
Branch: MAIN
Branch point for: matt-armv6
Changes since 1.15: +3 -3 lines
Diff to previous 1.15 (colored)

Constify: LLADDR -> CLLADDR.  I'm aiming here to make it easier to
identify sockaddr_dl abuse that remains in the kernel, especially
the potential for overwriting memory past the end of a sockaddr_dl
with, e.g., memcpy(LLADDR(), ...).

Revision 1.14.4.1 / (download) - annotate - [select for diffs], Wed Jul 11 20:06:09 2007 UTC (16 years, 9 months ago) by mjf
Branch: mjf-ufs-trans
Changes since 1.14: +4 -4 lines
Diff to previous 1.14 (colored) next main 1.15 (colored)

Sync with head.

Revision 1.15 / (download) - annotate - [select for diffs], Mon Jul 9 21:00:38 2007 UTC (16 years, 9 months ago) by ad
Branch: MAIN
CVS Tags: nick-csl-alignment-base, mjf-ufs-trans-base, matt-mips64-base, matt-mips64, hpcarm-cleanup
Branch point for: nick-csl-alignment, jmcneill-pm
Changes since 1.14: +4 -4 lines
Diff to previous 1.14 (colored)

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.14.2.1 / (download) - annotate - [select for diffs], Sun Jul 1 21:47:53 2007 UTC (16 years, 9 months ago) by ad
Branch: vmlocking
Changes since 1.14: +4 -4 lines
Diff to previous 1.14 (colored)

Adapt to callout API change.

Revision 1.13.4.1 / (download) - annotate - [select for diffs], Mon Mar 12 05:53:42 2007 UTC (17 years, 1 month ago) by rmind
Branch: yamt-idlelwp
Changes since 1.13: +9 -9 lines
Diff to previous 1.13 (colored) next main 1.14 (colored)

Sync with HEAD.

Revision 1.14 / (download) - annotate - [select for diffs], Sun Mar 4 06:02:00 2007 UTC (17 years, 1 month ago) by christos
Branch: MAIN
CVS Tags: yamt-idlelwp-base8, thorpej-atomic-base, thorpej-atomic, reinoud-bufcleanup
Branch point for: vmlocking, mjf-ufs-trans
Changes since 1.13: +9 -9 lines
Diff to previous 1.13 (colored)

Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.

Revision 1.9.4.3 / (download) - annotate - [select for diffs], Sat Dec 30 20:48:03 2006 UTC (17 years, 3 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.9.4.2: +10 -3 lines
Diff to previous 1.9.4.2 (colored) to branchpoint 1.9 (colored)

sync with head.

Revision 1.11.8.2 / (download) - annotate - [select for diffs], Sun Dec 10 07:17:06 2006 UTC (17 years, 4 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.11.8.1: +10 -6 lines
Diff to previous 1.11.8.1 (colored) to branchpoint 1.11 (colored) next main 1.12 (colored)

sync with head.

Revision 1.11.4.1 / (download) - annotate - [select for diffs], Sat Nov 18 21:34:14 2006 UTC (17 years, 5 months ago) by ad
Branch: newlock2
Changes since 1.11: +7 -3 lines
Diff to previous 1.11 (colored) next main 1.12 (colored)

Sync with head.

Revision 1.13 / (download) - annotate - [select for diffs], Thu Nov 16 01:32:52 2006 UTC (17 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, post-newlock2-merge, newlock2-nbase, newlock2-base, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, matt-nb4-arm-base, matt-nb4-arm, ad-audiomp-base, ad-audiomp
Branch point for: yamt-idlelwp, netbsd-4
Changes since 1.12: +10 -6 lines
Diff to previous 1.12 (colored)

__unused removal on arguments; approved by core.

Revision 1.11.8.1 / (download) - annotate - [select for diffs], Sun Oct 22 06:05:45 2006 UTC (17 years, 5 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.11: +5 -5 lines
Diff to previous 1.11 (colored)

sync with head

Revision 1.12 / (download) - annotate - [select for diffs], Thu Oct 12 01:31:01 2006 UTC (17 years, 6 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base2
Changes since 1.11: +5 -5 lines
Diff to previous 1.11 (colored)

- sprinkle __unused on function decls.
- fix a couple of unused bugs
- no more -Wno-unused for i386

Revision 1.11.6.2 / (download) - annotate - [select for diffs], Sat Sep 9 02:50:03 2006 UTC (17 years, 7 months ago) by rpaulo
Branch: rpaulo-netinet-merge-pcb
Changes since 1.11.6.1: +3122 -0 lines
Diff to previous 1.11.6.1 (colored) to branchpoint 1.11 (colored) next main 1.12 (colored)

sync with head

Revision 1.9.6.3 / (download) - annotate - [select for diffs], Fri Aug 11 15:44:11 2006 UTC (17 years, 8 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.9.6.2: +5 -2 lines
Diff to previous 1.9.6.2 (colored) to branchpoint 1.9 (colored) next main 1.10 (colored)

sync with head

Revision 1.7.2.1 / (download) - annotate - [select for diffs], Thu Jul 13 17:49:23 2006 UTC (17 years, 9 months ago) by gdamore
Branch: gdamore-uart
Changes since 1.7: +7 -3 lines
Diff to previous 1.7 (colored) next main 1.8 (colored)

Merge from HEAD.

Revision 1.11.6.1, Tue Jul 4 23:05:11 2006 UTC (17 years, 9 months ago) by rpaulo
Branch: rpaulo-netinet-merge-pcb
Changes since 1.11: +0 -3122 lines
FILE REMOVED

file rt2661.c was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:50:03 +0000

Revision 1.11 / (download) - annotate - [select for diffs], Tue Jul 4 23:05:11 2006 UTC (17 years, 9 months ago) by rpaulo
Branch: MAIN
CVS Tags: yamt-splraiseipl-base, yamt-pdpolicy-base9, yamt-pdpolicy-base8, yamt-pdpolicy-base7, rpaulo-netinet-merge-pcb-base, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: yamt-splraiseipl, rpaulo-netinet-merge-pcb, newlock2
Changes since 1.10: +3 -3 lines
Diff to previous 1.10 (colored)

Add missing semicolon.

Revision 1.10 / (download) - annotate - [select for diffs], Tue Jul 4 18:26:29 2006 UTC (17 years, 9 months ago) by rpaulo
Branch: MAIN
Changes since 1.9: +5 -2 lines
Diff to previous 1.9 (colored)

Coverity CID 3805: Close the firmware_handle on error and avoid leaks.

Revision 1.9.6.2 / (download) - annotate - [select for diffs], Mon Jun 26 12:51:02 2006 UTC (17 years, 9 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.9.6.1: +3119 -0 lines
Diff to previous 1.9.6.1 (colored) to branchpoint 1.9 (colored)

sync with head.

Revision 1.9.4.2 / (download) - annotate - [select for diffs], Wed Jun 21 15:02:56 2006 UTC (17 years, 10 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.9.4.1: +3119 -0 lines
Diff to previous 1.9.4.1 (colored) to branchpoint 1.9 (colored)

sync with head.

Revision 1.9.2.2 / (download) - annotate - [select for diffs], Mon Jun 19 03:58:14 2006 UTC (17 years, 10 months ago) by chap
Branch: chap-midi
Changes since 1.9.2.1: +3119 -0 lines
Diff to previous 1.9.2.1 (colored) to branchpoint 1.9 (colored) next main 1.10 (colored)

Sync with head.

Revision 1.9.6.1, Sun Jun 18 15:44:49 2006 UTC (17 years, 10 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.9: +0 -3119 lines
FILE REMOVED

file rt2661.c was added on branch yamt-pdpolicy on 2006-06-26 12:51:02 +0000

Revision 1.9.4.1, Sun Jun 18 15:44:49 2006 UTC (17 years, 10 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.9: +0 -3119 lines
FILE REMOVED

file rt2661.c was added on branch yamt-lazymbuf on 2006-06-21 15:02:56 +0000

Revision 1.9.2.1, Sun Jun 18 15:44:49 2006 UTC (17 years, 10 months ago) by chap
Branch: chap-midi
Changes since 1.9: +0 -3119 lines
FILE REMOVED

file rt2661.c was added on branch chap-midi on 2006-06-19 03:58:14 +0000

Revision 1.9 / (download) - annotate - [select for diffs], Sun Jun 18 15:44:49 2006 UTC (17 years, 10 months ago) by rpaulo
Branch: MAIN
CVS Tags: yamt-pdpolicy-base6, chap-midi-nbase, chap-midi-base
Branch point for: yamt-pdpolicy, yamt-lazymbuf, chap-midi
Changes since 1.8: +2 -3 lines
Diff to previous 1.8 (colored)

Remove IF_PREPEND() to comply with altq. I think the logic is safe to just
remove the macro call.

Revision 1.8 / (download) - annotate - [select for diffs], Sun Jun 18 15:37:27 2006 UTC (17 years, 10 months ago) by rpaulo
Branch: MAIN
Changes since 1.7: +4 -2 lines
Diff to previous 1.7 (colored)

When calling IF_DEQUEUE() check if the dequeued mbuf is NULL to comply
with altq.

Revision 1.7 / (download) - annotate - [select for diffs], Fri Jun 9 19:13:17 2006 UTC (17 years, 10 months ago) by rpaulo
Branch: MAIN
CVS Tags: gdamore-uart-base
Branch point for: gdamore-uart
Changes since 1.6: +34 -50 lines
Diff to previous 1.6 (colored)

Revert previous. Wrong way of doing things...

Revision 1.6 / (download) - annotate - [select for diffs], Thu Jun 8 20:56:41 2006 UTC (17 years, 10 months ago) by rpaulo
Branch: MAIN
Changes since 1.5: +52 -36 lines
Diff to previous 1.5 (colored)

Bring the following change from OpenBSD:

  Keep track of the average RSSI using an Exponential Moving Average (EMA).
  Use it to dynamically tune radio receive sensitivity.

  The idea is simple:
  - increase sensitivity when the RSSI is bad to optimize throughput on
    long distance to the AP, and
  - decrease sensitivity when the RSSI is good to reduce noise level and
    optimize throughput on short distance to the AP

  The EMA allows to smooth RSSI variations so we don't end up changing the
  sensitivity too frequently.  We check if it would be worth updating the
  sensitivity every one second.
  RSSI thresholds were taken from the Ralink Tech. Linux driver.

Revision 1.5 / (download) - annotate - [select for diffs], Thu Jun 8 13:00:35 2006 UTC (17 years, 10 months ago) by rpaulo
Branch: MAIN
Changes since 1.4: +4 -4 lines
Diff to previous 1.4 (colored)

Rename sta variable. Pointed out by Havard Eidnes and Juergen Hannken-Illjes.

Revision 1.4.2.2 / (download) - annotate - [select for diffs], Wed Jun 7 15:51:09 2006 UTC (17 years, 10 months ago) by kardel
Branch: simonb-timecounters
Changes since 1.4.2.1: +3118 -0 lines
Diff to previous 1.4.2.1 (colored) to branchpoint 1.4 (colored) next main 1.5 (colored)

Sync with head.

Revision 1.4.2.1, Tue Jun 6 01:18:25 2006 UTC (17 years, 10 months ago) by kardel
Branch: simonb-timecounters
Changes since 1.4: +0 -3118 lines
FILE REMOVED

file rt2661.c was added on branch simonb-timecounters on 2006-06-07 15:51:09 +0000

Revision 1.4 / (download) - annotate - [select for diffs], Tue Jun 6 01:18:25 2006 UTC (17 years, 10 months ago) by rpaulo
Branch: MAIN
CVS Tags: simonb-timecounters-base
Branch point for: simonb-timecounters
Changes since 1.3: +3 -3 lines
Diff to previous 1.3 (colored)

Oops, missing arg to firmware_free.

Revision 1.3 / (download) - annotate - [select for diffs], Mon Jun 5 17:00:50 2006 UTC (17 years, 10 months ago) by rpaulo
Branch: MAIN
Changes since 1.2: +3 -2 lines
Diff to previous 1.2 (colored)

Don't leak memory on error.

Revision 1.2 / (download) - annotate - [select for diffs], Mon Jun 5 16:59:41 2006 UTC (17 years, 10 months ago) by rpaulo
Branch: MAIN
Changes since 1.1: +3 -2 lines
Diff to previous 1.1 (colored)

Add missing firmware_close().

Revision 1.1 / (download) - annotate - [select for diffs], Sun Jun 4 20:38:06 2006 UTC (17 years, 10 months ago) by rpaulo
Branch: MAIN

Driver for Ralink chipsets RT2460A, RT2560, RT2561S, RT2561 and RT2661
from FreeBSD/OpenBSD that supersedes ral*.[ch].

Not yet enabled because I don't have a CardBus controller to test and it
will most likely crash during detach.

I tried to include our modifications, but if something is missing please
tell me or add it.

Special thanks to minipci.biz for the donation of one PCI RT2661 and
one CardBus RT2661.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>