The NetBSD Project

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

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.153 / (download) - annotate - [select for diffs], Mon Oct 11 02:42:46 2021 UTC (2 years, 5 months ago) by rin
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.152: +5 -10 lines
Diff to previous 1.152 (colored) to selected 1.133 (colored)

epget: Tiny clean up for 16-bit buses.

- (offset & 1) must be zero, since IP header is aligned.

- Use bus_space_read_1(9) instead of bus_space_read_multi_1(9) for
  single-byte read.

Revision 1.142.2.2 / (download) - annotate - [select for diffs], Wed Apr 8 14:08:06 2020 UTC (3 years, 11 months ago) by martin
Branch: phil-wifi
Changes since 1.142.2.1: +21 -17 lines
Diff to previous 1.142.2.1 (colored) to branchpoint 1.142 (colored) next main 1.143 (colored) to selected 1.133 (colored)

Merge changes from current as of 20200406

Revision 1.149.4.1 / (download) - annotate - [select for diffs], Sat Feb 29 20:19:08 2020 UTC (4 years ago) by ad
Branch: ad-namecache
Changes since 1.149: +21 -17 lines
Diff to previous 1.149 (colored) next main 1.150 (colored) to selected 1.133 (colored)

Sync with head.

Revision 1.152 / (download) - annotate - [select for diffs], Fri Feb 7 01:19:46 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.151: +9 -6 lines
Diff to previous 1.151 (colored) to selected 1.133 (colored)

Use callout_setfunc() / callout_schedule().

Revision 1.151 / (download) - annotate - [select for diffs], Tue Feb 4 05:25:39 2020 UTC (4 years, 1 month ago) by thorpej
Branch: MAIN
Changes since 1.150: +5 -5 lines
Diff to previous 1.150 (colored) to selected 1.133 (colored)

Use ifmedia_fini().

Revision 1.150 / (download) - annotate - [select for diffs], Wed Jan 29 14:17:27 2020 UTC (4 years, 2 months ago) by thorpej
Branch: MAIN
Changes since 1.149: +11 -10 lines
Diff to previous 1.149 (colored) to selected 1.133 (colored)

Adopt <net/if_stats.h>.

Revision 1.142.2.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:07:10 2019 UTC (4 years, 9 months ago) by christos
Branch: phil-wifi
Changes since 1.142: +63 -65 lines
Diff to previous 1.142 (colored) to selected 1.133 (colored)

Sync with HEAD

Revision 1.149 / (download) - annotate - [select for diffs], Wed May 29 06:17:28 2019 UTC (4 years, 10 months ago) by msaitoh
Branch: MAIN
CVS Tags: phil-wifi-20191119, 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, ad-namecache-base2, ad-namecache-base1, ad-namecache-base
Branch point for: ad-namecache
Changes since 1.148: +37 -36 lines
Diff to previous 1.148 (colored) to selected 1.133 (colored)

No functional change:
 - Simplify MII structure initialization and reference.
 - KNF

Revision 1.148 / (download) - annotate - [select for diffs], Fri May 24 06:26:38 2019 UTC (4 years, 10 months ago) by msaitoh
Branch: MAIN
Changes since 1.147: +13 -13 lines
Diff to previous 1.147 (colored) to selected 1.133 (colored)

 Whilespace fix. No functional change.

Revision 1.147 / (download) - annotate - [select for diffs], Mon Apr 22 07:51:16 2019 UTC (4 years, 11 months ago) by msaitoh
Branch: MAIN
Changes since 1.146: +3 -9 lines
Diff to previous 1.146 (colored) to selected 1.133 (colored)

 In drivers which use MII(4) and have hook SIOC[GS]IFMEDIA which just pass to
ifmedia_ioctl(), the hook is not required because ether_ioctl has it
(if_ethersubr.c rev. 1.160). These drivers don't return ENETRESET in
ifmedia_ioctl(), so no functional change.

Revision 1.146 / (download) - annotate - [select for diffs], Tue Feb 5 06:17:02 2019 UTC (5 years, 1 month ago) by msaitoh
Branch: MAIN
CVS Tags: isaki-audio2-base, isaki-audio2
Changes since 1.145: +3 -4 lines
Diff to previous 1.145 (colored) to selected 1.133 (colored)

 Remove very old IFF_NOTRAILERS flag.

Revision 1.145 / (download) - annotate - [select for diffs], Sun Feb 3 03:19:27 2019 UTC (5 years, 1 month ago) by mrg
Branch: MAIN
Changes since 1.144: +3 -2 lines
Diff to previous 1.144 (colored) to selected 1.133 (colored)

- add or adjust /* FALLTHROUGH */ where appropriate
- add __unreachable() after functions that can return but won't in
  this case, and thus can't be marked __dead easily

Revision 1.140.14.4 / (download) - annotate - [select for diffs], Sat Jan 26 22:00:06 2019 UTC (5 years, 2 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.140.14.3: +14 -11 lines
Diff to previous 1.140.14.3 (colored) to branchpoint 1.140 (colored) next main 1.141 (colored) to selected 1.133 (colored)

Sync with HEAD

Revision 1.144 / (download) - annotate - [select for diffs], Tue Jan 22 03:42:26 2019 UTC (5 years, 2 months ago) by msaitoh
Branch: MAIN
CVS Tags: pgoyette-compat-20190127
Changes since 1.143: +14 -11 lines
Diff to previous 1.143 (colored) to selected 1.133 (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.140.14.3 / (download) - annotate - [select for diffs], Thu Sep 6 06:55:49 2018 UTC (5 years, 6 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.140.14.2: +3 -3 lines
Diff to previous 1.140.14.2 (colored) to branchpoint 1.140 (colored) to selected 1.133 (colored)

Sync with HEAD

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

Revision 1.143 / (download) - annotate - [select for diffs], Mon Sep 3 16:29:31 2018 UTC (5 years, 6 months ago) by riastradh
Branch: MAIN
CVS Tags: pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906
Changes since 1.142: +3 -3 lines
Diff to previous 1.142 (colored) to selected 1.133 (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.140.14.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.140.14.1: +3 -3 lines
Diff to previous 1.140.14.1 (colored) to branchpoint 1.140 (colored) to selected 1.133 (colored)

Sync with HEAD

Revision 1.140.8.1 / (download) - annotate - [select for diffs], Thu Jul 26 23:55:29 2018 UTC (5 years, 8 months ago) by snj
Branch: netbsd-8
CVS Tags: netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1
Changes since 1.140: +2 -4 lines
Diff to previous 1.140 (colored) next main 1.141 (colored) to selected 1.133 (colored)

Pull up following revision(s) (requested by msaitoh in ticket #938):
	sys/arch/acorn32/podulebus/if_ie.c: revision 1.41
	sys/arch/amiga/dev/if_es.c: revision 1.58
	sys/arch/amiga/dev/if_qn.c: revision 1.45
	sys/arch/arm/at91/at91emac.c: revision 1.20
	sys/arch/arm/ep93xx/epe.c: revision 1.37
	sys/arch/emips/ebus/if_le_ebus.c: revision 1.14
	sys/arch/emips/ebus/if_le_ebus.c: revision 1.15
	sys/arch/mac68k/dev/if_mc.c: revision 1.46
	sys/arch/macppc/dev/am79c950.c: revision 1.39
	sys/arch/newsmips/apbus/if_sn.c: revision 1.40
	sys/arch/next68k/dev/mb8795.c: revision 1.59
	sys/arch/playstation2/dev/if_smap.c: revision 1.25
	sys/arch/playstation2/dev/if_smap.c: revision 1.26
	sys/arch/sun2/dev/if_ec.c: revision 1.28
	sys/arch/sun3/dev/if_ie.c: revision 1.63
	sys/arch/x68k/dev/if_ne_intio.c: revision 1.19
	sys/arch/xen/xen/if_xennet_xenbus.c: revision 1.75
	sys/arch/xen/xen/xennetback_xenbus.c: revision 1.63
	sys/dev/bi/if_ni.c: revision 1.45
	sys/dev/cadence/if_cemac.c: revision 1.12
	sys/dev/ic/am7990.c: revision 1.78
	sys/dev/ic/am79900.c: revision 1.27
	sys/dev/ic/an.c: revision 1.67
	sys/dev/ic/cs89x0.c: revision 1.40
	sys/dev/ic/dm9000.c: revision 1.13
	sys/dev/ic/dm9000.c: revision 1.14
	sys/dev/ic/dp8390.c: revision 1.88
	sys/dev/ic/elink3.c: revision 1.141
	sys/dev/ic/elinkxl.c: revision 1.122
	sys/dev/ic/hme.c: revision 1.98
	sys/dev/ic/i82586.c: revision 1.77
	sys/dev/ic/lance.c: revision 1.53
	sys/dev/ic/mb86950.c: revision 1.27
	sys/dev/ic/mb86960.c: revision 1.86
	sys/dev/ic/mtd803.c: revision 1.34
	sys/dev/ic/pdq_ifsubr.c: revision 1.59
	sys/dev/ic/rrunner.c: revision 1.86
	sys/dev/ic/seeq8005.c: revision 1.58
	sys/dev/ic/sgec.c: revision 1.47
	sys/dev/ic/smc90cx6.c: revision 1.72
	sys/dev/ic/smc91cxx.c: revision 1.96
	sys/dev/ic/tropic.c: revision 1.49
	sys/dev/ic/wi.c: revision 1.245
	sys/dev/isa/if_eg.c: revision 1.93
	sys/dev/isa/if_el.c: revision 1.95
	sys/dev/isa/if_iy.c: revision 1.101
	sys/dev/ofw/ofnet.c: revision 1.58
	sys/dev/pci/if_alc.c: revision 1.27
	sys/dev/pci/if_de.c: revision 1.152
	sys/dev/pci/if_fpa.c: revision 1.61
	sys/dev/pci/if_jme.c: revision 1.34
	sys/dev/pci/if_tl.c: revision 1.108
	sys/dev/pci/if_vte.c: revision 1.19
	sys/dev/pci/ixgbe/ixgbe.h: revision 1.50
	sys/dev/pcmcia/if_cnw.c: revision 1.62
	sys/dev/pcmcia/if_malo_pcmcia.c: revision 1.17
	sys/dev/pcmcia/if_ray.c: revision 1.89
	sys/dev/pcmcia/if_xi.c: revision 1.81
	sys/dev/pcmcia/mhzc.c: revision 1.51
	sys/dev/pcmcia/xirc.c: revision 1.34
	sys/dev/qbus/if_de.c: revision 1.33
	sys/dev/qbus/if_qe.c: revision 1.78
	sys/dev/qbus/if_qt.c: revision 1.22
	sys/dev/sbus/be.c: revision 1.87
	sys/dev/sbus/qe.c: revision 1.68
	sys/dev/scsipi/if_se.c: revision 1.96
	sys/dev/usb/if_atu.c: revision 1.59
	sys/net/if_l2tp.c: revision 1.28 via patch
	sys/net/if_ppp.c: revision 1.160
It's not required to include net/bpfdesc.h. Remove it.
--
Simplify like other drivers. NULL check of ifp->if_bpf is done in
bpf_mtap(), so it's not required to do it here.
--
Remove duplicated inclusion of net/bpf.h.
--
Remove duplicated inclusion of net/bpf.h.
--
Simplify bpf_mtap() call. No functional change.

Revision 1.142 / (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.141: +3 -3 lines
Diff to previous 1.141 (colored) to selected 1.133 (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.140.14.1 / (download) - annotate - [select for diffs], Mon Jun 25 07:25:50 2018 UTC (5 years, 9 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.140: +2 -4 lines
Diff to previous 1.140 (colored) to selected 1.133 (colored)

Sync with HEAD

Revision 1.141 / (download) - annotate - [select for diffs], Fri Jun 22 04:17:42 2018 UTC (5 years, 9 months ago) by msaitoh
Branch: MAIN
CVS Tags: pgoyette-compat-0625
Changes since 1.140: +2 -4 lines
Diff to previous 1.140 (colored) to selected 1.133 (colored)

 It's not required to include net/bpfdesc.h. Remove it.

Revision 1.133.2.3 / (download) - annotate - [select for diffs], Sun Dec 3 11:37:03 2017 UTC (6 years, 3 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.133.2.2: +5 -15 lines
Diff to previous 1.133.2.2 (colored) next main 1.134 (colored) to selected 1.133 (colored)

update from HEAD

Revision 1.135.4.5 / (download) - annotate - [select for diffs], Sun Feb 5 13:40:28 2017 UTC (7 years, 1 month ago) by skrll
Branch: nick-nhusb
Changes since 1.135.4.4: +2 -10 lines
Diff to previous 1.135.4.4 (colored) to branchpoint 1.135 (colored) next main 1.136 (colored) to selected 1.133 (colored)

Sync with HEAD

Revision 1.138.2.2 / (download) - annotate - [select for diffs], Sat Jan 7 08:56:31 2017 UTC (7 years, 2 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.138.2.1: +2 -10 lines
Diff to previous 1.138.2.1 (colored) to branchpoint 1.138 (colored) next main 1.139 (colored) to selected 1.133 (colored)

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

Revision 1.140 / (download) - annotate - [select for diffs], Thu Dec 15 09:28:05 2016 UTC (7 years, 3 months ago) by ozaki-r
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-localcount-20170107, pgoyette-compat-base, 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, nick-nhusb-base-20170204, netbsd-8-base, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, matt-nb8-mediatek-base, matt-nb8-mediatek, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: pgoyette-compat, netbsd-8
Changes since 1.139: +2 -10 lines
Diff to previous 1.139 (colored) to selected 1.133 (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.138.2.1 / (download) - annotate - [select for diffs], Fri Nov 4 14:49:08 2016 UTC (7 years, 4 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.138: +4 -6 lines
Diff to previous 1.138 (colored) to selected 1.133 (colored)

Sync with HEAD

Revision 1.135.4.4 / (download) - annotate - [select for diffs], Wed Oct 5 20:55:41 2016 UTC (7 years, 5 months ago) by skrll
Branch: nick-nhusb
Changes since 1.135.4.3: +4 -6 lines
Diff to previous 1.135.4.3 (colored) to branchpoint 1.135 (colored) to selected 1.133 (colored)

Sync with HEAD

Revision 1.139 / (download) - annotate - [select for diffs], Sun Oct 2 14:16:02 2016 UTC (7 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: pgoyette-localcount-20161104, nick-nhusb-base-20161204, nick-nhusb-base-20161004
Changes since 1.138: +4 -6 lines
Diff to previous 1.138 (colored) to selected 1.133 (colored)

MFREE -> m_free

Revision 1.135.4.3 / (download) - annotate - [select for diffs], Sat Jul 9 20:25:02 2016 UTC (7 years, 8 months ago) by skrll
Branch: nick-nhusb
Changes since 1.135.4.2: +3 -3 lines
Diff to previous 1.135.4.2 (colored) to branchpoint 1.135 (colored) to selected 1.133 (colored)

Sync with HEAD

Revision 1.138 / (download) - annotate - [select for diffs], Fri Jun 10 13:27:13 2016 UTC (7 years, 9 months ago) by ozaki-r
Branch: MAIN
CVS Tags: pgoyette-localcount-base, pgoyette-localcount-20160806, pgoyette-localcount-20160726, nick-nhusb-base-20160907, localcount-20160914
Branch point for: pgoyette-localcount
Changes since 1.137: +3 -3 lines
Diff to previous 1.137 (colored) to selected 1.133 (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.135.4.2 / (download) - annotate - [select for diffs], Sat Mar 19 11:30:09 2016 UTC (8 years ago) by skrll
Branch: nick-nhusb
Changes since 1.135.4.1: +3 -3 lines
Diff to previous 1.135.4.1 (colored) to branchpoint 1.135 (colored) to selected 1.133 (colored)

Sync with HEAD

Revision 1.137 / (download) - annotate - [select for diffs], Tue Feb 9 08:32:10 2016 UTC (8 years, 1 month ago) by ozaki-r
Branch: MAIN
CVS Tags: nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319
Changes since 1.136: +3 -3 lines
Diff to previous 1.136 (colored) to selected 1.133 (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.135.4.1 / (download) - annotate - [select for diffs], Sat Jun 6 14:40:07 2015 UTC (8 years, 9 months ago) by skrll
Branch: nick-nhusb
Changes since 1.135: +3 -3 lines
Diff to previous 1.135 (colored) to selected 1.133 (colored)

Sync with HEAD

Revision 1.136 / (download) - annotate - [select for diffs], Mon Apr 13 16:33:24 2015 UTC (8 years, 11 months ago) by riastradh
Branch: MAIN
CVS Tags: nick-nhusb-base-20151226, nick-nhusb-base-20150921, nick-nhusb-base-20150606
Changes since 1.135: +3 -3 lines
Diff to previous 1.135 (colored) to selected 1.133 (colored)

Convert sys/dev to use <sys/rndsource.h>.

Revision 1.133.2.2 / (download) - annotate - [select for diffs], Wed Aug 20 00:03:38 2014 UTC (9 years, 7 months ago) by tls
Branch: tls-maxphys
Changes since 1.133.2.1: +3 -3 lines
Diff to previous 1.133.2.1 (colored) to selected 1.133 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.135 / (download) - annotate - [select for diffs], Sun Aug 10 16:44:35 2014 UTC (9 years, 7 months ago) by tls
Branch: MAIN
CVS Tags: tls-maxphys-base, nick-nhusb-base-20150406, nick-nhusb-base, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7
Branch point for: nick-nhusb
Changes since 1.134: +3 -3 lines
Diff to previous 1.134 (colored) to selected 1.133 (colored)

Merge tls-earlyentropy branch into HEAD.

Revision 1.134.10.1 / (download) - annotate - [select for diffs], Mon Apr 7 03:37:32 2014 UTC (9 years, 11 months ago) by tls
Branch: tls-earlyentropy
Changes since 1.134: +3 -3 lines
Diff to previous 1.134 (colored) next main 1.135 (colored) to selected 1.133 (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.133.2.1 / (download) - annotate - [select for diffs], Tue Nov 20 03:02:04 2012 UTC (11 years, 4 months ago) by tls
Branch: tls-maxphys
Changes since 1.133: +4 -4 lines
Diff to previous 1.133 (colored)

Resync to 2012-11-19 00:00:00 UTC

Revision 1.131.8.2 / (download) - annotate - [select for diffs], Tue Oct 30 17:21:02 2012 UTC (11 years, 5 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.131.8.1: +7 -7 lines
Diff to previous 1.131.8.1 (colored) to branchpoint 1.131 (colored) next main 1.132 (colored) to selected 1.133 (colored)

sync with head

Revision 1.134 / (download) - annotate - [select for diffs], Sat Oct 27 17:18:20 2012 UTC (11 years, 5 months ago) by chs
Branch: MAIN
CVS Tags: yamt-pagecache-base9, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, tls-earlyentropy-base, 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, khorben-n900, agc-symver-base, agc-symver
Branch point for: tls-earlyentropy
Changes since 1.133: +4 -4 lines
Diff to previous 1.133 (colored)

split device_t/softc for all remaining drivers.
replace "struct device *" with "device_t".
use device_xname(), device_unit(), etc.

Revision 1.133 / (download) - annotate - [selected], Sun Jul 22 14:32:56 2012 UTC (11 years, 8 months ago) by matt
Branch: MAIN
Branch point for: tls-maxphys
Changes since 1.132: +5 -5 lines
Diff to previous 1.132 (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.131.8.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:07:33 2012 UTC (11 years, 11 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.131: +2 -11 lines
Diff to previous 1.131 (colored) to selected 1.133 (colored)

sync with head

Revision 1.131.12.1 / (download) - annotate - [select for diffs], Sat Feb 18 07:34:17 2012 UTC (12 years, 1 month ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.131: +2 -11 lines
Diff to previous 1.131 (colored) next main 1.132 (colored) to selected 1.133 (colored)

merge to -current.

Revision 1.132 / (download) - annotate - [select for diffs], Thu Feb 2 19:43:03 2012 UTC (12 years, 1 month 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.131: +2 -11 lines
Diff to previous 1.131 (colored) to selected 1.133 (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.125.4.5 / (download) - annotate - [select for diffs], Wed Aug 11 22:53:25 2010 UTC (13 years, 7 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.125.4.4: +4 -6 lines
Diff to previous 1.125.4.4 (colored) to branchpoint 1.125 (colored) next main 1.126 (colored) to selected 1.133 (colored)

sync with head.

Revision 1.130.4.1 / (download) - annotate - [select for diffs], Sun May 30 05:17:21 2010 UTC (13 years, 10 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.130: +4 -6 lines
Diff to previous 1.130 (colored) next main 1.131 (colored) to selected 1.133 (colored)

sync with head

Revision 1.130.2.1 / (download) - annotate - [select for diffs], Fri Apr 30 14:43:14 2010 UTC (13 years, 11 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.130: +4 -6 lines
Diff to previous 1.130 (colored) next main 1.131 (colored) to selected 1.133 (colored)

Sync with HEAD.

Revision 1.131 / (download) - annotate - [select for diffs], Mon Apr 5 07:19:34 2010 UTC (13 years, 11 months 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, matt-mips64-premerge-20101231, jruoho-x86intr-base, jruoho-x86intr, jmcneill-usbmp-pre-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.130: +4 -6 lines
Diff to previous 1.130 (colored) to selected 1.133 (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.125.4.4 / (download) - annotate - [select for diffs], Thu Mar 11 15:03:30 2010 UTC (14 years ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.125.4.3: +4 -11 lines
Diff to previous 1.125.4.3 (colored) to branchpoint 1.125 (colored) to selected 1.133 (colored)

sync with head

Revision 1.130 / (download) - annotate - [select for diffs], Tue Jan 19 22:06:24 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.129: +4 -11 lines
Diff to previous 1.129 (colored) to selected 1.133 (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.125.4.3 / (download) - annotate - [select for diffs], Wed Sep 16 13:37:47 2009 UTC (14 years, 6 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.125.4.2: +18 -22 lines
Diff to previous 1.125.4.2 (colored) to branchpoint 1.125 (colored) to selected 1.133 (colored)

sync with head

Revision 1.129 / (download) - annotate - [select for diffs], Tue Sep 15 19:20:29 2009 UTC (14 years, 6 months ago) by dyoung
Branch: MAIN
CVS Tags: yamt-nfs-mp-base8, matt-premerge-20091211, jym-xensuspend-nbase
Changes since 1.128: +6 -16 lines
Diff to previous 1.128 (colored) to selected 1.133 (colored)

Simplify activation routines: don't call mii_activate(), it's a
no-op.  Don't block interrupts, if_deactivate() does it.
Compile-tested, only.

Revision 1.128 / (download) - annotate - [select for diffs], Sat Sep 5 12:30:59 2009 UTC (14 years, 6 months ago) by tsutsui
Branch: MAIN
Changes since 1.127: +14 -8 lines
Diff to previous 1.127 (colored) to selected 1.133 (colored)

Replace shutdownhook_establish(9) with pmf_device_register1(9) in
MI epconfig() and ep_detach(), and remove pmf(9) calls in pcmcia attachment.
Tested on ep0 at pci, but pcmcia attachment is untested.

Revision 1.125.4.2 / (download) - annotate - [select for diffs], Mon May 4 08:12:41 2009 UTC (14 years, 10 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.125.4.1: +80 -137 lines
Diff to previous 1.125.4.1 (colored) to branchpoint 1.125 (colored) to selected 1.133 (colored)

sync with head.

Revision 1.126.6.1 / (download) - annotate - [select for diffs], Sun Oct 19 22:16:26 2008 UTC (15 years, 5 months ago) by haad
Branch: haad-dm
Changes since 1.126: +80 -137 lines
Diff to previous 1.126 (colored) next main 1.127 (colored) to selected 1.133 (colored)

Sync with HEAD.

Revision 1.124.16.2 / (download) - annotate - [select for diffs], Sun Sep 28 10:40:22 2008 UTC (15 years, 6 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.124.16.1: +78 -135 lines
Diff to previous 1.124.16.1 (colored) to branchpoint 1.124 (colored) next main 1.125 (colored) to selected 1.133 (colored)

Sync with HEAD.

Revision 1.126.2.1 / (download) - annotate - [select for diffs], Thu Sep 18 04:35:04 2008 UTC (15 years, 6 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.126: +80 -137 lines
Diff to previous 1.126 (colored) next main 1.127 (colored) to selected 1.133 (colored)

Sync with wrstuden-revivesa-base-2.

Revision 1.127 / (download) - annotate - [select for diffs], Wed Aug 27 05:33:47 2008 UTC (15 years, 7 months ago) by christos
Branch: MAIN
CVS Tags: yamt-nfs-mp-base7, yamt-nfs-mp-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base4, yamt-nfs-mp-base3, wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base2, nick-hppapmap-base, nick-hppapmap, 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, jymxensuspend-base, jym-xensuspend-base, jym-xensuspend, haad-nbase2, haad-dm-base2, haad-dm-base1, haad-dm-base, ad-audiomp2-base, ad-audiomp2
Changes since 1.126: +80 -137 lines
Diff to previous 1.126 (colored) to selected 1.133 (colored)

device_t changes, pmf, minor knf.

Revision 1.124.16.1 / (download) - annotate - [select for diffs], Mon Jun 2 13:23:21 2008 UTC (15 years, 9 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.124: +29 -39 lines
Diff to previous 1.124 (colored) to selected 1.133 (colored)

Sync with HEAD.

Revision 1.125.2.1 / (download) - annotate - [select for diffs], Sun May 18 12:33:42 2008 UTC (15 years, 10 months ago) by yamt
Branch: yamt-pf42
Changes since 1.125: +2 -9 lines
Diff to previous 1.125 (colored) next main 1.126 (colored) to selected 1.133 (colored)

sync with head.

Revision 1.125.4.1 / (download) - annotate - [select for diffs], Fri May 16 02:24:03 2008 UTC (15 years, 10 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.125: +2 -9 lines
Diff to previous 1.125 (colored) to selected 1.133 (colored)

sync with head.

Revision 1.126 / (download) - annotate - [select for diffs], Mon Apr 28 20:23:49 2008 UTC (15 years, 11 months ago) by martin
Branch: MAIN
CVS Tags: yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-nfs-mp-base2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, simonb-wapbl-nbase, simonb-wapbl-base, simonb-wapbl, hpcarm-cleanup-nbase
Branch point for: wrstuden-revivesa, haad-dm
Changes since 1.125: +2 -9 lines
Diff to previous 1.125 (colored) to selected 1.133 (colored)

Remove clause 3 and 4 from TNF licenses

Revision 1.125 / (download) - annotate - [select for diffs], Tue Apr 8 12:07:26 2008 UTC (15 years, 11 months 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.124: +29 -32 lines
Diff to previous 1.124 (colored) to selected 1.133 (colored)

use aprint_*_dev and device_xname

Revision 1.123.2.1 / (download) - annotate - [select for diffs], Tue Nov 6 23:26:35 2007 UTC (16 years, 4 months ago) by matt
Branch: matt-armv6
CVS Tags: matt-armv6-prevmlocking
Changes since 1.123: +5 -5 lines
Diff to previous 1.123 (colored) next main 1.124 (colored) to selected 1.133 (colored)

sync with HEAD

Revision 1.112.2.4 / (download) - annotate - [select for diffs], Sat Oct 27 11:30:39 2007 UTC (16 years, 5 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.112.2.3: +5 -5 lines
Diff to previous 1.112.2.3 (colored) to branchpoint 1.112 (colored) next main 1.113 (colored) to selected 1.133 (colored)

sync with head.

Revision 1.122.6.2 / (download) - annotate - [select for diffs], Fri Oct 26 15:44:43 2007 UTC (16 years, 5 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.122.6.1: +5 -5 lines
Diff to previous 1.122.6.1 (colored) to branchpoint 1.122 (colored) next main 1.123 (colored) to selected 1.133 (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.123.6.1 / (download) - annotate - [select for diffs], Thu Oct 25 22:37:38 2007 UTC (16 years, 5 months ago) by bouyer
Branch: bouyer-xenamd64
Changes since 1.123: +5 -5 lines
Diff to previous 1.123 (colored) next main 1.124 (colored) to selected 1.133 (colored)

Sync with HEAD.

Revision 1.121.2.3 / (download) - annotate - [select for diffs], Tue Oct 23 20:07:22 2007 UTC (16 years, 5 months ago) by ad
Branch: vmlocking
Changes since 1.121.2.2: +5 -5 lines
Diff to previous 1.121.2.2 (colored) to branchpoint 1.121 (colored) next main 1.122 (colored) to selected 1.133 (colored)

Sync with head.

Revision 1.124 / (download) - annotate - [select for diffs], Fri Oct 19 11:59:51 2007 UTC (16 years, 5 months ago) by ad
Branch: MAIN
CVS Tags: yamt-lazymbuf-base15, yamt-lazymbuf-base14, yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, vmlocking2-base3, vmlocking2-base2, vmlocking2-base1, vmlocking2, vmlocking-nbase, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, mjf-devfs, matt-armv6-nbase, matt-armv6-base, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, jmcneill-pm-base, jmcneill-base, hpcarm-cleanup-base, cube-autoconf-base, cube-autoconf, bouyer-xeni386-nbase, bouyer-xeni386-merge1, bouyer-xeni386-base, bouyer-xeni386, bouyer-xenamd64-base2, bouyer-xenamd64-base, ad-socklock-base1
Branch point for: mjf-devfs2
Changes since 1.123: +5 -5 lines
Diff to previous 1.123 (colored) to selected 1.133 (colored)

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

Revision 1.121.2.2 / (download) - annotate - [select for diffs], Tue Oct 9 13:41:23 2007 UTC (16 years, 5 months ago) by ad
Branch: vmlocking
Changes since 1.121.2.1: +5 -5 lines
Diff to previous 1.121.2.1 (colored) to branchpoint 1.121 (colored) to selected 1.133 (colored)

Sync with head.

Revision 1.122.6.1 / (download) - annotate - [select for diffs], Mon Sep 3 16:47:59 2007 UTC (16 years, 6 months ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.122: +5 -5 lines
Diff to previous 1.122 (colored) to selected 1.133 (colored)

Sync with HEAD.

Revision 1.112.2.3 / (download) - annotate - [select for diffs], Mon Sep 3 14:34:31 2007 UTC (16 years, 6 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.112.2.2: +12 -12 lines
Diff to previous 1.112.2.2 (colored) to branchpoint 1.112 (colored) to selected 1.133 (colored)

sync with head.

Revision 1.122.2.1 / (download) - annotate - [select for diffs], Mon Sep 3 10:20:19 2007 UTC (16 years, 6 months ago) by skrll
Branch: nick-csl-alignment
Changes since 1.122: +5 -5 lines
Diff to previous 1.122 (colored) next main 1.123 (colored) to selected 1.133 (colored)

Sync with HEAD.

Revision 1.123 / (download) - annotate - [select for diffs], Mon Aug 27 14:48:54 2007 UTC (16 years, 7 months ago) by dyoung
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, vmlocking-base, nick-csl-alignment-base5
Branch point for: matt-armv6, bouyer-xenamd64
Changes since 1.122: +5 -5 lines
Diff to previous 1.122 (colored) to selected 1.133 (colored)

Constify: use CLLADDR() instead of LLADDR() wherever possible.

Revision 1.121.4.1 / (download) - annotate - [select for diffs], Wed Jul 11 20:05:46 2007 UTC (16 years, 8 months ago) by mjf
Branch: mjf-ufs-trans
Changes since 1.121: +4 -4 lines
Diff to previous 1.121 (colored) next main 1.122 (colored) to selected 1.133 (colored)

Sync with head.

Revision 1.122 / (download) - annotate - [select for diffs], Mon Jul 9 21:00:35 2007 UTC (16 years, 8 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.121: +4 -4 lines
Diff to previous 1.121 (colored) to selected 1.133 (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.121.2.1 / (download) - annotate - [select for diffs], Sun Jul 1 21:47:47 2007 UTC (16 years, 9 months ago) by ad
Branch: vmlocking
Changes since 1.121: +4 -4 lines
Diff to previous 1.121 (colored) to selected 1.133 (colored)

Adapt to callout API change.

Revision 1.120.4.1 / (download) - annotate - [select for diffs], Mon Mar 12 05:53:31 2007 UTC (17 years ago) by rmind
Branch: yamt-idlelwp
Changes since 1.120: +7 -7 lines
Diff to previous 1.120 (colored) next main 1.121 (colored) to selected 1.133 (colored)

Sync with HEAD.

Revision 1.121 / (download) - annotate - [select for diffs], Sun Mar 4 06:01:54 2007 UTC (17 years 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.120: +7 -7 lines
Diff to previous 1.120 (colored) to selected 1.133 (colored)

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

Revision 1.112.2.2 / (download) - annotate - [select for diffs], Sat Dec 30 20:48:02 2006 UTC (17 years, 3 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.112.2.1: +29 -6 lines
Diff to previous 1.112.2.1 (colored) to branchpoint 1.112 (colored) to selected 1.133 (colored)

sync with head.

Revision 1.118.4.2 / (download) - annotate - [select for diffs], Sun Dec 10 07:17:05 2006 UTC (17 years, 3 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.118.4.1: +3 -3 lines
Diff to previous 1.118.4.1 (colored) to branchpoint 1.118 (colored) next main 1.119 (colored) to selected 1.133 (colored)

sync with head.

Revision 1.118.2.1 / (download) - annotate - [select for diffs], Sat Nov 18 21:34:11 2006 UTC (17 years, 4 months ago) by ad
Branch: newlock2
Changes since 1.118: +3 -5 lines
Diff to previous 1.118 (colored) next main 1.119 (colored) to selected 1.133 (colored)

Sync with head.

Revision 1.120 / (download) - annotate - [select for diffs], Thu Nov 16 01:32:51 2006 UTC (17 years, 4 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, netbsd-4, matt-nb4-arm-base, matt-nb4-arm, ad-audiomp-base, ad-audiomp
Branch point for: yamt-idlelwp
Changes since 1.119: +3 -3 lines
Diff to previous 1.119 (colored) to selected 1.133 (colored)

__unused removal on arguments; approved by core.

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

sync with head

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

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

Revision 1.115.2.3 / (download) - annotate - [select for diffs], Thu Sep 14 12:31:29 2006 UTC (17 years, 6 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.115.2.2: +2 -3 lines
Diff to previous 1.115.2.2 (colored) to branchpoint 1.115 (colored) next main 1.116 (colored) to selected 1.133 (colored)

sync with head.

Revision 1.114.4.1 / (download) - annotate - [select for diffs], Sat Sep 9 02:50:02 2006 UTC (17 years, 6 months ago) by rpaulo
Branch: rpaulo-netinet-merge-pcb
Changes since 1.114: +32 -7 lines
Diff to previous 1.114 (colored) next main 1.115 (colored) to selected 1.133 (colored)

sync with head

Revision 1.118 / (download) - annotate - [select for diffs], Thu Sep 7 02:40:32 2006 UTC (17 years, 6 months ago) by dogcow
Branch: MAIN
CVS Tags: yamt-splraiseipl-base, yamt-pdpolicy-base9, rpaulo-netinet-merge-pcb-base
Branch point for: yamt-splraiseipl, newlock2
Changes since 1.117: +2 -3 lines
Diff to previous 1.117 (colored) to selected 1.133 (colored)

remove more vestiges of CCITT, LLC, HDLC, NS, and NSIP.

Revision 1.115.2.2 / (download) - annotate - [select for diffs], Fri Aug 11 15:44:11 2006 UTC (17 years, 7 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.115.2.1: +28 -2 lines
Diff to previous 1.115.2.1 (colored) to branchpoint 1.115 (colored) to selected 1.133 (colored)

sync with head

Revision 1.116.2.1 / (download) - annotate - [select for diffs], Thu Jul 13 17:49:22 2006 UTC (17 years, 8 months ago) by gdamore
Branch: gdamore-uart
Changes since 1.116: +28 -2 lines
Diff to previous 1.116 (colored) next main 1.117 (colored) to selected 1.133 (colored)

Merge from HEAD.

Revision 1.117 / (download) - annotate - [select for diffs], Tue Jul 11 22:49:47 2006 UTC (17 years, 8 months ago) by peter
Branch: MAIN
CVS Tags: yamt-pdpolicy-base8, yamt-pdpolicy-base7, abandoned-netbsd-4-base, abandoned-netbsd-4
Changes since 1.116: +28 -2 lines
Diff to previous 1.116 (colored) to selected 1.133 (colored)

Add power hooks for "ep* at pcmcia?".

ok christos@

Revision 1.115.2.1 / (download) - annotate - [select for diffs], Mon Jun 26 12:51:01 2006 UTC (17 years, 9 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.115: +4 -3 lines
Diff to previous 1.115 (colored) to selected 1.133 (colored)

sync with head.

Revision 1.112.2.1 / (download) - annotate - [select for diffs], Wed Jun 21 15:02:54 2006 UTC (17 years, 9 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.112: +8 -8 lines
Diff to previous 1.112 (colored) to selected 1.133 (colored)

sync with head.

Revision 1.115.8.1 / (download) - annotate - [select for diffs], Mon Jun 19 03:58:13 2006 UTC (17 years, 9 months ago) by chap
Branch: chap-midi
Changes since 1.115: +4 -3 lines
Diff to previous 1.115 (colored) next main 1.116 (colored) to selected 1.133 (colored)

Sync with head.

Revision 1.114.6.2 / (download) - annotate - [select for diffs], Wed Jun 7 16:05:41 2006 UTC (17 years, 9 months ago) by kardel
Branch: simonb-timecounters
Changes since 1.114.6.1: +4 -3 lines
Diff to previous 1.114.6.1 (colored) next main 1.115 (colored) to selected 1.133 (colored)

Sync with head.

Revision 1.116 / (download) - annotate - [select for diffs], Wed Jun 7 15:34:47 2006 UTC (17 years, 9 months ago) by nakayama
Branch: MAIN
CVS Tags: yamt-pdpolicy-base6, simonb-timecounters-base, gdamore-uart-base, chap-midi-nbase, chap-midi-base
Branch point for: gdamore-uart
Changes since 1.115: +4 -3 lines
Diff to previous 1.115 (colored) to selected 1.133 (colored)

Add void cast to functions whose return values are ignored.

Revision 1.114.6.1 / (download) - annotate - [select for diffs], Sat Apr 22 11:38:55 2006 UTC (17 years, 11 months ago) by simonb
Branch: simonb-timecounters
CVS Tags: simonb-timcounters-final
Changes since 1.114: +4 -5 lines
Diff to previous 1.114 (colored) to selected 1.133 (colored)

Sync with head.

Revision 1.114.2.1 / (download) - annotate - [select for diffs], Wed Mar 1 09:28:12 2006 UTC (18 years, 1 month ago) by yamt
Branch: yamt-uio_vmspace
Changes since 1.114: +4 -5 lines
Diff to previous 1.114 (colored) next main 1.115 (colored) to selected 1.133 (colored)

sync with head.

Revision 1.115 / (download) - annotate - [select for diffs], Mon Feb 20 16:50:37 2006 UTC (18 years, 1 month ago) by thorpej
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5, yamt-pdpolicy-base5, yamt-pdpolicy-base4, yamt-pdpolicy-base3, yamt-pdpolicy-base2, yamt-pdpolicy-base, peter-altq-base, peter-altq, elad-kernelauth-base, elad-kernelauth
Branch point for: yamt-pdpolicy, chap-midi
Changes since 1.114: +4 -5 lines
Diff to previous 1.114 (colored) to selected 1.133 (colored)

Use device_is_active() rather than testing dv_flags for DVF_ACTIVE
directly.

Revision 1.114 / (download) - annotate - [select for diffs], Sat Dec 24 20:27:30 2005 UTC (18 years, 3 months ago) by perry
Branch: MAIN
Branch point for: yamt-uio_vmspace, simonb-timecounters, rpaulo-netinet-merge-pcb
Changes since 1.113: +4 -4 lines
Diff to previous 1.113 (colored) to selected 1.133 (colored)

Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete.

Revision 1.113 / (download) - annotate - [select for diffs], Sun Dec 11 12:21:26 2005 UTC (18 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.112: +2 -2 lines
Diff to previous 1.112 (colored) to selected 1.133 (colored)

merge ktrace-lwp.

Revision 1.106.2.8 / (download) - annotate - [select for diffs], Thu Nov 10 14:04:14 2005 UTC (18 years, 4 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.106.2.7: +3 -3 lines
Diff to previous 1.106.2.7 (colored) to branchpoint 1.106 (colored) next main 1.107 (colored) to selected 1.133 (colored)

Sync with HEAD. Here we go again...

Revision 1.112 / (download) - annotate - [select for diffs], Mon May 30 04:43:46 2005 UTC (18 years, 10 months ago) by christos
Branch: MAIN
CVS Tags: yamt-vop-base3, yamt-vop-base2, yamt-vop-base, yamt-vop, yamt-readahead-pervnode, yamt-readahead-perfile, yamt-readahead-base3, yamt-readahead-base2, yamt-readahead-base, yamt-readahead, thorpej-vnode-attr-base, thorpej-vnode-attr, ktrace-lwp-base
Branch point for: yamt-lazymbuf
Changes since 1.111: +3 -3 lines
Diff to previous 1.111 (colored) to selected 1.133 (colored)

- add missing const
- fix variable shadowing
- remove unneeded casts

Revision 1.109.2.1 / (download) - annotate - [select for diffs], Fri Apr 29 11:28:49 2005 UTC (18 years, 11 months ago) by kent
Branch: kent-audio2
Changes since 1.109: +46 -47 lines
Diff to previous 1.109 (colored) next main 1.110 (colored) to selected 1.133 (colored)

sync with -current

Revision 1.109.4.2 / (download) - annotate - [select for diffs], Sat Mar 19 08:34:02 2005 UTC (19 years ago) by yamt
Branch: yamt-km
Changes since 1.109.4.1: +10 -10 lines
Diff to previous 1.109.4.1 (colored) to branchpoint 1.109 (colored) next main 1.110 (colored) to selected 1.133 (colored)

sync with head.  xen and whitespace.  xen part is not finished.

Revision 1.106.2.7 / (download) - annotate - [select for diffs], Fri Mar 4 16:41:28 2005 UTC (19 years ago) by skrll
Branch: ktrace-lwp
Changes since 1.106.2.6: +10 -10 lines
Diff to previous 1.106.2.6 (colored) to branchpoint 1.106 (colored) to selected 1.133 (colored)

Sync with HEAD.

Hi Perry!

Revision 1.111 / (download) - annotate - [select for diffs], Sun Feb 27 00:27:01 2005 UTC (19 years, 1 month ago) by perry
Branch: MAIN
CVS Tags: yamt-km-base4, yamt-km-base3, netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, netbsd-3, kent-audio2-base
Changes since 1.110: +10 -10 lines
Diff to previous 1.110 (colored) to selected 1.133 (colored)

nuke trailing whitespace

Revision 1.109.4.1 / (download) - annotate - [select for diffs], Sat Feb 12 18:17:43 2005 UTC (19 years, 1 month ago) by yamt
Branch: yamt-km
Changes since 1.109: +38 -39 lines
Diff to previous 1.109 (colored) to selected 1.133 (colored)

sync with head.

Revision 1.106.2.6 / (download) - annotate - [select for diffs], Fri Feb 4 11:45:24 2005 UTC (19 years, 1 month ago) by skrll
Branch: ktrace-lwp
Changes since 1.106.2.5: +38 -39 lines
Diff to previous 1.106.2.5 (colored) to branchpoint 1.106 (colored) to selected 1.133 (colored)

Sync with HEAD.

Revision 1.110 / (download) - annotate - [select for diffs], Fri Feb 4 02:10:36 2005 UTC (19 years, 1 month ago) by perry
Branch: MAIN
CVS Tags: yamt-km-base2
Changes since 1.109: +38 -39 lines
Diff to previous 1.109 (colored) to selected 1.133 (colored)

de-__P

Revision 1.106.6.1 / (download) - annotate - [select for diffs], Mon Jan 24 21:41:28 2005 UTC (19 years, 2 months ago) by he
Branch: netbsd-2
CVS Tags: netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1
Changes since 1.106: +4 -3 lines
Diff to previous 1.106 (colored) next main 1.107 (colored) to selected 1.133 (colored)

Pull up revision 1.108 (requested by thorpej in ticket #939):
  When adding or deleting multicast addresses, only change
  the address filter if the interface is marked RUNNING.
  Fixes PR#27678.

Revision 1.106.2.5 / (download) - annotate - [select for diffs], Mon Jan 17 19:30:39 2005 UTC (19 years, 2 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.106.2.4: +4 -3 lines
Diff to previous 1.106.2.4 (colored) to branchpoint 1.106 (colored) to selected 1.133 (colored)

Sync with HEAD.

Revision 1.109 / (download) - annotate - [select for diffs], Tue Jan 11 04:16:27 2005 UTC (19 years, 2 months ago) by briggs
Branch: MAIN
CVS Tags: yamt-km-base
Branch point for: yamt-km, kent-audio2
Changes since 1.108: +4 -3 lines
Diff to previous 1.108 (colored) to selected 1.133 (colored)

In epshutdown(), do not attempt to disable the interface when stopping it
because we're about to write to it again (with a global reset).  Disable
the interface explicitly after the reset is written.

Revision 1.106.2.4 / (download) - annotate - [select for diffs], Tue Nov 2 07:51:30 2004 UTC (19 years, 5 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.106.2.3: +4 -3 lines
Diff to previous 1.106.2.3 (colored) to branchpoint 1.106 (colored) to selected 1.133 (colored)

Sync with HEAD.

Revision 1.108 / (download) - annotate - [select for diffs], Sat Oct 30 18:08:36 2004 UTC (19 years, 5 months ago) by thorpej
Branch: MAIN
CVS Tags: kent-audio1-beforemerge, kent-audio1-base, kent-audio1
Changes since 1.107: +4 -3 lines
Diff to previous 1.107 (colored) to selected 1.133 (colored)

When adding/deleting multicast addresses, only whack the address
filter if the interface is marked RUNNING.

Fixes kern/27678.

Revision 1.106.2.3 / (download) - annotate - [select for diffs], Tue Sep 21 13:27:55 2004 UTC (19 years, 6 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.106.2.2: +2 -2 lines
Diff to previous 1.106.2.2 (colored) to branchpoint 1.106 (colored) to selected 1.133 (colored)

Fix the sync with head I botched.

Revision 1.106.2.2 / (download) - annotate - [select for diffs], Sat Sep 18 14:45:57 2004 UTC (19 years, 6 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.106.2.1: +2 -2 lines
Diff to previous 1.106.2.1 (colored) to branchpoint 1.106 (colored) to selected 1.133 (colored)

Sync with HEAD.

Revision 1.106.2.1 / (download) - annotate - [select for diffs], Thu Aug 12 11:41:24 2004 UTC (19 years, 7 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.106: +16 -13 lines
Diff to previous 1.106 (colored) to selected 1.133 (colored)

Sync with HEAD.

Revision 1.107 / (download) - annotate - [select for diffs], Mon Aug 9 00:25:33 2004 UTC (19 years, 7 months ago) by mycroft
Branch: MAIN
Changes since 1.106: +16 -13 lines
Diff to previous 1.106 (colored) to selected 1.133 (colored)

Eliminate most 8-bit access.  Just the data in/out path remains.

Revision 1.106 / (download) - annotate - [select for diffs], Fri Jan 31 00:26:29 2003 UTC (21 years, 2 months ago) by thorpej
Branch: MAIN
CVS Tags: netbsd-2-base, netbsd-2-0-base, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2-0
Branch point for: netbsd-2, ktrace-lwp
Changes since 1.105: +14 -13 lines
Diff to previous 1.105 (colored) to selected 1.133 (colored)

Use aprint_*().

Revision 1.105 / (download) - annotate - [select for diffs], Mon Jan 20 07:25:04 2003 UTC (21 years, 2 months ago) by simonb
Branch: MAIN
Changes since 1.104: +3 -5 lines
Diff to previous 1.104 (colored) to selected 1.133 (colored)

Remove variables that are only assigned too but not referenced.

Revision 1.87.2.8 / (download) - annotate - [select for diffs], Mon Nov 11 22:09:23 2002 UTC (21 years, 4 months ago) by nathanw
Branch: nathanw_sa
CVS Tags: nathanw_sa_end
Changes since 1.87.2.7: +3 -3 lines
Diff to previous 1.87.2.7 (colored) next main 1.88 (colored) to selected 1.133 (colored)

Catch up to -current

Revision 1.104 / (download) - annotate - [select for diffs], Tue Oct 22 00:01:55 2002 UTC (21 years, 5 months ago) by fair
Branch: MAIN
CVS Tags: nathanw_sa_before_merge, nathanw_sa_base, kqueue-beforemerge, kqueue-aftermerge, gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw, fvdl_fs64_base
Changes since 1.103: +3 -3 lines
Diff to previous 1.103 (colored) to selected 1.133 (colored)

Change the "dontcare bits" argument to ifmedia_init() to IFM_IMASK
so that it is possible select PHY instances other than the first
one (instance zero), if there is more than one PHY attached.

Revision 1.95.2.3 / (download) - annotate - [select for diffs], Sun Jun 23 17:46:20 2002 UTC (21 years, 9 months ago) by jdolecek
Branch: kqueue
Changes since 1.95.2.2: +3 -3 lines
Diff to previous 1.95.2.2 (colored) next main 1.96 (colored) to selected 1.133 (colored)

catch up with -current on kqueue branch

Revision 1.102.8.1 / (download) - annotate - [select for diffs], Thu Jun 20 16:33:04 2002 UTC (21 years, 9 months ago) by gehenna
Branch: gehenna-devsw
Changes since 1.102: +3 -3 lines
Diff to previous 1.102 (colored) next main 1.103 (colored) to selected 1.133 (colored)

catch up with -current.

Revision 1.87.2.7 / (download) - annotate - [select for diffs], Thu Jun 20 03:44:32 2002 UTC (21 years, 9 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.87.2.6: +3 -3 lines
Diff to previous 1.87.2.6 (colored) to selected 1.133 (colored)

Catch up to -current.

Revision 1.103 / (download) - annotate - [select for diffs], Sat Jun 8 16:59:26 2002 UTC (21 years, 9 months ago) by yamt
Branch: MAIN
CVS Tags: kqueue-base, gehenna-devsw-base
Changes since 1.102: +3 -3 lines
Diff to previous 1.102 (colored) to selected 1.133 (colored)

make auto const variables static.

Revision 1.95.2.2 / (download) - annotate - [select for diffs], Thu Jan 10 19:54:27 2002 UTC (22 years, 2 months ago) by thorpej
Branch: kqueue
Changes since 1.95.2.1: +31 -39 lines
Diff to previous 1.95.2.1 (colored) to selected 1.133 (colored)

Sync kqueue branch with -current.

Revision 1.87.2.6 / (download) - annotate - [select for diffs], Tue Jan 8 00:29:42 2002 UTC (22 years, 2 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.87.2.5: +26 -37 lines
Diff to previous 1.87.2.5 (colored) to selected 1.133 (colored)

Catch up to -current.

Revision 1.102 / (download) - annotate - [select for diffs], Fri Dec 28 20:35:46 2001 UTC (22 years, 3 months ago) by christos
Branch: MAIN
CVS Tags: newlock-base, newlock, netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001, netbsd-1-6, ifpoll-base, eeh-devprop-base, eeh-devprop
Branch point for: gehenna-devsw
Changes since 1.101: +22 -33 lines
Diff to previous 1.101 (colored) to selected 1.133 (colored)

Clean up the C_ and S_ constants. We don't really need two sets of them.
Also make the interrupt handler for older 3com cards look like the xl one.
I.e. don't ack the interrupt latch bit before checking if it is set.
At the same time, introduce constants for the watched interrupts, so that
we don't copy them all over the place.

Revision 1.101 / (download) - annotate - [select for diffs], Sat Dec 15 11:41:09 2001 UTC (22 years, 3 months ago) by soren
Branch: MAIN
Changes since 1.100: +6 -6 lines
Diff to previous 1.100 (colored) to selected 1.133 (colored)

Use bus_size_t's for bus space read/write offsets.

Revision 1.87.2.5 / (download) - annotate - [select for diffs], Wed Nov 14 19:14:21 2001 UTC (22 years, 4 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.87.2.4: +6 -3 lines
Diff to previous 1.87.2.4 (colored) to selected 1.133 (colored)

Catch up to -current.

Revision 1.100 / (download) - annotate - [select for diffs], Tue Nov 13 13:14:37 2001 UTC (22 years, 4 months ago) by lukem
Branch: MAIN
Changes since 1.99: +4 -1 lines
Diff to previous 1.99 (colored) to selected 1.133 (colored)

add/cleanup RCSID

Revision 1.98.2.1 / (download) - annotate - [select for diffs], Mon Nov 12 21:18:01 2001 UTC (22 years, 4 months ago) by thorpej
Branch: thorpej-mips-cache
Changes since 1.98: +3 -3 lines
Diff to previous 1.98 (colored) next main 1.99 (colored) to selected 1.133 (colored)

Sync the thorpej-mips-cache branch with -current.

Revision 1.99 / (download) - annotate - [select for diffs], Sat Nov 10 22:48:09 2001 UTC (22 years, 4 months ago) by perry
Branch: MAIN
CVS Tags: thorpej-mips-cache-base
Changes since 1.98: +3 -3 lines
Diff to previous 1.98 (colored) to selected 1.133 (colored)

trivially rename some macro parameters to avoid lint warnings.

Revision 1.97.2.1 / (download) - annotate - [select for diffs], Mon Oct 1 12:45:33 2001 UTC (22 years, 6 months ago) by fvdl
Branch: thorpej-devvp
Changes since 1.97: +2 -2 lines
Diff to previous 1.97 (colored) next main 1.98 (colored) to selected 1.133 (colored)

Catch up with -current.

Revision 1.87.2.4 / (download) - annotate - [select for diffs], Fri Sep 21 22:35:36 2001 UTC (22 years, 6 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.87.2.3: +2 -2 lines
Diff to previous 1.87.2.3 (colored) to selected 1.133 (colored)

Catch up to -current.

Revision 1.98 / (download) - annotate - [select for diffs], Sun Sep 16 16:34:36 2001 UTC (22 years, 6 months ago) by wiz
Branch: MAIN
CVS Tags: thorpej-devvp-base3, thorpej-devvp-base2
Branch point for: thorpej-mips-cache
Changes since 1.97: +2 -2 lines
Diff to previous 1.97 (colored) to selected 1.133 (colored)

Spell 'occurred' with two 'r's.

Revision 1.87.2.3 / (download) - annotate - [select for diffs], Fri Aug 24 00:09:22 2001 UTC (22 years, 7 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.87.2.2: +39 -10 lines
Diff to previous 1.87.2.2 (colored) to selected 1.133 (colored)

Catch up with -current.

Revision 1.95.2.1 / (download) - annotate - [select for diffs], Fri Aug 3 04:12:59 2001 UTC (22 years, 8 months ago) by lukem
Branch: kqueue
Changes since 1.95: +37 -8 lines
Diff to previous 1.95 (colored) to selected 1.133 (colored)

update to -current

Revision 1.97 / (download) - annotate - [select for diffs], Fri Jul 27 02:33:34 2001 UTC (22 years, 8 months ago) by thorpej
Branch: MAIN
CVS Tags: thorpej-devvp-base, pre-chs-ubcperf, post-chs-ubcperf
Branch point for: thorpej-devvp
Changes since 1.96: +8 -1 lines
Diff to previous 1.96 (colored) to selected 1.133 (colored)

All CORKSCREWs have MII.

Revision 1.96 / (download) - annotate - [select for diffs], Fri Jul 20 05:44:48 2001 UTC (22 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.95: +30 -8 lines
Diff to previous 1.95 (colored) to selected 1.133 (colored)

The EEPROM registers/bits are different on the Corkscrew (3c515).  Adjust
for this.

Revision 1.95 / (download) - annotate - [select for diffs], Sat Jul 7 16:13:47 2001 UTC (22 years, 8 months ago) by thorpej
Branch: MAIN
Branch point for: kqueue
Changes since 1.94: +2 -2 lines
Diff to previous 1.94 (colored) to selected 1.133 (colored)

bzero -> memset

Revision 1.94 / (download) - annotate - [select for diffs], Sat Jul 7 15:57:50 2001 UTC (22 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.93: +2 -2 lines
Diff to previous 1.93 (colored) to selected 1.133 (colored)

bcopy -> strcpy

Revision 1.87.2.2 / (download) - annotate - [select for diffs], Thu Jun 21 20:02:28 2001 UTC (22 years, 9 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.87.2.1: +76 -115 lines
Diff to previous 1.87.2.1 (colored) to selected 1.133 (colored)

Catch up to -current.

Revision 1.93 / (download) - annotate - [select for diffs], Wed May 16 20:30:52 2001 UTC (22 years, 10 months ago) by jdolecek
Branch: MAIN
Changes since 1.92: +75 -91 lines
Diff to previous 1.92 (colored) to selected 1.133 (colored)

Make sure to allocate big enough mbuf data area before elevating
interrupt priority, to avoid allocating additional mbufs on
splsched(). Move some other misc bits out of splched()-guarded
section. This should make the code a bit more friendly wrt e.g.
clock interrupts. Sligh performance improvement was observed with
this change (like 1-2% on slow machine), even.

This also fixes ancient kern/2478 by Bill Sommerfeld.

Revision 1.92 / (download) - annotate - [select for diffs], Mon May 14 09:28:49 2001 UTC (22 years, 10 months ago) by jdolecek
Branch: MAIN
Changes since 1.91: +1 -5 lines
Diff to previous 1.91 (colored) to selected 1.133 (colored)

epintr(): eliminate write-only variable 'addrandom'

Revision 1.91 / (download) - annotate - [select for diffs], Mon May 14 08:01:23 2001 UTC (22 years, 10 months ago) by jdolecek
Branch: MAIN
Changes since 1.90: +2 -15 lines
Diff to previous 1.90 (colored) to selected 1.133 (colored)

remove unneeded #includes, fix typo

Revision 1.90 / (download) - annotate - [select for diffs], Mon May 14 07:03:50 2001 UTC (22 years, 10 months ago) by jdolecek
Branch: MAIN
Changes since 1.89: +1 -7 lines
Diff to previous 1.89 (colored) to selected 1.133 (colored)

do not use the synchronous read mode for MCA 3c529

Revision 1.87.2.1 / (download) - annotate - [select for diffs], Mon Apr 9 01:56:12 2001 UTC (22 years, 11 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.87: +45 -92 lines
Diff to previous 1.87 (colored) to selected 1.133 (colored)

Catch up with -current.

Revision 1.59.2.6 / (download) - annotate - [select for diffs], Tue Mar 27 15:31:53 2001 UTC (23 years ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.59.2.5: +45 -92 lines
Diff to previous 1.59.2.5 (colored) next main 1.60 (colored) to selected 1.133 (colored)

Sync with HEAD.

Revision 1.89 / (download) - annotate - [select for diffs], Thu Mar 22 16:54:46 2001 UTC (23 years ago) by jdolecek
Branch: MAIN
CVS Tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base
Changes since 1.88: +10 -3 lines
Diff to previous 1.88 (colored) to selected 1.133 (colored)

Add MCA ep(4) attachment, for 3Com 3c529-type cards. Tested with 3c529-TP,
provided to me by David Brownlee (thanks!).

Performance of this card is quite poor on my PS/2 with 386DX, like 100KB/s
at best, but as low as 5KB/s when transferring bigger files due to
packet overruns. It would be good to revisit this later, probably by
teaching the ic code to use RX Early.

Revision 1.88 / (download) - annotate - [select for diffs], Thu Mar 22 12:00:26 2001 UTC (23 years ago) by jdolecek
Branch: MAIN
Changes since 1.87: +36 -90 lines
Diff to previous 1.87 (colored) to selected 1.133 (colored)

convert to use ether_ioctl()
fix bunch of typos

Revision 1.59.2.5 / (download) - annotate - [select for diffs], Mon Mar 12 13:30:18 2001 UTC (23 years ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.59.2.4: +5 -5 lines
Diff to previous 1.59.2.4 (colored) to selected 1.133 (colored)

Sync with HEAD.

Revision 1.87 / (download) - annotate - [select for diffs], Wed Feb 21 21:39:54 2001 UTC (23 years, 1 month ago) by jdolecek
Branch: MAIN
Branch point for: nathanw_sa
Changes since 1.86: +5 -5 lines
Diff to previous 1.86 (colored) to selected 1.133 (colored)

make some more constant arrays 'const'

Revision 1.59.2.4 / (download) - annotate - [select for diffs], Fri Jan 5 17:35:35 2001 UTC (23 years, 2 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.59.2.3: +4 -3 lines
Diff to previous 1.59.2.3 (colored) to selected 1.133 (colored)

Sync with HEAD

Revision 1.86 / (download) - annotate - [select for diffs], Thu Dec 14 06:27:24 2000 UTC (23 years, 3 months ago) by thorpej
Branch: MAIN
Changes since 1.85: +5 -4 lines
Diff to previous 1.85 (colored) to selected 1.133 (colored)

ALTQ'ify.

Revision 1.59.2.3 / (download) - annotate - [select for diffs], Wed Nov 22 16:03:17 2000 UTC (23 years, 4 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.59.2.2: +1 -8 lines
Diff to previous 1.59.2.2 (colored) to selected 1.133 (colored)

Sync with HEAD.

Revision 1.59.2.2 / (download) - annotate - [select for diffs], Mon Nov 20 11:40:32 2000 UTC (23 years, 4 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.59.2.1: +164 -196 lines
Diff to previous 1.59.2.1 (colored) to selected 1.133 (colored)

Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.

Revision 1.85 / (download) - annotate - [select for diffs], Wed Nov 15 01:02:16 2000 UTC (23 years, 4 months ago) by thorpej
Branch: MAIN
Changes since 1.84: +1 -8 lines
Diff to previous 1.84 (colored) to selected 1.133 (colored)

Move bpfattach()/bpfdetach() calls into ether_ifattach()/ether_ifdetach().

Revision 1.84 / (download) - annotate - [select for diffs], Sun Oct 1 23:32:41 2000 UTC (23 years, 6 months ago) by thorpej
Branch: MAIN
Changes since 1.83: +3 -20 lines
Diff to previous 1.83 (colored) to selected 1.133 (colored)

Move the check for "promisc + unicast + not for us" into ether_input(),
and change Ethernet drivers to always pass all received frames to
ether_input() (with a few exceptions, which are documented in the
code).

Revision 1.83 / (download) - annotate - [select for diffs], Thu Sep 28 10:10:14 2000 UTC (23 years, 6 months ago) by tsutsui
Branch: MAIN
Changes since 1.82: +3 -3 lines
Diff to previous 1.82 (colored) to selected 1.133 (colored)

6 -> ETHER_ADDR_LEN

Revision 1.82 / (download) - annotate - [select for diffs], Mon Aug 21 14:25:14 2000 UTC (23 years, 7 months ago) by thorpej
Branch: MAIN
Changes since 1.81: +18 -8 lines
Diff to previous 1.81 (colored) to selected 1.133 (colored)

Use splsched() instead of splhigh(), and explain why in a comment,
as well as document a pitfall of the approach being used.

Revision 1.80.2.1 / (download) - annotate - [select for diffs], Thu Jun 22 17:06:41 2000 UTC (23 years, 9 months ago) by minoura
Branch: minoura-xpg4dl
Changes since 1.80: +8 -1 lines
Diff to previous 1.80 (colored) next main 1.81 (colored) to selected 1.133 (colored)

Sync w/ netbsd-1-5-base.

Revision 1.81 / (download) - annotate - [select for diffs], Mon May 29 17:37:12 2000 UTC (23 years, 10 months ago) by jhawk
Branch: MAIN
CVS Tags: netbsd-1-5-base, netbsd-1-5-RELEASE, netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2, netbsd-1-5
Changes since 1.80: +8 -1 lines
Diff to previous 1.80 (colored) to selected 1.133 (colored)

For all network drivers that call ether_ifattach(), and also
have _detach() functions:
  Ensure that softc keeps state about whether the attach succeeded,
  and make the detach function return immediately if the attach did
  not complete.

Revision 1.54.2.3 / (download) - annotate - [select for diffs], Thu May 11 09:59:52 2000 UTC (23 years, 10 months ago) by he
Branch: netbsd-1-4
CVS Tags: netbsd-1-4-PATCH003
Changes since 1.54.2.2: +2 -2 lines
Diff to previous 1.54.2.2 (colored) to branchpoint 1.54 (colored) next main 1.55 (colored) to selected 1.133 (colored)

Pull up revision 1.80 (requested by martin):
  Make the 3Com 3C597 Fast Etherlink TX EISA card work.  Fixes PR#7067.

Revision 1.80 / (download) - annotate - [select for diffs], Sun May 7 14:03:25 2000 UTC (23 years, 10 months ago) by martin
Branch: MAIN
CVS Tags: minoura-xpg4dl-base
Branch point for: minoura-xpg4dl
Changes since 1.79: +2 -2 lines
Diff to previous 1.79 (colored) to selected 1.133 (colored)

Avoid stomping on the W0_CONFIG_CTRL register which seems not to be
implemented on EISA cards. This makes a 3Com 3C597 Fast Etherlink TX
work for me at last, fixing PR kern/7067.

Revision 1.79 / (download) - annotate - [select for diffs], Thu Mar 30 12:45:30 2000 UTC (24 years ago) by augustss
Branch: MAIN
Changes since 1.78: +20 -20 lines
Diff to previous 1.78 (colored) to selected 1.133 (colored)

Remove register declarations.

Revision 1.78 / (download) - annotate - [select for diffs], Thu Mar 23 07:01:30 2000 UTC (24 years ago) by thorpej
Branch: MAIN
Changes since 1.77: +13 -9 lines
Diff to previous 1.77 (colored) to selected 1.133 (colored)

New callout mechanism with two major improvements over the old
timeout()/untimeout() API:
- Clients supply callout handle storage, thus eliminating problems of
  resource allocation.
- Insertion and removal of callouts is constant time, important as
  this facility is used quite a lot in the kernel.

The old timeout()/untimeout() API has been removed from the kernel.

Revision 1.77 / (download) - annotate - [select for diffs], Mon Mar 6 21:02:00 2000 UTC (24 years ago) by thorpej
Branch: MAIN
Changes since 1.76: +1 -3 lines
Diff to previous 1.76 (colored) to selected 1.133 (colored)

No longer necessary to futz with ifp->if_baudrate here.

Revision 1.76 / (download) - annotate - [select for diffs], Fri Feb 25 03:39:13 2000 UTC (24 years, 1 month ago) by itojun
Branch: MAIN
Changes since 1.75: +2 -1 lines
Diff to previous 1.75 (colored) to selected 1.133 (colored)

when change mbuf type, clear m_pkthdr so that we do not get panic with
old data in pointer fields.  NOTE: we'll extend m_pkthdr field soon.

Wondering: do mbuf pre-allocation code in elink3.c really buy us much
performance?  it comes with code duplicate/synchronization problem with
sys/mbuf.h...

Revision 1.75 / (download) - annotate - [select for diffs], Tue Feb 8 12:49:12 2000 UTC (24 years, 1 month ago) by enami
Branch: MAIN
CVS Tags: chs-ubc2-newbase
Changes since 1.74: +4 -3 lines
Diff to previous 1.74 (colored) to selected 1.133 (colored)

- Bail out from attach stage if failed to enable card, number of iospace
or memspace is unexpected, failed to map iospace or failed to configure
the controller properly.
- Disestablish an interrupt handler if failed to enable card.

Revision 1.54.2.2 / (download) - annotate - [select for diffs], Sun Feb 6 17:39:39 2000 UTC (24 years, 1 month ago) by he
Branch: netbsd-1-4
CVS Tags: netbsd-1-4-PATCH002
Changes since 1.54.2.1: +116 -52 lines
Diff to previous 1.54.2.1 (colored) to branchpoint 1.54 (colored) to selected 1.133 (colored)

Pull up revisions 1.59-1.63,1.65 (requested by enami):
  Add support for the 3Com 3c574.  Partially based on PR#8331.

Revision 1.74 / (download) - annotate - [select for diffs], Thu Feb 3 06:03:39 2000 UTC (24 years, 2 months ago) by enami
Branch: MAIN
Changes since 1.73: +23 -1 lines
Diff to previous 1.73 (colored) to selected 1.133 (colored)

Detach MII if there is.

Revision 1.73 / (download) - annotate - [select for diffs], Wed Feb 2 17:09:46 2000 UTC (24 years, 2 months ago) by thorpej
Branch: MAIN
Changes since 1.72: +2 -2 lines
Diff to previous 1.72 (colored) to selected 1.133 (colored)

Don't dry to diving MIIF_NOISOLATE in the PHY drivers.  Instead, pass
flags down from the parent to child vi mii_attach().

Revision 1.72 / (download) - annotate - [select for diffs], Wed Feb 2 11:00:48 2000 UTC (24 years, 2 months ago) by augustss
Branch: MAIN
Changes since 1.71: +7 -2 lines
Diff to previous 1.71 (colored) to selected 1.133 (colored)

Detach rnd source in ep_detach().  Check for DVF_ACTIVE in epintr();

Revision 1.71 / (download) - annotate - [select for diffs], Wed Feb 2 08:57:51 2000 UTC (24 years, 2 months ago) by augustss
Branch: MAIN
Changes since 1.70: +9 -6 lines
Diff to previous 1.70 (colored) to selected 1.133 (colored)

Make sure to untimeout() things on detach.

Revision 1.70 / (download) - annotate - [select for diffs], Wed Feb 2 08:41:00 2000 UTC (24 years, 2 months ago) by augustss
Branch: MAIN
Changes since 1.69: +12 -9 lines
Diff to previous 1.69 (colored) to selected 1.133 (colored)

Move detach operations around a little to simplify (and perhaps get it
right?).  Prompted by Jason, itojun and myself.

Revision 1.69 / (download) - annotate - [select for diffs], Wed Feb 2 08:05:26 2000 UTC (24 years, 2 months ago) by thorpej
Branch: MAIN
Changes since 1.68: +2 -2 lines
Diff to previous 1.68 (colored) to selected 1.133 (colored)

Bring some order to the chaos which was the MII code function naming
"conventions".

Revision 1.68 / (download) - annotate - [select for diffs], Wed Feb 2 08:00:21 2000 UTC (24 years, 2 months ago) by augustss
Branch: MAIN
Changes since 1.67: +16 -2 lines
Diff to previous 1.67 (colored) to selected 1.133 (colored)

Make sure to get rid of shutdown hook and ttach media on detach.

Revision 1.58.2.1 / (download) - annotate - [select for diffs], Mon Dec 27 18:34:46 1999 UTC (24 years, 3 months ago) by wrstuden
Branch: wrstuden-devbsize
Changes since 1.58: +160 -173 lines
Diff to previous 1.58 (colored) next main 1.59 (colored) to selected 1.133 (colored)

Pull up to last week's -current.

Revision 1.67 / (download) - annotate - [select for diffs], Fri Nov 19 18:17:14 1999 UTC (24 years, 4 months ago) by thorpej
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221
Changes since 1.66: +42 -121 lines
Diff to previous 1.66 (colored) to selected 1.133 (colored)

Use the common MII bit-bang module.

Revision 1.59.4.1 / (download) - annotate - [select for diffs], Mon Nov 15 00:40:30 1999 UTC (24 years, 4 months ago) by fvdl
Branch: fvdl-softdep
Changes since 1.59: +49 -46 lines
Diff to previous 1.59 (colored) next main 1.60 (colored) to selected 1.133 (colored)

Sync with -current

Revision 1.66 / (download) - annotate - [select for diffs], Fri Nov 12 18:14:17 1999 UTC (24 years, 4 months ago) by thorpej
Branch: MAIN
CVS Tags: fvdl-softdep-base
Changes since 1.65: +4 -3 lines
Diff to previous 1.65 (colored) to selected 1.133 (colored)

Call mii_down() as appropriate.

Revision 1.63.2.1 / (download) - annotate - [select for diffs], Fri Nov 5 11:42:21 1999 UTC (24 years, 4 months ago) by mycroft
Branch: comdex-fall-1999
Changes since 1.63: +1 -9 lines
Diff to previous 1.63 (colored) next main 1.64 (colored) to selected 1.133 (colored)

Pull up 1.65 manually, to skip over API changes.

Revision 1.65 / (download) - annotate - [select for diffs], Thu Nov 4 20:27:11 1999 UTC (24 years, 4 months ago) by thorpej
Branch: MAIN
Changes since 1.64: +1 -9 lines
Diff to previous 1.64 (colored) to selected 1.133 (colored)

Revert this part of rev 1.59:
- Be more conservative when resetting the interface after a transmit error.

It caused the interface to totally wedge on the (somewhat common) transmit
FIFO underrun condition.

Revision 1.64 / (download) - annotate - [select for diffs], Thu Nov 4 00:24:00 1999 UTC (24 years, 5 months ago) by thorpej
Branch: MAIN
Changes since 1.63: +3 -2 lines
Diff to previous 1.63 (colored) to selected 1.133 (colored)

Adapt to mii_phy_probe() change.

Revision 1.63 / (download) - annotate - [select for diffs], Sat Oct 30 12:07:08 1999 UTC (24 years, 5 months ago) by enami
Branch: MAIN
CVS Tags: comdex-fall-1999-base
Branch point for: comdex-fall-1999
Changes since 1.62: +1 -2 lines
Diff to previous 1.62 (colored) to selected 1.133 (colored)

remmove unncecessary empty line.

Revision 1.62 / (download) - annotate - [select for diffs], Sat Oct 30 01:35:47 1999 UTC (24 years, 5 months ago) by enami
Branch: MAIN
Changes since 1.61: +5 -2 lines
Diff to previous 1.61 (colored) to selected 1.133 (colored)

Call epstop at the beginning of epinit, especially to make sure that
ep_tick is untimeouted before new one is scheduled.  This makes 3C574-TX
works at least in 10Mb/s mode.

Revision 1.59.2.1 / (download) - annotate - [select for diffs], Wed Oct 20 22:31:53 1999 UTC (24 years, 5 months ago) by thorpej
Branch: thorpej_scsipi
Changes since 1.59: +40 -33 lines
Diff to previous 1.59 (colored) to selected 1.133 (colored)

Sync w/ trunk.

Revision 1.61 / (download) - annotate - [select for diffs], Wed Oct 20 16:39:11 1999 UTC (24 years, 5 months ago) by enami
Branch: MAIN
Changes since 1.60: +2 -2 lines
Diff to previous 1.60 (colored) to selected 1.133 (colored)

fix typo in previous commit.

Revision 1.60 / (download) - annotate - [select for diffs], Wed Oct 20 16:34:22 1999 UTC (24 years, 5 months ago) by enami
Branch: MAIN
Changes since 1.59: +40 -33 lines
Diff to previous 1.59 (colored) to selected 1.133 (colored)

cosmetic changes before i do some functional changes.

Revision 1.59 / (download) - annotate - [select for diffs], Mon Oct 11 17:48:20 1999 UTC (24 years, 5 months ago) by thorpej
Branch: MAIN
Branch point for: thorpej_scsipi, fvdl-softdep
Changes since 1.58: +81 -18 lines
Diff to previous 1.58 (colored) to selected 1.133 (colored)

- Encapsulate the EEPROM reading code into ep_read_eeprom(), and use
  the correct "read eeprom" opcode on the RoadRunner (which has a larger
  EEPROM, and thus needs a different opcode to make room for the larger
  offsets).
- Reset and enable the MII before probing for PHYs, and reset and enable
  the MII in epinit().
- Be more conservative when resetting the interface after a transmit error.

Based on PR #8331, from Ryoji KATO.

Closer on 3c574, probably will work fine with the 3CCFEM556BI (which
won't have an older rev TDK Semi PHY, and which was tested by the author
of the PR).

Revision 1.54.2.1.2.1 / (download) - annotate - [select for diffs], Mon Jun 21 01:17:44 1999 UTC (24 years, 9 months ago) by thorpej
Branch: chs-ubc2
Changes since 1.54.2.1: +2 -5 lines
Diff to previous 1.54.2.1 (colored) next main 1.54.2.2 (colored) to selected 1.133 (colored)

Sync w/ -current.

Revision 1.58 / (download) - annotate - [select for diffs], Tue May 18 23:52:55 1999 UTC (24 years, 10 months ago) by thorpej
Branch: MAIN
CVS Tags: chs-ubc2-base
Branch point for: wrstuden-devbsize
Changes since 1.57: +2 -5 lines
Diff to previous 1.57 (colored) to selected 1.133 (colored)

Rework layer 2 protocol input routines.  Instead of calling e.g. ether_input()
directly, call the function pointer (*if_input)(ifp, m).  The input routine
expects the packet header to be at the head of the packet, and will adjust
as necessary.  Privatize the layer 2 input and output routines, allowing
*_ifattach() to set them up as appropriate.

Revision 1.54.2.1 / (download) - annotate - [select for diffs], Tue Apr 27 00:04:51 1999 UTC (24 years, 11 months ago) by perry
Branch: netbsd-1-4
CVS Tags: netbsd-1-4-RELEASE, netbsd-1-4-PATCH001, kame_14_19990705, kame_14_19990628, kame_141_19991130, kame
Branch point for: chs-ubc2
Changes since 1.54: +85 -36 lines
Diff to previous 1.54 (colored) to selected 1.133 (colored)

pullup 1.54->1.57 (Jonathan Stone)

Revision 1.57 / (download) - annotate - [select for diffs], Tue Apr 20 04:40:24 1999 UTC (24 years, 11 months ago) by jonathan
Branch: MAIN
Changes since 1.56: +19 -6 lines
Diff to previous 1.56 (colored) to selected 1.133 (colored)

Calling DELAY() during polling for command completion of the normal
per-packet discard of every received packet increases latency and
decrease throughput.  INstead, Spin on S_COMMAND_IN_PROGESS for enough
iterations as the expected time to completion.  Only do DELAY()/poll
loops (as suggested by Jason Thorpe) if spinning fails.
Take PCI as fastest case and compute worst-case estimate.

Shorten DELAY() in S_COMMAND_COMPLETE polling-loop up 10, loop-count
down.  to speed up epreset() completion (m/c filter change, ifup/ipdown, etc).

Revision 1.56 / (download) - annotate - [select for diffs], Mon Apr 19 23:26:48 1999 UTC (24 years, 11 months ago) by jonathan
Branch: MAIN
Changes since 1.55: +55 -32 lines
Diff to previous 1.55 (colored) to selected 1.133 (colored)

* Make doubly sure that the ep shutdownhooks are run at splnet() or above.
* Clear the `enabled' bit in the softc so late hardware interrupts
  (e.g., just after the full reset) done as part of shutdown) are dropped.
* Eliminate loops that  poll forever on S_COMMAND_IN_PROGRESS to complete.
  Add inline function with bounded loopcount plus small delay, to avoid
  bugs in EISA hardware which never sets S_COMMAND_IN_PROGRESS.
  Use for both TX_RESET/RX_RESET/GLOBAL_RESET cmds, and polling for
  discard-Rx completion

Revision 1.55 / (download) - annotate - [select for diffs], Tue Apr 13 20:23:52 1999 UTC (24 years, 11 months ago) by jonathan
Branch: MAIN
Changes since 1.54: +18 -5 lines
Diff to previous 1.54 (colored) to selected 1.133 (colored)

Endian-ness bugfix for elink3 on big-endian hosts.
  Big-endian CPUs should use bus_space_{read,write}_multi_stream methods
  to PIO packet data to NIC in 16-bit or 32-bit chunks.
  Make it so.
  Since we don't have stream methods on all ports yet (esp. i386), use
  the bus_space_{read,write}_multi methods if the compile-time
  stream-method feature-test   macro is not set.
Originally from tsubai@netbsd.org, via HAYAKAWA koichi's cardbus patches.

Revision 1.54 / (download) - annotate - [select for diffs], Thu Mar 25 23:18:32 1999 UTC (25 years ago) by thorpej
Branch: MAIN
CVS Tags: netbsd-1-4-base
Branch point for: netbsd-1-4
Changes since 1.53: +1 -5 lines
Diff to previous 1.53 (colored) to selected 1.133 (colored)

Use ETHER_*_LEN constants from <net/if_ether.h> instead of defining them
ourselves.

Revision 1.53 / (download) - annotate - [select for diffs], Sun Feb 28 17:10:53 1999 UTC (25 years, 1 month ago) by explorer
Branch: MAIN
Changes since 1.52: +3 -2 lines
Diff to previous 1.52 (colored) to selected 1.133 (colored)

Update to slightly altered rnd_attach_source() api

Revision 1.52 / (download) - annotate - [select for diffs], Wed Feb 17 03:41:00 1999 UTC (25 years, 1 month ago) by thorpej
Branch: MAIN
Changes since 1.51: +2 -2 lines
Diff to previous 1.51 (colored) to selected 1.133 (colored)

Avoid initializing the interface in the SIOCSIFFLAGS if ! UP and ! RUNNING.

Revision 1.51 / (download) - annotate - [select for diffs], Sat Dec 12 16:36:24 1998 UTC (25 years, 3 months ago) by mycroft
Branch: MAIN
Changes since 1.50: +8 -5 lines
Diff to previous 1.50 (colored) to selected 1.133 (colored)

Simplify argument to MGET(), to generate better code.

Revision 1.50.2.1 / (download) - annotate - [select for diffs], Fri Dec 11 04:52:59 1998 UTC (25 years, 3 months ago) by kenh
Branch: kenh-if-detach
Changes since 1.50: +43 -29 lines
Diff to previous 1.50 (colored) next main 1.51 (colored) to selected 1.133 (colored)

The beginnings of interface detach support.  Still some bugs, but mostly
works for me.

This work was originally by Bill Studenmund, and cleaned up by me.

Revision 1.50 / (download) - annotate - [select for diffs], Wed Nov 18 18:34:52 1998 UTC (25 years, 4 months ago) by thorpej
Branch: MAIN
CVS Tags: kenh-if-detach-base
Branch point for: kenh-if-detach
Changes since 1.49: +29 -1 lines
Diff to previous 1.49 (colored) to selected 1.133 (colored)

Now that the *_activate() functions don't do things which are attachment
specific, move them into the chipset drivers.

Revision 1.49 / (download) - annotate - [select for diffs], Tue Nov 17 20:25:00 1998 UTC (25 years, 4 months ago) by thorpej
Branch: MAIN
Changes since 1.48: +1 -4 lines
Diff to previous 1.48 (colored) to selected 1.133 (colored)

Expose the "enable" and "disable" functions so that the front-ends can
access them.

Revision 1.48 / (download) - annotate - [select for diffs], Mon Nov 16 19:13:31 1998 UTC (25 years, 4 months ago) by thorpej
Branch: MAIN
Changes since 1.47: +7 -7 lines
Diff to previous 1.47 (colored) to selected 1.133 (colored)

Fix some whitespace lossage, canonicalize some media names.

Revision 1.47 / (download) - annotate - [select for diffs], Wed Nov 4 00:29:28 1998 UTC (25 years, 5 months ago) by fvdl
Branch: MAIN
CVS Tags: chs-ubc-base, chs-ubc
Changes since 1.46: +171 -170 lines
Diff to previous 1.46 (colored) to selected 1.133 (colored)

Add the 'ex' driver, a DMA driver for 3Com 90x and 90xB cards. Rename
constants from EP_ to ELINK_ since they're now used in the ex driver as well.

Revision 1.46 / (download) - annotate - [select for diffs], Fri Aug 28 18:16:02 1998 UTC (25 years, 7 months ago) by thorpej
Branch: MAIN
Changes since 1.45: +18 -3 lines
Diff to previous 1.45 (colored) to selected 1.133 (colored)

When determining the default media on the Vortex/Boomerang, don't pick
the full-duplex variant.  XXX We should check the EEPROM for "default to
full-duplex".

Revision 1.45 / (download) - annotate - [select for diffs], Wed Aug 26 01:32:41 1998 UTC (25 years, 7 months ago) by thorpej
Branch: MAIN
Changes since 1.44: +26 -3 lines
Diff to previous 1.44 (colored) to selected 1.133 (colored)

For non-MII Vortex/Boomerang, set full-duplex in the MAC CONTROL register
in epsetmedia() if full-duplex is selected (new feature on these cards!)

On MII Boomerangs, set the full-duplex bit in MAC CONTROL in the statchg
callback from the MII layer.  Should fix full-duplex on these cards.

Revision 1.44 / (download) - annotate - [select for diffs], Mon Aug 17 23:20:39 1998 UTC (25 years, 7 months ago) by thorpej
Branch: MAIN
Changes since 1.43: +82 -7 lines
Diff to previous 1.43 (colored) to selected 1.133 (colored)

First-crack at RoadRunner (3c574-TX 10/100Mbps PCMCIA).  Doens't yet use
any of the RoadRunner speed hacks.

Revision 1.43 / (download) - annotate - [select for diffs], Sun Aug 16 01:16:57 1998 UTC (25 years, 7 months ago) by thorpej
Branch: MAIN
Changes since 1.42: +2 -2 lines
Diff to previous 1.42 (colored) to selected 1.133 (colored)

Oops, back out something that I didn't intend to commit.

Revision 1.42 / (download) - annotate - [select for diffs], Sat Aug 15 16:20:51 1998 UTC (25 years, 7 months ago) by thorpej
Branch: MAIN
Changes since 1.41: +65 -35 lines
Diff to previous 1.41 (colored) to selected 1.133 (colored)

The 3c515 (Corkscrew) and 3c574 (RoadRunner) have their Window 1 registers
offset!  Define an inline function to compute the Window 1 register offset
and use it.

Revision 1.41 / (download) - annotate - [select for diffs], Wed Aug 12 18:51:53 1998 UTC (25 years, 7 months ago) by thorpej
Branch: MAIN
Changes since 1.40: +493 -252 lines
Diff to previous 1.40 (colored) to selected 1.133 (colored)

Completely rewrite media selection.  Add support for the MII/PHY on
the 3Com 3c905-TX and 3c905-T4.  Fix handling of the MII on the
3c595-MII and 3c597-MII (can't talk to the PHYs on these cards; just
use "manual" for the external MII port).

Fixes kern/4782 (Chris Demetriou).

Revision 1.40 / (download) - annotate - [select for diffs], Sun Jul 5 06:49:11 1998 UTC (25 years, 9 months ago) by jonathan
Branch: MAIN
CVS Tags: eeh-paddr_t-base, eeh-paddr_t
Changes since 1.39: +2 -1 lines
Diff to previous 1.39 (colored) to selected 1.133 (colored)

defopt NS, NSIP.

Revision 1.39 / (download) - annotate - [select for diffs], Sun Jul 5 00:51:18 1998 UTC (25 years, 9 months ago) by jonathan
Branch: MAIN
Changes since 1.38: +2 -1 lines
Diff to previous 1.38 (colored) to selected 1.133 (colored)

defopt INET, NETATALK.

Revision 1.38 / (download) - annotate - [select for diffs], Wed Mar 4 18:10:03 1998 UTC (26 years, 1 month ago) by augustss
Branch: MAIN
Changes since 1.37: +2 -2 lines
Diff to previous 1.37 (colored) to selected 1.133 (colored)

For the Rx:Tx split message change "(undefined)" to "3:5".

Revision 1.37 / (download) - annotate - [select for diffs], Mon Jan 12 09:23:23 1998 UTC (26 years, 2 months ago) by thorpej
Branch: MAIN
Changes since 1.36: +1 -7 lines
Diff to previous 1.36 (colored) to selected 1.133 (colored)

Adjust for config changes.

Revision 1.36 / (download) - annotate - [select for diffs], Sat Oct 18 00:15:02 1997 UTC (26 years, 5 months ago) by jonathan
Branch: MAIN
CVS Tags: netbsd-1-3-base, netbsd-1-3-RELEASE, netbsd-1-3-PATCH003-CANDIDATE2, netbsd-1-3-PATCH003-CANDIDATE1, netbsd-1-3-PATCH003-CANDIDATE0, netbsd-1-3-PATCH003, netbsd-1-3-PATCH002, netbsd-1-3-PATCH001, netbsd-1-3-BETA, netbsd-1-3
Changes since 1.35: +15 -6 lines
Diff to previous 1.35 (colored) to selected 1.133 (colored)

Protect #ifdef DEBUG printfs with a run-time teson a patchable variable
(epdebug), as per Jason Thorpe's comments.

Revision 1.35 / (download) - annotate - [select for diffs], Wed Oct 15 05:55:26 1997 UTC (26 years, 5 months ago) by explorer
Branch: MAIN
Changes since 1.34: +20 -2 lines
Diff to previous 1.34 (colored) to selected 1.133 (colored)

Add and/or update rnd_*() hooks

Revision 1.34 / (download) - annotate - [select for diffs], Tue Oct 14 21:28:37 1997 UTC (26 years, 5 months ago) by thorpej
Branch: MAIN
CVS Tags: marc-pcmcia-base
Changes since 1.33: +132 -39 lines
Diff to previous 1.33 (colored) to selected 1.133 (colored)

Pull down from marc-pcmcia branch:

Minor tweaks to deal with PCMCIA differences, and support for power
management.

Revision 1.32.4.9 / (download) - annotate - [select for diffs], Tue Oct 14 21:26:31 1997 UTC (26 years, 5 months ago) by thorpej
Branch: marc-pcmcia
Changes since 1.32.4.8: +1 -5 lines
Diff to previous 1.32.4.8 (colored) to branchpoint 1.32 (colored) next main 1.33 (colored) to selected 1.133 (colored)

Garbage-collect a hack no longer needed since the compiler has been
fixed.

Revision 1.32.4.8 / (download) - annotate - [select for diffs], Tue Oct 14 02:28:27 1997 UTC (26 years, 5 months ago) by thorpej
Branch: marc-pcmcia
Changes since 1.32.4.7: +4 -4 lines
Diff to previous 1.32.4.7 (colored) to branchpoint 1.32 (colored) to selected 1.133 (colored)

Rearrange the disable functions slightly so that an interface that
interfaces that don't have a disable hook will never be marked "disabled".

Now, once an interface has been marked "enabled" by the enable function,
it will remain marked as such for the duration of the kernel's lifetime.

Revision 1.32.4.7 / (download) - annotate - [select for diffs], Mon Oct 6 16:26:45 1997 UTC (26 years, 5 months ago) by thorpej
Branch: marc-pcmcia
Changes since 1.32.4.6: +20 -10 lines
Diff to previous 1.32.4.6 (colored) to branchpoint 1.32 (colored) to selected 1.133 (colored)

Fix a brain-o in my last power management changes.  Specifically, allow
the media callbacks to be used while the interface is powered off.  If
the interface is powered off, return "none" in response to a "get media",
and in the case of "set media", just return success, since the init routine
will properly program the hardware when power is enabled.  If we return
an error in the powered off case, ifconfig(8) will lose because it performs
the "set address" (which will enable power on a disabled interface) after
parsing the entire command line.

Revision 1.32.4.6 / (download) - annotate - [select for diffs], Mon Sep 29 20:34:00 1997 UTC (26 years, 6 months ago) by thorpej
Branch: marc-pcmcia
Changes since 1.32.4.5: +49 -27 lines
Diff to previous 1.32.4.5 (colored) to branchpoint 1.32 (colored) to selected 1.133 (colored)

Fix a few bugs in the enable/disable hook logic:
- Place the code to enable/disable in functions and use them, rather than
  duplicating it in a few places.  Make sure the "enabled" flag is set
  properly even if there is no hardware enable hook.
- Add additional checks for the "enabled" flag so that we don't attempt to
  write hardware registers when the card power is turned off.

Revision 1.32.4.5 / (download) - annotate - [select for diffs], Mon Sep 29 07:47:06 1997 UTC (26 years, 6 months ago) by thorpej
Branch: marc-pcmcia
Changes since 1.32.4.4: +4 -4 lines
Diff to previous 1.32.4.4 (colored) to branchpoint 1.32 (colored) to selected 1.133 (colored)

Make the "enable" and "disable" hooks take pointers to the softc, rather
than void * and a separately specified argument.

Revision 1.32.4.4 / (download) - annotate - [select for diffs], Sat Sep 27 01:57:29 1997 UTC (26 years, 6 months ago) by marc
Branch: marc-pcmcia
Changes since 1.32.4.3: +31 -4 lines
Diff to previous 1.32.4.3 (colored) to branchpoint 1.32 (colored) to selected 1.133 (colored)

add calls to enable/disable hooks

Revision 1.32.4.3 / (download) - annotate - [select for diffs], Fri Aug 29 18:47:07 1997 UTC (26 years, 7 months ago) by thorpej
Branch: marc-pcmcia
Changes since 1.32.4.2: +1 -15 lines
Diff to previous 1.32.4.2 (colored) to branchpoint 1.32 (colored) to selected 1.133 (colored)

Remove some highly machine-dependent debugging code.

Revision 1.32.4.2 / (download) - annotate - [select for diffs], Sat Aug 23 07:12:53 1997 UTC (26 years, 7 months ago) by thorpej
Branch: marc-pcmcia
Changes since 1.32.4.1: +2 -1 lines
Diff to previous 1.32.4.1 (colored) to branchpoint 1.32 (colored) to selected 1.133 (colored)

Update marc-pcmcia branch from trunk.

Revision 1.33 / (download) - annotate - [select for diffs], Wed Jul 30 18:26:23 1997 UTC (26 years, 8 months ago) by jonathan
Branch: MAIN
CVS Tags: thorpej-signal-base, thorpej-signal
Changes since 1.32: +2 -1 lines
Diff to previous 1.32 (colored) to selected 1.133 (colored)

Initialize local variable 'j' in  eeprombusy() to pacify gcc -O (not -O2)
on i386.

Revision 1.32.4.1 / (download) - annotate - [select for diffs], Wed Jul 30 07:05:22 1997 UTC (26 years, 8 months ago) by marc
Branch: marc-pcmcia
Changes since 1.32: +82 -30 lines
Diff to previous 1.32 (colored) to selected 1.133 (colored)

added pcmcia infrastructure and a few devices

Revision 1.32 / (download) - annotate - [select for diffs], Wed May 14 00:22:00 1997 UTC (26 years, 10 months ago) by thorpej
Branch: MAIN
CVS Tags: marc-pcmcia-bp, bouyer-scsipi
Branch point for: marc-pcmcia
Changes since 1.31: +8 -1 lines
Diff to previous 1.31 (colored) to selected 1.133 (colored)

Make sure we're in register window 0 before attempting EEPROM access,
pointed out by Matthias Drochner.

Revision 1.31 / (download) - annotate - [select for diffs], Sun May 11 05:47:08 1997 UTC (26 years, 10 months ago) by jonathan
Branch: MAIN
Changes since 1.30: +6 -1 lines
Diff to previous 1.30 (colored) to selected 1.133 (colored)

Set TX-available threshhold in epinit() just before enabling interrupts,
so TX_AVAIL intrs are enabled for root-on-NFS kernels.
Tested (and required) on 3c595TX with root-on-NFS kernel booted from floppy.

Revision 1.30 / (download) - annotate - [select for diffs], Mon Apr 28 17:04:05 1997 UTC (26 years, 11 months ago) by mycroft
Branch: MAIN
Changes since 1.29: +2 -1 lines
Diff to previous 1.29 (colored) to selected 1.133 (colored)

Oops; forgot to GC the last mbuf allocated when out of clusters.

Revision 1.29 / (download) - annotate - [select for diffs], Sun Apr 27 21:09:56 1997 UTC (26 years, 11 months ago) by jonathan
Branch: MAIN
Changes since 1.28: +17 -29 lines
Diff to previous 1.28 (colored) to selected 1.133 (colored)

* Tidy PHY [sic] selection code in epsetmedia().

* epinit() had both explicit xcvr selection for 3c589 and a call
  to epsetmedia().  The first is redundant; delete it, and EP_COAX_DEFAULT.

* Update comments to reflect 3c589 and 3c509B fixes.  Fix typos.

Revision 1.28 / (download) - annotate - [select for diffs], Sun Apr 27 09:38:50 1997 UTC (26 years, 11 months ago) by veego
Branch: MAIN
Changes since 1.27: +50 -66 lines
Diff to previous 1.27 (colored) to selected 1.133 (colored)

- Replace the check for EP_BUS_PCMCIA in epsetmedia with a check for
  EP_CHIPSET_3C509 and change it a bit so it works now with the 3c509
  and still works with the 3c589.
- KNF

Revision 1.27 / (download) - annotate - [select for diffs], Thu Apr 24 08:05:14 1997 UTC (26 years, 11 months ago) by mycroft
Branch: MAIN
Changes since 1.26: +2 -2 lines
Diff to previous 1.26 (colored) to selected 1.133 (colored)

Fix typo in previous.

Revision 1.26 / (download) - annotate - [select for diffs], Thu Apr 24 02:24:06 1997 UTC (26 years, 11 months ago) by mycroft
Branch: MAIN
Changes since 1.25: +7 -3 lines
Diff to previous 1.25 (colored) to selected 1.133 (colored)

If we fail to allocate a cluster to hold a large packet, simply
drop it rather than using a chain of tiny mbufs.

Revision 1.25 / (download) - annotate - [select for diffs], Wed Apr 23 08:15:03 1997 UTC (26 years, 11 months ago) by cjs
Branch: MAIN
Changes since 1.24: +7 -10 lines
Diff to previous 1.24 (colored) to selected 1.133 (colored)

Smaller, cleaner code for aligning struct ip on receipt.

Revision 1.24 / (download) - annotate - [select for diffs], Tue Apr 22 21:19:11 1997 UTC (26 years, 11 months ago) by cjs
Branch: MAIN
Changes since 1.23: +11 -13 lines
Diff to previous 1.23 (colored) to selected 1.133 (colored)

Align struct ip on incoming packets for all types of cards, not just
32-bit ones.

Revision 1.23 / (download) - annotate - [select for diffs], Mon Apr 7 23:49:47 1997 UTC (26 years, 11 months ago) by jonathan
Branch: MAIN
Changes since 1.22: +394 -132 lines
Diff to previous 1.22 (colored) to selected 1.133 (colored)

Remove IFF_LINK[01] "connector" support.
Add if_media support.   Still missing a software autosense FSM.

Revision 1.22 / (download) - annotate - [select for diffs], Sun Mar 30 22:47:10 1997 UTC (27 years ago) by jonathan
Branch: MAIN
Changes since 1.21: +2 -3 lines
Diff to previous 1.21 (colored) to selected 1.133 (colored)

Add ifmedia hooks: include <ifmedia.h> and add sc_media to softc.

Revision 1.7.4.2 / (download) - annotate - [select for diffs], Wed Mar 19 01:26:37 1997 UTC (27 years ago) by mycroft
Branch: netbsd-1-2
CVS Tags: netbsd-1-2-PATCH001
Changes since 1.7.4.1: +6 -1 lines
Diff to previous 1.7.4.1 (colored) to branchpoint 1.7 (colored) next main 1.8 (colored) to selected 1.133 (colored)

Pull up fix for `sniper bug', which can cause packets to be accepted erroneously.

Revision 1.21 / (download) - annotate - [select for diffs], Sat Mar 15 18:11:29 1997 UTC (27 years ago) by is
Branch: MAIN
Changes since 1.20: +39 -38 lines
Diff to previous 1.20 (colored) to selected 1.133 (colored)

New ARP system, supports IPv4 over any hardware link.

Some of the stuff (e.g., rarpd, bootpd, dhcpd etc., libsa) still will
only support Ethernet. Tcpdump itself should be ok, but libpcap needs
lot of work.

For the detailed change history, look at the commit log entries for
the is-newarp branch.

Revision 1.18.4.4 / (download) - annotate - [select for diffs], Sun Mar 9 21:44:12 1997 UTC (27 years ago) by is
Branch: is-newarp
Changes since 1.18.4.3: +2 -2 lines
Diff to previous 1.18.4.3 (colored) to branchpoint 1.18 (colored) next main 1.19 (colored) to selected 1.133 (colored)

netinet/if_ether.h => netinet/if_inarp.h

Revision 1.7.4.1 / (download) - annotate - [select for diffs], Tue Mar 4 18:40:28 1997 UTC (27 years, 1 month ago) by mycroft
Branch: netbsd-1-2
Changes since 1.7: +29 -2 lines
Diff to previous 1.7 (colored) to selected 1.133 (colored)

Recognize 3c900 and 3c905 cards.

Revision 1.18.4.3 / (download) - annotate - [select for diffs], Thu Feb 27 19:17:25 1997 UTC (27 years, 1 month ago) by is
Branch: is-newarp
Changes since 1.18.4.2: +2 -4 lines
Diff to previous 1.18.4.2 (colored) to branchpoint 1.18 (colored) to selected 1.133 (colored)

Removed #include <route.h> and #include <netisr.h>. They're not needed, and
the latter will go away soon.

Revision 1.18.4.2 / (download) - annotate - [select for diffs], Thu Feb 20 16:32:36 1997 UTC (27 years, 1 month ago) by is
Branch: is-newarp
Changes since 1.18.4.1: +146 -92 lines
Diff to previous 1.18.4.1 (colored) to branchpoint 1.18 (colored) to selected 1.133 (colored)

Merged in recent changes from Trunk.

Revision 1.20 / (download) - annotate - [select for diffs], Tue Feb 18 10:51:15 1997 UTC (27 years, 1 month ago) by jonathan
Branch: MAIN
CVS Tags: is-newarp-before-merge
Changes since 1.19: +107 -72 lines
Diff to previous 1.19 (colored) to selected 1.133 (colored)

Move if_ep media-sense code from front ends to inside back end,
to prepare for if_media, and to support EISA 3c59x cards:

  * change epconfig() to take a short that encodes the chipset
    type (3c509, or Demon/Vortex/Boomerang).
  * add  distinct 3c509 and Demon/Vortex/Boomerang media-sense
    functions to back end.
  * Add EISA match/attach support for the 3c592 and 3c597
    (Demon) cards as well as the 3c509-comatibl EISA 3c509/3c579.

  * Assume that ISA and ISA PnP cards are 3c509-style, until
    proof to the contrary (e.g. large packet support).

Tested on 3c595, 3c590, and 3c509b. Not tested on 3c515 or Demon.

Revision 1.19 / (download) - annotate - [select for diffs], Sun Feb 16 04:09:18 1997 UTC (27 years, 1 month ago) by jonathan
Branch: MAIN
Changes since 1.18: +43 -24 lines
Diff to previous 1.18 (colored) to selected 1.133 (colored)

* Add ep_complete_cmd() function, to issue commands that perform a reset
  (RX_RESET, TX_RESET, GLOBAL_RESET).
  Commands issued while a reset is in progress may be dropped. The driver
  must wait until resets are complete; ep_complete_cmd() does so.
* Change RX_RESET,  TX_RESET, GLOBAL_RESET to use ep_complete_cmd().

* Revert epconfig() to use inline RX_RESET, TX_RESET.
  That avoids accidentally setting IFF_UP, which  breaks both diskless boot,
  and "halt" commands issued before the interface is brought up.

Revision 1.18.4.1 / (download) - annotate - [select for diffs], Fri Feb 7 18:01:28 1997 UTC (27 years, 1 month ago) by is
Branch: is-newarp
Changes since 1.18: +38 -35 lines
Diff to previous 1.18 (colored) to selected 1.133 (colored)

Snapshot of new ARP code.

Our old ARP code was hardwired for 6-byte length medium
addresses, while the protocol is designed for any size.

This snapshot contains a first hack at getting rid of
Ethernet specific data structures. The ep driver is updated
(and tested on the PCI bus), the iy and fpa drivers have been
updated, but not real life tested yet.

If you want to test this with other drivers, you have to update
them first yourself, and probably tag the relevant directories.
Better contact me if you want to do this.

Revision 1.18 / (download) - annotate - [select for diffs], Tue Dec 31 21:36:30 1996 UTC (27 years, 3 months ago) by jonathan
Branch: MAIN
CVS Tags: thorpej-setroot, mrg-vm-swap, is-newarp-base
Branch point for: is-newarp
Changes since 1.17: +9 -1 lines
Diff to previous 1.17 (colored) to selected 1.133 (colored)

Use DELAY() after doing a TX_RESET or RX_RESET command.
Newer boards (e.g., Vortex) take  time to reset, and wedge on some machines.
Polling on S_COMMAND_IN_PROGRESS would be better, but that doesn't
work with xx_RESET commands on 3c509s.

Revision 1.17 / (download) - annotate - [select for diffs], Mon Dec 30 19:18:31 1996 UTC (27 years, 3 months ago) by jonathan
Branch: MAIN
Changes since 1.16: +2 -2 lines
Diff to previous 1.16 (colored) to selected 1.133 (colored)

*  make sure 100mbit media-present bits don't collied with 3c509
   CONFIG_CNTRL bits by making the "conn" argument to epconfig()
   a u_int, not a u_int16_t, and by defining 100mbit media
   bits in the upper 16 bits.

A redesigned interface that fixes this properly is in the pipeline.

Revision 1.16 / (download) - annotate - [select for diffs], Sun Dec 29 17:01:58 1996 UTC (27 years, 3 months ago) by jonathan
Branch: MAIN
Changes since 1.15: +31 -3 lines
Diff to previous 1.15 (colored) to selected 1.133 (colored)

* add epshutdown(), and  establish as shutdown hook: see multiboot
  comments in pr port-i386/2358: "if_ep/3C590 no longer working"
* Only call Vortex media-config code on PCI-attached devices, until
  we know if it works on ISA and EISA large-packet devices also.
* Fix typo in printf of MAC address

Revision 1.15 / (download) - annotate - [select for diffs], Sun Dec 29 13:32:46 1996 UTC (27 years, 3 months ago) by jonathan
Branch: MAIN
Changes since 1.14: +131 -8 lines
Diff to previous 1.14 (colored) to selected 1.133 (colored)

* Add 100Mbit xcvr flags to epconfig():
  look for 100mbit Xcvrs, print their names, add to ep_connectors.

* Print 10baseT as 10baseT, since media name (utp) is no longer a unique
  transceiver type.

* Redo FIFO memory size printing, also show Tx/Rx split (xxx isa 3c509?).

* Print MAC address on a separate line,  with 100Mbit media and fifo-ram
  info it no longer fits on the same line as media types.

* Comment the fact that the "connection" media-selection code just doesn't
  grok 100Mbit media.

* add code to look for 3c59x/3c90x media-select and autoconfig bits, though
  we don't yet dynamically probe media when the autoconfig bit is set
  (see previous bullet).

* XXX the whole connector/media code should be redone, perhaps a' la
  the BSDI ifmedia design.

Revision 1.14 / (download) - annotate - [select for diffs], Sat Dec 7 08:33:07 1996 UTC (27 years, 3 months ago) by cjs
Branch: MAIN
Changes since 1.13: +106 -29 lines
Diff to previous 1.13 (colored) to selected 1.133 (colored)

Print the memory size on startup.
Add newline to `Interface disabled' printf and clean up formatting.
Change packet read/write code to align all reads and writes into
memory to an appropriate boundary for the I/O size. This also fixes
a bug where the trailing unaligned bytes (1-3 of them) would be
put in an additional mbuf even if there was enough space for them
in the one we were currently filling.
This has been tested on a 3c905 in an Alpha (32-bit I/O, alignment
required), a 3c905 in an i386 (32-bit I/O, alignment not required)
and a 3c509 in an i386 (16-bit I/O, alignment not required). It
should be tested on a 3c509 in an Alpha with an ISA bus, if somone
can manage to get the two items together.
There are still some bugs in the driver relating to initialisation;
on my Alpha with a 3c905 you need to do an `ifconfig ep0 down;
ifconfig ep0 up' after the initial ifconfig to make it start working.
Apparently there are also some problems with a 3c579 in an i386,
although a 3c905 in an i386 works just fine.

Revision 1.13 / (download) - annotate - [select for diffs], Fri Nov 22 04:48:26 1996 UTC (27 years, 4 months ago) by jonathan
Branch: MAIN
Changes since 1.12: +5 -4 lines
Diff to previous 1.12 (colored) to selected 1.133 (colored)

* 3c509s  drop the low-oder bits of EP_THRESH_DISABLE (2047) on a write,
  and the result reads back as zero.  Mask probe code accordingly.

Revision 1.12 / (download) - annotate - [select for diffs], Sun Nov 17 23:58:29 1996 UTC (27 years, 4 months ago) by jonathan
Branch: MAIN
Changes since 1.11: +61 -8 lines
Diff to previous 1.11 (colored) to selected 1.133 (colored)

Fix for hanging 3com ``large packet'' (100Mbit) Etherlink-III devices:
  * Add a slot in the softc, ep_pktlenshift, to indicate that
    a board implements ``large packets'' (FDDI-sized frames) and
    therefore implicitly shifts the argument to packet-length commands
    by two bits to fit a 13-bit length in  an 11-bit command argument field.

 *  Change  the reset of station-mask filterto be independent of bus-type
    (e.g.,. for 3c515)

 * Replace  the "2044" constant used to disable TX threshold interrupts
   on 3c509-generation cards with a #define. Use 2047 instead,
   since that works on the large-packet cards (Vortex, Demon, Boomerang)
   and 2044 doesn't.

 *  Add code to  epconfing to probe for large-packet support,
    set the softc appropriately, and  shift packet sizes in commands
    by ep_pktlenshift to compensate  for the implicit shift.

 *  Tweak the epconfig() code to avoid hanging on startup.
    Set the Tx threshold to interrupt when there's space for
    a maximal-sized ether frame, then  do epinit() then epstop(),
    instead of just the Tx and Rx reset. Required on at least a 3c595.

Tested on  a 3c595, but not on 3c509-generation hardware.

Revision 1.11 / (download) - annotate - [select for diffs], Mon Oct 21 22:34:21 1996 UTC (27 years, 5 months ago) by thorpej
Branch: MAIN
Changes since 1.10: +97 -96 lines
Diff to previous 1.10 (colored) to selected 1.133 (colored)

New bus.h implementation/interface:
	- No more distinction between i/o-mapped and memory-mapped
	  devices.  It's all "bus space" now, and space tags
	  differentiate the space with finer grain than the
	  bus chipset tag.
	- Add memory barrier methods.
	- Implement space alloc/free methods.
	- Implement region read/write methods (like memcpy to/from
	  bus space).
This interface provides a better abstraction for dealing with
machine-independent chipset drivers.

Revision 1.10 / (download) - annotate - [select for diffs], Sun Oct 13 01:37:22 1996 UTC (27 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.9: +21 -21 lines
Diff to previous 1.9 (colored) to selected 1.133 (colored)

backout kprintf changes

Revision 1.9 / (download) - annotate - [select for diffs], Thu Oct 10 22:18:36 1996 UTC (27 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.8: +24 -24 lines
Diff to previous 1.8 (colored) to selected 1.133 (colored)

- printf -> kprintf, sprintf -> ksprintf

Revision 1.8 / (download) - annotate - [select for diffs], Sun Sep 29 11:19:42 1996 UTC (27 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.7: +6 -1 lines
Diff to previous 1.7 (colored) to selected 1.133 (colored)

Apply PR/2661 [from Jonathan Stone]

Revision 1.7 / (download) - annotate - [select for diffs], Tue May 14 22:22:05 1996 UTC (27 years, 10 months ago) by thorpej
Branch: MAIN
CVS Tags: netbsd-1-2-base, netbsd-1-2-RELEASE, netbsd-1-2-BETA
Branch point for: netbsd-1-2
Changes since 1.6: +8 -7 lines
Diff to previous 1.6 (colored) to selected 1.133 (colored)

Be more careful with types, and pull in <machine/intr.h>

Revision 1.6 / (download) - annotate - [select for diffs], Fri May 10 05:28:06 1996 UTC (27 years, 10 months ago) by thorpej
Branch: MAIN
Changes since 1.5: +2 -2 lines
Diff to previous 1.5 (colored) to selected 1.133 (colored)

Update Herb's e-mail address; beer.org feels a lot more friendly.

Revision 1.5 / (download) - annotate - [select for diffs], Tue May 7 01:43:13 1996 UTC (27 years, 10 months ago) by thorpej
Branch: MAIN
Changes since 1.4: +10 -11 lines
Diff to previous 1.4 (colored) to selected 1.133 (colored)

Changed struct ifnet to have a pointer to the softc of the underlying
device and a printable "external name" (name + unit number), thus eliminating
if_name and if_unit.  Updated interface to (*if_watchdog)() and (*if_start)()
to take a struct ifnet *, rather than a unit number.

Revision 1.4 / (download) - annotate - [select for diffs], Fri May 3 19:08:47 1996 UTC (27 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.3: +1 -2 lines
Diff to previous 1.3 (colored) to selected 1.133 (colored)

Move epstop prototype to the header file.

Revision 1.3 / (download) - annotate - [select for diffs], Fri May 3 17:44:59 1996 UTC (27 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.2: +7 -5 lines
Diff to previous 1.2 (colored) to selected 1.133 (colored)

- include <sys/systm.h>
- fix prototype of epmbuffill()
- fix typo of epxstat -> eptxstat

Revision 1.2 / (download) - annotate - [select for diffs], Tue Apr 30 22:32:32 1996 UTC (27 years, 11 months ago) by thorpej
Branch: MAIN
Changes since 1.1: +121 -86 lines
Diff to previous 1.1 (colored) to selected 1.133 (colored)

Convert the Etherlink III (ep) driver to use <machine/bus.h>.

Revision 1.1 / (download) - annotate - [select for diffs], Thu Apr 25 02:17:34 1996 UTC (27 years, 11 months ago) by thorpej
Branch: MAIN
Diff to selected 1.133 (colored)

Break up the ep driver into isa, eisa, and pci front-ends and a
bus-independent core driver.  Tested on all three bus types, including
an isa 3c509 masquerading as an eisa device (use ep* at eisa? slot ? in
your kernel config file to catch this one).
XXX Driver still needs to be converted to <machine/bus.h>

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>