The NetBSD Project

CVS log for src/sys/arch/arm/xscale/ixp425_if_npe.c

[BACK] Up to [cvs.NetBSD.org] / src / sys / arch / arm / xscale

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.53 / (download) - annotate - [select for diffs], Tue Sep 27 06:13:42 2022 UTC (18 months, 2 weeks ago) by skrll
Branch: MAIN
CVS Tags: thorpej-ifq-base, thorpej-ifq, 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.52: +5 -7 lines
Diff to previous 1.52 (colored)

malloc -> kmem

Revision 1.52 / (download) - annotate - [select for diffs], Sun Sep 18 15:49:42 2022 UTC (18 months, 3 weeks ago) by thorpej
Branch: MAIN
Changes since 1.51: +4 -8 lines
Diff to previous 1.51 (colored)

Eliminate use of IFF_OACTIVE.

Revision 1.51 / (download) - annotate - [select for diffs], Sun May 22 11:27:34 2022 UTC (22 months, 3 weeks ago) by andvar
Branch: MAIN
Changes since 1.50: +3 -3 lines
Diff to previous 1.50 (colored)

fix various small typos, mainly in comments.

Revision 1.50 / (download) - annotate - [select for diffs], Fri Dec 31 14:25:22 2021 UTC (2 years, 3 months ago) by riastradh
Branch: MAIN
Changes since 1.49: +4 -4 lines
Diff to previous 1.49 (colored)

sys: Use if_init wrapper function.

Exception: Not in kern_pmf.c, for the kind of silly reason that it
avoids having kern_pmf.c refer to symbols defined only in net; this
avoids a pain in the rump.

Revision 1.49 / (download) - annotate - [select for diffs], Fri Dec 31 14:24:38 2021 UTC (2 years, 3 months ago) by riastradh
Branch: MAIN
Changes since 1.48: +3 -3 lines
Diff to previous 1.48 (colored)

sys: Use if_stop wrapper function.

Exception: Not in kern_pmf.c, for the kind of silly reason that it
avoids having kern_pmf.c refer to symbols defined only in net; this
avoids a pain in the rump.

Revision 1.48 / (download) - annotate - [select for diffs], Sun Sep 19 10:34:08 2021 UTC (2 years, 6 months ago) by andvar
Branch: MAIN
Changes since 1.47: +3 -3 lines
Diff to previous 1.47 (colored)

fix various typos in comments, messages and documentation.

Revision 1.34.2.3 / (download) - annotate - [select for diffs], Mon Apr 13 08:03:39 2020 UTC (4 years ago) by martin
Branch: phil-wifi
Changes since 1.34.2.2: +3 -13 lines
Diff to previous 1.34.2.2 (colored) to branchpoint 1.34 (colored) next main 1.35 (colored)

Mostly merge changes from HEAD upto 20200411

Revision 1.34.2.2 / (download) - annotate - [select for diffs], Wed Apr 8 14:07:31 2020 UTC (4 years ago) by martin
Branch: phil-wifi
Changes since 1.34.2.1: +21 -32 lines
Diff to previous 1.34.2.1 (colored) to branchpoint 1.34 (colored)

Merge changes from current as of 20200406

Revision 1.44.2.1 / (download) - annotate - [select for diffs], Sat Feb 29 20:18:20 2020 UTC (4 years, 1 month ago) by ad
Branch: ad-namecache
Changes since 1.44: +18 -29 lines
Diff to previous 1.44 (colored) next main 1.45 (colored)

Sync with head.

Revision 1.47 / (download) - annotate - [select for diffs], Tue Feb 18 14:49:32 2020 UTC (4 years, 1 month ago) by thorpej
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-futex-base, thorpej-futex, thorpej-cfargs2-base, thorpej-cfargs2, 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
Changes since 1.46: +3 -18 lines
Diff to previous 1.46 (colored)

Use ether_mediastatus().

Revision 1.46 / (download) - annotate - [select for diffs], Tue Feb 4 05:16:18 2020 UTC (4 years, 2 months ago) by thorpej
Branch: MAIN
Changes since 1.45: +3 -2 lines
Diff to previous 1.45 (colored)

Add a comment that ifmedia_fini() should be used here someday.

Revision 1.45 / (download) - annotate - [select for diffs], Wed Jan 29 06:05:31 2020 UTC (4 years, 2 months ago) by thorpej
Branch: MAIN
Changes since 1.44: +16 -13 lines
Diff to previous 1.44 (colored)

Adopt <net/if_stats.h>.

Revision 1.44 / (download) - annotate - [select for diffs], Fri Dec 27 08:22:49 2019 UTC (4 years, 3 months ago) by msaitoh
Branch: MAIN
CVS Tags: ad-namecache-base2, ad-namecache-base1, ad-namecache-base
Branch point for: ad-namecache
Changes since 1.43: +5 -5 lines
Diff to previous 1.43 (colored)

s/recive/receive/ in comment.

Revision 1.43 / (download) - annotate - [select for diffs], Sun Nov 10 21:16:24 2019 UTC (4 years, 5 months ago) by chs
Branch: MAIN
CVS Tags: phil-wifi-20191119
Changes since 1.42: +3 -13 lines
Diff to previous 1.42 (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.42 / (download) - annotate - [select for diffs], Fri Sep 13 07:55:06 2019 UTC (4 years, 7 months ago) by msaitoh
Branch: MAIN
Changes since 1.41: +4 -4 lines
Diff to previous 1.41 (colored)

 if_flags is neither int nor short. It's unsigned short.

Revision 1.34.2.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:05:57 2019 UTC (4 years, 10 months ago) by christos
Branch: phil-wifi
Changes since 1.34: +93 -86 lines
Diff to previous 1.34 (colored)

Sync with HEAD

Revision 1.41 / (download) - annotate - [select for diffs], Tue May 28 07:41:46 2019 UTC (4 years, 10 months ago) by msaitoh
Branch: MAIN
CVS Tags: phil-wifi-20190609, 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
Changes since 1.40: +8 -2 lines
Diff to previous 1.40 (colored)

 Use ETHER_LOCK()/ETHER_UNLOCK() for all ethernet drivers to protect ec_multi*.

Revision 1.40 / (download) - annotate - [select for diffs], Thu May 23 10:40:39 2019 UTC (4 years, 10 months ago) by msaitoh
Branch: MAIN
Changes since 1.39: +34 -33 lines
Diff to previous 1.39 (colored)

-No functional change:
  - Simplify struct ethercom's pointer near ETHER_FIRST_MULTI().
  - Simplify MII structure initialization.
  - u_int*_t -> uint*_t.
  - KNF

Revision 1.39 / (download) - annotate - [select for diffs], Fri Apr 26 06:33:33 2019 UTC (4 years, 11 months ago) by msaitoh
Branch: MAIN
Changes since 1.38: +35 -35 lines
Diff to previous 1.38 (colored)

No functional change:
- u_int_{8,16,32}_t -> uint_{8,16,32}_t
- KNF.
- Tabify.
- Remove extra space.

Revision 1.38 / (download) - annotate - [select for diffs], Wed Apr 24 10:40:18 2019 UTC (4 years, 11 months ago) by msaitoh
Branch: MAIN
Changes since 1.37: +2 -3 lines
Diff to previous 1.37 (colored)

 This driver uses MII(4) and have hook SIOCGIFMEDIA which just pass to
ifmedia_ioctl(), the hook is not required because ether_ioctl has it
(if_ethersubr.c rev. 1.160). This driver might require some additional fixes
for SIOCSIFMTU and other ioctl()s.

Revision 1.37 / (download) - annotate - [select for diffs], Tue Mar 5 08:25:02 2019 UTC (5 years, 1 month ago) by msaitoh
Branch: MAIN
CVS Tags: isaki-audio2-base, isaki-audio2
Changes since 1.36: +2 -6 lines
Diff to previous 1.36 (colored)

 Centralize ETHER_ALIGN into net/if_ether.h. Note that this commit also changes
if_upgt.c's ETHER_ALIGN from 0 to 2.

Revision 1.33.12.3 / (download) - annotate - [select for diffs], Sat Jan 26 22:00:01 2019 UTC (5 years, 2 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.33.12.2: +21 -16 lines
Diff to previous 1.33.12.2 (colored) to branchpoint 1.33 (colored) next main 1.34 (colored)

Sync with HEAD

Revision 1.36 / (download) - annotate - [select for diffs], Tue Jan 22 03:42:25 2019 UTC (5 years, 2 months ago) by msaitoh
Branch: MAIN
CVS Tags: pgoyette-compat-20190127
Changes since 1.35: +21 -16 lines
Diff to previous 1.35 (colored)

 Change MII PHY read/write API from:

	int (*mii_readreg_t)(device_t, int, int);
	void (*mii_writereg_t)(device_t, int, int, int);
to:

	int (*mii_readreg_t)(device_t, int, int, uint16_t *);
	int (*mii_writereg_t)(device_t, int, int, uint16_t);

Now we can test if a read/write operation failed or not by the return value.

 In 802.3 spec says that the PHY shall not respond to read/write transaction
to the unimplemented register(22.2.4.3). Detecting timeout can be used to
check whether a register is implemented or not (if the register conforms to
the spec). ukphy(4) can be used this for MII_MMDACR and MII_MMDAADR.

 Note that I noticed that the following code do infinite loop in the
read/wirte function. If it accesses unimplemented PHY register, it will hang.
It should be fixed:

	arm/at91/at91emac.c
	arm/ep93xx/epe.c
	arm/omap/omapl1x_emac.c
	mips/ralink/ralink_eth.c
	arch/powerpc/booke/dev/pq3etsec.c(read)
	dev/cadence/if_cemac.c <- hkenken
	dev/ic/lan9118.c


Tested with the following device:

	axe+ukphy
	axe+rgephy
	axen+rgephy	(tested by Andrius V)
	wm+atphy
	wm+ukphy
	wm+igphy
	wm+ihphy
	wm+makphy
	sk+makphy
	sk+brgphy
	sk+gentbi
	msk+makphy
	sip+icsphy
	sip+ukphy
	re+rgephy
	bge+brgphy
	bnx+brgphy
	gsip+gphyter
	rtk+rlphy
	fxp+inphy	(tested by Andrius V)
	tlp+acphy
	ex+exphy
	epic+qsphy
	vge+ciphy	(tested by Andrius V)
	vr+ukphy	(tested by Andrius V)
	vte+ukphy	(tested by Andrius V)

Not tested (MAC):
	arm:at91emac
	arm:cemac
	arm:epe
	arm:geminigmac
	arm:enet
	arm:cpsw
	arm:emac(omac)
	arm:emac(sunxi)
	arm:npe
	evbppc:temac
	macppc:bm
	macppc:gm
	mips:aumac
	mips:ae
	mips:cnmac
	mips:reth
	mips:sbmac
	playstation2:smap
	powerpc:tsec
	powerpc:emac(ibm4xx)
	sgimips:mec
	sparc:be
	sf
	ne(ax88190, dl10019)
	awge
	ep
	gem
	hme
	smsh
	mtd
	sm
	age
	alc
	ale
	bce
	cas
	et
	jme
	lii
	nfe
	pcn
	ste
	stge
	tl
	xi
	aue
	mue
	smsc
	udav
	url

Not tested (PHY):
	amhphy
	bmtphy
	dmphy
	etphy
	glxtphy
	ikphy
	iophy
	lxtphy
	nsphyter
	pnaphy
	rdcphy
	sqphy
	tlphy
	tqphy
	urlphy

Revision 1.33.12.2 / (download) - annotate - [select for diffs], Wed Dec 26 14:01:34 2018 UTC (5 years, 3 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.33.12.1: +3 -3 lines
Diff to previous 1.33.12.1 (colored) to branchpoint 1.33 (colored)

Sync with HEAD, resolve a few conflicts

Revision 1.35 / (download) - annotate - [select for diffs], Sat Dec 22 14:07:53 2018 UTC (5 years, 3 months ago) by maxv
Branch: MAIN
CVS Tags: pgoyette-compat-20190118, pgoyette-compat-1226
Changes since 1.34: +3 -3 lines
Diff to previous 1.34 (colored)

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

Revision 1.33.12.1 / (download) - annotate - [select for diffs], Sat Jul 28 04:37:29 2018 UTC (5 years, 8 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.33: +3 -3 lines
Diff to previous 1.33 (colored)

Sync with HEAD

Revision 1.34 / (download) - annotate - [select for diffs], Tue Jun 26 06:47:58 2018 UTC (5 years, 9 months ago) by msaitoh
Branch: MAIN
CVS Tags: phil-wifi-base, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728
Branch point for: phil-wifi
Changes since 1.33: +3 -3 lines
Diff to previous 1.33 (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.23.2.2 / (download) - annotate - [select for diffs], Sun Dec 3 11:35:57 2017 UTC (6 years, 4 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.23.2.1: +10 -9 lines
Diff to previous 1.23.2.1 (colored) to branchpoint 1.23 (colored) next main 1.24 (colored)

update from HEAD

Revision 1.27.2.6 / (download) - annotate - [select for diffs], Mon Aug 28 17:51:32 2017 UTC (6 years, 7 months ago) by skrll
Branch: nick-nhusb
Changes since 1.27.2.5: +4 -3 lines
Diff to previous 1.27.2.5 (colored) to branchpoint 1.27 (colored) next main 1.28 (colored)

Sync with HEAD

Revision 1.32.2.1 / (download) - annotate - [select for diffs], Fri Apr 21 16:53:24 2017 UTC (6 years, 11 months ago) by bouyer
Branch: bouyer-socketcan
Changes since 1.32: +4 -3 lines
Diff to previous 1.32 (colored) next main 1.33 (colored)

Sync with HEAD

Revision 1.31.2.2 / (download) - annotate - [select for diffs], Mon Mar 20 06:57:11 2017 UTC (7 years ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.31.2.1: +4 -3 lines
Diff to previous 1.31.2.1 (colored) to branchpoint 1.31 (colored) next main 1.32 (colored)

Sync with HEAD

Revision 1.33 / (download) - annotate - [select for diffs], Wed Feb 22 09:45:16 2017 UTC (7 years, 1 month ago) by nonaka
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-20170426, pgoyette-localcount-20170320, 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, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, netbsd-8-base, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, matt-nb8-mediatek-base, matt-nb8-mediatek, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1
Branch point for: pgoyette-compat
Changes since 1.32: +4 -3 lines
Diff to previous 1.32 (colored)

Apply deferred if_start to more MD drivers.

Revision 1.27.2.5 / (download) - annotate - [select for diffs], Sun Feb 5 13:40:04 2017 UTC (7 years, 2 months ago) by skrll
Branch: nick-nhusb
Changes since 1.27.2.4: +3 -4 lines
Diff to previous 1.27.2.4 (colored) to branchpoint 1.27 (colored)

Sync with HEAD

Revision 1.31.2.1 / (download) - annotate - [select for diffs], Sat Jan 7 08:56:12 2017 UTC (7 years, 3 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.31: +3 -4 lines
Diff to previous 1.31 (colored)

Sync with HEAD.  (Note that most of these changes are simply $NetBSD$
tag issues.)

Revision 1.32 / (download) - annotate - [select for diffs], Thu Dec 15 09:28:02 2016 UTC (7 years, 4 months ago) by ozaki-r
Branch: MAIN
CVS Tags: pgoyette-localcount-20170107, nick-nhusb-base-20170204, bouyer-socketcan-base
Branch point for: bouyer-socketcan
Changes since 1.31: +3 -4 lines
Diff to previous 1.31 (colored)

Move bpf_mtap and if_ipackets++ on Rx of each driver to percpuq if_input

The benefits of the change are:
- We can reduce codes
- We can provide the same behavior between drivers
  - Where/When if_ipackets is counted up
  - Note that some drivers still update packet statistics in their own
    way (periodical update)
- Moved bpf_mtap run in softint
  - This makes it easy to MP-ify bpf

Proposed on tech-kern and tech-net

Revision 1.27.2.4 / (download) - annotate - [select for diffs], Sat Jul 9 20:24:50 2016 UTC (7 years, 9 months ago) by skrll
Branch: nick-nhusb
Changes since 1.27.2.3: +3 -3 lines
Diff to previous 1.27.2.3 (colored) to branchpoint 1.27 (colored)

Sync with HEAD

Revision 1.31 / (download) - annotate - [select for diffs], Fri Jun 10 13:27:11 2016 UTC (7 years, 10 months ago) by ozaki-r
Branch: MAIN
CVS Tags: pgoyette-localcount-base, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, nick-nhusb-base-20161204, nick-nhusb-base-20161004, nick-nhusb-base-20160907, localcount-20160914
Branch point for: pgoyette-localcount
Changes since 1.30: +3 -3 lines
Diff to previous 1.30 (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.27.2.3 / (download) - annotate - [select for diffs], Sat Mar 19 11:29:57 2016 UTC (8 years ago) by skrll
Branch: nick-nhusb
Changes since 1.27.2.2: +3 -3 lines
Diff to previous 1.27.2.2 (colored) to branchpoint 1.27 (colored)

Sync with HEAD

Revision 1.30 / (download) - annotate - [select for diffs], Tue Feb 9 08:32:08 2016 UTC (8 years, 2 months ago) by ozaki-r
Branch: MAIN
CVS Tags: nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319
Changes since 1.29: +3 -3 lines
Diff to previous 1.29 (colored)

Introduce softint-based if_input

This change intends to run the whole network stack in softint context
(or normal LWP), not hardware interrupt context. Note that the work is
still incomplete by this change; to that end, we also have to softint-ify
if_link_state_change (and bpf) which can still run in hardware interrupt.

This change softint-ifies at ifp->if_input that is called from
each device driver (and ieee80211_input) to ensure Layer 2 runs
in softint (e.g., ether_input and bridge_input). To this end,
we provide a framework (called percpuq) that utlizes softint(9)
and percpu ifqueues. With this patch, rxintr of most drivers just
queues received packets and schedules a softint, and the softint
dequeues packets and does rest packet processing.

To minimize changes to each driver, percpuq is allocated in struct
ifnet for now and that is initialized by default (in if_attach).
We probably have to move percpuq to softc of each driver, but it's
future work. At this point, only wm(4) has percpuq in its softc
as a reference implementation.

Additional information including performance numbers can be found
in the thread at tech-kern@ and tech-net@:
http://mail-index.netbsd.org/tech-kern/2016/01/14/msg019997.html

Acknowledgment: riastradh@ greatly helped this work.
Thank you very much!

Revision 1.27.2.2 / (download) - annotate - [select for diffs], Tue Sep 22 12:05:38 2015 UTC (8 years, 6 months ago) by skrll
Branch: nick-nhusb
Changes since 1.27.2.1: +7 -6 lines
Diff to previous 1.27.2.1 (colored) to branchpoint 1.27 (colored)

Sync with HEAD

Revision 1.26.2.1 / (download) - annotate - [select for diffs], Sun Jul 5 20:34:51 2015 UTC (8 years, 9 months ago) by snj
Branch: netbsd-7
CVS Tags: netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, 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-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0
Changes since 1.26: +5 -4 lines
Diff to previous 1.26 (colored) next main 1.27 (colored)

Pull up following revision(s) (requested by maxv in ticket #857):
	sys/arch/arm/xscale/ixp425_if_npe.c: revision 1.29
Initialize 'error'.
Can't test, but obvious enough apparently.
Found by Brainy.

Revision 1.29 / (download) - annotate - [select for diffs], Sun Jun 28 15:13:28 2015 UTC (8 years, 9 months ago) by maxv
Branch: MAIN
CVS Tags: nick-nhusb-base-20151226, nick-nhusb-base-20150921
Changes since 1.28: +5 -4 lines
Diff to previous 1.28 (colored)

Initialize 'error'.

Can't test, but obvious enough apparently.

Found by Brainy.

Revision 1.27.2.1 / (download) - annotate - [select for diffs], Sat Jun 6 14:39:57 2015 UTC (8 years, 10 months ago) by skrll
Branch: nick-nhusb
Changes since 1.27: +3 -3 lines
Diff to previous 1.27 (colored)

Sync with HEAD

Revision 1.28 / (download) - annotate - [select for diffs], Mon Apr 13 21:18:41 2015 UTC (9 years ago) by riastradh
Branch: MAIN
CVS Tags: nick-nhusb-base-20150606
Changes since 1.27: +3 -3 lines
Diff to previous 1.27 (colored)

MD rnd.h cleanups.  Please let me know if I broke anything!

Revision 1.27 / (download) - annotate - [select for diffs], Sat Oct 18 08:33:24 2014 UTC (9 years, 6 months ago) by snj
Branch: MAIN
CVS Tags: nick-nhusb-base-20150406, nick-nhusb-base
Branch point for: nick-nhusb
Changes since 1.26: +3 -3 lines
Diff to previous 1.26 (colored)

src is too big these days to tolerate superfluous apostrophes.  It's
"its", people!

Revision 1.23.2.1 / (download) - annotate - [select for diffs], Wed Aug 20 00:02:48 2014 UTC (9 years, 7 months ago) by tls
Branch: tls-maxphys
Changes since 1.23: +3 -3 lines
Diff to previous 1.23 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.26 / (download) - annotate - [select for diffs], Sun Aug 10 16:44:33 2014 UTC (9 years, 8 months ago) by tls
Branch: MAIN
CVS Tags: tls-maxphys-base, netbsd-7-base, netbsd-7-0-RC1
Branch point for: netbsd-7
Changes since 1.25: +3 -3 lines
Diff to previous 1.25 (colored)

Merge tls-earlyentropy branch into HEAD.

Revision 1.25.2.1 / (download) - annotate - [select for diffs], Mon Apr 7 03:37:30 2014 UTC (10 years ago) by tls
Branch: tls-earlyentropy
Changes since 1.25: +3 -3 lines
Diff to previous 1.25 (colored) next main 1.26 (colored)

Be a little more clear and consistent about harvesting entropy from devices:

1) deprecate RND_FLAG_NO_ESTIMATE

2) define RND_FLAG_COLLECT_TIME, RND_FLAG_COLLECT_VALUE

3) define RND_FLAG_ESTIMATE_TIME, RND_FLAG_ESTIMATE_VALUE

4) define RND_FLAG_DEFAULT: RND_FLAG_COLLECT_TIME|
   RND_FLAG_COLLECT_VALUE|RND_FLAG_ESTIMATE_TIME

5) Make entropy harvesting from environmental sensors a little more generic
   and remove it from individual sensor drivers.

6) Remove individual open-coded delta-estimators for values from a few
   places in the tree (uvm, environmental drivers).

7) 0 -> RND_FLAG_DEFAULT, actually gather entropy from various drivers
   that had stubbed out code, other minor cleanups.

Revision 1.25 / (download) - annotate - [select for diffs], Thu Mar 20 06:48:54 2014 UTC (10 years ago) by skrll
Branch: MAIN
CVS Tags: yamt-pagecache-base9, tls-earlyentropy-base, rmind-smpnet-nbase, rmind-smpnet-base, riastradh-xf86-video-intel-2-7-1-pre-2-21-15
Branch point for: tls-earlyentropy
Changes since 1.24: +2 -3 lines
Diff to previous 1.24 (colored)

Mechanically replace simplelock with kmutex_t.

Revision 1.24 / (download) - annotate - [select for diffs], Mon Feb 24 10:47:46 2014 UTC (10 years, 1 month ago) by martin
Branch: MAIN
CVS Tags: riastradh-drm2-base3
Changes since 1.23: +3 -2 lines
Diff to previous 1.23 (colored)

Explicitly include <sys/simplelock.h> for now (untill Nick kills it
for real), to make it compile.

Revision 1.20.2.2 / (download) - annotate - [select for diffs], Tue Oct 30 17:19:10 2012 UTC (11 years, 5 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.20.2.1: +69 -60 lines
Diff to previous 1.20.2.1 (colored) to branchpoint 1.20 (colored) next main 1.21 (colored)

sync with head

Revision 1.23 / (download) - annotate - [select for diffs], Sun Jul 22 14:32:50 2012 UTC (11 years, 8 months ago) by matt
Branch: MAIN
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, rmind-smpnet, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, khorben-n900, agc-symver-base, agc-symver
Branch point for: tls-maxphys
Changes since 1.22: +69 -60 lines
Diff to previous 1.22 (colored)

Fix mii_statchg to take a 'struct ifnet *' instead of device_t.  This fixes
problem with a common MDIO bus used for multiple interfaces.
Some drivers converted to CFATTACL_DECL_NEW.

Revision 1.20.2.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:06:07 2012 UTC (12 years ago) by yamt
Branch: yamt-pagecache
Changes since 1.20: +5 -19 lines
Diff to previous 1.20 (colored)

sync with head

Revision 1.21.2.1 / (download) - annotate - [select for diffs], Sat Feb 18 07:31:34 2012 UTC (12 years, 1 month ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.21: +4 -18 lines
Diff to previous 1.21 (colored) next main 1.22 (colored)

merge to -current.

Revision 1.22 / (download) - annotate - [select for diffs], Thu Feb 2 19:42:58 2012 UTC (12 years, 2 months ago) by tls
Branch: MAIN
CVS Tags: yamt-pagecache-base5, yamt-pagecache-base4, 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, 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
Changes since 1.21: +4 -18 lines
Diff to previous 1.21 (colored)

Entropy-pool implementation move and cleanup.

1) Move core entropy-pool code and source/sink/sample management code
   to sys/kern from sys/dev.

2) Remove use of NRND as test for presence of entropy-pool code throughout
   source tree.

3) Remove use of RND_ENABLED in device drivers as microoptimization to
   avoid expensive operations on disabled entropy sources; make the
   rnd_add calls do this directly so all callers benefit.

4) Fix bug in recent rnd_add_data()/rnd_add_uint32() changes that might
   have lead to slight entropy overestimation for some sources.

5) Add new source types for environmental sensors, power sensors, VM
   system events, and skew between clocks, with a sample implementation
   for each.

ok releng to go in before the branch due to the difficulty of later
pullup (widespread #ifdef removal and moved files).  Tested with release
builds on amd64 and evbarm and live testing on amd64.

Revision 1.21 / (download) - annotate - [select for diffs], Sat Nov 19 22:51:19 2011 UTC (12 years, 4 months ago) by tls
Branch: MAIN
CVS Tags: jmcneill-usbmp-pre-base2, jmcneill-usbmp-base
Branch point for: jmcneill-usbmp
Changes since 1.20: +3 -3 lines
Diff to previous 1.20 (colored)

First step of random number subsystem rework described in
<20111022023242.BA26F14A158@mail.netbsd.org>.  This change includes
the following:

	An initial cleanup and minor reorganization of the entropy pool
	code in sys/dev/rnd.c and sys/dev/rndpool.c.  Several bugs are
	fixed.  Some effort is made to accumulate entropy more quickly at
	boot time.

	A generic interface, "rndsink", is added, for stream generators to
	request that they be re-keyed with good quality entropy from the pool
	as soon as it is available.

	The arc4random()/arc4randbytes() implementation in libkern is
	adjusted to use the rndsink interface for rekeying, which helps
	address the problem of low-quality keys at boot time.

	An implementation of the FIPS 140-2 statistical tests for random
	number generator quality is provided (libkern/rngtest.c).  This
	is based on Greg Rose's implementation from Qualcomm.

	A new random stream generator, nist_ctr_drbg, is provided.  It is
	based on an implementation of the NIST SP800-90 CTR_DRBG by
	Henric Jungheim.  This generator users AES in a modified counter
	mode to generate a backtracking-resistant random stream.

	An abstraction layer, "cprng", is provided for in-kernel consumers
	of randomness.  The arc4random/arc4randbytes API is deprecated for
	in-kernel use.  It is replaced by "cprng_strong".  The current
	cprng_fast implementation wraps the existing arc4random
	implementation.  The current cprng_strong implementation wraps the
	new CTR_DRBG implementation.  Both interfaces are rekeyed from
	the entropy pool automatically at intervals justifiable from best
	current cryptographic practice.

	In some quick tests, cprng_fast() is about the same speed as
	the old arc4randbytes(), and cprng_strong() is about 20% faster
	than rnd_extract_data().  Performance is expected to improve.

	The AES code in src/crypto/rijndael is no longer an optional
	kernel component, as it is required by cprng_strong, which is
	not an optional kernel component.

	The entropy pool output is subjected to the rngtest tests at
	startup time; if it fails, the system will reboot.  There is
	approximately a 3/10000 chance of a false positive from these
	tests.  Entropy pool _input_ from hardware random numbers is
	subjected to the rngtest tests at attach time, as well as the
	FIPS continuous-output test, to detect bad or stuck hardware
	RNGs; if any are detected, they are detached, but the system
	continues to run.

	A problem with rndctl(8) is fixed -- datastructures with
	pointers in arrays are no longer passed to userspace (this
	was not a security problem, but rather a major issue for
	compat32).  A new kernel will require a new rndctl.

	The sysctl kern.arandom() and kern.urandom() nodes are hooked
	up to the new generators, but the /dev/*random pseudodevices
	are not, yet.

	Manual pages for the new kernel interfaces are forthcoming.

Revision 1.20 / (download) - annotate - [select for diffs], Fri Jul 1 20:32:51 2011 UTC (12 years, 9 months ago) by dyoung
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, jmcneill-audiomp3-base, jmcneill-audiomp3
Branch point for: yamt-pagecache
Changes since 1.19: +3 -3 lines
Diff to previous 1.19 (colored)

#include <sys/bus.h> instead of <machine/bus.h>.

Revision 1.8.10.4 / (download) - annotate - [select for diffs], Wed Aug 11 22:51:42 2010 UTC (13 years, 8 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.8.10.3: +4 -6 lines
Diff to previous 1.8.10.3 (colored) to branchpoint 1.8 (colored) next main 1.9 (colored)

sync with head.

Revision 1.18.4.1 / (download) - annotate - [select for diffs], Sun May 30 05:16:38 2010 UTC (13 years, 10 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.18: +4 -6 lines
Diff to previous 1.18 (colored) next main 1.19 (colored)

sync with head

Revision 1.18.2.1 / (download) - annotate - [select for diffs], Fri Apr 30 14:39:09 2010 UTC (13 years, 11 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.18: +4 -6 lines
Diff to previous 1.18 (colored) next main 1.19 (colored)

Sync with HEAD.

Revision 1.19 / (download) - annotate - [select for diffs], Mon Apr 5 07:19:29 2010 UTC (14 years ago) by joerg
Branch: MAIN
CVS Tags: yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base7, uebayasi-xip-base6, uebayasi-xip-base5, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, uebayasi-xip-base1, rmind-uvmplock-nbase, rmind-uvmplock-base, matt-mips64-premerge-20101231, jym-xensuspend-nbase, jym-xensuspend-base, jruoho-x86intr-base, jruoho-x86intr, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Changes since 1.18: +4 -6 lines
Diff to previous 1.18 (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.8.10.3 / (download) - annotate - [select for diffs], Thu Mar 11 15:02:07 2010 UTC (14 years, 1 month ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.8.10.2: +4 -11 lines
Diff to previous 1.8.10.2 (colored) to branchpoint 1.8 (colored)

sync with head

Revision 1.18 / (download) - annotate - [select for diffs], Tue Jan 19 22:06:19 2010 UTC (14 years, 2 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.17: +4 -11 lines
Diff to previous 1.17 (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.9.14.1 / (download) - annotate - [select for diffs], Wed May 13 17:16:18 2009 UTC (14 years, 11 months ago) by jym
Branch: jym-xensuspend
Changes since 1.9: +329 -93 lines
Diff to previous 1.9 (colored) next main 1.10 (colored)

Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.

Revision 1.8.10.2 / (download) - annotate - [select for diffs], Mon May 4 08:10:45 2009 UTC (14 years, 11 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.8.10.1: +329 -93 lines
Diff to previous 1.8.10.1 (colored) to branchpoint 1.8 (colored)

sync with head.

Revision 1.9.8.1 / (download) - annotate - [select for diffs], Tue Apr 28 07:33:46 2009 UTC (14 years, 11 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.9: +329 -93 lines
Diff to previous 1.9 (colored) next main 1.10 (colored)

Sync with HEAD.

Revision 1.17 / (download) - annotate - [select for diffs], Thu Mar 12 13:15:13 2009 UTC (15 years, 1 month ago) by msaitoh
Branch: 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, matt-premerge-20091211, jymxensuspend-base
Changes since 1.16: +22 -2 lines
Diff to previous 1.16 (colored)

Add rnd stuff.

Revision 1.16 / (download) - annotate - [select for diffs], Wed Mar 11 16:30:20 2009 UTC (15 years, 1 month ago) by msaitoh
Branch: MAIN
Changes since 1.15: +43 -2 lines
Diff to previous 1.15 (colored)

Bug fixes phase5.

 - Catch NPE_NOTIFYMACRECOVERYDONE from NPE, reset MAC and send
   NPE_MACRECOVERYSTART to NPE. This sequence is very important :-|
   (It's easy to reproduce)

 - Don't call tsleep() in interrupt context.

 - Add randomness of the transmit deferwhen a collision occured (like CSR)

 - fix DPRINTFn() in npe_cpu_reset()

Revision 1.15 / (download) - annotate - [select for diffs], Wed Mar 11 14:51:19 2009 UTC (15 years, 1 month ago) by msaitoh
Branch: MAIN
Changes since 1.14: +20 -38 lines
Diff to previous 1.14 (colored)

Make MII stuff more generic.
Use macro.

Revision 1.14 / (download) - annotate - [select for diffs], Wed Mar 11 13:20:30 2009 UTC (15 years, 1 month ago) by msaitoh
Branch: MAIN
Changes since 1.13: +3 -8 lines
Diff to previous 1.13 (colored)

Read MAC address register before reset (to get IPL(e.g. redboot)'s setting).

Revision 1.13 / (download) - annotate - [select for diffs], Wed Mar 11 12:16:12 2009 UTC (15 years, 1 month ago) by msaitoh
Branch: MAIN
Changes since 1.12: +97 -30 lines
Diff to previous 1.12 (colored)

Bug fixes phase 3 (and one enhancement).

 - fix if_init(), if_stop(), if_start() and ifioctl().
   Some of these bugfixes are required to use multicast filter's fix(rev. 1.11)

 - Prevent linkdown when only the promisc flag changed.

Revision 1.12 / (download) - annotate - [select for diffs], Wed Mar 11 11:36:33 2009 UTC (15 years, 1 month ago) by msaitoh
Branch: MAIN
Changes since 1.11: +6 -5 lines
Diff to previous 1.11 (colored)

Change TX threshold from 0x08 to 0x18. This value is the same as CSR 2.4.
Use macro.

Revision 1.11 / (download) - annotate - [select for diffs], Tue Mar 10 17:09:48 2009 UTC (15 years, 1 month ago) by msaitoh
Branch: MAIN
Changes since 1.10: +140 -20 lines
Diff to previous 1.10 (colored)

some bug fixes

 - Set the flag to use multicast filter...
   Without this flag and with a shared hub, the MAC gets ALL packets and the
   packets will be forwarded if the forwarding is enabled. It results in DUP!

 - Workaround for "Non-Intel XScale Technology Eratta" No. 29.
   AA:BB:CC:DD:EE:xF's packet (the 2nd nibble from LSB is the same as the
   MAC's one) had matched the filter (both unicast and multicast).

 - Check if too {short,long} frame.

 - Add the MD hook to get MAC address

Revision 1.10 / (download) - annotate - [select for diffs], Tue Mar 10 14:42:31 2009 UTC (15 years, 1 month ago) by msaitoh
Branch: MAIN
Changes since 1.9: +14 -4 lines
Diff to previous 1.9 (colored)

some bugfixes

 - Fix incorrect memset from FreeBSD CVS rev. 1.10 (SVN rev 183886)

 - Fix the bus_dmamap_create() call to prevent extra npe_defrag() call.
   Fixed by Hikaru Abe.

 - Add missing bpf_mtap() call in RX.

 - Add ETHERCAP_VLAN_MTU flag

Revision 1.8.6.1 / (download) - annotate - [select for diffs], Mon Jun 2 13:21:56 2008 UTC (15 years, 10 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.8: +2 -2 lines
Diff to previous 1.8 (colored) next main 1.9 (colored)

Sync with HEAD.

Revision 1.8.8.1 / (download) - annotate - [select for diffs], Sun May 18 12:31:41 2008 UTC (15 years, 11 months ago) by yamt
Branch: yamt-pf42
Changes since 1.8: +2 -2 lines
Diff to previous 1.8 (colored) next main 1.9 (colored)

sync with head.

Revision 1.8.10.1 / (download) - annotate - [select for diffs], Fri May 16 02:22:04 2008 UTC (15 years, 11 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.8: +2 -2 lines
Diff to previous 1.8 (colored)

sync with head.

Revision 1.9 / (download) - annotate - [select for diffs], Sun Apr 27 18:58:45 2008 UTC (15 years, 11 months ago) by matt
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, nick-hppapmap-base2, 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, mjf-devfs2-base, 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-nbase2, haad-dm-base2, haad-dm-base1, haad-dm-base, haad-dm, ad-audiomp2-base, ad-audiomp2
Branch point for: nick-hppapmap, jym-xensuspend
Changes since 1.8: +2 -2 lines
Diff to previous 1.8 (colored)

Merge kernel changes in matt-armv6 to HEAD.

Revision 1.4.12.3 / (download) - annotate - [select for diffs], Sun Mar 23 02:03:56 2008 UTC (16 years ago) by matt
Branch: matt-armv6
Changes since 1.4.12.2: +16 -25 lines
Diff to previous 1.4.12.2 (colored) to branchpoint 1.4 (colored) next main 1.5 (colored)

sync with HEAD

Revision 1.4.6.1 / (download) - annotate - [select for diffs], Thu Feb 28 21:47:46 2008 UTC (16 years, 1 month ago) by rjs
Branch: hpcarm-cleanup
Changes since 1.4: +19 -28 lines
Diff to previous 1.4 (colored) next main 1.5 (colored)

Sync with HEAD.

Revision 1.5.2.1 / (download) - annotate - [select for diffs], Mon Feb 18 21:04:24 2008 UTC (16 years, 2 months ago) by mjf
Branch: mjf-devfs
Changes since 1.5: +19 -28 lines
Diff to previous 1.5 (colored) next main 1.6 (colored)

Sync with HEAD.

Revision 1.2.4.5 / (download) - annotate - [select for diffs], Mon Feb 4 09:21:46 2008 UTC (16 years, 2 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.2.4.4: +2 -3 lines
Diff to previous 1.2.4.4 (colored) to branchpoint 1.2 (colored) next main 1.3 (colored)

sync with head.

Revision 1.4.10.3 / (download) - annotate - [select for diffs], Sun Jan 27 13:08:39 2008 UTC (16 years, 2 months ago) by chris
Branch: chris-arm-intr-rework
Changes since 1.4.10.2: +2 -3 lines
Diff to previous 1.4.10.2 (colored) to branchpoint 1.4 (colored) next main 1.5 (colored)

Sync to HEAD.

Revision 1.8 / (download) - annotate - [select for diffs], Sat Jan 26 10:46:39 2008 UTC (16 years, 2 months ago) by scw
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base, yamt-nfs-mp-base, yamt-lazymbuf-base15, yamt-lazymbuf-base14, nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, matt-armv6-nbase, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-base, chris-arm-intr-rework-base7, chris-arm-intr-rework-base6, chris-arm-intr-rework-base5, ad-socklock-base1
Branch point for: yamt-pf42, yamt-nfs-mp, mjf-devfs2
Changes since 1.7: +2 -3 lines
Diff to previous 1.7 (colored)

g/c an unused variable.

From Donald T Hayford on port-arm@

Revision 1.2.4.4 / (download) - annotate - [select for diffs], Mon Jan 21 09:35:52 2008 UTC (16 years, 2 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.2.4.3: +19 -27 lines
Diff to previous 1.2.4.3 (colored) to branchpoint 1.2 (colored)

sync with head

Revision 1.5.8.2 / (download) - annotate - [select for diffs], Sun Jan 20 17:51:06 2008 UTC (16 years, 2 months ago) by bouyer
Branch: bouyer-xeni386
Changes since 1.5.8.1: +14 -22 lines
Diff to previous 1.5.8.1 (colored) to branchpoint 1.5 (colored) next main 1.6 (colored)

Sync with HEAD

Revision 1.4.10.2 / (download) - annotate - [select for diffs], Sun Jan 20 16:04:08 2008 UTC (16 years, 2 months ago) by chris
Branch: chris-arm-intr-rework
Changes since 1.4.10.1: +19 -27 lines
Diff to previous 1.4.10.1 (colored) to branchpoint 1.4 (colored)

Sync to HEAD.

Revision 1.7 / (download) - annotate - [select for diffs], Sat Jan 19 22:10:14 2008 UTC (16 years, 2 months ago) by dyoung
Branch: MAIN
CVS Tags: chris-arm-intr-rework-base4, bouyer-xeni386-nbase, bouyer-xeni386-base
Changes since 1.6: +16 -24 lines
Diff to previous 1.6 (colored)

Make many ethernet drivers share the common code for MII media
handling, ether_mediastatus() and ether_mediachange().  Check for
a non-ENXIO error return from mii_mediachg().  (ENXIO indicates
that a PHY is suspended.)

This patch shrinks the source code size by 979 lines.  There was
a 5100-byte savings on the NetBSD/i386 kernel configuration, ALL.

I have made a few miscellaneous changes, too:

gem(4): use LIST_EMPTY(), LIST_FOREACH().
mtd(4): handle media ioctls, for a change!
axe(4): do not track link status in sc->axe_link any longer
nfe(4), aue(4), axe(4), udav(4), url(4): do not reset all PHYs
        on a change of media

Except for the change to mtd(4), no functional changes are intended.

XXX This patch affects more architectures than I can feasibly
XXX compile and run.  I have compiled macppc, sparc64, i386.  I
XXX have run the patches on i386 boxen with bnx(4) and sip(4).
XXX Compiling and running on evbmips (MERAKI, ADM5120) is in
XXX progress.

Revision 1.4.12.2 / (download) - annotate - [select for diffs], Wed Jan 9 01:45:27 2008 UTC (16 years, 3 months ago) by matt
Branch: matt-armv6
Changes since 1.4.12.1: +5 -5 lines
Diff to previous 1.4.12.1 (colored) to branchpoint 1.4 (colored)

sync with HEAD

Revision 1.5.8.1 / (download) - annotate - [select for diffs], Tue Jan 8 22:09:34 2008 UTC (16 years, 3 months ago) by bouyer
Branch: bouyer-xeni386
CVS Tags: bouyer-xeni386-merge1
Changes since 1.5: +5 -5 lines
Diff to previous 1.5 (colored)

Sync with HEAD

Revision 1.6 / (download) - annotate - [select for diffs], Tue Jan 8 02:07:52 2008 UTC (16 years, 3 months ago) by matt
Branch: MAIN
CVS Tags: matt-armv6-base
Changes since 1.5: +5 -5 lines
Diff to previous 1.5 (colored)

As of this commit, all arm32 kernel now build.

Revision 1.4.10.1 / (download) - annotate - [select for diffs], Tue Jan 1 15:39:46 2008 UTC (16 years, 3 months ago) by chris
Branch: chris-arm-intr-rework
Changes since 1.4: +2 -2 lines
Diff to previous 1.4 (colored)

Sync with HEAD.

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

sync with HEAD

Revision 1.5 / (download) - annotate - [select for diffs], Wed Oct 17 19:53:43 2007 UTC (16 years, 6 months ago) by garbled
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, vmlocking2-base3, vmlocking2-base2, vmlocking2-base1, vmlocking2, vmlocking-nbase, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, jmcneill-pm-base, jmcneill-base, cube-autoconf-base, cube-autoconf, chris-arm-intr-rework-base3, bouyer-xenamd64-base2, bouyer-xenamd64-base
Branch point for: mjf-devfs, bouyer-xeni386
Changes since 1.4: +2 -2 lines
Diff to previous 1.4 (colored)

Merge the ppcoea-renovation branch to HEAD.

This branch was a major cleanup and rototill of many of the various OEA
cpu based PPC ports that focused on sharing as much code as possible
between the various ports to eliminate near-identical copies of files in
every tree.  Additionally there is a new PIC system that unifies the
interface to interrupt code for all different OEA ppc arches.  The work
for this branch was done by a variety of people, too long to list here.

TODO:
bebox still needs work to complete the transition to -renovation.
ofppc still needs a bunch of work, which I will be looking at.
ev64260 still needs to be renovated
amigappc was not attempted.

NOTES:
pmppc was removed as an arch, and moved to a evbppc target.

Revision 1.3.10.1 / (download) - annotate - [select for diffs], Wed Oct 3 19:22:47 2007 UTC (16 years, 6 months ago) by garbled
Branch: ppcoea-renovation
Changes since 1.3: +3 -3 lines
Diff to previous 1.3 (colored) next main 1.4 (colored)

Sync with HEAD

Revision 1.2.4.3 / (download) - annotate - [select for diffs], Mon Sep 3 14:23:27 2007 UTC (16 years, 7 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.2.4.2: +9 -9 lines
Diff to previous 1.2.4.2 (colored) to branchpoint 1.2 (colored)

sync with head.

Revision 1.3.2.1 / (download) - annotate - [select for diffs], Sun Jul 15 13:15:39 2007 UTC (16 years, 9 months ago) by ad
Branch: vmlocking
Changes since 1.3: +3 -3 lines
Diff to previous 1.3 (colored) next main 1.4 (colored)

Sync with head.

Revision 1.3.4.1 / (download) - annotate - [select for diffs], Wed Jul 11 19:58:12 2007 UTC (16 years, 9 months ago) by mjf
Branch: mjf-ufs-trans
Changes since 1.3: +3 -3 lines
Diff to previous 1.3 (colored) next main 1.4 (colored)

Sync with head.

Revision 1.4 / (download) - annotate - [select for diffs], Mon Jul 9 20:52:06 2007 UTC (16 years, 9 months ago) by ad
Branch: MAIN
CVS Tags: yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, vmlocking-base, ppcoea-renovation-base, nick-csl-alignment-base5, nick-csl-alignment-base, nick-csl-alignment, mjf-ufs-trans-base, matt-mips64-base, matt-mips64, jmcneill-pm, chris-arm-intr-rework-base2, chris-arm-intr-rework-base, bouyer-xenamd64
Branch point for: matt-armv6, hpcarm-cleanup, chris-arm-intr-rework
Changes since 1.3: +3 -3 lines
Diff to previous 1.3 (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.2.8.1 / (download) - annotate - [select for diffs], Mon Mar 12 05:47:08 2007 UTC (17 years, 1 month ago) by rmind
Branch: yamt-idlelwp
Changes since 1.2: +8 -8 lines
Diff to previous 1.2 (colored) next main 1.3 (colored)

Sync with HEAD.

Revision 1.3 / (download) - annotate - [select for diffs], Sun Mar 4 05:59:38 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, ppcoea-renovation, mjf-ufs-trans
Changes since 1.2: +8 -8 lines
Diff to previous 1.2 (colored)

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

Revision 1.2.6.2 / (download) - annotate - [select for diffs], Fri Jan 12 01:00:42 2007 UTC (17 years, 3 months ago) by ad
Branch: newlock2
Changes since 1.2.6.1: +1468 -0 lines
Diff to previous 1.2.6.1 (colored) to branchpoint 1.2 (colored) next main 1.3 (colored)

Sync with head.

Revision 1.2.4.2 / (download) - annotate - [select for diffs], Sat Dec 30 20:45:37 2006 UTC (17 years, 3 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.2.4.1: +1468 -0 lines
Diff to previous 1.2.4.1 (colored) to branchpoint 1.2 (colored)

sync with head.

Revision 1.2.2.2 / (download) - annotate - [select for diffs], Mon Dec 18 11:42:04 2006 UTC (17 years, 4 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.2.2.1: +1468 -0 lines
Diff to previous 1.2.2.1 (colored) to branchpoint 1.2 (colored) next main 1.3 (colored)

sync with head.

Revision 1.2.6.1, Sun Dec 10 10:30:55 2006 UTC (17 years, 4 months ago) by ad
Branch: newlock2
Changes since 1.2: +0 -1468 lines
FILE REMOVED

file ixp425_if_npe.c was added on branch newlock2 on 2007-01-12 01:00:42 +0000

Revision 1.2.4.1, Sun Dec 10 10:30:55 2006 UTC (17 years, 4 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.2: +0 -1468 lines
FILE REMOVED

file ixp425_if_npe.c was added on branch yamt-lazymbuf on 2006-12-30 20:45:37 +0000

Revision 1.2.2.1, Sun Dec 10 10:30:55 2006 UTC (17 years, 4 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.2: +0 -1468 lines
FILE REMOVED

file ixp425_if_npe.c was added on branch yamt-splraiseipl on 2006-12-18 11:42:04 +0000

Revision 1.2 / (download) - annotate - [select for diffs], Sun Dec 10 10:30:55 2006 UTC (17 years, 4 months ago) by scw
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, post-newlock2-merge, newlock2-nbase, newlock2-base, ad-audiomp-base, ad-audiomp
Branch point for: yamt-splraiseipl, yamt-lazymbuf, yamt-idlelwp, newlock2
Changes since 1.1: +3 -3 lines
Diff to previous 1.1 (colored)

Repeat after me: Compile/Test before commit.

Revision 1.1 / (download) - annotate - [select for diffs], Sun Dec 10 10:01:49 2006 UTC (17 years, 4 months ago) by scw
Branch: MAIN

Add a port of Sam Leffler's IXP425 micro-engine support (from FreeBSD).

This is very much a work in progress. At the present time, only Ethernet
is supported.

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>