The NetBSD Project

CVS log for src/sys/dev/pci/if_wm.c

[BACK] Up to [cvs.netbsd.org] / src / sys / dev / pci

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.228 / (download) - annotate - [select for diffs], Fri May 25 23:37:38 2012 UTC (7 hours, 45 minutes ago) by msaitoh
Branch: MAIN
CVS Tags: HEAD
Changes since 1.227: +102 -19 lines
Diff to previous 1.227 (colored)

Add support Intel I350 Ethernet.

Revision 1.223.2.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:07:49 2012 UTC (5 weeks, 4 days ago) by yamt
Branch: yamt-pagecache
Changes since 1.223: +8 -18 lines
Diff to previous 1.223 (colored) next main 1.224 (colored)

sync with head

Revision 1.225.2.1 / (download) - annotate - [select for diffs], Sat Feb 18 07:34:43 2012 UTC (3 months ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.225: +4 -16 lines
Diff to previous 1.225 (colored) next main 1.226 (colored)

merge to -current.

Revision 1.227 / (download) - annotate - [select for diffs], Thu Feb 2 19:43:05 2012 UTC (3 months, 3 weeks ago) by tls
Branch: MAIN
CVS Tags: yamt-pagecache-base5, yamt-pagecache-base4, netbsd-6-base, netbsd-6, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2
Changes since 1.226: +3 -14 lines
Diff to previous 1.226 (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.226 / (download) - annotate - [select for diffs], Mon Jan 30 19:41:21 2012 UTC (3 months, 3 weeks ago) by drochner
Branch: MAIN
Changes since 1.225: +3 -4 lines
Diff to previous 1.225 (colored)

Use pci_aprint_devinfo(9) instead of pci_devinfo+aprint_{normal,naive}
where it looks straightforward, and pci_aprint_devinfo_fancy in a few
others where drivers want to supply their own device names instead
of the pcidevs generated one. More complicated cases, where names
are composed at runtime, are left alone for now. It certainly makes
sense to simplify the drivers here rather than inventing a catch-all API.
This should serve as as example for new drivers, and also ensure
consistent output in the AB_QUIET ("boot -q") case. Also, it avoids
excessive stack usage where drivers attach child devices because the
buffer for the device name is not kept on the local stack anymore.

Revision 1.162.4.16 / (download) - annotate - [select for diffs], Wed Jan 25 18:02:17 2012 UTC (3 months, 4 weeks ago) by riz
Branch: netbsd-5
Changes since 1.162.4.15: +5 -3 lines
Diff to previous 1.162.4.15 (colored) to branchpoint 1.162 (colored) next main 1.163 (colored)

Pull up following revision(s) (requested by bouyer in ticket #1699):
	sys/dev/pci/if_wm.c: revision 1.225
There is problem with 82576 chips (and probably 82575 too) with hardware vlan
tagging: some packets are sent untagged on the wire.
Follow OpenBSD and disable hardware vlan tagging for these chips
(I couldn't find a hint in other open-source drivers at what could be
wrong ...)

Revision 1.225 / (download) - annotate - [select for diffs], Mon Nov 28 18:21:46 2011 UTC (5 months, 3 weeks ago) by bouyer
Branch: MAIN
CVS Tags: jmcneill-usbmp-pre-base2, jmcneill-usbmp-base
Branch point for: jmcneill-usbmp
Changes since 1.224: +5 -3 lines
Diff to previous 1.224 (colored)

There is problem with 82576 chips (and probably 82575 too) with hardware vlan
tagging: some packets are sent untagged on the wire.
Follow OpenBSD and disable hardware vlan tagging for these chips
(I couldn't find a hint in other open-source drivers at what could be
wrong ...)

Revision 1.224 / (download) - annotate - [select for diffs], Sat Nov 19 22:51:23 2011 UTC (6 months ago) by tls
Branch: MAIN
Changes since 1.223: +3 -3 lines
Diff to previous 1.223 (colored)

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

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

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

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

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

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

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

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

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

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

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

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

	Manual pages for the new kernel interfaces are forthcoming.

Revision 1.223 / (download) - annotate - [select for diffs], Fri Jul 1 07:45:39 2011 UTC (10 months, 3 weeks ago) by matt
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, jmcneill-audiomp3-base, jmcneill-audiomp3
Branch point for: yamt-pagecache
Changes since 1.222: +5 -3 lines
Diff to previous 1.222 (colored)

Fix uninitialized data warning found by gcc 4.5

Revision 1.217.2.1 / (download) - annotate - [select for diffs], Mon Jun 6 09:08:15 2011 UTC (11 months, 2 weeks ago) by jruoho
Branch: jruoho-x86intr
Changes since 1.217: +249 -81 lines
Diff to previous 1.217 (colored) next main 1.218 (colored)

Sync with HEAD.

Revision 1.205.2.4 / (download) - annotate - [select for diffs], Tue May 31 03:04:41 2011 UTC (11 months, 3 weeks ago) by rmind
Branch: rmind-uvmplock
Changes since 1.205.2.3: +154 -21 lines
Diff to previous 1.205.2.3 (colored) next main 1.206 (colored)

sync with head

Revision 1.222 / (download) - annotate - [select for diffs], Tue May 24 22:46:42 2011 UTC (12 months ago) by msaitoh
Branch: MAIN
CVS Tags: rmind-uvmplock-nbase, rmind-uvmplock-base, cherry-xenmp-base, cherry-xenmp
Changes since 1.221: +3 -2 lines
Diff to previous 1.221 (colored)

Fix invalid PBA setting on ICH{9,10}. This bug was introduced in the last
commit. I noticed this problem via mail from spz.

Revision 1.221 / (download) - annotate - [select for diffs], Fri May 20 00:57:42 2011 UTC (12 months, 1 week ago) by msaitoh
Branch: MAIN
Changes since 1.220: +155 -23 lines
Diff to previous 1.220 (colored)

- Add PCH2 support.
  - Add 82579 support.
  - Change PBA size for PCH from 10K to 26K as FreeBSD's em-7.1.7
- Add yet another 82567V support.
- Add ICH10+HANKSVILL support.
- Add 82580 quad-1000BaseX support.

Revision 1.162.4.13.2.1 / (download) - annotate - [select for diffs], Mon Mar 7 04:15:01 2011 UTC (14 months, 2 weeks ago) by riz
Branch: netbsd-5-1
CVS Tags: netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE
Changes since 1.162.4.13: +4 -4 lines
Diff to previous 1.162.4.13 (colored) next main 1.162.4.14 (colored)

Pull up following revision(s) (requested by bouyer in ticket #1544):
	sys/dev/pci/if_wm.c: revision 1.219
wm_gmii_reset(): restore generic reset delays to what they were before
rev 1.186. This makes the following hardware find its PHY again, and I can't
see how these larger delays could be a problem for other hardware:
wm0 at pci6 dev 7 function 0: Intel i82541GI 1000BASE-T Ethernet, rev. 5
wm0: interrupting at ioapic2 pin 0, event channel 5
wm0: 32-bit 66MHz PCI bus
wm0: 65536 word (16 address bits) SPI EEPROM
wm0: Ethernet address 00:13:72:54:ee:13
igphy0 at wm0 phy 1: Intel IGP01E1000 Gigabit PHY, rev. 0
igphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto

Revision 1.162.4.15 / (download) - annotate - [select for diffs], Mon Mar 7 04:14:19 2011 UTC (14 months, 2 weeks ago) by riz
Branch: netbsd-5
Changes since 1.162.4.14: +4 -4 lines
Diff to previous 1.162.4.14 (colored) to branchpoint 1.162 (colored)

Pull up following revision(s) (requested by bouyer in ticket #1544):
	sys/dev/pci/if_wm.c: revision 1.219
wm_gmii_reset(): restore generic reset delays to what they were before
rev 1.186. This makes the following hardware find its PHY again, and I can't
see how these larger delays could be a problem for other hardware:
wm0 at pci6 dev 7 function 0: Intel i82541GI 1000BASE-T Ethernet, rev. 5
wm0: interrupting at ioapic2 pin 0, event channel 5
wm0: 32-bit 66MHz PCI bus
wm0: 65536 word (16 address bits) SPI EEPROM
wm0: Ethernet address 00:13:72:54:ee:13
igphy0 at wm0 phy 1: Intel IGP01E1000 Gigabit PHY, rev. 0
igphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto

Revision 1.205.2.3 / (download) - annotate - [select for diffs], Sat Mar 5 20:53:45 2011 UTC (14 months, 3 weeks ago) by rmind
Branch: rmind-uvmplock
Changes since 1.205.2.2: +175 -117 lines
Diff to previous 1.205.2.2 (colored)

sync with head

Revision 1.217.4.2 / (download) - annotate - [select for diffs], Sat Mar 5 15:10:23 2011 UTC (14 months, 3 weeks ago) by bouyer
Branch: bouyer-quota2
Changes since 1.217.4.1: +3 -3 lines
Diff to previous 1.217.4.1 (colored) to branchpoint 1.217 (colored) next main 1.218 (colored)

Sync with HEAD

Revision 1.220 / (download) - annotate - [select for diffs], Tue Feb 22 21:19:30 2011 UTC (15 months ago) by dyoung
Branch: MAIN
CVS Tags: bouyer-quota2-nbase
Changes since 1.219: +3 -3 lines
Diff to previous 1.219 (colored)

Use /*FALLTHROUGH*/.

Revision 1.217.4.1 / (download) - annotate - [select for diffs], Tue Feb 8 16:19:50 2011 UTC (15 months, 2 weeks ago) by bouyer
Branch: bouyer-quota2
Changes since 1.217: +94 -59 lines
Diff to previous 1.217 (colored)

Sync with HEAD

Revision 1.219 / (download) - annotate - [select for diffs], Sun Feb 6 16:23:00 2011 UTC (15 months, 2 weeks ago) by bouyer
Branch: MAIN
CVS Tags: bouyer-quota2-base
Changes since 1.218: +4 -4 lines
Diff to previous 1.218 (colored)

wm_gmii_reset(): restore generic reset delays to what they were before
rev 1.186. This makes the following hardware find its PHY again, and I can't
see how these larger delays could be a problem for other hardware:

wm0 at pci6 dev 7 function 0: Intel i82541GI 1000BASE-T Ethernet, rev. 5
wm0: interrupting at ioapic2 pin 0, event channel 5
wm0: 32-bit 66MHz PCI bus
wm0: 65536 word (16 address bits) SPI EEPROM
wm0: Ethernet address 00:13:72:54:ee:13
igphy0 at wm0 phy 1: Intel IGP01E1000 Gigabit PHY, rev. 0
igphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto

Revision 1.218 / (download) - annotate - [select for diffs], Wed Jan 26 00:25:34 2011 UTC (15 months, 4 weeks ago) by msaitoh
Branch: MAIN
Changes since 1.217: +92 -57 lines
Diff to previous 1.217 (colored)

Fix MAC address check on 8257[156] and 80003 case. Some cards have non 0xffff
pointer but those don't use alternative MAC address in reality. So we check
whether the broadcast bit is set or not like Intel's e1000 driver.
Fixes PR kern/44072 reported by Jean-Yves Moulin.

Remove extra Warning for newer cards.

Revision 1.217 / (download) - annotate - [select for diffs], Tue Dec 14 02:51:46 2010 UTC (17 months, 1 week ago) by dyoung
Branch: MAIN
CVS Tags: matt-mips64-premerge-20101231, jruoho-x86intr-base
Branch point for: jruoho-x86intr, bouyer-quota2
Changes since 1.216: +25 -14 lines
Diff to previous 1.216 (colored)

Stop wm(4) from needlessly resetting when you add or delete a vlan(4):

ifconfig vlan0 create vlan 2 vlanif wm0
ifconfig vlan0 destroy

It pays to avoid a reset because after a reset it can take about 30
seconds before wm0 is back on the net.

The patch garnered no objections on tech-net@.

Sponsored by CoyotePoint Systems Inc.

Revision 1.162.4.14 / (download) - annotate - [select for diffs], Fri Nov 19 23:40:28 2010 UTC (18 months ago) by riz
Branch: netbsd-5
CVS Tags: matt-nb5-pq3-base, matt-nb5-pq3
Changes since 1.162.4.13: +593 -127 lines
Diff to previous 1.162.4.13 (colored) to branchpoint 1.162 (colored)

Pull up revisions (requested by msaitoh in ticket #1358):
	sys/dev/pci/if_wm.c		1.196-1.199,1.202,1.205
	sys/dev/pci/if_wmvar.h		1.9
	sys/dev/pci/if_wmreg.h		1.36-1.39
	sys/dev/pci/pcireg.h		1.61-1.64
	sys/dev/pci/pcidevs		1.1023
	sys/dev/pci/pcidevs.h		regen
	sys/dev/pci/pcidevs_data.h	regen
	mii/igphy.c			1.21
	mii/igphyvar.h			1.1
	mii/inbmphyreg.h		1.2

- Count Receive error, CRC error, Alignment error, Symbol error, Sequence
  error, Carrier extension error and Receive length error into ierror.
  Fixes PR#30349 reported by UMEZAWA Takeshi.
- Add support for 82575, 82576 and 82580(ER).
  - Apply the patch for 82575 from Wolfgang Stukenbrock (PR#42422). We use
    only one RX ring and with the legacy mode.
  - Add support for 82576.
  - Partial support for 82580.
  - Partial support for the serdes systems.
- Add two workarounds for ICH8 with igp3.
  - Workaround for 82566 Kumeran PCS lock loss.
  - WOL from S5 stops working.
- (pcireg.h) Add PCIe config register definitions.
- Note that the changes to count Missed packet (rx fifo overflow) and Receive
  no buffers (rx ring full) into iqdrops in rev. 1.196 of if_wm.c is not
  pulled up.

Revision 1.216 / (download) - annotate - [select for diffs], Sat Nov 13 13:52:07 2010 UTC (18 months, 1 week ago) by uebayasi
Branch: MAIN
Changes since 1.215: +2 -4 lines
Diff to previous 1.215 (colored)

Don't pull in the whole uvm(9) API to access only PAGE_SIZE and
some other constants.  These are provided by sys/param.h now.

Revision 1.197.2.3 / (download) - annotate - [select for diffs], Fri Oct 22 07:22:05 2010 UTC (19 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.197.2.2: +4 -4 lines
Diff to previous 1.197.2.2 (colored) to branchpoint 1.197 (colored) next main 1.198 (colored)

Sync with HEAD (-D20101022).

Revision 1.215 / (download) - annotate - [select for diffs], Sat Oct 16 06:31:49 2010 UTC (19 months, 1 week ago) by taca
Branch: MAIN
CVS Tags: uebayasi-xip-base4, uebayasi-xip-base3
Changes since 1.214: +6 -6 lines
Diff to previous 1.214 (colored)

- Change "else" + space + tab "if" to "else" + space + "if".
- A word "mechanism" was accidently separated in to "me" and "chanism"
  in comment.

No functional chanage and I found it while reading if_wm.c yesterday.

Revision 1.197.2.2 / (download) - annotate - [select for diffs], Tue Aug 17 06:46:26 2010 UTC (21 months, 1 week ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.197.2.1: +216 -72 lines
Diff to previous 1.197.2.1 (colored) to branchpoint 1.197 (colored)

Sync with HEAD.

Revision 1.158.4.7 / (download) - annotate - [select for diffs], Wed Aug 11 22:53:49 2010 UTC (21 months, 2 weeks ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.158.4.6: +220 -78 lines
Diff to previous 1.158.4.6 (colored) to branchpoint 1.158 (colored) next main 1.159 (colored)

sync with head.

Revision 1.214 / (download) - annotate - [select for diffs], Mon Jul 26 22:33:24 2010 UTC (22 months ago) by jym
Branch: MAIN
CVS Tags: yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base2
Changes since 1.213: +5 -5 lines
Diff to previous 1.213 (colored)

Add PAE to ALL kernel, so that most paddr_t format string errors get caught
during compilation.

While here, fix the compilation for ALL.

Revision 1.213 / (download) - annotate - [select for diffs], Wed Jul 21 15:35:39 2010 UTC (22 months ago) by msaitoh
Branch: MAIN
Changes since 1.212: +25 -33 lines
Diff to previous 1.212 (colored)

Use ether_set_ifflags_cb()

Revision 1.212 / (download) - annotate - [select for diffs], Mon Jul 19 15:46:37 2010 UTC (22 months, 1 week ago) by jakllsch
Branch: MAIN
Changes since 1.211: +11 -6 lines
Diff to previous 1.211 (colored)

Omit U+00AE "REGISTERED SIGN" in a product name due to its non-ASCII nature.
wm_release_hw_control() in wm_detach() before we unmap the registers we need.
Unmap I/O space during detach.

Revision 1.211 / (download) - annotate - [select for diffs], Wed Jul 14 00:11:06 2010 UTC (22 months, 1 week ago) by msaitoh
Branch: MAIN
Changes since 1.210: +25 -8 lines
Diff to previous 1.210 (colored)

- s/TBDA/TDBA/. It stands for Transmit Descriptor Base Address.
- The document says that the TDH register must be set after
  TCL.EN is set on 82575 and newer devices.

TODO:
- ip4csum doesn't work on 82575 and newer devices (reported by Paul Goyette),
  so we have to fix it.

Revision 1.205.2.2 / (download) - annotate - [select for diffs], Sat Jul 3 01:19:37 2010 UTC (22 months, 3 weeks ago) by rmind
Branch: rmind-uvmplock
Changes since 1.205.2.1: +157 -27 lines
Diff to previous 1.205.2.1 (colored)

sync with head

Revision 1.210 / (download) - annotate - [select for diffs], Mon Jun 28 01:43:39 2010 UTC (22 months, 4 weeks ago) by msaitoh
Branch: MAIN
Changes since 1.209: +8 -9 lines
Diff to previous 1.209 (colored)

Fix a bug that wm_attach() fails after reading MAC address. Fixes PR#43533.

Fix an uninitialized value on some cases.

Revision 1.209 / (download) - annotate - [select for diffs], Fri Jun 25 04:35:54 2010 UTC (23 months ago) by msaitoh
Branch: MAIN
Changes since 1.208: +7 -3 lines
Diff to previous 1.208 (colored)

Only 82571 shares port 0 of EEMNGCTL_CFGDONE.

Revision 1.208 / (download) - annotate - [select for diffs], Fri Jun 25 04:03:14 2010 UTC (23 months ago) by msaitoh
Branch: MAIN
Changes since 1.207: +155 -28 lines
Diff to previous 1.207 (colored)

Add some code to support 82580[ER]. Tested on my own I340-T4.

 - Fix CTRL_EXT_SWDPIN() and CTRL_EXT_SWDPIO() macros. The bit order of the
   SW definable pin is not 6543 but 3654!!!

 - Rewrite the code to read MAC address from eeprom.

 - Add some code to support 82580.

TODO:
 - ukphy -> somephy

Revision 1.205.2.1 / (download) - annotate - [select for diffs], Sun May 30 05:17:35 2010 UTC (23 months, 3 weeks ago) by rmind
Branch: rmind-uvmplock
Changes since 1.205: +7 -9 lines
Diff to previous 1.205 (colored)

sync with head

Revision 1.207 / (download) - annotate - [select for diffs], Tue May 25 01:17:55 2010 UTC (2 years ago) by msaitoh
Branch: MAIN
Changes since 1.206: +5 -5 lines
Diff to previous 1.206 (colored)

Fix the names of 82577L[MC] LAN controllers (for mobile).
Fix typo.

Revision 1.197.2.1 / (download) - annotate - [select for diffs], Fri Apr 30 14:43:38 2010 UTC (2 years ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.197: +1070 -162 lines
Diff to previous 1.197 (colored)

Sync with HEAD.

Revision 1.162.4.3.2.1.2.1 / (download) - annotate - [select for diffs], Wed Apr 21 00:27:41 2010 UTC (2 years, 1 month ago) by matt
Branch: matt-nb5-mips64
CVS Tags: matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-k15
Changes since 1.162.4.3.2.1: +1762 -537 lines
Diff to previous 1.162.4.3.2.1 (colored) next main 1.162.4.4 (colored)

sync to netbsd-5

Revision 1.206 / (download) - annotate - [select for diffs], Mon Apr 5 07:20:28 2010 UTC (2 years, 1 month ago) by joerg
Branch: MAIN
CVS Tags: uebayasi-xip-base1
Changes since 1.205: +4 -6 lines
Diff to previous 1.205 (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.158.4.6 / (download) - annotate - [select for diffs], Thu Mar 11 15:03:48 2010 UTC (2 years, 2 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.158.4.5: +2429 -700 lines
Diff to previous 1.158.4.5 (colored) to branchpoint 1.158 (colored)

sync with head

Revision 1.205 / (download) - annotate - [select for diffs], Wed Mar 10 15:04:04 2010 UTC (2 years, 2 months ago) by msaitoh
Branch: MAIN
Branch point for: rmind-uvmplock
Changes since 1.204: +4 -4 lines
Diff to previous 1.204 (colored)

82576 is dual port, so check the FUNCID and increment the MAC address for
the 2nd port.

Revision 1.204 / (download) - annotate - [select for diffs], Sun Mar 7 10:11:04 2010 UTC (2 years, 2 months ago) by msaitoh
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9
Changes since 1.203: +3 -3 lines
Diff to previous 1.203 (colored)

Fix the type of sc_ss. That is not bus_space_handle_t but bus_size_t.
Reported by jdc.

Revision 1.203 / (download) - annotate - [select for diffs], Sun Mar 7 09:05:19 2010 UTC (2 years, 2 months ago) by msaitoh
Branch: MAIN
Changes since 1.202: +396 -21 lines
Diff to previous 1.202 (colored)

- Add code for WOL, ASF, IPMI and Intel AMT.
    - wm_enable_wakeup() is disabled by default. If you want to use WOL with
      the Magic Packet, define WM_WOL.
    - Add the following flags:
        WM_F_ASF_FIRMWARE_PRESENT
        WM_F_ARC_SUBSYSTEM_VALID
        WM_F_HAS_AMT
        WM_F_HAS_MANAGE
        WM_F_WOL
    - Add wm_suspend() and wm_resume(). Give/get the control to/from the
      firmware.
    - Need more work for PCH. See wm_enable_phy_wakeup().
- Enable wm_get_hw_control() for 82574 and 82583.
- Add Yet another workaround for ICH8.
    - Add wm_igp3_phy_powerdown_workaround_ich8lan() for power down problem
      on D3.

Revision 1.202 / (download) - annotate - [select for diffs], Sun Mar 7 07:53:37 2010 UTC (2 years, 2 months ago) by msaitoh
Branch: MAIN
Changes since 1.201: +85 -3 lines
Diff to previous 1.201 (colored)

Add two workarounds for ICH8 with igp3.
- Workaround for 82566 Kumeran PCS lock loss.
- WOL from S5 stops working.

Revision 1.201 / (download) - annotate - [select for diffs], Sun Mar 7 07:09:00 2010 UTC (2 years, 2 months ago) by msaitoh
Branch: MAIN
Changes since 1.200: +94 -20 lines
Diff to previous 1.200 (colored)

Add the detach code.

Revision 1.200 / (download) - annotate - [select for diffs], Thu Feb 25 15:07:06 2010 UTC (2 years, 2 months ago) by msaitoh
Branch: MAIN
Changes since 1.199: +6 -6 lines
Diff to previous 1.199 (colored)

 Merge if_wm.c rev. 1.162.4.13 and if_wmvar.h rev. 1.2.46.3 into maintrunk.
Increase the timeout value to prevent timeout on 80003. The values are taken
from Intel's e1000 driver. Tested by spz and me.

Revision 1.162.4.13 / (download) - annotate - [select for diffs], Thu Feb 25 10:59:58 2010 UTC (2 years, 2 months ago) by sborrill
Branch: netbsd-5
CVS Tags: netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1
Branch point for: netbsd-5-1
Changes since 1.162.4.12: +6 -6 lines
Diff to previous 1.162.4.12 (colored) to branchpoint 1.162 (colored)

Fix regression caused by pullup #1277 requested by msaitoh.

Revision 1.199 / (download) - annotate - [select for diffs], Tue Feb 16 15:17:17 2010 UTC (2 years, 3 months ago) by msaitoh
Branch: MAIN
Changes since 1.198: +483 -100 lines
Diff to previous 1.198 (colored)

Add support for 82575, 82576 and 82580(ER).
- Apply the patch for 82575 from Wolfgang Stukenbrock (PR#42422). We use
  only one RX ring and with the legacy mode.
- Add support for 82576.
- Partial support for 82580.
- Partial support for the serdes systems.

Revision 1.198 / (download) - annotate - [select for diffs], Tue Feb 16 10:06:19 2010 UTC (2 years, 3 months ago) by msaitoh
Branch: MAIN
Changes since 1.197: +22 -26 lines
Diff to previous 1.197 (colored)

indent, tabify and remove extra spaces.

Revision 1.197 / (download) - annotate - [select for diffs], Thu Feb 4 10:20:54 2010 UTC (2 years, 3 months ago) by msaitoh
Branch: MAIN
CVS Tags: uebayasi-xip-base
Branch point for: uebayasi-xip
Changes since 1.196: +2 -3 lines
Diff to previous 1.196 (colored)

Don't increment when ICR_RXO is set because we count them by WMREG_MPC
counter.

Revision 1.196 / (download) - annotate - [select for diffs], Thu Feb 4 09:13:23 2010 UTC (2 years, 3 months ago) by msaitoh
Branch: MAIN
Changes since 1.195: +11 -4 lines
Diff to previous 1.195 (colored)

- Count Receive error, CRC error, Alignment error, Symbol error, Sequence
  error, Carrier extension error and Receive length error into ierror.
  Fixes PR#30349 reported by UMEZAWA Takeshi.
- Count Missed packet (rx fifo overflow) and Receive no buffers (rx ring full)
  into iqdrops.

Revision 1.162.4.12 / (download) - annotate - [select for diffs], Wed Jan 27 22:27:41 2010 UTC (2 years, 3 months ago) by sborrill
Branch: netbsd-5
Changes since 1.162.4.11: +1311 -461 lines
Diff to previous 1.162.4.11 (colored) to branchpoint 1.162 (colored)

Pull up the following revisions(s) (requested by msaitoh in ticket #1277):
sys/dev/pci/if_wm.c		1.184-1.192, 1.194
sys/dev/pci/if_wmreg.h		1.29-1.35
sys/dev/pci/if_wmvar.h		1.5-1.8
sys/dev/pci/pcidevs		1.1006,1.1009-1.1010, 1.1012-1.1013 via patch
sys/dev/pci/pcidevs.h		regen
sys/dev/pci/pcidevs_data.h	regen
sys/dev/mii/igphyreg.h		1.5
sys/dev/mii/inbmphyreg.h	1.1

- Add support for i82583V.
- Add some ICH9 and ICH10 devices.
- Add support for PCH.
- Fix the bug that ICH9 can't found a PHY. Fixes PR#42237
- Fix an incorrect test for WM_F_EEPROM_INVALID since rev. 1.183. Some old
  chips don't set EECD_EE_PRES.
- Fix a bug that both WM_F_EEPROM_SPI and WM_F_EEPROM_FLASH are set.
- Add a missing decrement for a timeout reported by Wolfgang Stukenbrock
  in PR#42422.
- PBA setting for i82574 is not 12K but 20K.
- Enable checking the management mode on 82574.
- Fix the length of the delay() in wm_gmii_reset(). It fixed the problem that
  sometimes the driver misunderstood PHYs in mii_attach(). It was reported
  by MATSUI Yoshihiro. We observed it on ICH9.
- Fix the checking of jumbo frame function
- Remove the extra macro definition for the offset 0x1a in EEPROM.
- Add missing break in wm_reset()...
- Fix the offset of WMREG_PBS...
- Make wm_reset() and wm_gmii_reset() close to e1000 driver.
  At least, this change make wm_attach() stable on ICH9.
- Reset GMII interface after wm_reset() in wm_init().
- Rework for assigning mii_{read,write}reg(). Use PCI product ID to identify
  the PHY.
- Add code about LPLU(Low Power Link Up) function. It seems that we have to
  do the same work for ICH9.
- Fixes the rx stall problem on 82578 by MANY workaround code. We need more
  work for 82577.

Revision 1.195 / (download) - annotate - [select for diffs], Fri Jan 22 08:56:06 2010 UTC (2 years, 4 months ago) by martin
Branch: MAIN
Changes since 1.194: +3 -3 lines
Diff to previous 1.194 (colored)

Unify the name of the device property to hold a MAC address - there was
no clear majority for either "mac-addr" vs. "mac-address", but a quick
gallup poll among developers selected the latter.

Revision 1.194 / (download) - annotate - [select for diffs], Thu Jan 21 08:52:20 2010 UTC (2 years, 4 months ago) by msaitoh
Branch: MAIN
Changes since 1.193: +246 -235 lines
Diff to previous 1.193 (colored)

Remove an extra debug printf(). KNF.
No functional change.

Revision 1.193 / (download) - annotate - [select for diffs], Tue Jan 19 22:07:02 2010 UTC (2 years, 4 months ago) by pooka
Branch: MAIN
Changes since 1.192: +4 -11 lines
Diff to previous 1.192 (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.192 / (download) - annotate - [select for diffs], Thu Jan 14 18:56:02 2010 UTC (2 years, 4 months ago) by msaitoh
Branch: MAIN
Changes since 1.191: +357 -108 lines
Diff to previous 1.191 (colored)

Fixes the rx stall problem on 82578 by MANY workaround code.
We need more work for 82577.

Revision 1.191 / (download) - annotate - [select for diffs], Tue Jan 12 22:26:30 2010 UTC (2 years, 4 months ago) by msaitoh
Branch: MAIN
Changes since 1.190: +139 -36 lines
Diff to previous 1.190 (colored)

- Add i82567LM-2 i82567LM-4 i82567V-3 LAN controller.
- Reset GMII interface after wm_reset() in wm_init().
- Rework for assigning mii_{read,write}reg(). Use PCI product ID to identify
  the PHY.
- Add code about LPLU(Low Power Link Up) function. Now we can linkup 1000BaseT
  on PCH. It seems that we have to do the same work for ICH9.

Revision 1.190 / (download) - annotate - [select for diffs], Mon Jan 11 12:29:28 2010 UTC (2 years, 4 months ago) by msaitoh
Branch: MAIN
Changes since 1.189: +92 -19 lines
Diff to previous 1.189 (colored)

 Add partial support for PCH. We have to do more work for PCH. Especially
I don't know what driver i82578 should be attached to. makephy? or atphy?
MII_OUI() says that the PHY is from Attansic (== Atheros). Intel's e1000
driver says that it's close to makphy...

 I can't link up at 1000BaseT yet...

Revision 1.189 / (download) - annotate - [select for diffs], Thu Jan 7 17:45:58 2010 UTC (2 years, 4 months ago) by msaitoh
Branch: MAIN
Changes since 1.188: +321 -44 lines
Diff to previous 1.188 (colored)

Make wm_reset() and wm_gmii_reset() close to e1000 driver.
At least, this change make wm_attach() stable on ICH9.

Revision 1.188 / (download) - annotate - [select for diffs], Thu Jan 7 17:34:38 2010 UTC (2 years, 4 months ago) by msaitoh
Branch: MAIN
Changes since 1.187: +5 -5 lines
Diff to previous 1.187 (colored)

bugfixes:
 - add missing break in wm_reset()...
 - fix the offset of WMREG_PBS...
 - fix length of some delay()s in wm_gmii_reset()

Revision 1.187 / (download) - annotate - [select for diffs], Tue Jan 5 10:02:01 2010 UTC (2 years, 4 months ago) by msaitoh
Branch: MAIN
Changes since 1.186: +35 -11 lines
Diff to previous 1.186 (colored)

 Fix the checking of jumbo frame function though I don't know whether
the function wokrs or not...

 Remove the extra macro definition for the offset 0x1a in EEPROM.

Revision 1.186 / (download) - annotate - [select for diffs], Tue Jan 5 09:31:21 2010 UTC (2 years, 4 months ago) by msaitoh
Branch: MAIN
Changes since 1.185: +60 -10 lines
Diff to previous 1.185 (colored)

 Fix the length of the delay() in wm_gmii_reset(). It fixed the problem that
sometimes the driver misunderstood PHYs in mii_attach(). It was reported
by MATSUI Yoshihiro. We observed it on ICH9.

Revision 1.185 / (download) - annotate - [select for diffs], Tue Dec 29 16:01:21 2009 UTC (2 years, 4 months ago) by msaitoh
Branch: MAIN
Changes since 1.184: +124 -82 lines
Diff to previous 1.184 (colored)

- Fix an incorrect test for WM_F_EEPROM_INVALID since rev. 1.183. Some old
  chips don't set EECD_EE_PRES.
- Fix a bug that both WM_F_EEPROM_SPI and WM_F_EEPROM_FLASH are set.
- Add a missing decrement for a timeout reported by Wolfgang Stukenbrock
  in PR#42422.
- Add support for i82583V.
- PBA setting for i82574 is not 12K but 20K.
- Enable checking the management mode on 82574.

Revision 1.184 / (download) - annotate - [select for diffs], Sun Dec 27 20:36:38 2009 UTC (2 years, 4 months ago) by msaitoh
Branch: MAIN
Changes since 1.183: +30 -9 lines
Diff to previous 1.183 (colored)

Fix the bug that ICH9 can't found a PHY. This fix is not good, but it's
the same as e1000 driver... Fixes PR#42237

Revision 1.162.4.11 / (download) - annotate - [select for diffs], Wed Dec 23 10:37:37 2009 UTC (2 years, 5 months ago) by sborrill
Branch: netbsd-5
Changes since 1.162.4.10: +172 -114 lines
Diff to previous 1.162.4.10 (colored) to branchpoint 1.162 (colored)

Pull up the following revisions(s) (requested by msaitoh in ticket #1203):
	sys/dev/pci/if_wm.c:		1.176-1.179, 1.181-1.183
	sys/dev/pci/if_wmreg.h:		1.28
	sys/dev/pci/if_wmvar.h:		1.1-1.4
	sys/dev/mii/igphy.c:		1.18-1.20 via patch

Many bugfixes:
- Some fixes for i80003 and ICH{8,9,10} from e1000 driver and document:
  - Add setting for KABGTXD register for ICH{8,9,10}.
  - ICH9 and ICH10 has no FCAL, FCAH and FCT like ICH8.
  - Add special setting for FCTTV and TCTL_EXT register for i80003
  - The special setting for TIPG is only for i80003.
  - Some of kumeran settings are only for i80003's bugs.
  - Add some ICH10 fixes.
  - Fix the bug that another lock mechanism is used to access Kumeran
    registers on i80003 and ICHs.
  - Fix yet another i80003 ONLY workaround. The code to modifing TIPG
    register is only for i80003.
- Set the Re-Transmit on Late Collision(RTLC) flag for all devices.
- Fix a typo in a printf message.
- If the difference bettween last flag and new flag is only IFF_PROMISC
  or IFF_ALLMULTI, set multicast filter only to prevent link down.
  Tested by Mark Davies and me. Fixes PR#29126 for wm.
- Cleanup interrupt establish error messages. Do not mix
  aprint_error/aprint_normal/printf calls for a single line.
- Fix igphy's 82566 support.
  - Patch for the DSP code is only for 8254[17] and we have to apply
    the different patches between rev. 1 and rev. 2.
  - The workaround for analog fuse is only for 82547 rev. 1.
  - The workaround for smartspeed is only for 8254[17]
- Sync with Intel's original em driver:
  - Check PCI-X mode as e1000 driver.
  - Add dspcode for igp3 and use it when the EEPROM isn't available.
  - Add some delays.
  - Stop the PHY transmitter before patching the DSP code and
    restart it after writing.
  - Save and restore register 0x2f5b.

Revision 1.183 / (download) - annotate - [select for diffs], Wed Dec 16 14:37:26 2009 UTC (2 years, 5 months ago) by msaitoh
Branch: MAIN
Changes since 1.182: +20 -28 lines
Diff to previous 1.182 (colored)

Sync with Intel's original em driver:
- Add dspcode for igp3 and use it when the EEPROM isn't available.
- Add some delays.
- Stop the PHY transmitter before patching the DSP code and restart it after wrote.
- Save and restore register 0x2f5b.

Revision 1.182 / (download) - annotate - [select for diffs], Wed Dec 16 04:50:35 2009 UTC (2 years, 5 months ago) by msaitoh
Branch: MAIN
Changes since 1.181: +12 -34 lines
Diff to previous 1.181 (colored)

Re-enable igphy's 82566 support.
 - Patch for the DSP code is only for 8254[17] and we have to apply the
   different patches between rev. 1 and rev. 2.
 - The workaround for analog fuse is only for 82547 rev. 1.
 - The workaround for smartspeed is only for 8254[17]

see http://mail-index.netbsd.org/tech-net/2009/08/05/msg001546.html

Revision 1.181 / (download) - annotate - [select for diffs], Thu Nov 26 15:17:10 2009 UTC (2 years, 5 months ago) by njoly
Branch: MAIN
CVS Tags: matt-premerge-20091211
Changes since 1.180: +4 -4 lines
Diff to previous 1.180 (colored)

Cleanup interrupt establish error messages. Do not mix
aprint_error/aprint_normal/printf calls for a single line.

Revision 1.158.4.5 / (download) - annotate - [select for diffs], Wed Sep 16 13:37:52 2009 UTC (2 years, 8 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.158.4.4: +5 -5 lines
Diff to previous 1.158.4.4 (colored) to branchpoint 1.158 (colored)

sync with head

Revision 1.180 / (download) - annotate - [select for diffs], Sat Sep 5 14:09:55 2009 UTC (2 years, 8 months ago) by tsutsui
Branch: MAIN
CVS Tags: yamt-nfs-mp-base8, jym-xensuspend-nbase
Changes since 1.179: +5 -5 lines
Diff to previous 1.179 (colored)

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

Revision 1.158.4.4 / (download) - annotate - [select for diffs], Wed Aug 19 18:47:11 2009 UTC (2 years, 9 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.158.4.3: +86 -34 lines
Diff to previous 1.158.4.3 (colored) to branchpoint 1.158 (colored)

sync with head.

Revision 1.179 / (download) - annotate - [select for diffs], Thu Aug 6 03:03:46 2009 UTC (2 years, 9 months ago) by msaitoh
Branch: MAIN
CVS Tags: yamt-nfs-mp-base7
Changes since 1.178: +33 -3 lines
Diff to previous 1.178 (colored)

 If the difference bettween last flag and new flag is only IFF_PROMISC or
IFF_ALLMULTI, set multicast filter only to prevent link down. Tested by
Mark Davies and me. Fixes PR#29126 for wm.

Revision 1.178 / (download) - annotate - [select for diffs], Thu Jul 30 03:46:48 2009 UTC (2 years, 9 months ago) by msaitoh
Branch: MAIN
Changes since 1.177: +55 -33 lines
Diff to previous 1.177 (colored)

Fix the bug that another lock mechanism is used to access Kumeran registers
on i80003 and ICHs.

Fix yet another i80003 ONLY workaround. The code to modifing TIPG register
is only for i80003.

Set the Re-Transmit on Late Collision(RTLC) flag for all devices.

Fix a typo in a printf message.

Revision 1.164.2.2 / (download) - annotate - [select for diffs], Thu Jul 23 23:31:58 2009 UTC (2 years, 10 months ago) by jym
Branch: jym-xensuspend
Changes since 1.164.2.1: +78 -28 lines
Diff to previous 1.164.2.1 (colored) next main 1.165 (colored)

Sync with HEAD.

Revision 1.162.4.3.2.1 / (download) - annotate - [select for diffs], Sun Jul 19 19:48:26 2009 UTC (2 years, 10 months ago) by snj
Branch: netbsd-5-0
CVS Tags: netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20091211, matt-nb4-mips64-k7-u2a-k9b
Branch point for: matt-nb5-mips64
Changes since 1.162.4.3: +217 -59 lines
Diff to previous 1.162.4.3 (colored) next main 1.162.4.4 (colored)

Pull up following revision(s) (requested by msaitoh in ticket #862):
	sys/dev/pci/if_wm.c: revisions 1.168, 1.170, and 1.173 via patch
	sys/dev/pci/if_wmreg.h: revision 1.27
Fixes serious three bugs.
1) On i82563, the em driver says that the ready bit in the MDIC
register may be incorrectly set. Insert delay(200) like the em driver.
Fixes PR#41014
2) Add workaround for 82543GC. We need to force speed and duplex on
the MAC equal to what the PHY speed and duplex configuration is.
Fixes PR#36430.
3) Fix many problems and panic on TBI's cards (includes PR#32009).

Revision 1.158.4.3 / (download) - annotate - [select for diffs], Sat Jul 18 14:53:04 2009 UTC (2 years, 10 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.158.4.2: +64 -28 lines
Diff to previous 1.158.4.2 (colored) to branchpoint 1.158 (colored)

sync with head.

Revision 1.177 / (download) - annotate - [select for diffs], Tue Jul 14 00:00:44 2009 UTC (2 years, 10 months ago) by msaitoh
Branch: MAIN
CVS Tags: yamt-nfs-mp-base6, jymxensuspend-base
Changes since 1.176: +61 -24 lines
Diff to previous 1.176 (colored)

Some fixes for i80003 and ICH{8,9,10} from e1000 driver and document:

    Add setting for KABGTXD register for ICH{8,9,10}.

    ICH9 and ICH10 has no FCAL, FCAH and FCT like ICH8.

    Add special setting for FCTTV and TCTL_EXT register for i80003

    The special setting for TIPG is only for i80003.

    Some of kumeran settings are only for i80003's bugs.

    Add some ICH10 fixes.

Revision 1.176 / (download) - annotate - [select for diffs], Mon Jul 13 23:31:19 2009 UTC (2 years, 10 months ago) by msaitoh
Branch: MAIN
Changes since 1.175: +3 -4 lines
Diff to previous 1.175 (colored)

Check PCI-X mode as e1000 driver.

Revision 1.158.4.2 / (download) - annotate - [select for diffs], Sat Jun 20 07:20:23 2009 UTC (2 years, 11 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.158.4.1: +16 -2 lines
Diff to previous 1.158.4.1 (colored) to branchpoint 1.158 (colored)

sync with head

Revision 1.162.4.10 / (download) - annotate - [select for diffs], Fri Jun 5 18:49:42 2009 UTC (2 years, 11 months ago) by snj
Branch: netbsd-5
Changes since 1.162.4.9: +16 -2 lines
Diff to previous 1.162.4.9 (colored) to branchpoint 1.162 (colored)

Pull up following revision(s) (requested by 792):
	sys/dev/pci/if_wm.c: revision 1.175 via patch
	sys/net/if_ethersubr.c: revision 1.172 via patch
	sys/net/agr/ieee8023ad_lacp.c: revision 1.9 via patch
	sys/net/agr/if_agr.c: revision 1.23 via patch
	sys/net/agr/if_agrether.c: revision 1.7 via patch
	sys/net/agr/if_agrvar_impl.h: revision 1.8 via patch
Add vlan support and hardware offload capabilities to agr.
These changes allow vlans to be layered above agr, with the attach
and detach propogated to the member ports in the aggregation.
Note the agr interface must be up before the vlan is attached.
Adds SIOCSIFADDR support to the wm driver for setting the AF_LINK
address, necessary for agr to be able to set the mac addresses of each
port to the agr address (i.e. so it can receive all intended traffic
at the hardware level).
Adds support for disabling the LACP protocol by setting LINK1 on the agr
interface (e.g. ifconfig agr0 link1).
In consultation with tls@.

Revision 1.175 / (download) - annotate - [select for diffs], Fri May 29 04:57:04 2009 UTC (2 years, 11 months ago) by darran
Branch: MAIN
CVS Tags: yamt-nfs-mp-base5
Changes since 1.174: +16 -2 lines
Diff to previous 1.174 (colored)

Add vlan support and hardware offload capabilities to agr.
These changes allow vlans to be layered above agr, with the attach
and detach propogated to the member ports in the aggregation.
Note the agr interface must be up before the vlan is attached.

Adds SIOCINITIFADDR support to the wm driver for setting the AF_LINK
address, necessary for agr to be able to set the mac addresses of each
port to the agr address (i.e. so it can receive all intended traffic
at the hardware level).

Adds support for disabling the LACP protocol by setting LINK1 on the agr
interface (e.g. ifconfig agr0 link1).

In consultation with tls@.

Revision 1.162.4.9 / (download) - annotate - [select for diffs], Thu May 21 01:13:49 2009 UTC (3 years ago) by snj
Branch: netbsd-5
Changes since 1.162.4.8: +357 -80 lines
Diff to previous 1.162.4.8 (colored) to branchpoint 1.162 (colored)

Pull up following revision(s) (requested by bouyer in ticket #711):
	sys/dev/pci/pcidevs: revisions 1.975, 1.981, 1.982 via patch
	sys/dev/pci/if_wm.c: revisions 1.164, 1.167, 1.173, 1.174 via patch
	sys/dev/pci/if_wmreg.h: revisions 1.25, 1.27 via patch
Add Intel 82567LM_3 ethernet
--
Add i82567LM-3
--
add i82567LF-3 LAN Controller
--
add an entry for 82567LF-3.
fix the register access for ICH10DO.
--
Fix about TBI mode. This fix doesn't influence MII mode.
--
 - Fix panic in mediachange.
 - Fix SWDPIN(1)'s polarity on some chips.
 - Fix flow control stuff (includes PR#32009).
 - Stop RXCFG storm. It ocours easily.
 - And more fix about autonego.
--
add 82801J_D_BM_LF (ICH10)
--
Reload sc_ctrl in wm_reset().
Add an ICH10 entry.
Remove some obsolete comments.

Revision 1.164.2.1 / (download) - annotate - [select for diffs], Wed May 13 17:20:26 2009 UTC (3 years ago) by jym
Branch: jym-xensuspend
Changes since 1.164: +578 -108 lines
Diff to previous 1.164 (colored)

Sync with HEAD.

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

Revision 1.162.4.8 / (download) - annotate - [select for diffs], Mon May 11 20:11:34 2009 UTC (3 years ago) by bouyer
Branch: netbsd-5
Changes since 1.162.4.7: +2 -4 lines
Diff to previous 1.162.4.7 (colored) to branchpoint 1.162 (colored)

Apply patch (requested by msaitoh in ticket #751):
        sys/dev/pci/if_wm.c: patch
Remove extra printf()s.

Revision 1.158.4.1 / (download) - annotate - [select for diffs], Mon May 4 08:12:58 2009 UTC (3 years ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.158: +764 -260 lines
Diff to previous 1.158 (colored)

sync with head.

Revision 1.162.4.7 / (download) - annotate - [select for diffs], Sun May 3 17:58:41 2009 UTC (3 years ago) by snj
Branch: netbsd-5
Changes since 1.162.4.6: +40 -2 lines
Diff to previous 1.162.4.6 (colored) to branchpoint 1.162 (colored)

Pull up following revision(s) (requested by msaitoh in ticket #630):
	sys/dev/pci/if_wm.c: revision 1.170
Add workaround for 82543GC.
We need to force speed and duplex on the MAC equal to what the PHY
speed and duplex configuration is. Fixes PR#36430.

Revision 1.162.4.6 / (download) - annotate - [select for diffs], Sun May 3 17:56:05 2009 UTC (3 years ago) by snj
Branch: netbsd-5
Changes since 1.162.4.5: +3 -3 lines
Diff to previous 1.162.4.5 (colored) to branchpoint 1.162 (colored)

Pull up following revision(s) (requested by tls in ticket #627):
	sys/dev/pci/if_wm.c: revision 1.172
Missed a small but important change to enable hardware VLAN support.

Revision 1.162.4.5 / (download) - annotate - [select for diffs], Sun May 3 17:54:07 2009 UTC (3 years ago) by snj
Branch: netbsd-5
Changes since 1.162.4.4: +5 -13 lines
Diff to previous 1.162.4.4 (colored) to branchpoint 1.162 (colored)

Pull up following revision(s) (requested by tls in ticket #627):
	sys/dev/pci/if_wm.c: revision 1.171
Enable the vlan code that thorpej@NetBSD.org added, and fix a bug where
the vlan tag was read from the rx descriptor after it was reinitialized
(and hence was always 0).  Hardware vlan support looks good tested
between two vmware clients.
With support from tls@NetBSD.org.

Revision 1.162.4.4 / (download) - annotate - [select for diffs], Sun May 3 17:51:02 2009 UTC (3 years ago) by snj
Branch: netbsd-5
Changes since 1.162.4.3: +172 -16 lines
Diff to previous 1.162.4.3 (colored) to branchpoint 1.162 (colored)

Pull up following revision(s) (requested by spz in ticket #621):
	sys/dev/pci/if_wm.c: revisions 1.168, 1.169 via patch
	sys/dev/pci/if_wmreg.h: revision 1.26 via patch
On i82563, the em driver says that the ready bit in the MDIC register may be
incorrectly set. Insert delay(200) like the em driver.
--
Examine the management mode and mark DRV_LOAD (for ICH{8,9,10},80003,
8257{1,2,3,4}).
Add some error's printf().
Make the bank detect routine into the function.

Revision 1.162.2.3 / (download) - annotate - [select for diffs], Tue Apr 28 07:35:57 2009 UTC (3 years ago) by skrll
Branch: nick-hppapmap
Changes since 1.162.2.2: +561 -103 lines
Diff to previous 1.162.2.2 (colored) to branchpoint 1.162 (colored) next main 1.163 (colored)

Sync with HEAD.

Revision 1.174 / (download) - annotate - [select for diffs], Tue Apr 7 18:42:30 2009 UTC (3 years, 1 month ago) by msaitoh
Branch: MAIN
CVS Tags: yamt-nfs-mp-base4, yamt-nfs-mp-base3, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base, jym-xensuspend-base
Changes since 1.173: +8 -5 lines
Diff to previous 1.173 (colored)

Reload sc_ctrl in wm_reset().

Add an ICH10 entry.

Remove some obsolete comments.

Revision 1.173 / (download) - annotate - [select for diffs], Tue Apr 7 18:23:37 2009 UTC (3 years, 1 month ago) by msaitoh
Branch: MAIN
Changes since 1.172: +170 -57 lines
Diff to previous 1.172 (colored)

Fix about TBI mode. This fix doesn't influence MII mode.
 - Fix panic in mediachange.
 - Fix SWDPIN(1)'s polarity on some chips.
 - Fix flow control stuff (includes PR#32009).
 - Stop RXCFG storm. It ocours easily.
 - And more fix about autonego.

Tested on PRO/1000F, PRO/1000XF and PRO/1000 MF.

Revision 1.172 / (download) - annotate - [select for diffs], Tue Mar 31 06:58:55 2009 UTC (3 years, 1 month ago) by darran
Branch: MAIN
Changes since 1.171: +3 -3 lines
Diff to previous 1.171 (colored)

Missed a small but important change to enable hardware VLAN support.

Revision 1.171 / (download) - annotate - [select for diffs], Tue Mar 31 04:16:57 2009 UTC (3 years, 1 month ago) by darran
Branch: MAIN
Changes since 1.170: +5 -13 lines
Diff to previous 1.170 (colored)

Enable the vlan code that thorpej@NetBSD.org added, and fix a bug where
the vlan tag was read from the rx descriptor after it was reinitialized
(and hence was always 0).  Hardware vlan support looks good tested
between two vmware clients.
With support from tls@NetBSD.org.

Revision 1.170 / (download) - annotate - [select for diffs], Sun Mar 29 16:22:17 2009 UTC (3 years, 1 month ago) by msaitoh
Branch: MAIN
Changes since 1.169: +40 -2 lines
Diff to previous 1.169 (colored)

Add workaround for 82543GC.
We need to force speed and duplex on the MAC equal to what the PHY
speed and duplex configuration is. Fixes PR#36430.

Revision 1.100.2.13 / (download) - annotate - [select for diffs], Thu Mar 26 20:27:18 2009 UTC (3 years, 2 months ago) by bouyer
Branch: netbsd-3
Changes since 1.100.2.12: +2 -2 lines
Diff to previous 1.100.2.12 (colored) to branchpoint 1.100 (colored) next main 1.101 (colored)

Pull up following revision(s) (requested by msaitoh in ticket #2002):
	sys/dev/pci/if_wm.c: revision 1.166
Fix the multicast hash bug on ICH9's wm.
Now we can catch ff02::9 on ICH9's wm. Fixes PR#37976.

Revision 1.131.2.8 / (download) - annotate - [select for diffs], Tue Mar 24 21:50:03 2009 UTC (3 years, 2 months ago) by bouyer
Branch: netbsd-4
Changes since 1.131.2.7: +2 -2 lines
Diff to previous 1.131.2.7 (colored) to branchpoint 1.131 (colored) next main 1.132 (colored)

Pull up following revision(s) (requested by msaitoh in ticket #1291):
	sys/dev/pci/if_wm.c: revision 1.166
Fix the multicast hash bug on ICH9's wm.
Now we can catch ff02::9 on ICH9's wm. Fixes PR#37976

Revision 1.162.4.3 / (download) - annotate - [select for diffs], Fri Mar 20 13:01:35 2009 UTC (3 years, 2 months ago) by msaitoh
Branch: netbsd-5
CVS Tags: netbsd-5-0-RELEASE, netbsd-5-0-RC4
Branch point for: netbsd-5-0
Changes since 1.162.4.2: +20 -8 lines
Diff to previous 1.162.4.2 (colored) to branchpoint 1.162 (colored)

Pull up following revision(s) (requested by sborrill in ticket #587):
	sys/dev/pci/pcidevs: revision 1.978
	sys/dev/pci/if_wm.c: revision 1.165
Add support for 82574L (as found on Desktop CT adaptor) based on 82573
support.

Revision 1.169 / (download) - annotate - [select for diffs], Fri Mar 20 07:29:15 2009 UTC (3 years, 2 months ago) by msaitoh
Branch: MAIN
Changes since 1.168: +239 -40 lines
Diff to previous 1.168 (colored)

Examine the management mode and mark DRV_LOAD (for ICH{8,9,10},80003,
8257{1,2,3,4}).

Add some error's printf().

Make the bank detect routine into the function.

Revision 1.168 / (download) - annotate - [select for diffs], Fri Mar 20 06:27:53 2009 UTC (3 years, 2 months ago) by msaitoh
Branch: MAIN
Changes since 1.167: +10 -4 lines
Diff to previous 1.167 (colored)

On i82563, the em driver says that the ready bit in the MDIC register may be
incorrectly set. Insert delay(200) like the em driver. Fixes PR#41014.

Revision 1.162.4.2 / (download) - annotate - [select for diffs], Wed Mar 18 05:43:40 2009 UTC (3 years, 2 months ago) by snj
Branch: netbsd-5
CVS Tags: netbsd-5-0-RC3
Changes since 1.162.4.1: +4 -4 lines
Diff to previous 1.162.4.1 (colored) to branchpoint 1.162 (colored)

Pull up following revision(s) (requested by msaitoh in ticket #583):
	sys/dev/pci/if_wm.c: revision 1.166
Fix the multicast hash bug on ICH9's wm.
Now we can catch ff02::9 on ICH9's wm.

Revision 1.167 / (download) - annotate - [select for diffs], Tue Mar 10 03:41:50 2009 UTC (3 years, 2 months ago) by msaitoh
Branch: MAIN
Changes since 1.166: +125 -18 lines
Diff to previous 1.166 (colored)

add an entry for 82567LF-3.
fix the register access for ICH10DO.

Revision 1.162.2.2 / (download) - annotate - [select for diffs], Tue Mar 3 18:31:07 2009 UTC (3 years, 2 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.162.2.1: +25 -10 lines
Diff to previous 1.162.2.1 (colored) to branchpoint 1.162 (colored)

Sync with HEAD.

Revision 1.166 / (download) - annotate - [select for diffs], Sat Feb 28 15:06:43 2009 UTC (3 years, 2 months ago) by msaitoh
Branch: MAIN
CVS Tags: nick-hppapmap-base2
Changes since 1.165: +4 -4 lines
Diff to previous 1.165 (colored)

Fix the multicast hash bug on ICH9's wm.
Now we can catch ff02::9 on ICH9's wm.

Revision 1.165 / (download) - annotate - [select for diffs], Fri Feb 27 13:17:01 2009 UTC (3 years, 2 months ago) by sborrill
Branch: MAIN
Changes since 1.164: +20 -8 lines
Diff to previous 1.164 (colored)

Add support for 82574L (as found on Desktop CT adaptor) based on 82573 support.

Revision 1.164 / (download) - annotate - [select for diffs], Tue Jan 27 08:18:04 2009 UTC (3 years, 3 months ago) by markd
Branch: MAIN
Branch point for: jym-xensuspend
Changes since 1.163: +5 -2 lines
Diff to previous 1.163 (colored)

Add i82567LM-3

Revision 1.162.2.1 / (download) - annotate - [select for diffs], Mon Jan 19 13:18:26 2009 UTC (3 years, 4 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.162: +3 -3 lines
Diff to previous 1.162 (colored)

Sync with HEAD.

Revision 1.154.6.4 / (download) - annotate - [select for diffs], Sat Jan 17 13:29:00 2009 UTC (3 years, 4 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.154.6.3: +10 -1 lines
Diff to previous 1.154.6.3 (colored) to branchpoint 1.154 (colored) next main 1.155 (colored)

Sync with HEAD.

Revision 1.131.2.7 / (download) - annotate - [select for diffs], Sat Dec 13 20:58:58 2008 UTC (3 years, 5 months ago) by bouyer
Branch: netbsd-4
Changes since 1.131.2.6: +3 -3 lines
Diff to previous 1.131.2.6 (colored) to branchpoint 1.131 (colored)

Pull up following revision(s) (requested by sketch in ticket #1246):
	sys/dev/pci/if_wm.c: revision 1.163
Fix '||' vs '&&' mix-up from when ich9 support was added.  Fixes nasty
EEPROM-trashing bug on ich8 and ich9 chipsets as described in
  http://mail-index.netbsd.org/current-users/2008/12/02/msg006435.html
caused by setting the wrong type of EEPROM.

Revision 1.131.2.5.4.1 / (download) - annotate - [select for diffs], Sat Dec 13 20:57:35 2008 UTC (3 years, 5 months ago) by bouyer
Branch: netbsd-4-0
Changes since 1.131.2.5: +3 -3 lines
Diff to previous 1.131.2.5 (colored) next main 1.131.2.6 (colored)

Pull up following revision(s) (requested by sketch in ticket #1246):
	sys/dev/pci/if_wm.c: revision 1.163
Fix '||' vs '&&' mix-up from when ich9 support was added.  Fixes nasty
EEPROM-trashing bug on ich8 and ich9 chipsets as described in
  http://mail-index.netbsd.org/current-users/2008/12/02/msg006435.html
caused by setting the wrong type of EEPROM.

Revision 1.100.2.12 / (download) - annotate - [select for diffs], Sat Dec 13 20:49:50 2008 UTC (3 years, 5 months ago) by bouyer
Branch: netbsd-3
Changes since 1.100.2.11: +3 -3 lines
Diff to previous 1.100.2.11 (colored) to branchpoint 1.100 (colored)

Pull up following revision(s) (requested by sketch in ticket #1983):
	sys/dev/pci/if_wm.c: revision 1.163
Fix '||' vs '&&' mix-up from when ich9 support was added.  Fixes nasty
EEPROM-trashing bug on ich8 and ich9 chipsets as described in
  http://mail-index.netbsd.org/current-users/2008/12/02/msg006435.html
caused by setting the wrong type of EEPROM.

Revision 1.158.10.2 / (download) - annotate - [select for diffs], Sat Dec 13 01:14:36 2008 UTC (3 years, 5 months ago) by haad
Branch: haad-dm
Changes since 1.158.10.1: +3 -3 lines
Diff to previous 1.158.10.1 (colored) to branchpoint 1.158 (colored) next main 1.159 (colored)

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

Revision 1.162.4.1 / (download) - annotate - [select for diffs], Sun Dec 7 19:13:15 2008 UTC (3 years, 5 months ago) by bouyer
Branch: netbsd-5
CVS Tags: netbsd-5-0-RC2, netbsd-5-0-RC1
Changes since 1.162: +3 -3 lines
Diff to previous 1.162 (colored)

Pull up following revision(s) (requested by sketch in ticket #160):
	sys/dev/pci/if_wm.c: revision 1.163
Fix '||' vs '&&' mix-up from when ich9 support was added.  Fixes nasty
EEPROM-trashing bug on ich8 and ich9 chipsets as described in
  http://mail-index.netbsd.org/current-users/2008/12/02/msg006435.html
caused by setting the wrong type of EEPROM.

Revision 1.163 / (download) - annotate - [select for diffs], Tue Dec 2 15:30:04 2008 UTC (3 years, 5 months ago) by sketch
Branch: MAIN
CVS Tags: mjf-devfs2-base, haad-nbase2, haad-dm-base2, haad-dm-base, ad-audiomp2-base, ad-audiomp2
Changes since 1.162: +3 -3 lines
Diff to previous 1.162 (colored)

Fix '||' vs '&&' mix-up from when ich9 support was added.  Fixes nasty
EEPROM-trashing bug on ich8 and ich9 chipsets as described in

  http://mail-index.netbsd.org/current-users/2008/12/02/msg006435.html

caused by setting the wrong type of EEPROM.

Revision 1.100.2.11 / (download) - annotate - [select for diffs], Mon Nov 10 17:02:41 2008 UTC (3 years, 6 months ago) by snj
Branch: netbsd-3
Changes since 1.100.2.10: +11 -2 lines
Diff to previous 1.100.2.10 (colored) to branchpoint 1.100 (colored)

Pull up following revision(s) (requested by bouyer in ticket #1976):
	sys/dev/pci/if_wm.c: revision 1.162
	sys/dev/pci/pcidevs: revision 1.961, 1.962 via patch
Add support for more ethenet ICH9 devices. Tested by Pouya D. Tafti
on a 82801I_IGP_M_AMT.

Revision 1.131.2.6 / (download) - annotate - [select for diffs], Fri Oct 31 20:37:23 2008 UTC (3 years, 6 months ago) by snj
Branch: netbsd-4
Changes since 1.131.2.5: +11 -2 lines
Diff to previous 1.131.2.5 (colored) to branchpoint 1.131 (colored)

Pull up following revision(s) (requested by bouyer in ticket #1215):
	sys/dev/pci/if_wm.c: revision 1.162
	sys/dev/pci/pcidevs: revision 1.961,1.962
Add support for more ethenet ICH9 devices. Tested by Pouya D. Tafti
on a 82801I_IGP_M_AMT.' sys/dev/pci/if_wm.c sys/dev/pci/pcidevs

Revision 1.158.10.1 / (download) - annotate - [select for diffs], Sun Oct 19 22:16:39 2008 UTC (3 years, 7 months ago) by haad
Branch: haad-dm
Changes since 1.158: +189 -158 lines
Diff to previous 1.158 (colored)

Sync with HEAD.

Revision 1.162 / (download) - annotate - [select for diffs], Wed Oct 15 17:32:04 2008 UTC (3 years, 7 months ago) by bouyer
Branch: MAIN
CVS Tags: netbsd-5-base, matt-mips64-base2, haad-dm-base1
Branch point for: nick-hppapmap, netbsd-5
Changes since 1.161: +11 -2 lines
Diff to previous 1.161 (colored)

Add support for more ethenet ICH9 devices. Tested by Pouya D. Tafti
on a 82801I_IGP_M_AMT.

Revision 1.154.6.3 / (download) - annotate - [select for diffs], Sun Sep 28 10:40:27 2008 UTC (3 years, 7 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.154.6.2: +178 -156 lines
Diff to previous 1.154.6.2 (colored) to branchpoint 1.154 (colored)

Sync with HEAD.

Revision 1.158.6.2 / (download) - annotate - [select for diffs], Wed Sep 24 16:38:53 2008 UTC (3 years, 8 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.158.6.1: +167 -152 lines
Diff to previous 1.158.6.1 (colored) to branchpoint 1.158 (colored) next main 1.159 (colored)

Merge in changes between wrstuden-revivesa-base-2 and
wrstuden-revivesa-base-3.

Revision 1.158.6.1 / (download) - annotate - [select for diffs], Thu Sep 18 04:35:07 2008 UTC (3 years, 8 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.158: +15 -8 lines
Diff to previous 1.158 (colored)

Sync with wrstuden-revivesa-base-2.

Revision 1.161 / (download) - annotate - [select for diffs], Tue Sep 9 05:54:23 2008 UTC (3 years, 8 months ago) by cegger
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-4, wrstuden-revivesa-base-3
Changes since 1.160: +3 -3 lines
Diff to previous 1.160 (colored)

make an i386/ALL kernel build

Revision 1.160 / (download) - annotate - [select for diffs], Mon Sep 8 21:20:03 2008 UTC (3 years, 8 months ago) by christos
Branch: MAIN
Changes since 1.159: +166 -151 lines
Diff to previous 1.159 (colored)

cf_attach_decl_new

Revision 1.159 / (download) - annotate - [select for diffs], Fri Aug 15 15:45:52 2008 UTC (3 years, 9 months ago) by simonb
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-2
Changes since 1.158: +15 -8 lines
Diff to previous 1.158 (colored)

When receiving a chain with multiple mbufs (eg a jumbo frame) make sure
the last mbuf in the chain doesn't have a negative length when adjusting
lengths when removing the FCS (which leads to a panic in sbcompress()).

Fix contributed by Wasabi Systems.

Revision 1.154.6.2 / (download) - annotate - [select for diffs], Mon Jun 2 13:23:41 2008 UTC (3 years, 11 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.154.6.1: +143 -160 lines
Diff to previous 1.154.6.1 (colored) to branchpoint 1.154 (colored)

Sync with HEAD.

Revision 1.158 / (download) - annotate - [select for diffs], Thu Apr 10 19:13:37 2008 UTC (4 years, 1 month ago) by cegger
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-pf42-base, yamt-pf42, yamt-nfs-mp-base2, yamt-nfs-mp-base, wrstuden-revivesa-base-1, wrstuden-revivesa-base, simonb-wapbl-nbase, simonb-wapbl-base, simonb-wapbl, hpcarm-cleanup-nbase
Branch point for: yamt-nfs-mp, wrstuden-revivesa, haad-dm
Changes since 1.157: +145 -162 lines
Diff to previous 1.157 (colored)

use aprint_*_dev and device_xname

Revision 1.154.6.1 / (download) - annotate - [select for diffs], Thu Apr 3 12:42:51 2008 UTC (4 years, 1 month ago) by mjf
Branch: mjf-devfs2
Changes since 1.154: +34 -33 lines
Diff to previous 1.154 (colored)

Sync with HEAD.

Revision 1.103.2.12 / (download) - annotate - [select for diffs], Mon Mar 24 09:38:51 2008 UTC (4 years, 2 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.103.2.11: +29 -29 lines
Diff to previous 1.103.2.11 (colored) next main 1.104 (colored)

sync with head.

Revision 1.154.2.1 / (download) - annotate - [select for diffs], Mon Mar 24 07:15:48 2008 UTC (4 years, 2 months ago) by keiichi
Branch: keiichi-mipv6
Changes since 1.154: +34 -33 lines
Diff to previous 1.154 (colored) next main 1.155 (colored)

sync with head.

Revision 1.143.2.3 / (download) - annotate - [select for diffs], Sun Mar 23 02:04:48 2008 UTC (4 years, 2 months ago) by matt
Branch: matt-armv6
Changes since 1.143.2.2: +97 -73 lines
Diff to previous 1.143.2.2 (colored) next main 1.144 (colored)

sync with HEAD

Revision 1.157 / (download) - annotate - [select for diffs], Fri Mar 21 07:47:43 2008 UTC (4 years, 2 months ago) by dyoung
Branch: MAIN
CVS Tags: yamt-lazymbuf-base15, yamt-lazymbuf-base14, matt-armv6-nbase, keiichi-mipv6-nbase, keiichi-mipv6-base, ad-socklock-base1
Changes since 1.156: +29 -29 lines
Diff to previous 1.156 (colored)

pci_activate() expects for its void * argument to be a device_t,
so change the type of the argument to device_t.  Update each use
of pci_activate().

Use device_t and accessors.  Use aprint_*_dev().

Revision 1.103.2.11 / (download) - annotate - [select for diffs], Mon Mar 17 09:15:11 2008 UTC (4 years, 2 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.103.2.10: +5 -5 lines
Diff to previous 1.103.2.10 (colored)

sync with head.

Revision 1.156 / (download) - annotate - [select for diffs], Tue Mar 11 23:58:06 2008 UTC (4 years, 2 months ago) by dyoung
Branch: MAIN
Changes since 1.155: +5 -5 lines
Diff to previous 1.155 (colored)

Prepare for PMF self-suspension: in the if_stop() methods, clear
IFF_UP and IFF_RUNNING before running the 'disable' step, instead
of after.  Soon I will handle the 'disable' step by calling into
PMF, which may call if_stop(, 0).  Ordinarily, that is harmless.
This change lets the if_stop() routines exit early when they find
on entry that IFF_RUNNING is not set.

Revision 1.103.2.10 / (download) - annotate - [select for diffs], Wed Feb 27 08:36:35 2008 UTC (4 years, 2 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.103.2.9: +4 -3 lines
Diff to previous 1.103.2.9 (colored)

sync with head.

Revision 1.155 / (download) - annotate - [select for diffs], Sat Feb 23 06:12:30 2008 UTC (4 years, 3 months ago) by rafal
Branch: MAIN
CVS Tags: hpcarm-cleanup-base
Changes since 1.154: +4 -3 lines
Diff to previous 1.154 (colored)

Request DMA-coherent memory for the rx/tx descriptors.  Makes this work on
sgimips (tested on my O2).  Hint re: descriptor size << cacheline size from
Tsutsui-san; thanks!

Revision 1.148.2.1 / (download) - annotate - [select for diffs], Mon Feb 18 21:05:57 2008 UTC (4 years, 3 months ago) by mjf
Branch: mjf-devfs
Changes since 1.148: +76 -43 lines
Diff to previous 1.148 (colored) next main 1.149 (colored)

Sync with HEAD.

Revision 1.103.2.9 / (download) - annotate - [select for diffs], Mon Feb 11 14:59:39 2008 UTC (4 years, 3 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.103.2.8: +13 -7 lines
Diff to previous 1.103.2.8 (colored)

sync with head.

Revision 1.154 / (download) - annotate - [select for diffs], Thu Feb 7 01:21:58 2008 UTC (4 years, 3 months ago) by dyoung
Branch: MAIN
CVS Tags: nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base
Branch point for: mjf-devfs2, keiichi-mipv6
Changes since 1.153: +13 -7 lines
Diff to previous 1.153 (colored)

Start patching up the kernel so that a network driver always has
the opportunity to handle an ioctl before generic ifioctl handling
occurs.  This will ease extending the kernel and sharing of code
between drivers.

First steps:  Make the signature of ifioctl_common() match struct
ifinet->if_ioctl.  Convert SIOCSIFCAP and SIOCSIFMTU to the new
ifioctl() regime, throughout the kernel.

Revision 1.103.2.8 / (download) - annotate - [select for diffs], Mon Feb 4 09:23:31 2008 UTC (4 years, 3 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.103.2.7: +11 -3 lines
Diff to previous 1.103.2.7 (colored)

sync with head.

Revision 1.153 / (download) - annotate - [select for diffs], Tue Jan 29 20:24:41 2008 UTC (4 years, 3 months ago) by tls
Branch: MAIN
Changes since 1.152: +11 -3 lines
Diff to previous 1.152 (colored)

Sigh.  What was meant here was an ITR register value of 1500, for 2604
interrupts/sec -- not the other way around.  Caught by yamt.

When I can confirm that it won't lock the chip up on the models claimed
to be problematic, I'll probably adjust the packet timers a bit further
to see if I can get latency down under low load.  But this should be
better.

Revision 1.103.2.7 / (download) - annotate - [select for diffs], Mon Jan 21 09:44:03 2008 UTC (4 years, 4 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.103.2.6: +65 -102 lines
Diff to previous 1.103.2.6 (colored)

sync with head

Revision 1.149.2.3 / (download) - annotate - [select for diffs], Sun Jan 20 17:51:40 2008 UTC (4 years, 4 months ago) by bouyer
Branch: bouyer-xeni386
Changes since 1.149.2.2: +39 -34 lines
Diff to previous 1.149.2.2 (colored) to branchpoint 1.149 (colored) next main 1.150 (colored)

Sync with HEAD

Revision 1.152 / (download) - annotate - [select for diffs], Sat Jan 19 22:10:20 2008 UTC (4 years, 4 months ago) by dyoung
Branch: MAIN
CVS Tags: bouyer-xeni386-nbase, bouyer-xeni386-base
Changes since 1.151: +41 -36 lines
Diff to previous 1.151 (colored)

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

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

I have made a few miscellaneous changes, too:

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

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

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

Revision 1.149.2.2 / (download) - annotate - [select for diffs], Fri Jan 11 19:19:13 2008 UTC (4 years, 4 months ago) by bouyer
Branch: bouyer-xeni386
CVS Tags: bouyer-xeni386-merge1
Changes since 1.149.2.1: +4 -0 lines
Diff to previous 1.149.2.1 (colored) to branchpoint 1.149 (colored)

Sync with HEAD

Revision 1.151 / (download) - annotate - [select for diffs], Fri Jan 11 13:04:39 2008 UTC (4 years, 4 months ago) by ragge
Branch: MAIN
Changes since 1.150: +6 -2 lines
Diff to previous 1.150 (colored)

Add entry to match the "IntelPRO/1000 PT Quad Port Server Adapter".

Revision 1.143.2.2 / (download) - annotate - [select for diffs], Wed Jan 9 01:53:51 2008 UTC (4 years, 4 months ago) by matt
Branch: matt-armv6
Changes since 1.143.2.1: +22 -68 lines
Diff to previous 1.143.2.1 (colored)

sync with HEAD

Revision 1.149.2.1 / (download) - annotate - [select for diffs], Wed Jan 2 21:54:48 2008 UTC (4 years, 4 months ago) by bouyer
Branch: bouyer-xeni386
Changes since 1.149: +18 -8 lines
Diff to previous 1.149 (colored)

Sync with HEAD

Revision 1.148.4.1 / (download) - annotate - [select for diffs], Wed Dec 26 19:46:59 2007 UTC (4 years, 5 months ago) by ad
Branch: vmlocking2
Changes since 1.148: +22 -68 lines
Diff to previous 1.148 (colored) next main 1.149 (colored)

Sync with head.

Revision 1.150 / (download) - annotate - [select for diffs], Fri Dec 14 00:23:49 2007 UTC (4 years, 5 months ago) by tls
Branch: MAIN
CVS Tags: vmlocking2-base3, matt-armv6-base
Changes since 1.149: +18 -8 lines
Diff to previous 1.149 (colored)

Adjust interrupt moderation for newer chips to be saner according to the
82571 manual and Intel Application Note 450.  Previously, we were setting
RADV and TIDV/TADV values that didn't make any sense given the enormous
ITR value we were setting (well outside the range recommended by Intel
and quite possibly rejected silently by the chip as junk) and setting
RADV without setting RDTR, which is explicitly documented as having no
effect.

A considerable performance improvement is achieved for TCP and UDP at
gigabit speed.  I need to revisit this to deal with the timer ticks
being 4X as long when the chip's in 100mbit mode, and to set values
for the older chips' interrupt timers that are more like what the
appnote recommends.  This should help for 82543 and newer, though.

Revision 1.148.6.1 / (download) - annotate - [select for diffs], Tue Dec 11 15:32:13 2007 UTC (4 years, 5 months ago) by yamt
Branch: yamt-kmem
Changes since 1.148: +6 -62 lines
Diff to previous 1.148 (colored) next main 1.149 (colored)

sync with head.

Revision 1.149 / (download) - annotate - [select for diffs], Sun Dec 9 20:28:10 2007 UTC (4 years, 5 months ago) by jmcneill
Branch: MAIN
CVS Tags: yamt-kmem-base3, yamt-kmem-base2, cube-autoconf-base, cube-autoconf
Branch point for: bouyer-xeni386
Changes since 1.148: +6 -62 lines
Diff to previous 1.148 (colored)

Merge jmcneill-pm branch.

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

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

Revision 1.100.2.10 / (download) - annotate - [select for diffs], Mon Nov 19 21:24:24 2007 UTC (4 years, 6 months ago) by bouyer
Branch: netbsd-3
Changes since 1.100.2.9: +131 -28 lines
Diff to previous 1.100.2.9 (colored) to branchpoint 1.100 (colored)

Pull up following revision(s) via patch (requested by msaitoh in ticket #1863):
	sys/dev/pci/if_wm.c			 1.137-1.138,1.141,1.144-1.146
	sys/dev/pci/if_wmreg.h			 1.23
	sys/dev/pci/pcidevs			 1.893 via patch
	share/man/man4/wm.4			 1.18-1.19
Fix typo.
Fix EEPROM reload sequence.
Add ICH9 support.
Workaround for 82541 Errata 29 and 82547 Errata 28:
 These devices have to reset the PHY before reset the MAC.
 Reported and tested by salo.

Revision 1.103.2.6 / (download) - annotate - [select for diffs], Thu Nov 15 11:44:22 2007 UTC (4 years, 6 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.103.2.5: +11 -11 lines
Diff to previous 1.103.2.5 (colored)

sync with head.

Revision 1.146.4.2 / (download) - annotate - [select for diffs], Tue Nov 13 16:01:22 2007 UTC (4 years, 6 months ago) by bouyer
Branch: bouyer-xenamd64
Changes since 1.146.4.1: +9 -9 lines
Diff to previous 1.146.4.1 (colored) to branchpoint 1.146 (colored) next main 1.147 (colored)

Sync with HEAD

Revision 1.143.2.1 / (download) - annotate - [select for diffs], Tue Nov 6 23:29:10 2007 UTC (4 years, 6 months ago) by matt
Branch: matt-armv6
CVS Tags: matt-armv6-prevmlocking
Changes since 1.143: +130 -38 lines
Diff to previous 1.143 (colored)

sync with HEAD

Revision 1.142.6.10 / (download) - annotate - [select for diffs], Tue Nov 6 14:27:25 2007 UTC (4 years, 6 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.142.6.9: +6 -9 lines
Diff to previous 1.142.6.9 (colored) to branchpoint 1.142 (colored)

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

Revision 1.142.6.9 / (download) - annotate - [select for diffs], Wed Oct 31 23:14:06 2007 UTC (4 years, 6 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.142.6.8: +11 -11 lines
Diff to previous 1.142.6.8 (colored) to branchpoint 1.142 (colored)

Sync with HEAD.

Revision 1.148 / (download) - annotate - [select for diffs], Tue Oct 30 07:49:40 2007 UTC (4 years, 6 months ago) by simonb
Branch: MAIN
CVS Tags: yamt-kmem-base, vmlocking2-base2, vmlocking2-base1, vmlocking-nbase, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, jmcneill-pm-base, jmcneill-base, bouyer-xenamd64-base2, bouyer-xenamd64-base
Branch point for: yamt-kmem, vmlocking2, mjf-devfs
Changes since 1.147: +11 -11 lines
Diff to previous 1.147 (colored)

Some space-to-tab changes.
XXX: All the recently added ich8 support functions use 4-space indent,
     not touching that...

Revision 1.103.2.5 / (download) - annotate - [select for diffs], Sat Oct 27 11:33:06 2007 UTC (4 years, 6 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.103.2.4: +4 -4 lines
Diff to previous 1.103.2.4 (colored)

sync with head.

Revision 1.142.6.8 / (download) - annotate - [select for diffs], Fri Oct 26 15:46:26 2007 UTC (4 years, 7 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.142.6.7: +4 -4 lines
Diff to previous 1.142.6.7 (colored) to branchpoint 1.142 (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.146.4.1 / (download) - annotate - [select for diffs], Thu Oct 25 22:39:07 2007 UTC (4 years, 7 months ago) by bouyer
Branch: bouyer-xenamd64
Changes since 1.146: +4 -4 lines
Diff to previous 1.146 (colored)

Sync with HEAD.

Revision 1.135.2.7 / (download) - annotate - [select for diffs], Tue Oct 23 20:09:04 2007 UTC (4 years, 7 months ago) by ad
Branch: vmlocking
Changes since 1.135.2.6: +4 -4 lines
Diff to previous 1.135.2.6 (colored) next main 1.136 (colored)

Sync with head.

Revision 1.147 / (download) - annotate - [select for diffs], Fri Oct 19 12:00:49 2007 UTC (4 years, 7 months ago) by ad
Branch: MAIN
Changes since 1.146: +4 -4 lines
Diff to previous 1.146 (colored)

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

Revision 1.100.2.9 / (download) - annotate - [select for diffs], Sun Oct 14 05:07:51 2007 UTC (4 years, 7 months ago) by riz
Branch: netbsd-3
Changes since 1.100.2.8: +450 -20 lines
Diff to previous 1.100.2.8 (colored) to branchpoint 1.100 (colored)

Pull up following revision(s) (requested by bouyer in ticket #1770):
	share/man/man4/wm.4: revision 1.17
	sys/dev/pci/if_wmreg.h: revision 1.22
	sys/dev/pci/if_wm.c: revision 1.139 via patch
	sys/dev/pci/if_wm.c: revision 1.140 via patch
	sys/dev/pci/pcidevs: patch
Add support for ICH8 (i82801H) LAN, from FreeBSD.
Should work on:
i82801H IFE (GT) LAN Controller
i82801H IFE (G) LAN Controller
i82801H (M_AMT) LAN Controller
i82801H (AMT) LAN Controller
i82801H LAN Controller
i82801H (IFE) LAN Controller
i82801H (M) LAN Controller
tested with: Intel i82801H (AMT) LAN Controller, rev. 2
Restore $NetBSD$ tag.
Note ICH8 LAN support.

Revision 1.135.2.6 / (download) - annotate - [select for diffs], Tue Oct 9 13:41:47 2007 UTC (4 years, 7 months ago) by ad
Branch: vmlocking
Changes since 1.135.2.5: +120 -28 lines
Diff to previous 1.135.2.5 (colored)

Sync with head.

Revision 1.142.6.7 / (download) - annotate - [select for diffs], Mon Oct 1 05:37:44 2007 UTC (4 years, 7 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.142.6.6: +7 -80 lines
Diff to previous 1.142.6.6 (colored) to branchpoint 1.142 (colored)

Extend device API by device_power_private and device_power_set_private.
The latter is a temporary mean until the pnp_register API itself is
overhault. This functions allow a generic power handler to store its
state independent of the driver.

Use this and revamp the PCI power handling. Pretty much all PCI devices
had power handlers that did the same thing, generalize this in
pci_generic_power_register/deregister and the handler. This interface
offers callbacks for the drivers to save and restore state on
transistions. After a long discussion with jmcneill@ it was considered
to be powerful enough until evidence is shown that devices can handle
D1/D2 with less code and higher speed than without the full
save/restore. The generic code is carefully written to handle device
without PCI-PM support and ensure that the correct registers are written
to when D3 loses all state.

Reimplement the generic PCI network device handling on
top of PCI generic power handling.

Introduce pci_disable_retry as used and implemented locally at least by
ath(4) and iwi(4). Use it in this drivers to restore behaviour from
before the introduction of generic PCI network handling.

Convert all PCI drivers that were using pnp_register to the new
framework. The only exception is vga(4) as it is commonly used as
console device. Add a note therein that this should be fixed later.

Revision 1.131.2.3.2.2 / (download) - annotate - [select for diffs], Sun Sep 23 21:36:30 2007 UTC (4 years, 8 months ago) by wrstuden
Branch: wrstuden-fixsa
Changes since 1.131.2.3.2.1: +47 -14 lines
Diff to previous 1.131.2.3.2.1 (colored) next main 1.131.2.4 (colored)

Sync with somewhat-recent netbsd-4.

Revision 1.131.2.5 / (download) - annotate - [select for diffs], Tue Sep 11 08:23:57 2007 UTC (4 years, 8 months ago) by xtraeme
Branch: netbsd-4
CVS Tags: wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-1-RELEASE, matt-nb4-arm-base, matt-nb4-arm
Branch point for: netbsd-4-0
Changes since 1.131.2.4: +47 -14 lines
Diff to previous 1.131.2.4 (colored) to branchpoint 1.131 (colored)

Pull up following revision(s) (requested by msaitoh in ticket #865):
	sys/dev/pci/if_wm.c: revision 1.145
	sys/dev/pci/if_wm.c: revision 1.146
	share/man/man4/wm.4: revision 1.19
EECD_EE_AUTORD is only for 8257{123},80003,ICH{89}.
Will fix "auto read from eeprom failed to complete" problem.
Add more work for the EEPROM reaload sequence.
Fix typo.
Bump date for previous (ICH9 support).

Revision 1.142.6.6 / (download) - annotate - [select for diffs], Tue Sep 4 15:10:52 2007 UTC (4 years, 8 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.142.6.5: +2 -3 lines
Diff to previous 1.142.6.5 (colored) to branchpoint 1.142 (colored)

Register power management function only once.

Revision 1.142.6.5 / (download) - annotate - [select for diffs], Mon Sep 3 16:48:19 2007 UTC (4 years, 8 months ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.142.6.4: +120 -28 lines
Diff to previous 1.142.6.4 (colored) to branchpoint 1.142 (colored)

Sync with HEAD.

Revision 1.103.2.4 / (download) - annotate - [select for diffs], Mon Sep 3 14:37:05 2007 UTC (4 years, 8 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.103.2.3: +584 -49 lines
Diff to previous 1.103.2.3 (colored)

sync with head.

Revision 1.142.2.1 / (download) - annotate - [select for diffs], Mon Sep 3 10:21:04 2007 UTC (4 years, 8 months ago) by skrll
Branch: nick-csl-alignment
Changes since 1.142: +120 -28 lines
Diff to previous 1.142 (colored) next main 1.143 (colored)

Sync with HEAD.

Revision 1.131.2.3.2.1 / (download) - annotate - [select for diffs], Mon Sep 3 07:04:33 2007 UTC (4 years, 8 months ago) by wrstuden
Branch: wrstuden-fixsa
Changes since 1.131.2.3: +97 -27 lines
Diff to previous 1.131.2.3 (colored)

Sync w/ NetBSD-4-RC_1

Revision 1.146 / (download) - annotate - [select for diffs], Thu Aug 30 05:48:50 2007 UTC (4 years, 8 months ago) by msaitoh
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: bouyer-xenamd64
Changes since 1.145: +14 -6 lines
Diff to previous 1.145 (colored)

Add more work for the EEPROM reaload sequence.
Fix typo.

Revision 1.145 / (download) - annotate - [select for diffs], Thu Aug 30 03:02:23 2007 UTC (4 years, 8 months ago) by msaitoh
Branch: MAIN
Changes since 1.144: +38 -13 lines
Diff to previous 1.144 (colored)

EECD_EE_AUTORD is only for 8257{123},80003,ICH{89}.
Will fix "auto read from eeprom failed to complete" problem.

Revision 1.131.2.4 / (download) - annotate - [select for diffs], Wed Aug 29 16:12:53 2007 UTC (4 years, 8 months ago) by liamjfoy
Branch: netbsd-4
CVS Tags: netbsd-4-0-RC1
Changes since 1.131.2.3: +97 -27 lines
Diff to previous 1.131.2.3 (colored) to branchpoint 1.131 (colored)

Pull up following revision(s) (requested by masanobu in ticket #850):

sys/dev/pci/if_wm.c		1.137
sys/dev/pci/if_wm.c		1.138
sys/dev/pci/if_wm.c		1.141
sys/dev/pci/if_wm.c		1.144
sys/dev/pci/if_wmreg.h		1.23
sys/dev/pci/pcidevs		1.893
sys/dev/pci/pcidevs.h		regen
sys/dev/pci/pcidevs_data.h	regen
sys/dev/mii/igphy.c		1.12
sys/dev/mii/miidevs		1.72
sys/dev/mii/miidevs.h		regen
sys/dev/mii/miidevs_data.h	regen
share/man/man4/wm.4		1.18

Fix for 82541 and 82547's reset bug.
Modify wm_reset() to make some device stable.
Add ICH9 support to wm.
Add I82566 support to igphy.

Pulled done via patch.

Revision 1.144 / (download) - annotate - [select for diffs], Tue Aug 28 01:10:34 2007 UTC (4 years, 8 months ago) by msaitoh
Branch: MAIN
Changes since 1.143: +84 -25 lines
Diff to previous 1.143 (colored)

add ICH9
need more work?

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

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

Revision 1.142.6.4 / (download) - annotate - [select for diffs], Tue Aug 21 06:51:57 2007 UTC (4 years, 9 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.142.6.3: +10 -28 lines
Diff to previous 1.142.6.3 (colored) to branchpoint 1.142 (colored)

Explicitly stop interface before going to D3. Don't bother to
init interface again if it is down. Assume wm_init is successful
as all failure causes are critical errors anyway. Remove shutdown
hooks.

Revision 1.142.6.3 / (download) - annotate - [select for diffs], Fri Aug 10 20:50:52 2007 UTC (4 years, 9 months ago) by he
Branch: jmcneill-pm
Changes since 1.142.6.2: +3 -2 lines
Diff to previous 1.142.6.2 (colored) to branchpoint 1.142 (colored)

Add a missing "break;" in the power handler function before any
more developers copy this bug over to other drivers.

Pointed out by jmcneill@

Revision 1.142.6.2 / (download) - annotate - [select for diffs], Sat Aug 4 19:47:59 2007 UTC (4 years, 9 months ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.142.6.1: +2 -3 lines
Diff to previous 1.142.6.1 (colored) to branchpoint 1.142 (colored)

Make this compile again -- sys/php.h does not exist, and since sys/device.h
pulls in sys/pnp.h anyway, don't bother.

Revision 1.142.6.1 / (download) - annotate - [select for diffs], Sat Aug 4 17:12:11 2007 UTC (4 years, 9 months ago) by he
Branch: jmcneill-pm
Changes since 1.142: +69 -30 lines
Diff to previous 1.142 (colored)

Convert the old powerhook to a pnp power management handler, based
on the azalia power management handler and what was here before.

Revision 1.135.4.1 / (download) - annotate - [select for diffs], Wed Jul 11 20:07:45 2007 UTC (4 years, 10 months ago) by mjf
Branch: mjf-ufs-trans
Changes since 1.135: +471 -28 lines
Diff to previous 1.135 (colored) next main 1.136 (colored)

Sync with head.

Revision 1.142 / (download) - annotate - [select for diffs], Mon Jul 9 21:00:56 2007 UTC (4 years, 10 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.141: +6 -6 lines
Diff to previous 1.141 (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.135.2.5 / (download) - annotate - [select for diffs], Sun Jul 1 21:48:13 2007 UTC (4 years, 10 months ago) by ad
Branch: vmlocking
Changes since 1.135.2.4: +6 -6 lines
Diff to previous 1.135.2.4 (colored)

Adapt to callout API change.

Revision 1.135.2.4 / (download) - annotate - [select for diffs], Sat Jun 9 23:57:53 2007 UTC (4 years, 11 months ago) by ad
Branch: vmlocking
Changes since 1.135.2.3: +3 -3 lines
Diff to previous 1.135.2.3 (colored)

Sync with head.

Revision 1.100.2.8 / (download) - annotate - [select for diffs], Wed Jun 6 14:14:55 2007 UTC (4 years, 11 months ago) by liamjfoy
Branch: netbsd-3
Changes since 1.100.2.7: +3 -3 lines
Diff to previous 1.100.2.7 (colored) to branchpoint 1.100 (colored)

Pull up following revision(s) (requested by yamt in ticket #1750):
	sys/dev/pci/if_wm.c: revision 1.129
wm_tx_offload: in the case of "txtsopain",
m_copyback ip header to the correct offset.

Revision 1.141 / (download) - annotate - [select for diffs], Tue May 29 07:17:23 2007 UTC (4 years, 11 months ago) by simonb
Branch: MAIN
Changes since 1.140: +3 -3 lines
Diff to previous 1.140 (colored)

Fix a tyop.

Revision 1.135.2.3 / (download) - annotate - [select for diffs], Sun May 27 14:30:23 2007 UTC (5 years ago) by ad
Branch: vmlocking
Changes since 1.135.2.2: +449 -19 lines
Diff to previous 1.135.2.2 (colored)

Sync with head.

Revision 1.131.4.5 / (download) - annotate - [select for diffs], Mon May 7 10:55:30 2007 UTC (5 years ago) by yamt
Branch: yamt-idlelwp
Changes since 1.131.4.4: +449 -19 lines
Diff to previous 1.131.4.4 (colored) to branchpoint 1.131 (colored) next main 1.132 (colored)

sync with head.

Revision 1.131.2.3 / (download) - annotate - [select for diffs], Thu May 3 05:07:07 2007 UTC (5 years ago) by snj
Branch: netbsd-4
Branch point for: wrstuden-fixsa
Changes since 1.131.2.2: +450 -20 lines
Diff to previous 1.131.2.2 (colored) to branchpoint 1.131 (colored)

Pull up following revision(s) (requested by bouyer in ticket #598):
	share/man/man4/wm.4: revision 1.17
	sys/dev/pci/if_wmreg.h: revision 1.22
	doc/CHANGES: revision 1.836
	sys/dev/pci/if_wm.c: revision 1.139
	sys/dev/pci/if_wm.c: revision 1.140
Add support for ICH8 (i82801H) LAN, from FreeBSD.
Should work on:
i82801H IFE (GT) LAN Controller
i82801H IFE (G) LAN Controller
i82801H (M_AMT) LAN Controller
i82801H (AMT) LAN Controller
i82801H LAN Controller
i82801H (IFE) LAN Controller
i82801H (M) LAN Controller
tested with: Intel i82801H (AMT) LAN Controller, rev. 2
Restore $NetBSD$ tag.
Note ICH8 LAN support.
Note ICH8 LAN support.

Revision 1.140 / (download) - annotate - [select for diffs], Mon Apr 30 01:26:35 2007 UTC (5 years ago) by simonb
Branch: MAIN
CVS Tags: yamt-idlelwp-base8
Changes since 1.139: +2 -1 lines
Diff to previous 1.139 (colored)

Restore $NetBSD$ tag.

Revision 1.139 / (download) - annotate - [select for diffs], Sun Apr 29 20:35:21 2007 UTC (5 years ago) by bouyer
Branch: MAIN
Changes since 1.138: +448 -19 lines
Diff to previous 1.138 (colored)

Add support for ICH8 (i82801H) LAN, from FreeBSD.
Should work on:
i82801H IFE (GT) LAN Controller
i82801H IFE (G) LAN Controller
i82801H (M_AMT) LAN Controller
i82801H (AMT) LAN Controller
i82801H LAN Controller
i82801H (IFE) LAN Controller
i82801H (M) LAN Controller

tested with: Intel i82801H (AMT) LAN Controller, rev. 2

Revision 1.131.4.4 / (download) - annotate - [select for diffs], Sun Apr 15 16:03:25 2007 UTC (5 years, 1 month ago) by yamt
Branch: yamt-idlelwp
Changes since 1.131.4.3: +13 -2 lines
Diff to previous 1.131.4.3 (colored) to branchpoint 1.131 (colored)

sync with head.

Revision 1.135.2.2 / (download) - annotate - [select for diffs], Tue Apr 10 13:24:26 2007 UTC (5 years, 1 month ago) by ad
Branch: vmlocking
Changes since 1.135.2.1: +13 -2 lines
Diff to previous 1.135.2.1 (colored)

Sync with head.

Revision 1.100.2.7 / (download) - annotate - [select for diffs], Sat Mar 31 15:25:36 2007 UTC (5 years, 1 month ago) by bouyer
Branch: netbsd-3
Changes since 1.100.2.6: +632 -45 lines
Diff to previous 1.100.2.6 (colored) to branchpoint 1.100 (colored)

pullup the following revisions (requested by msaitoh in ticket 1681):
	sys/dev/pci/if_wm.c			1.104-1.105, 1.116-1.121,
						1.127,1.133-1.134 via patch
	sys/dev/pci/if_wmreg.h			1.17-1.20
	sys/dev/pci/pcidevs			patch
	sys/dev/mii/igphy.c			1.11
	sys/dev/mii/makphy.c			1.20, 1.23
	sys/dev/mii/ikphy.c			patch
	sys/dev/mii/ikphyreg.h			patch
	sys/dev/mii/miidevs			1.68
	sys/dev/mii/files.mii			1.39
	sys/arch/i386/conf/GENERIC		1.788-1.789 via patch
	sys/arch/i386/conf/GENERIC.MPACPI	patch
	sys/arch/i386/conf/GENERIC_LAPTOP	1.209 via patch
	sys/arch/i386/conf/INSTALL		1.291 via patch
	sys/arch/i386/conf/INSTALL_LAPTOP	1.104 via patch
	sys/arch/i386/conf/XEN2_DOM0		1.13 via patch
	share/man/man4/wm.4			1.14-1.16
Add support for many cards (include PCI-express based chips).
Many bug fixes about auto negotiations (PR#30078, PR#30490,
PR#30906, PR#33429 and PR#35386).
Fix media link issues with fiber-based card (PR#35797).

Revision 1.136.2.1 / (download) - annotate - [select for diffs], Thu Mar 29 19:27:49 2007 UTC (5 years, 1 month ago) by reinoud
Branch: reinoud-bufcleanup
Changes since 1.136: +13 -2 lines
Diff to previous 1.136 (colored) next main 1.137 (colored)

Pullup to -current

Revision 1.138 / (download) - annotate - [select for diffs], Tue Mar 27 13:13:49 2007 UTC (5 years, 2 months ago) by salo
Branch: MAIN
CVS Tags: thorpej-atomic-base, thorpej-atomic
Changes since 1.137: +3 -3 lines
Diff to previous 1.137 (colored)

fix typos in last, Eratta->Errata

Revision 1.137 / (download) - annotate - [select for diffs], Tue Mar 27 01:56:41 2007 UTC (5 years, 2 months ago) by msaitoh
Branch: MAIN
Changes since 1.136: +13 -2 lines
Diff to previous 1.136 (colored)

Workaround for 82541 Eratta 29 and 82547 Eratta 28.
These devices have to reset the PHY before reset the MAC.

Reported and tested by salo.

Revision 1.131.2.2 / (download) - annotate - [select for diffs], Mon Mar 26 21:09:56 2007 UTC (5 years, 2 months ago) by jdc
Branch: netbsd-4
Changes since 1.131.2.1: +42 -4 lines
Diff to previous 1.131.2.1 (colored) to branchpoint 1.131 (colored)

Pull up revision 1.134 (requested by msaitoh in ticket #515).

fix media link issues with fiber-based card

fixes PR#35797

Revision 1.131.2.1 / (download) - annotate - [select for diffs], Mon Mar 26 21:06:56 2007 UTC (5 years, 2 months ago) by jdc
Branch: netbsd-4
Changes since 1.131: +18 -6 lines
Diff to previous 1.131 (colored)

Pull up revision 1.133 (requested by msaitoh in ticket #514).

fix some negotiation problems on wm(4).

will fix PR#30078, PR#30490, PR#30906, PR#33429, PR#35386.

Revision 1.131.4.3 / (download) - annotate - [select for diffs], Sat Mar 24 14:55:31 2007 UTC (5 years, 2 months ago) by yamt
Branch: yamt-idlelwp
Changes since 1.131.4.2: +8 -6 lines
Diff to previous 1.131.4.2 (colored) to branchpoint 1.131 (colored)

sync with head.

Revision 1.135.2.1 / (download) - annotate - [select for diffs], Tue Mar 13 16:50:25 2007 UTC (5 years, 2 months ago) by ad
Branch: vmlocking
Changes since 1.135: +8 -6 lines
Diff to previous 1.135 (colored)

Sync with head.

Revision 1.136 / (download) - annotate - [select for diffs], Tue Mar 13 06:33:54 2007 UTC (5 years, 2 months ago) by msaitoh
Branch: MAIN
Branch point for: reinoud-bufcleanup
Changes since 1.135: +8 -6 lines
Diff to previous 1.135 (colored)

KNF

Revision 1.131.4.2 / (download) - annotate - [select for diffs], Mon Mar 12 05:55:23 2007 UTC (5 years, 2 months ago) by rmind
Branch: yamt-idlelwp
Changes since 1.131.4.1: +8 -8 lines
Diff to previous 1.131.4.1 (colored) to branchpoint 1.131 (colored)

Sync with HEAD.

Revision 1.135 / (download) - annotate - [select for diffs], Sun Mar 4 06:02:23 2007 UTC (5 years, 2 months ago) by christos
Branch: MAIN
Branch point for: vmlocking, mjf-ufs-trans
Changes since 1.134: +8 -8 lines
Diff to previous 1.134 (colored)

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

Revision 1.131.4.1 / (download) - annotate - [select for diffs], Tue Feb 27 16:54:02 2007 UTC (5 years, 2 months ago) by yamt
Branch: yamt-idlelwp
Changes since 1.131: +59 -9 lines
Diff to previous 1.131 (colored)

- sync with head.
- move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.

Revision 1.103.2.3 / (download) - annotate - [select for diffs], Mon Feb 26 09:10:29 2007 UTC (5 years, 2 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.103.2.2: +59 -9 lines
Diff to previous 1.103.2.2 (colored)

sync with head.

Revision 1.134 / (download) - annotate - [select for diffs], Fri Feb 23 08:22:06 2007 UTC (5 years, 3 months ago) by msaitoh
Branch: MAIN
CVS Tags: ad-audiomp-base, ad-audiomp
Changes since 1.133: +42 -4 lines
Diff to previous 1.133 (colored)

fix media link issues with fiber-based card

fixes PR#35797

Revision 1.133 / (download) - annotate - [select for diffs], Fri Feb 23 03:03:10 2007 UTC (5 years, 3 months ago) by msaitoh
Branch: MAIN
Changes since 1.132: +18 -6 lines
Diff to previous 1.132 (colored)

fix some negotiation problems on wm(4).

will fix PR#30078, PR#30490, PR#30906, PR#33429, PR#35386.

Revision 1.132 / (download) - annotate - [select for diffs], Wed Feb 21 23:48:12 2007 UTC (5 years, 3 months ago) by thorpej
Branch: MAIN
Changes since 1.131: +3 -3 lines
Diff to previous 1.131 (colored)

Pick up some additional files that were missed before due to conflicts
with newlock2 merge:

Replace the Mach-derived boolean_t type with the C99 bool type.  A
future commit will replace use of TRUE and FALSE with true and false.

Revision 1.124.4.2 / (download) - annotate - [select for diffs], Fri Jan 12 00:57:41 2007 UTC (5 years, 4 months ago) by ad
Branch: newlock2
Changes since 1.124.4.1: +69 -28 lines
Diff to previous 1.124.4.1 (colored) to branchpoint 1.124 (colored) next main 1.125 (colored)

Sync with head.

Revision 1.103.2.2 / (download) - annotate - [select for diffs], Sat Dec 30 20:48:45 2006 UTC (5 years, 4 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.103.2.1: +446 -76 lines
Diff to previous 1.103.2.1 (colored)

sync with head.

Revision 1.124.6.2 / (download) - annotate - [select for diffs], Sun Dec 10 07:17:44 2006 UTC (5 years, 5 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.124.6.1: +89 -39 lines
Diff to previous 1.124.6.1 (colored) to branchpoint 1.124 (colored) next main 1.125 (colored)

sync with head.

Revision 1.131 / (download) - annotate - [select for diffs], Thu Nov 23 19:42:59 2006 UTC (5 years, 6 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, post-newlock2-merge, newlock2-nbase, newlock2-base, netbsd-4-base
Branch point for: yamt-idlelwp, netbsd-4
Changes since 1.130: +69 -28 lines
Diff to previous 1.130 (colored)

implement ipv6 TSO.
partly from Matthias Scheler.  tested by him.

Revision 1.124.4.1 / (download) - annotate - [select for diffs], Sat Nov 18 21:34:31 2006 UTC (5 years, 6 months ago) by ad
Branch: newlock2
Changes since 1.124: +376 -49 lines
Diff to previous 1.124 (colored)

Sync with head.

Revision 1.130 / (download) - annotate - [select for diffs], Thu Nov 16 06:07:54 2006 UTC (5 years, 6 months ago) by yamt
Branch: MAIN
Changes since 1.129: +20 -11 lines
Diff to previous 1.129 (colored)

wm: add IPv6 rx tcp/udp checksum offloading.

Revision 1.129 / (download) - annotate - [select for diffs], Thu Nov 16 04:30:02 2006 UTC (5 years, 6 months ago) by yamt
Branch: MAIN
Changes since 1.128: +3 -3 lines
Diff to previous 1.128 (colored)

wm_tx_offload: in the case of "txtsopain",
m_copyback ip header to the correct offset.

Revision 1.128 / (download) - annotate - [select for diffs], Wed Nov 15 10:30:17 2006 UTC (5 years, 6 months ago) by yamt
Branch: MAIN
Changes since 1.127: +4 -4 lines
Diff to previous 1.127 (colored)

remove __unused from function parameters.

Revision 1.100.2.6 / (download) - annotate - [select for diffs], Sat Nov 11 21:59:44 2006 UTC (5 years, 6 months ago) by bouyer
Branch: netbsd-3
Changes since 1.100.2.5: +5 -6 lines
Diff to previous 1.100.2.5 (colored) to branchpoint 1.100 (colored)

Pull up following revision(s) (requested by hauke in ticket #1578):
	sys/dev/pci/if_wm.c: revision 1.108
don't reset interface on rx overrun because it makes
the situation worse, if the overrun is merely a symptom of heavy load.
increament if_ierrors instead.  PR/29831.

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

sync with head

Revision 1.127 / (download) - annotate - [select for diffs], Sat Oct 21 14:10:33 2006 UTC (5 years, 7 months ago) by bouyer
Branch: MAIN
CVS Tags: yamt-splraiseipl-base2
Changes since 1.126: +355 -38 lines
Diff to previous 1.126 (colored)

Add support for the Intel 80003 Gigabit Ethernet controller (found e.g. in
newer server chipsets) to wm(4), from the FreeBSD em(4) driver.
While there, add a few other Intel Ethernet controller that should work as
is.
Properly update the RX error and TX collision counters.
Add ikphy(4), a driver for the Intel i82563 Kumeran 10/100/1000 Ethernet PHYs

Revision 1.126 / (download) - annotate - [select for diffs], Thu Oct 12 01:31:30 2006 UTC (5 years, 7 months ago) by christos
Branch: MAIN
Changes since 1.125: +4 -4 lines
Diff to previous 1.125 (colored)

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

Revision 1.125 / (download) - annotate - [select for diffs], Sun Sep 24 03:53:09 2006 UTC (5 years, 8 months ago) by jmcneill
Branch: MAIN
Changes since 1.124: +4 -3 lines
Diff to previous 1.124 (colored)

Add "name" parameter to powerhook_establish, to aid debugging. No objections
on tech-kern@

Revision 1.114.2.4 / (download) - annotate - [select for diffs], Fri Sep 15 14:00:41 2006 UTC (5 years, 8 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.114.2.3: +2 -4 lines
Diff to previous 1.114.2.3 (colored) to branchpoint 1.114 (colored) next main 1.115 (colored)

revert unrelated changes erroneously slipped in.

Revision 1.110.4.1 / (download) - annotate - [select for diffs], Sat Sep 9 02:52:18 2006 UTC (5 years, 8 months ago) by rpaulo
Branch: rpaulo-netinet-merge-pcb
Changes since 1.110: +413 -79 lines
Diff to previous 1.110 (colored) next main 1.111 (colored)

sync with head

Revision 1.114.2.3 / (download) - annotate - [select for diffs], Fri Aug 11 15:44:25 2006 UTC (5 years, 9 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.114.2.2: +6 -4 lines
Diff to previous 1.114.2.2 (colored) to branchpoint 1.114 (colored)

sync with head

Revision 1.120.2.1 / (download) - annotate - [select for diffs], Thu Jul 13 17:49:27 2006 UTC (5 years, 10 months ago) by gdamore
Branch: gdamore-uart
Changes since 1.120: +57 -26 lines
Diff to previous 1.120 (colored) next main 1.121 (colored)

Merge from HEAD.

Revision 1.100.2.5 / (download) - annotate - [select for diffs], Fri Jul 7 06:24:40 2006 UTC (5 years, 10 months ago) by tron
Branch: netbsd-3
CVS Tags: 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
Changes since 1.100.2.4: +4 -2 lines
Diff to previous 1.100.2.4 (colored) to branchpoint 1.100 (colored)

Pull up following revision(s) (requested by lukem in ticket #1400):
	sys/dev/pci/if_wm.c: revision 1.124
Fix len=-4 issues.
When receiving a packet, if a receive buffer has length 0,
treat it the same way we treat a failed mapping.
Fix contributed by Wasabi Systems.

Revision 1.124 / (download) - annotate - [select for diffs], Wed Jul 5 23:51:50 2006 UTC (5 years, 10 months ago) by wrstuden
Branch: MAIN
CVS Tags: yamt-splraiseipl-base, yamt-pdpolicy-base9, yamt-pdpolicy-base8, yamt-pdpolicy-base7, rpaulo-netinet-merge-pcb-base, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: yamt-splraiseipl, newlock2
Changes since 1.123: +6 -4 lines
Diff to previous 1.123 (colored)

Fix len=-4 issues.

When receiving a packet, if a receive buffer has length 0,
treat it the same way we treat a failed mapping.

Fix contributed by Wasabi Systems.

Revision 1.114.2.2 / (download) - annotate - [select for diffs], Mon Jun 26 12:51:22 2006 UTC (5 years, 11 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.114.2.1: +292 -46 lines
Diff to previous 1.114.2.1 (colored) to branchpoint 1.114 (colored)

sync with head.

Revision 1.103.2.1 / (download) - annotate - [select for diffs], Wed Jun 21 15:05:05 2006 UTC (5 years, 11 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.103: +469 -112 lines
Diff to previous 1.103 (colored)

sync with head.

Revision 1.123 / (download) - annotate - [select for diffs], Tue Jun 20 01:16:23 2006 UTC (5 years, 11 months ago) by jmcneill
Branch: MAIN
CVS Tags: yamt-pdpolicy-base6
Changes since 1.122: +44 -2 lines
Diff to previous 1.122 (colored)

Add powerhook for wm(4), from George Michaelson <ggm AT apnic DOT net>

Revision 1.115.2.1 / (download) - annotate - [select for diffs], Mon Jun 19 04:01:36 2006 UTC (5 years, 11 months ago) by chap
Branch: chap-midi
Changes since 1.115: +250 -46 lines
Diff to previous 1.115 (colored) next main 1.116 (colored)

Sync with head.

Revision 1.122 / (download) - annotate - [select for diffs], Sat Jun 17 23:34:27 2006 UTC (5 years, 11 months ago) by christos
Branch: MAIN
CVS Tags: chap-midi-nbase, chap-midi-base
Changes since 1.121: +8 -22 lines
Diff to previous 1.121 (colored)

re-factor the pci powestate api. reviewed by gimpy

Revision 1.121 / (download) - annotate - [select for diffs], Fri Jun 16 15:51:04 2006 UTC (5 years, 11 months ago) by msaitoh
Branch: MAIN
Changes since 1.120: +5 -4 lines
Diff to previous 1.120 (colored)

fix the MAC address of the second port of the 82571

Revision 1.120 / (download) - annotate - [select for diffs], Sat Jun 10 14:26:52 2006 UTC (5 years, 11 months ago) by msaitoh
Branch: MAIN
CVS Tags: gdamore-uart-base
Branch point for: gdamore-uart
Changes since 1.119: +27 -9 lines
Diff to previous 1.119 (colored)

o i82573 doesn't support jumbo frame
o set PBA for i8257[123]
o set MULA when sc_type == i8257[123]

Revision 1.119 / (download) - annotate - [select for diffs], Sat Jun 10 08:11:47 2006 UTC (5 years, 11 months ago) by uebayasi
Branch: MAIN
Changes since 1.118: +14 -14 lines
Diff to previous 1.118 (colored)

KNF.

Revision 1.118 / (download) - annotate - [select for diffs], Sat Jun 10 08:08:33 2006 UTC (5 years, 11 months ago) by msaitoh
Branch: MAIN
Changes since 1.117: +3 -3 lines
Diff to previous 1.117 (colored)

fix compile error

Revision 1.117 / (download) - annotate - [select for diffs], Sat Jun 10 08:04:08 2006 UTC (5 years, 11 months ago) by msaitoh
Branch: MAIN
Changes since 1.116: +158 -22 lines
Diff to previous 1.116 (colored)

Enable i82573!!!

TODO:
	add some code for FLASH
	fix phy stuff

Revision 1.110.6.3 / (download) - annotate - [select for diffs], Wed Jun 7 15:51:09 2006 UTC (5 years, 11 months ago) by kardel
Branch: simonb-timecounters
Changes since 1.110.6.2: +65 -2 lines
Diff to previous 1.110.6.2 (colored) next main 1.111 (colored)

Sync with head.

Revision 1.116 / (download) - annotate - [select for diffs], Mon Jun 5 16:06:10 2006 UTC (5 years, 11 months ago) by msaitoh
Branch: MAIN
CVS Tags: simonb-timecounters-base
Changes since 1.115: +65 -2 lines
Diff to previous 1.115 (colored)

add support 82546GB_PCIE(PRO/100MT), 82541ER_LOM, 82547EI_MOBILE,
82571EB_COPPER, 82571EB_FIBER, 82572EI_COPPER, 82572EI_FIBER
and 82572EI(PRO/1000PT)

TODO: add i82573 support

Revision 1.110.6.2 / (download) - annotate - [select for diffs], Thu Jun 1 22:36:46 2006 UTC (5 years, 11 months ago) by kardel
Branch: simonb-timecounters
CVS Tags: simonb-timcounters-final
Changes since 1.110.6.1: +30 -10 lines
Diff to previous 1.110.6.1 (colored)

Sync with head.

Revision 1.114.6.1 / (download) - annotate - [select for diffs], Wed May 24 15:50:28 2006 UTC (6 years ago) by tron
Branch: peter-altq
Changes since 1.114: +30 -10 lines
Diff to previous 1.114 (colored) next main 1.115 (colored)

Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.

Revision 1.114.2.1 / (download) - annotate - [select for diffs], Wed May 24 10:58:01 2006 UTC (6 years ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.114: +32 -10 lines
Diff to previous 1.114 (colored)

sync with head.

Revision 1.114.4.1 / (download) - annotate - [select for diffs], Thu May 11 23:28:48 2006 UTC (6 years ago) by elad
Branch: elad-kernelauth
Changes since 1.114: +30 -10 lines
Diff to previous 1.114 (colored) next main 1.115 (colored)

sync with head

Revision 1.115 / (download) - annotate - [select for diffs], Fri May 5 18:04:42 2006 UTC (6 years ago) by thorpej
Branch: MAIN
CVS Tags: yamt-pdpolicy-base5, elad-kernelauth-base
Branch point for: chap-midi
Changes since 1.114: +30 -10 lines
Diff to previous 1.114 (colored)

Remove the devprop API and switch everthing over to the new proplib.  Add
a new device_properties() accessor for device_t that returns the device's
property dictionary.

Revision 1.110.6.1 / (download) - annotate - [select for diffs], Sat Apr 22 11:39:14 2006 UTC (6 years, 1 month ago) by simonb
Branch: simonb-timecounters
Changes since 1.110: +102 -36 lines
Diff to previous 1.110 (colored)

Sync with head.

Revision 1.110.2.2 / (download) - annotate - [select for diffs], Wed Mar 1 09:28:21 2006 UTC (6 years, 2 months ago) by yamt
Branch: yamt-uio_vmspace
Changes since 1.110.2.1: +52 -58 lines
Diff to previous 1.110.2.1 (colored) next main 1.111 (colored)

sync with head.

Revision 1.114 / (download) - annotate - [select for diffs], Mon Feb 27 04:50:47 2006 UTC (6 years, 2 months ago) by thorpej
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5, yamt-pdpolicy-base4, yamt-pdpolicy-base3, yamt-pdpolicy-base2, yamt-pdpolicy-base, peter-altq-base
Branch point for: yamt-pdpolicy, peter-altq, elad-kernelauth
Changes since 1.113: +5 -5 lines
Diff to previous 1.113 (colored)

cfg1, cfg2, and swdpin are not generic properties the same way that
mac-addr is.  Prefix them with i82543-

Revision 1.113 / (download) - annotate - [select for diffs], Wed Feb 22 00:17:43 2006 UTC (6 years, 3 months ago) by gavan
Branch: MAIN
Changes since 1.112: +52 -58 lines
Diff to previous 1.112 (colored)

Convert MD hook to device property reads.

Device properties, if present, take precedence over EEPROM values.

Revision 1.110.2.1 / (download) - annotate - [select for diffs], Sat Feb 18 15:39:08 2006 UTC (6 years, 3 months ago) by yamt
Branch: yamt-uio_vmspace
Changes since 1.110: +82 -10 lines
Diff to previous 1.110 (colored)

sync with head.

Revision 1.112 / (download) - annotate - [select for diffs], Thu Feb 16 00:02:00 2006 UTC (6 years, 3 months ago) by gavan
Branch: MAIN
Changes since 1.111: +81 -9 lines
Diff to previous 1.111 (colored)

Compute the EEPROM checksum to determine the presence of valid EEPROM data.
If EEPROM data is invalid, allow a MD hook to supply EEPROM data instead.

Revision 1.100.2.4 / (download) - annotate - [select for diffs], Wed Feb 8 21:10:28 2006 UTC (6 years, 3 months ago) by tron
Branch: netbsd-3
Changes since 1.100.2.3: +1 -1 lines
Diff to previous 1.100.2.3 (colored) to branchpoint 1.100 (colored)

Pull up following revision(s) (requested by thorpej in ticket #1161):
	sys/dev/pci/if_wm.c: revision 1.111
	sys/dev/pci/if_sip.c: revision 1.104
In the receive interrupt handler, compute the packet length before
resetting
m to point to the first buffer in the packet.  The bug would cause the
length of jumbo frames to be incorrect.

Revision 1.111 / (download) - annotate - [select for diffs], Tue Feb 7 06:20:04 2006 UTC (6 years, 3 months ago) by thorpej
Branch: MAIN
Changes since 1.110: +3 -3 lines
Diff to previous 1.110 (colored)

In the receive interrupt handler, compute the packet length before resetting
m to point to the first buffer in the packet.  The bug would cause the
length of jumbo frames to be incorrect.

Revision 1.110 / (download) - annotate - [select for diffs], Sat Dec 24 20:27:42 2005 UTC (6 years, 5 months ago) by perry
Branch: MAIN
Branch point for: yamt-uio_vmspace, simonb-timecounters, rpaulo-netinet-merge-pcb
Changes since 1.109: +6 -6 lines
Diff to previous 1.109 (colored)

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

Revision 1.109 / (download) - annotate - [select for diffs], Sun Dec 11 12:22:50 2005 UTC (6 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.108: +2 -2 lines
Diff to previous 1.108 (colored)

merge ktrace-lwp.

Revision 1.37.2.14 / (download) - annotate - [select for diffs], Thu Nov 10 14:06:02 2005 UTC (6 years, 6 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.37.2.13: +72 -36 lines
Diff to previous 1.37.2.13 (colored) next main 1.38 (colored)

Sync with HEAD. Here we go again...

Revision 1.107.2.1 / (download) - annotate - [select for diffs], Wed Nov 2 11:57:56 2005 UTC (6 years, 6 months ago) by yamt
Branch: yamt-vop
Changes since 1.107: +7 -8 lines
Diff to previous 1.107 (colored) next main 1.108 (colored)

sync with head.

Revision 1.108 / (download) - annotate - [select for diffs], Sat Oct 29 13:24:41 2005 UTC (6 years, 6 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-vop-base3, yamt-readahead-pervnode, yamt-readahead-perfile, yamt-readahead-base3, yamt-readahead-base2, yamt-readahead-base, yamt-readahead, ktrace-lwp-base
Changes since 1.107: +7 -8 lines
Diff to previous 1.107 (colored)

don't reset interface on rx overrun because it makes
the situation worse, if the overrun is merely a symptom of heavy load.
increament if_ierrors instead.  PR/29831.

Revision 1.100.2.3 / (download) - annotate - [select for diffs], Sun Aug 28 09:51:46 2005 UTC (6 years, 8 months ago) by tron
Branch: netbsd-3
CVS Tags: 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
Changes since 1.100.2.2: +21 -16 lines
Diff to previous 1.100.2.2 (colored) to branchpoint 1.100 (colored)

Pull up following revision(s) (requested by yamt in ticket #700):
	sys/dev/pci/if_wm.c: revision 1.106
wm_rxintr: ignore h/w assisted checksum results if WRX_ST_IXSM is set.

Revision 1.107 / (download) - annotate - [select for diffs], Wed Aug 10 12:59:43 2005 UTC (6 years, 9 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-vop-base2, yamt-vop-base, thorpej-vnode-attr-base, thorpej-vnode-attr
Branch point for: yamt-vop
Changes since 1.106: +28 -7 lines
Diff to previous 1.106 (colored)

add ipv6 tx checksum offloading support for wm driver.
reviewed by Jason Thorpe.

Revision 1.106 / (download) - annotate - [select for diffs], Sun Aug 7 05:18:42 2005 UTC (6 years, 9 months ago) by yamt
Branch: MAIN
Changes since 1.105: +23 -18 lines
Diff to previous 1.105 (colored)

wm_rxintr: ignore h/w assisted checksum results if WRX_ST_IXSM is set.

Revision 1.105 / (download) - annotate - [select for diffs], Thu Aug 4 06:17:26 2005 UTC (6 years, 9 months ago) by skrll
Branch: MAIN
Changes since 1.104: +3 -3 lines
Diff to previous 1.104 (colored)

Fix a typo.

Revision 1.104 / (download) - annotate - [select for diffs], Mon Jul 25 18:26:24 2005 UTC (6 years, 10 months ago) by ross
Branch: MAIN
Changes since 1.103: +5 -5 lines
Diff to previous 1.103 (colored)

Fix compilation nits with WM_DEBUG.

Revision 1.68.2.3.2.9 / (download) - annotate - [select for diffs], Thu Jul 21 21:11:30 2005 UTC (6 years, 10 months ago) by snj
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.68.2.3.2.8: +6 -2 lines
Diff to previous 1.68.2.3.2.8 (colored) to branchpoint 1.68.2.3 (colored) next main 1.68.2.4 (colored)

Pull up revision 1.101 (requested by tron in ticket #5507):
Add support for Intel PRO/1000 GT. Change provided in private e-mail by
unex at linija dot org.

Revision 1.103 / (download) - annotate - [select for diffs], Mon May 2 15:34:32 2005 UTC (7 years ago) by yamt
Branch: MAIN
Branch point for: yamt-lazymbuf
Changes since 1.102: +8 -6 lines
Diff to previous 1.102 (colored)

split IFCAP_CSUM_xxx to IFCAP_CSUM_xxx_Rx and IFCAP_CSUM_xxx_Tx.

Revision 1.68.2.3.2.8 / (download) - annotate - [select for diffs], Sun May 1 10:29:10 2005 UTC (7 years ago) by tron
Branch: netbsd-2
Changes since 1.68.2.3.2.7: +11 -2 lines
Diff to previous 1.68.2.3.2.7 (colored) to branchpoint 1.68.2.3 (colored)

Pull up revision 1.102 (requested by scw in ticket #1481):
In wm_stop():
 - Clear the interrupt mask to ensure the device cannot assert its
   interrupt line.
 - Clear sc->sc_icr to ensure wm_intr() makes no attempt to service any
   currently pending or shared interrupt.
This should address the problem reported in both PR/29903 and PR/22493.
(wm(4) is susceptible to crashing in wm_intr() when the interface is
downed)

Revision 1.9.4.10 / (download) - annotate - [select for diffs], Sun May 1 10:05:55 2005 UTC (7 years ago) by tron
Branch: netbsd-1-6
Changes since 1.9.4.9: +10 -1 lines
Diff to previous 1.9.4.9 (colored) to branchpoint 1.9 (colored) next main 1.10 (colored)

Pull up revision 1.102 (requested by scw in ticket #5761):
In wm_stop():
 - Clear the interrupt mask to ensure the device cannot assert its
   interrupt line.
 - Clear sc->sc_icr to ensure wm_intr() makes no attempt to service any
   currently pending or shared interrupt.
This should address the problem reported in both PR/29903 and PR/22493.
(wm(4) is susceptible to crashing in wm_intr() when the interface is
downed)

Revision 1.89.4.1 / (download) - annotate - [select for diffs], Fri Apr 29 11:29:07 2005 UTC (7 years ago) by kent
Branch: kent-audio2
Changes since 1.89: +158 -93 lines
Diff to previous 1.89 (colored) next main 1.90 (colored)

sync with -current

Revision 1.100.2.2 / (download) - annotate - [select for diffs], Thu Apr 28 11:03:16 2005 UTC (7 years ago) by tron
Branch: netbsd-3
Changes since 1.100.2.1: +11 -2 lines
Diff to previous 1.100.2.1 (colored) to branchpoint 1.100 (colored)

Pull up revision 1.102 (requested by scw in ticket #207):
In wm_stop():
 - Clear the interrupt mask to ensure the device cannot assert its
   interrupt line.
 - Clear sc->sc_icr to ensure wm_intr() makes no attempt to service any
   currently pending or shared interrupt.
This should address the problem reported in both PR/29903 and PR/22493.
(wm(4) is susceptible to crashing in wm_intr() when the interface is
downed)

Revision 1.102 / (download) - annotate - [select for diffs], Tue Apr 26 07:55:17 2005 UTC (7 years, 1 month ago) by scw
Branch: MAIN
CVS Tags: kent-audio2-base
Changes since 1.101: +11 -2 lines
Diff to previous 1.101 (colored)

In wm_stop():

 - Clear the interrupt mask to ensure the device cannot assert its
   interrupt line.
 - Clear sc->sc_icr to ensure wm_intr() makes no attempt to service any
   currently pending or shared interrupt.

This should address the problem reported in both PR/29903 and PR/22493.
(wm(4) is susceptible to crashing in wm_intr() when the interface is downed)

Revision 1.100.2.1 / (download) - annotate - [select for diffs], Thu Apr 7 17:01:10 2005 UTC (7 years, 1 month ago) by jmc
Branch: netbsd-3
Changes since 1.100: +6 -2 lines
Diff to previous 1.100 (colored)

Pullup rev 1.101 (requested by tron in ticket #16)

	Add support for Intel PRO/1000 GT.

Revision 1.37.2.13 / (download) - annotate - [select for diffs], Fri Apr 1 14:30:10 2005 UTC (7 years, 1 month ago) by skrll
Branch: ktrace-lwp
Changes since 1.37.2.12: +110 -6 lines
Diff to previous 1.37.2.12 (colored)

Sync with HEAD.

Revision 1.89.6.3 / (download) - annotate - [select for diffs], Sat Mar 26 18:19:19 2005 UTC (7 years, 2 months ago) by yamt
Branch: yamt-km
Changes since 1.89.6.2: +6 -2 lines
Diff to previous 1.89.6.2 (colored) to branchpoint 1.89 (colored) next main 1.90 (colored)

sync with head.

Revision 1.101 / (download) - annotate - [select for diffs], Sat Mar 19 11:58:03 2005 UTC (7 years, 2 months ago) by tron
Branch: MAIN
CVS Tags: yamt-km-base4
Changes since 1.100: +6 -2 lines
Diff to previous 1.100 (colored)

Add support for Intel PRO/1000 GT. Change provided in private e-mail by
unex at linija dot org.

Revision 1.89.6.2 / (download) - annotate - [select for diffs], Sat Mar 19 08:35:11 2005 UTC (7 years, 2 months ago) by yamt
Branch: yamt-km
Changes since 1.89.6.1: +139 -87 lines
Diff to previous 1.89.6.1 (colored) to branchpoint 1.89 (colored)

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

Revision 1.100 / (download) - annotate - [select for diffs], Fri Mar 11 17:07:51 2005 UTC (7 years, 2 months ago) by matt
Branch: MAIN
CVS Tags: yamt-km-base3, netbsd-3-base
Branch point for: netbsd-3
Changes since 1.99: +8 -2 lines
Diff to previous 1.99 (colored)

Set ip_len to 0 in the wm driver when TSO is being used.

Revision 1.99 / (download) - annotate - [select for diffs], Wed Mar 9 19:06:19 2005 UTC (7 years, 2 months ago) by matt
Branch: MAIN
Changes since 1.98: +100 -6 lines
Diff to previous 1.98 (colored)

Add TCP Segment Offload support.

Revision 1.37.2.12 / (download) - annotate - [select for diffs], Tue Mar 8 13:53:10 2005 UTC (7 years, 2 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.37.2.11: +14 -23 lines
Diff to previous 1.37.2.11 (colored)

Sync with HEAD.

Revision 1.98 / (download) - annotate - [select for diffs], Sat Mar 5 21:37:07 2005 UTC (7 years, 2 months ago) by thorpej
Branch: MAIN
Changes since 1.97: +14 -9 lines
Diff to previous 1.97 (colored)

- Set IFCS on every data descriptor (hint from Linux driver).
- Make sure IDE is set on context descriptors.

Revision 1.97 / (download) - annotate - [select for diffs], Sat Mar 5 05:05:43 2005 UTC (7 years, 2 months ago) by thorpej
Branch: MAIN
Changes since 1.96: +2 -16 lines
Diff to previous 1.96 (colored)

txpullup event counters are no longer needed.

Revision 1.37.2.11 / (download) - annotate - [select for diffs], Fri Mar 4 16:45:19 2005 UTC (7 years, 2 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.37.2.10: +27 -66 lines
Diff to previous 1.37.2.10 (colored)

Sync with HEAD.

Hi Perry!

Revision 1.96 / (download) - annotate - [select for diffs], Sun Feb 27 00:27:33 2005 UTC (7 years, 2 months ago) by perry
Branch: MAIN
Changes since 1.95: +6 -6 lines
Diff to previous 1.95 (colored)

nuke trailing whitespace

Revision 1.68.2.3.2.7 / (download) - annotate - [select for diffs], Wed Feb 23 15:34:11 2005 UTC (7 years, 3 months ago) by he
Branch: netbsd-2
Changes since 1.68.2.3.2.6: +3 -3 lines
Diff to previous 1.68.2.3.2.6 (colored) to branchpoint 1.68.2.3 (colored)

Pull up revision 1.85 (requested by thorpej in ticket #1001):
  Also toggle the second port's Ethernet address lsb on the
  WM_T_82546_3, so the two ports get different MAC addresses.

Revision 1.95 / (download) - annotate - [select for diffs], Mon Feb 21 02:12:48 2005 UTC (7 years, 3 months ago) by thorpej
Branch: MAIN
Changes since 1.94: +4 -4 lines
Diff to previous 1.94 (colored)

Define M_CSUM_DATA_IPv4_IPHL() and M_CSUM_DATA_IPv4_OFFSET() macros
to extract data from csum_data, rather than just open-coding it.

Revision 1.94 / (download) - annotate - [select for diffs], Sun Feb 20 15:55:54 2005 UTC (7 years, 3 months ago) by jdolecek
Branch: MAIN
Changes since 1.93: +9 -23 lines
Diff to previous 1.93 (colored)

use VLAN_* macros for VLAN tag extraction/addition

XXX the HW VLAN tagging code stays disabled, same as before

Revision 1.93 / (download) - annotate - [select for diffs], Fri Feb 18 05:58:31 2005 UTC (7 years, 3 months ago) by thorpej
Branch: MAIN
CVS Tags: matt-timespec
Changes since 1.92: +12 -46 lines
Diff to previous 1.92 (colored)

Re-apply changes that were mistakenly lost by the previous revision.

Revision 1.92 / (download) - annotate - [select for diffs], Fri Feb 18 04:32:35 2005 UTC (7 years, 3 months ago) by briggs
Branch: MAIN
Changes since 1.91: +57 -14 lines
Diff to previous 1.91 (colored)

Update the interrupt mitigation support.
Actually initialize the interrupt throttling register.
Actually initialize the tx and tx absolute interrupt delay timer regs.
Update default values for the rx and tx delay timers.
Inspired by Zdenek Salvet in PR kern/29373.

Revision 1.91 / (download) - annotate - [select for diffs], Fri Feb 18 01:21:02 2005 UTC (7 years, 3 months ago) by heas
Branch: MAIN
Changes since 1.90: +5 -39 lines
Diff to previous 1.90 (colored)

Adjust csum_data usage; mask off the high 16 bits for L4 header stuff offset
and make use of the L3 header length from the high 16 bits such that an
m_pullup is no londer necessary.

Revision 1.89.6.1 / (download) - annotate - [select for diffs], Sat Feb 12 18:17:47 2005 UTC (7 years, 3 months ago) by yamt
Branch: yamt-km
Changes since 1.89: +8 -8 lines
Diff to previous 1.89 (colored)

sync with head.

Revision 1.37.2.10 / (download) - annotate - [select for diffs], Fri Feb 4 11:46:38 2005 UTC (7 years, 3 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.37.2.9: +8 -8 lines
Diff to previous 1.37.2.9 (colored)

Sync with HEAD.

Revision 1.90 / (download) - annotate - [select for diffs], Sun Jan 30 17:33:48 2005 UTC (7 years, 3 months ago) by thorpej
Branch: MAIN
CVS Tags: yamt-km-base2
Changes since 1.89: +8 -8 lines
Diff to previous 1.89 (colored)

Eliminate use of M_HASFCS.

Revision 1.68.2.3.2.6 / (download) - annotate - [select for diffs], Mon Jan 24 21:40:13 2005 UTC (7 years, 4 months ago) by he
Branch: netbsd-2
Changes since 1.68.2.3.2.5: +4 -3 lines
Diff to previous 1.68.2.3.2.5 (colored) to branchpoint 1.68.2.3 (colored)

Pull up revision 1.83 (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.68.2.3.2.5 / (download) - annotate - [select for diffs], Thu Jan 13 21:29:14 2005 UTC (7 years, 4 months ago) by he
Branch: netbsd-2
Changes since 1.68.2.3.2.4: +32 -40 lines
Diff to previous 1.68.2.3.2.4 (colored) to branchpoint 1.68.2.3 (colored)

Revert previous commit because the result does not even compile.
Further input on req ticket #899 requested.

Revision 1.68.2.3.2.4 / (download) - annotate - [select for diffs], Wed Jan 12 21:52:20 2005 UTC (7 years, 4 months ago) by he
Branch: netbsd-2
Changes since 1.68.2.3.2.3: +40 -32 lines
Diff to previous 1.68.2.3.2.3 (colored) to branchpoint 1.68.2.3 (colored)

Pull up revision 1.80 (via patch, requested by thorpej in ticket #899):
  Restructure the loop in wm_start() that passes over the DMA map
  segments slightly to make it easier to drop in errata work-arounds
  that require adding extra descriptors onto the end of the packet.

Revision 1.68.2.3.2.3 / (download) - annotate - [select for diffs], Wed Jan 12 21:35:52 2005 UTC (7 years, 4 months ago) by he
Branch: netbsd-2
Changes since 1.68.2.3.2.2: +3 -3 lines
Diff to previous 1.68.2.3.2.2 (colored) to branchpoint 1.68.2.3 (colored)

Pull up revision 1.79 (via patch, requested by thorpej in ticket #898):
  Largest Tx descriptor buffer size is actually 4K.

Revision 1.68.2.5 / (download) - annotate - [select for diffs], Sat Jan 8 08:59:16 2005 UTC (7 years, 4 months ago) by jdc
Branch: netbsd-2-0
CVS Tags: netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE
Changes since 1.68.2.4: +79 -79 lines
Diff to previous 1.68.2.4 (colored) to branchpoint 1.68 (colored) next main 1.69 (colored)

Fix pull up merge error.
Pointed out by Martin J. Laubach.

Revision 1.68.2.3.2.2 / (download) - annotate - [select for diffs], Sat Jan 8 08:57:26 2005 UTC (7 years, 4 months ago) by jdc
Branch: netbsd-2
Changes since 1.68.2.3.2.1: +79 -79 lines
Diff to previous 1.68.2.3.2.1 (colored) to branchpoint 1.68.2.3 (colored)

Fix pull up merge error.
Pointed out by Martin J. Laubach.

Revision 1.68.2.3.2.1 / (download) - annotate - [select for diffs], Fri Jan 7 11:44:30 2005 UTC (7 years, 4 months ago) by jdc
Branch: netbsd-2
Changes since 1.68.2.3: +154 -2 lines
Diff to previous 1.68.2.3 (colored)

Pull up revision 1.78 (requested by thorpej in ticket #897)

Work around another problem (that causes horrible performance) on the 82547:
- Change the Tx:Rx on-chip RAM allocation ratio based on MTU:
  => 82547: > 8192 18K:22K, else 10K:30K
  => others: > 8192 24K:40K, else 16K:48K
  Values derived from Linux driver.
- On the 82547, keep track of how much of the Tx FIFO has been used.
  When in half-duplex mode, don't let packets wrap around the FIFO ring
  buffer, because that causes the chip to croak.  Detect this, stall the
  Tx queue, use a timer to wait for the packets to drain from the Tx FIFO,
  reset the internal FIFO pointers, and restart the Tx queue.  Basic
  algorithm (and some magic numbers) derived from FreeBSD and Linux drivers.

Revision 1.68.2.4 / (download) - annotate - [select for diffs], Fri Jan 7 11:44:22 2005 UTC (7 years, 4 months ago) by jdc
Branch: netbsd-2-0
Changes since 1.68.2.3: +154 -2 lines
Diff to previous 1.68.2.3 (colored) to branchpoint 1.68 (colored)

Pull up revision 1.78 (requested by thorpej in ticket #897)

Work around another problem (that causes horrible performance) on the 82547:
- Change the Tx:Rx on-chip RAM allocation ratio based on MTU:
  => 82547: > 8192 18K:22K, else 10K:30K
  => others: > 8192 24K:40K, else 16K:48K
  Values derived from Linux driver.
- On the 82547, keep track of how much of the Tx FIFO has been used.
  When in half-duplex mode, don't let packets wrap around the FIFO ring
  buffer, because that causes the chip to croak.  Detect this, stall the
  Tx queue, use a timer to wait for the packets to drain from the Tx FIFO,
  reset the internal FIFO pointers, and restart the Tx queue.  Basic
  algorithm (and some magic numbers) derived from FreeBSD and Linux drivers.

Revision 1.37.2.9 / (download) - annotate - [select for diffs], Sat Dec 18 09:32:08 2004 UTC (7 years, 5 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.37.2.8: +3 -3 lines
Diff to previous 1.37.2.8 (colored)

Sync with HEAD.

Revision 1.89 / (download) - annotate - [select for diffs], Tue Nov 30 03:08:27 2004 UTC (7 years, 5 months ago) by briggs
Branch: MAIN
CVS Tags: yamt-km-base, kent-audio1-beforemerge, kent-audio1-base, kent-audio1
Branch point for: yamt-km, kent-audio2
Changes since 1.88: +3 -3 lines
Diff to previous 1.88 (colored)

Minor tweak to add newline to an aprint_error().

Revision 1.37.2.8 / (download) - annotate - [select for diffs], Mon Nov 29 07:24:16 2004 UTC (7 years, 5 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.37.2.7: +116 -101 lines
Diff to previous 1.37.2.7 (colored)

Sync with HEAD.

Revision 1.88 / (download) - annotate - [select for diffs], Wed Nov 24 15:14:13 2004 UTC (7 years, 6 months ago) by briggs
Branch: MAIN
Changes since 1.87: +30 -11 lines
Diff to previous 1.87 (colored)

The 8254x apparently doesn't respond well to I/O accesses at 0.  Do not
attempt to map the I/O BAR if it is 0.  This will have the side-effect
of causing the wm_reset() routine to fall back to memory BAR accesses
for those chips on which it would attempt I/O BAR accesses for the reset.

Also update the comments about why we attempt the I/O BAR accesses for
the reset in favor of the memory BAR accesses.

Revision 1.87 / (download) - annotate - [select for diffs], Wed Nov 24 00:02:50 2004 UTC (7 years, 6 months ago) by thorpej
Branch: MAIN
Changes since 1.86: +16 -60 lines
Diff to previous 1.86 (colored)

Don't bother caching the checksum context.  Other drivers for this chip
don't, and it seems as though doing it may cause some problems.

Revision 1.86 / (download) - annotate - [select for diffs], Tue Nov 23 23:05:33 2004 UTC (7 years, 6 months ago) by thorpej
Branch: MAIN
Changes since 1.85: +44 -12 lines
Diff to previous 1.85 (colored)

If we have to do an m_pullup() when setting up offload parameters,
make sure that the pullup was done into trailing space at the end of
the existing first-mbuf-in-chain.  If not, log an error and drop the
packet, because the mbuf chain no longer corresponds to the DMA map,
and we are already committed to transmitting the packet.

Revision 1.85 / (download) - annotate - [select for diffs], Tue Nov 23 21:36:38 2004 UTC (7 years, 6 months ago) by thorpej
Branch: MAIN
Changes since 1.84: +3 -3 lines
Diff to previous 1.84 (colored)

Also toggle the second port's Ethernet address lsb on the WM_T_82546_3.

Revision 1.84 / (download) - annotate - [select for diffs], Mon Nov 22 19:28:37 2004 UTC (7 years, 6 months ago) by thorpej
Branch: MAIN
Changes since 1.83: +34 -26 lines
Diff to previous 1.83 (colored)

Use log() instead of printf().

Revision 1.37.2.7 / (download) - annotate - [select for diffs], Tue Nov 2 07:52:10 2004 UTC (7 years, 6 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.37.2.6: +4 -3 lines
Diff to previous 1.37.2.6 (colored)

Sync with HEAD.

Revision 1.83 / (download) - annotate - [select for diffs], Sat Oct 30 18:09:22 2004 UTC (7 years, 6 months ago) by thorpej
Branch: MAIN
Changes since 1.82: +4 -3 lines
Diff to previous 1.82 (colored)

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

Fixes kern/27678.

Revision 1.37.2.6 / (download) - annotate - [select for diffs], Tue Oct 19 15:56:59 2004 UTC (7 years, 7 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.37.2.5: +200 -33 lines
Diff to previous 1.37.2.5 (colored)

Sync with HEAD

Revision 1.82 / (download) - annotate - [select for diffs], Wed Oct 6 05:29:51 2004 UTC (7 years, 7 months ago) by thorpej
Branch: MAIN
Changes since 1.81: +5 -3 lines
Diff to previous 1.81 (colored)

Define a WM_MAXTXDMA constant to represent the largest Tx DMA any given
packet will require.

Revision 1.81 / (download) - annotate - [select for diffs], Wed Oct 6 05:23:05 2004 UTC (7 years, 7 months ago) by thorpej
Branch: MAIN
Changes since 1.80: +6 -6 lines
Diff to previous 1.80 (colored)

Sync the Tx DMA map after offload stuff has been dealt with, since the
offload set-up digs into the packet.

Revision 1.80 / (download) - annotate - [select for diffs], Wed Oct 6 00:04:01 2004 UTC (7 years, 7 months ago) by thorpej
Branch: MAIN
Changes since 1.79: +40 -27 lines
Diff to previous 1.79 (colored)

Restructure the loop in wm_start() that passes over the DMA map segments
slightly to make it easier to drop in errata work-arounds that require
adding extra descriptors onto the end of the packet.

Revision 1.79 / (download) - annotate - [select for diffs], Tue Oct 5 21:29:56 2004 UTC (7 years, 7 months ago) by thorpej
Branch: MAIN
Changes since 1.78: +3 -3 lines
Diff to previous 1.78 (colored)

Largest Tx descriptor buffer size is actually 4K.

Revision 1.78 / (download) - annotate - [select for diffs], Tue Oct 5 20:14:52 2004 UTC (7 years, 7 months ago) by thorpej
Branch: MAIN
Changes since 1.77: +154 -2 lines
Diff to previous 1.77 (colored)

Work around another problem (that causes horrible performance) on the 82547:
- Change the Tx:Rx on-chip RAM allocation ratio based on MTU:
  => 82547: > 8192 18K:22K, else 10K:30K
  => others: > 8192 24K:40K, else 16K:48K
  Values derived from Linux driver.
- On the 82547, keep track of how much of the Tx FIFO has been used.
  When in half-duplex mode, don't let packets wrap around the FIFO ring
  buffer, because that causes the chip to croak.  Detect this, stall the
  Tx queue, use a timer to wait for the packets to drain from the Tx FIFO,
  reset the internal FIFO pointers, and restart the Tx queue.  Basic
  algorithm (and some magic numbers) derived from FreeBSD and Linux drivers.

Revision 1.37.2.5 / (download) - annotate - [select for diffs], Tue Sep 21 13:31:04 2004 UTC (7 years, 8 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.37.2.4: +2 -2 lines
Diff to previous 1.37.2.4 (colored)

Fix the sync with head I botched.

Revision 1.37.2.4 / (download) - annotate - [select for diffs], Sat Sep 18 14:49:04 2004 UTC (7 years, 8 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.37.2.3: +2 -5 lines
Diff to previous 1.37.2.3 (colored)

Sync with HEAD.

Revision 1.77 / (download) - annotate - [select for diffs], Tue Sep 14 08:40:26 2004 UTC (7 years, 8 months ago) by simonb
Branch: MAIN
Changes since 1.76: +2 -5 lines
Diff to previous 1.76 (colored)

Remove an unused event counter.

Revision 1.37.2.3 / (download) - annotate - [select for diffs], Wed Aug 25 06:58:06 2004 UTC (7 years, 9 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.37.2.2: +3 -3 lines
Diff to previous 1.37.2.2 (colored)

Sync with HEAD.

Revision 1.76 / (download) - annotate - [select for diffs], Sat Aug 21 22:23:13 2004 UTC (7 years, 9 months ago) by thorpej
Branch: MAIN
Changes since 1.75: +3 -3 lines
Diff to previous 1.75 (colored)

Make the product table static.

Revision 1.37.2.2 / (download) - annotate - [select for diffs], Thu Aug 12 11:41:44 2004 UTC (7 years, 9 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.37.2.1: +72 -86 lines
Diff to previous 1.37.2.1 (colored)

Sync with HEAD.

Revision 1.75 / (download) - annotate - [select for diffs], Thu Aug 5 19:11:11 2004 UTC (7 years, 9 months ago) by thorpej
Branch: MAIN
Changes since 1.74: +72 -86 lines
Diff to previous 1.74 (colored)

- Dump the mbuf chain if we encounter a "too many DMA segments" error
  on transmit.
- On 82544 and up, allocate 4096 Tx descriptors rather than just 256.
  82543 and down must still use 256, due to errata.
- Allow up to 256 DMA segments per packet.  I have observed some truly
  pathological mbuf chains under certain (admittedly uncommon) workloads
  when jumbo frames are in use.

Revision 1.37.2.1 / (download) - annotate - [select for diffs], Tue Aug 3 10:49:09 2004 UTC (7 years, 9 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.37: +900 -289 lines
Diff to previous 1.37 (colored)

Sync with HEAD

Revision 1.68.2.3 / (download) - annotate - [select for diffs], Fri Jul 16 21:21:07 2004 UTC (7 years, 10 months ago) by he
Branch: netbsd-2-0
CVS Tags: netbsd-2-base, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1
Branch point for: netbsd-2
Changes since 1.68.2.2: +28 -22 lines
Diff to previous 1.68.2.2 (colored) to branchpoint 1.68 (colored)

Pull up revision 1.74 (requested by tron in ticket #670):
  Reduce transmit queue length to 16 for the Intel i82547 to
  avoid FIFO overruns.  This fixes the horrible performance
  problems reported in PR#23782.

Revision 1.68.2.2 / (download) - annotate - [select for diffs], Thu Jul 15 21:07:25 2004 UTC (7 years, 10 months ago) by he
Branch: netbsd-2-0
Changes since 1.68.2.1: +13 -3 lines
Diff to previous 1.68.2.1 (colored) to branchpoint 1.68 (colored)

Pull up revision 1.73 (requested by tron in ticket #665):
  The Intel i82547EI gigabit Ethernet controller isn't really
  a PCI device.  So instead of trying to find and print the
  PCI bus properties mark it as a CSA device.

Revision 1.74 / (download) - annotate - [select for diffs], Thu Jul 15 15:21:57 2004 UTC (7 years, 10 months ago) by tron
Branch: MAIN
Changes since 1.73: +28 -22 lines
Diff to previous 1.73 (colored)

Reduce transmit queue len to 16 for the Intel i82547 to avoid FIFO
overruns. This fixes the horrible send performance reported in
PR kern/23782. Reviewed by Frank van der Linden and Jason R. Thorpe.

Revision 1.73 / (download) - annotate - [select for diffs], Tue Jul 13 07:29:37 2004 UTC (7 years, 10 months ago) by tron
Branch: MAIN
Changes since 1.72: +13 -3 lines
Diff to previous 1.72 (colored)

The Intel i82547EI gigabit ethernet controller isn't really a PCI
device. So instead trying to find and print out the PCI bus properties
mark it as a CSA device.

Revision 1.68.2.1 / (download) - annotate - [select for diffs], Mon Jul 12 20:36:58 2004 UTC (7 years, 10 months ago) by he
Branch: netbsd-2-0
Changes since 1.68: +4 -4 lines
Diff to previous 1.68 (colored)

Pull up revision 1.72 (requested by tron in ticket #640):
  Make this build if WM_DEBUG is defined.

Revision 1.72 / (download) - annotate - [select for diffs], Mon Jul 12 14:04:36 2004 UTC (7 years, 10 months ago) by tron
Branch: MAIN
Changes since 1.71: +4 -4 lines
Diff to previous 1.71 (colored)

Make this build if WM_DEBUG is defined.

Revision 1.71 / (download) - annotate - [select for diffs], Sun May 16 02:34:47 2004 UTC (8 years ago) by thorpej
Branch: MAIN
Changes since 1.70: +111 -28 lines
Diff to previous 1.70 (colored)

Add flow control support, based on work by HITOSHI Osada.

Revision 1.70 / (download) - annotate - [select for diffs], Thu May 6 10:06:50 2004 UTC (8 years ago) by ragge
Branch: MAIN
Changes since 1.69: +2 -10 lines
Diff to previous 1.69 (colored)

Remove the "panic("wm_init: MCLBYTES > 2048 not supported.");" stuff,
the driver works very well with larger MCLBYTES.

Revision 1.69 / (download) - annotate - [select for diffs], Fri Apr 9 17:51:18 2004 UTC (8 years, 1 month ago) by thorpej
Branch: MAIN
Changes since 1.68: +58 -34 lines
Diff to previous 1.68 (colored)

Add support for 64-bit PCI DMA addressing.

Revision 1.68 / (download) - annotate - [select for diffs], Thu Feb 19 05:19:52 2004 UTC (8 years, 3 months ago) by thorpej
Branch: MAIN
CVS Tags: netbsd-2-0-base
Branch point for: netbsd-2-0
Changes since 1.67: +3 -3 lines
Diff to previous 1.67 (colored)

s/WTC_DTYP_D/WTX_DTYP_D/

Revision 1.67 / (download) - annotate - [select for diffs], Thu Feb 19 05:18:47 2004 UTC (8 years, 3 months ago) by thorpej
Branch: MAIN
Changes since 1.66: +3 -3 lines
Diff to previous 1.66 (colored)

Fix typo in debug message.  From Jeffrey Hsu.

Revision 1.66 / (download) - annotate - [select for diffs], Thu Feb 19 02:13:23 2004 UTC (8 years, 3 months ago) by thorpej
Branch: MAIN
Changes since 1.65: +3 -2 lines
Diff to previous 1.65 (colored)

Add missing txseg20 counter name.  Pointed out by Jeffrey Hsu.

Revision 1.65 / (download) - annotate - [select for diffs], Wed Jan 14 14:29:48 2004 UTC (8 years, 4 months ago) by tsutsui
Branch: MAIN
Changes since 1.64: +32 -29 lines
Diff to previous 1.64 (colored)

Fix hardware cksum problem on big endian machines.
Tested on macppc by HATANO Hiromichi.

Note I guess this bug could be fixed only adding one htole32(),
but I'd rather clean up endianness handling:
- Use htole32() only to accesses against DMA descriptors.
- Don't use uint32_t union member  with htole32()/le32toh()
  to access uint8_t/uint16_t descriptors.
- Add le32toh() in some DPRINTF.
  (XXX: strictly speaking, bus_dmamap_sync() is needed for these DPRINTF)

Revision 1.64 / (download) - annotate - [select for diffs], Thu Dec 4 06:57:37 2003 UTC (8 years, 5 months ago) by thorpej
Branch: MAIN
Changes since 1.63: +30 -6 lines
Diff to previous 1.63 (colored)

Bump the Tx DMA segment count to 40.  Apparently, it's common to have
DMA segment counts in this ballpark when using jumbo frames (so says
the "ti" driver).

Revision 1.63 / (download) - annotate - [select for diffs], Sat Nov 22 08:32:12 2003 UTC (8 years, 6 months ago) by thorpej
Branch: MAIN
Changes since 1.62: +6 -2 lines
Diff to previous 1.62 (colored)

Add a missing i82541 ID to the table.

Revision 1.62 / (download) - annotate - [select for diffs], Fri Nov 7 06:03:52 2003 UTC (8 years, 6 months ago) by thorpej
Branch: MAIN
Changes since 1.61: +5 -4 lines
Diff to previous 1.61 (colored)

Fix brain'o in PCIX speed detection.  kern/23375 (John R. Shannon).

Revision 1.61 / (download) - annotate - [select for diffs], Tue Nov 4 19:09:39 2003 UTC (8 years, 6 months ago) by thorpej
Branch: MAIN
Changes since 1.60: +5 -5 lines
Diff to previous 1.60 (colored)

Enable i82541 and i82547 chips - it works well enough to get broader
testing.  Update the TODO list.

Revision 1.60 / (download) - annotate - [select for diffs], Mon Nov 3 03:05:25 2003 UTC (8 years, 6 months ago) by ichiro
Branch: MAIN
Changes since 1.59: +4 -4 lines
Diff to previous 1.59 (colored)

Fix uninitialized variable warnings

Revision 1.59 / (download) - annotate - [select for diffs], Sat Oct 25 18:31:11 2003 UTC (8 years, 7 months ago) by christos
Branch: MAIN
Changes since 1.58: +5 -3 lines
Diff to previous 1.58 (colored)

Fix uninitialized variable warnings

Revision 1.58 / (download) - annotate - [select for diffs], Thu Oct 23 12:53:02 2003 UTC (8 years, 7 months ago) by ragge
Branch: MAIN
Changes since 1.57: +3 -3 lines
Diff to previous 1.57 (colored)

Set snd queue size to max(WM_IFQUEUELEN, IFQ_MAXLEN), instead of hard to
WM_IFQUEUELEN.

Revision 1.57 / (download) - annotate - [select for diffs], Wed Oct 22 15:50:39 2003 UTC (8 years, 7 months ago) by thorpej
Branch: MAIN
Changes since 1.56: +119 -4 lines
Diff to previous 1.56 (colored)

Add support for the SPI EEPROM found on the newer i82541 and i82547
chips.  Add the i82541 and i82547 product IDs to the table, #if 0'd
out, for now (there are still more changes to come for these new chips
to work properly).

Revision 1.56 / (download) - annotate - [select for diffs], Tue Oct 21 16:52:08 2003 UTC (8 years, 7 months ago) by thorpej
Branch: MAIN
Changes since 1.55: +4 -2 lines
Diff to previous 1.55 (colored)

Add a TODO list item.

Revision 1.55 / (download) - annotate - [select for diffs], Tue Oct 21 16:51:17 2003 UTC (8 years, 7 months ago) by thorpej
Branch: MAIN
Changes since 1.54: +30 -6 lines
Diff to previous 1.54 (colored)

- Move the i82540EM (LOM) along with the other i82540 product IDs.
- Match the i82545GM (1000BASE-T and 1000BASE-X) and i82546GB
  (1000BASE-T and 1000BASE-X) product IDs.

Revision 1.54 / (download) - annotate - [select for diffs], Tue Oct 21 16:41:51 2003 UTC (8 years, 7 months ago) by thorpej
Branch: MAIN
Changes since 1.53: +43 -3 lines
Diff to previous 1.53 (colored)

If we're on PCI-X, look up the PCI-X capability.  Verify that the
max memory read byte count in the command register is <= the max designed
memory read byte count in the status register.  If not, reset it to the
status register's value.  This is necessary because some BIOSes configure
the wrong value, and the wrong value confused some versions of the PCI-X
capable chips.

Revision 1.53 / (download) - annotate - [select for diffs], Tue Oct 21 05:45:11 2003 UTC (8 years, 7 months ago) by thorpej
Branch: MAIN
Changes since 1.52: +81 -6 lines
Diff to previous 1.52 (colored)

- Map I/O space on chips that support it.  While it is not used for
  normal operation, it is required to implement a bug work-around on
  some chips.
- When issuing a reset on the i82544, i82540, i82545, i82546,
  and i82541, use I/O space, if available, to work around a problem
  with the memory write cycle (problem only occurs when issuing
  a reset).

Revision 1.52 / (download) - annotate - [select for diffs], Tue Oct 21 04:35:01 2003 UTC (8 years, 7 months ago) by thorpej
Branch: MAIN
Changes since 1.51: +50 -2 lines
Diff to previous 1.51 (colored)

Record characteristics of the bus connection at attach time.

Revision 1.51 / (download) - annotate - [select for diffs], Mon Oct 20 22:52:19 2003 UTC (8 years, 7 months ago) by thorpej
Branch: MAIN
Changes since 1.50: +64 -46 lines
Diff to previous 1.50 (colored)

- Do better error checking on EEPROM access.
- Let the EEPROM wire-protocol handler perform the loop.

Revision 1.50 / (download) - annotate - [select for diffs], Mon Oct 20 16:28:23 2003 UTC (8 years, 7 months ago) by thorpej
Branch: MAIN
Changes since 1.49: +38 -26 lines
Diff to previous 1.49 (colored)

Move all the code that handles the MicroWire EEPROM protocol into
a separate function.

Revision 1.49 / (download) - annotate - [select for diffs], Mon Oct 20 15:34:25 2003 UTC (8 years, 7 months ago) by thorpej
Branch: MAIN
Changes since 1.48: +3 -3 lines
Diff to previous 1.48 (colored)

Fix a typo in the "failed to acquire eeprom" case.

Revision 1.48 / (download) - annotate - [select for diffs], Mon Oct 20 15:33:48 2003 UTC (8 years, 7 months ago) by thorpej
Branch: MAIN
Changes since 1.47: +33 -18 lines
Diff to previous 1.47 (colored)

Move the code that reads a series of bits from the EEPROM into a
separate function.

Revision 1.47 / (download) - annotate - [select for diffs], Mon Oct 20 06:00:26 2003 UTC (8 years, 7 months ago) by thorpej
Branch: MAIN
Changes since 1.46: +66 -66 lines
Diff to previous 1.46 (colored)

Make all of the functions in this file static.

Revision 1.46 / (download) - annotate - [select for diffs], Mon Oct 20 05:56:17 2003 UTC (8 years, 7 months ago) by thorpej
Branch: MAIN
Changes since 1.45: +32 -27 lines
Diff to previous 1.45 (colored)

Factor out the code that sends bits to the EEPROM into a separate function.

Revision 1.45 / (download) - annotate - [select for diffs], Mon Oct 20 05:40:03 2003 UTC (8 years, 7 months ago) by thorpej
Branch: MAIN
Changes since 1.44: +63 -30 lines
Diff to previous 1.44 (colored)

Move the code that handle the EEPROM handshake into separate functions.

Revision 1.44 / (download) - annotate - [select for diffs], Fri Oct 17 21:12:48 2003 UTC (8 years, 7 months ago) by thorpej
Branch: MAIN
Changes since 1.43: +27 -14 lines
Diff to previous 1.43 (colored)

Store the number of EEPROM address bits in the softc.

Revision 1.43 / (download) - annotate - [select for diffs], Fri Oct 17 20:57:32 2003 UTC (8 years, 7 months ago) by thorpej
Branch: MAIN
Changes since 1.42: +22 -15 lines
Diff to previous 1.42 (colored)

Add internal representation for i82545 rev 3, i82546 rev3, i82541,
i82541 rev 2, i82547, and i82547 rev 2.

Revision 1.42 / (download) - annotate - [select for diffs], Fri Oct 17 20:41:21 2003 UTC (8 years, 7 months ago) by thorpej
Branch: MAIN
Changes since 1.41: +25 -30 lines
Diff to previous 1.41 (colored)

Make the "align tweak" factor per-interface (since the MTU is per-interface).

Revision 1.41 / (download) - annotate - [select for diffs], Wed Sep 10 04:02:17 2003 UTC (8 years, 8 months ago) by tls
Branch: MAIN
Changes since 1.40: +69 -15 lines
Diff to previous 1.40 (colored)

Add support for jumbo (9K) frames.  Add support for larger receive
descriptor sizes if larger mbuf clusters are in use -- currently
commented out because, for some reason, transmit doesn't work at
all with large mbuf cluster sizes.

Note that using actual 9K frames is a _lot_ less efficient than
using frames that are a little smaller than 8K so that they fit
in one or two pages (instead of two or three) and avoid the extra
chained descriptor with only 1K of data in it, too.  TCP will
segment things just fine for an 8K total packet size, just as it
does for 1500-byte packets.

On my system, using "mtu 8000" with ifconfig, I get an almost 50%
performance boost for TCP (930Mbit/sec instead of 660Mbit/sec) over
1500-byte frames.  "mtu 9000" yields only 770Mbit/sec.

Revision 1.40 / (download) - annotate - [select for diffs], Thu Sep 4 19:32:19 2003 UTC (8 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.39: +2 -4 lines
Diff to previous 1.39 (colored)

GMII works on the i82543 now.

Revision 1.39 / (download) - annotate - [select for diffs], Tue Jul 29 19:49:50 2003 UTC (8 years, 9 months ago) by thorpej
Branch: MAIN
Changes since 1.38: +6 -2 lines
Diff to previous 1.38 (colored)

Add support for the Intel PRO/1000 MT Quad Port server adapter; this
is just 2 i82546EB chips behind an IBM 133 PCI-X bridge.

Revision 1.38 / (download) - annotate - [select for diffs], Mon Jul 14 15:47:25 2003 UTC (8 years, 10 months ago) by lukem
Branch: MAIN
Changes since 1.37: +4 -1 lines
Diff to previous 1.37 (colored)

add missing __KERNEL_RCSID()

Revision 1.9.4.9 / (download) - annotate - [select for diffs], Mon Jun 16 13:44:27 2003 UTC (8 years, 11 months ago) by grant
Branch: netbsd-1-6
CVS Tags: 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
Changes since 1.9.4.8: +7 -7 lines
Diff to previous 1.9.4.8 (colored) to branchpoint 1.9 (colored)

Pull up revision 1.36 (requested by tron in ticket #1256):

Pullup short mbuf in wm_tx_cksum() instead of dropping it which fixes
PR kern/21190 by myself. Jason R. Thorpe code reviewed the changes.

Revision 1.37 / (download) - annotate - [select for diffs], Tue Apr 29 01:15:38 2003 UTC (9 years ago) by thorpej
Branch: MAIN
Branch point for: ktrace-lwp
Changes since 1.36: +25 -21 lines
Diff to previous 1.36 (colored)

Use aprint*().

Revision 1.36 / (download) - annotate - [select for diffs], Tue Apr 15 22:52:40 2003 UTC (9 years, 1 month ago) by tron
Branch: MAIN
Changes since 1.35: +7 -7 lines
Diff to previous 1.35 (colored)

Pullup short mbuf in wm_tx_cksum() instead of dropping it which fixes
PR kern/21190 by myself. Jason R. Thorpe code reviewed the changes.

Revision 1.35 / (download) - annotate - [select for diffs], Tue Apr 15 21:12:24 2003 UTC (9 years, 1 month ago) by thorpej
Branch: MAIN
Changes since 1.34: +6 -1 lines
Diff to previous 1.34 (colored)

wm_tx_cksum(): Set the initial offset correctly for packets using
802.1Q encap.

Revision 1.34 / (download) - annotate - [select for diffs], Sat Apr 5 13:23:17 2003 UTC (9 years, 1 month ago) by kent
Branch: MAIN
Changes since 1.33: +9 -1 lines
Diff to previous 1.33 (colored)

Support for 82540EP and 82540EP (LOM).
Not tested.

Revision 1.33 / (download) - annotate - [select for diffs], Fri Apr 4 06:45:12 2003 UTC (9 years, 1 month ago) by kent
Branch: MAIN
Changes since 1.32: +5 -1 lines
Diff to previous 1.32 (colored)

Support for i82450EP.

Revision 1.32 / (download) - annotate - [select for diffs], Tue Feb 4 17:40:31 2003 UTC (9 years, 3 months ago) by thorpej
Branch: MAIN
Changes since 1.31: +3 -3 lines
Diff to previous 1.31 (colored)

Use bus_dmamap_load_mbuf() in wm_add_rxbuf().

Revision 1.31 / (download) - annotate - [select for diffs], Tue Jan 21 05:43:26 2003 UTC (9 years, 4 months ago) by itojun
Branch: MAIN
Changes since 1.30: +2 -2 lines
Diff to previous 1.30 (colored)

m_tag transition mistake (within #if 0)

Revision 1.1.2.11 / (download) - annotate - [select for diffs], Fri Jan 17 16:31:47 2003 UTC (9 years, 4 months ago) by thorpej
Branch: nathanw_sa
CVS Tags: nathanw_sa_end
Changes since 1.1.2.10: +10 -7 lines
Diff to previous 1.1.2.10 (colored) next main 1.2 (colored)

Sync with HEAD.

Revision 1.30 / (download) - annotate - [select for diffs], Fri Jan 17 08:11:52 2003 UTC (9 years, 4 months ago) by itojun
Branch: MAIN
CVS Tags: nathanw_sa_before_merge, nathanw_sa_base
Changes since 1.29: +10 -7 lines
Diff to previous 1.29 (colored)

switch from kame-based m_aux mbuf auxiliary data, to openbsd m_tag
implementation.  it will simplify porting across *bsd (such as kame/altq),
and make us more synchronized.  from Joel Wilsson

Revision 1.1.2.10 / (download) - annotate - [select for diffs], Sun Dec 29 20:49:24 2002 UTC (9 years, 4 months ago) by thorpej
Branch: nathanw_sa
Changes since 1.1.2.9: +7 -7 lines
Diff to previous 1.1.2.9 (colored)

Sync with HEAD.

Revision 1.29 / (download) - annotate - [select for diffs], Mon Dec 23 02:58:38 2002 UTC (9 years, 5 months ago) by tsutsui
Branch: MAIN
CVS Tags: fvdl_fs64_base
Changes since 1.28: +7 -5 lines
Diff to previous 1.28 (colored)

Replace magic numbers for power management control with PCI_PMCSR* macros.

XXX Should we use pci_get_powerstate() and pci_set_powerstate() in pci.c?

Revision 1.28 / (download) - annotate - [select for diffs], Sat Dec 21 16:12:15 2002 UTC (9 years, 5 months ago) by kristerw
Branch: MAIN
Changes since 1.27: +1 -3 lines
Diff to previous 1.27 (colored)

wm_copy_small in not used anywhere. Remove.

Revision 1.1.2.9 / (download) - annotate - [select for diffs], Mon Nov 11 22:11:13 2002 UTC (9 years, 6 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.1.2.8: +6 -6 lines
Diff to previous 1.1.2.8 (colored)

Catch up to -current

Revision 1.9.4.8 / (download) - annotate - [select for diffs], Fri Nov 8 08:50:24 2002 UTC (9 years, 6 months ago) by tron
Branch: netbsd-1-6
CVS Tags: netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001
Changes since 1.9.4.7: +93 -9 lines
Diff to previous 1.9.4.7 (colored) to branchpoint 1.9 (colored)

Pull up revision 1.17 (requested by thorpej in ticket #650):
Add support for the new i82540, i82545, and i82546 Gig-E chips.  The
i82546 chip has 2 Gig-E interfaces in a single chip.
The main difference is these chips have a special handshaking protocol
for accessing the EEPROM (due to the shared nature on the i82546).

Revision 1.9.4.7 / (download) - annotate - [select for diffs], Thu Nov 7 20:05:02 2002 UTC (9 years, 6 months ago) by tron
Branch: netbsd-1-6
Changes since 1.9.4.6: +80 -82 lines
Diff to previous 1.9.4.6 (colored) to branchpoint 1.9 (colored)

Pull up revision 1.11 (requested by thorpej in ticket #453):
Don't use internal names to identify chips.  Add types for the
i82540, i82545, and i82546 (but don't match them yet).

Revision 1.27 / (download) - annotate - [select for diffs], Wed Oct 23 01:34:58 2002 UTC (9 years, 7 months ago) by christos
Branch: MAIN
CVS Tags: kqueue-beforemerge, kqueue-aftermerge, gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw
Changes since 1.26: +4 -4 lines
Diff to previous 1.26 (colored)

change the macro params to longer names

Revision 1.26 / (download) - annotate - [select for diffs], Mon Oct 21 23:38:12 2002 UTC (9 years, 7 months ago) by fair
Branch: MAIN
Changes since 1.25: +3 -3 lines
Diff to previous 1.25 (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.1.2.8 / (download) - annotate - [select for diffs], Fri Oct 18 02:43:08 2002 UTC (9 years, 7 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.1.2.7: +3 -4 lines
Diff to previous 1.1.2.7 (colored)

Catch up to -current.

Revision 1.9.6.4 / (download) - annotate - [select for diffs], Thu Oct 10 18:40:50 2002 UTC (9 years, 7 months ago) by jdolecek
Branch: kqueue
Changes since 1.9.6.3: +3 -4 lines
Diff to previous 1.9.6.3 (colored) to branchpoint 1.9 (colored) next main 1.10 (colored)

sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work

Revision 1.25 / (download) - annotate - [select for diffs], Wed Oct 2 16:51:37 2002 UTC (9 years, 7 months ago) by thorpej
Branch: MAIN
CVS Tags: kqueue-base
Changes since 1.24: +2 -2 lines
Diff to previous 1.24 (colored)

Add trailing ; to CFATTACH_DECL.

Revision 1.24 / (download) - annotate - [select for diffs], Mon Sep 30 20:37:43 2002 UTC (9 years, 7 months ago) by thorpej
Branch: MAIN
Changes since 1.23: +3 -4 lines
Diff to previous 1.23 (colored)

Use CFATTACH_DECL().

Revision 1.23 / (download) - annotate - [select for diffs], Fri Sep 27 20:40:23 2002 UTC (9 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.22: +2 -2 lines
Diff to previous 1.22 (colored)

Declare all cfattach structures const.

Revision 1.9.6.3 / (download) - annotate - [select for diffs], Fri Sep 6 08:45:21 2002 UTC (9 years, 8 months ago) by jdolecek
Branch: kqueue
Changes since 1.9.6.2: +277 -147 lines
Diff to previous 1.9.6.2 (colored) to branchpoint 1.9 (colored)

sync kqueue branch with HEAD

Revision 1.9.2.2 / (download) - annotate - [select for diffs], Thu Aug 29 05:22:40 2002 UTC (9 years, 8 months ago) by gehenna
Branch: gehenna-devsw
Changes since 1.9.2.1: +120 -20 lines
Diff to previous 1.9.2.1 (colored) to branchpoint 1.9 (colored) next main 1.10 (colored)

catch up with -current.

Revision 1.1.2.7 / (download) - annotate - [select for diffs], Tue Aug 27 23:46:49 2002 UTC (9 years, 9 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.1.2.6: +19 -1 lines
Diff to previous 1.1.2.6 (colored)

Catch up to -current.

Revision 1.22 / (download) - annotate - [select for diffs], Fri Aug 23 16:30:10 2002 UTC (9 years, 9 months ago) by itojun
Branch: MAIN
CVS Tags: gehenna-devsw-base
Changes since 1.21: +2 -2 lines
Diff to previous 1.21 (colored)

#if 0 out call to rnd_add_uint32() in interrupt logic until thorpej
measures performance differences.

Revision 1.21 / (download) - annotate - [select for diffs], Fri Aug 23 07:45:39 2002 UTC (9 years, 9 months ago) by itojun
Branch: MAIN
Changes since 1.20: +19 -1 lines
Diff to previous 1.20 (colored)

attach random number source.

Revision 1.1.2.6 / (download) - annotate - [select for diffs], Mon Aug 19 22:19:33 2002 UTC (9 years, 9 months ago) by thorpej
Branch: nathanw_sa
Changes since 1.1.2.5: +8 -10 lines
Diff to previous 1.1.2.5 (colored)

Sync with trunk.

Revision 1.20 / (download) - annotate - [select for diffs], Sat Aug 17 20:58:04 2002 UTC (9 years, 9 months ago) by thorpej
Branch: MAIN
Changes since 1.19: +7 -3 lines
Diff to previous 1.19 (colored)

* After testing for DD on a descriptor, and finding it clear,
  sync that descriptor with PREREAD to make sure that it is evicted
  from the data cache.  From Allen Briggs.
* With the above bug fixed, stop using BUS_DMA_COHERENT, resulting in
  a fairly decent performance improvement on systems where BUS_DMA_COHERENT
  causes descriptors to be accessed uncached (most painful in wm_start()).

Revision 1.9.4.6 / (download) - annotate - [select for diffs], Sat Aug 17 15:47:44 2002 UTC (9 years, 9 months ago) by lukem
Branch: netbsd-1-6
CVS Tags: netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2
Changes since 1.9.4.5: +1 -8 lines
Diff to previous 1.9.4.5 (colored) to branchpoint 1.9 (colored)

Pull up revision 1.19 (requested by thorpej in ticket #684):
Update a comment; TCP/IP checksum offloading is fixed!

Revision 1.9.4.5 / (download) - annotate - [select for diffs], Sat Aug 17 15:46:27 2002 UTC (9 years, 9 months ago) by lukem
Branch: netbsd-1-6
Changes since 1.9.4.4: +2 -1 lines
Diff to previous 1.9.4.4 (colored) to branchpoint 1.9 (colored)

Pull up revision 1.18 (requested by briggs in ticket #683):
On transmit, zero the upper 32 bits of the address in the tx descriptor.
The descriptor may have been used as as context descriptor in the past,
in which case this field will be non-zero.  h/w checksum offload works now.

Revision 1.19 / (download) - annotate - [select for diffs], Thu Aug 15 18:35:25 2002 UTC (9 years, 9 months ago) by thorpej
Branch: MAIN
Changes since 1.18: +1 -8 lines
Diff to previous 1.18 (colored)

Update a comment; TCP/IP checksum offloading is fixed!

Revision 1.18 / (download) - annotate - [select for diffs], Thu Aug 15 18:29:02 2002 UTC (9 years, 9 months ago) by briggs
Branch: MAIN
Changes since 1.17: +2 -1 lines
Diff to previous 1.17 (colored)

On transmit, zero the upper 32 bits of the address in the tx descriptor.
The descriptor may have been used as as context descriptor in the past,
in which case this field will be non-zero.  h/w checksum offload works now.

Revision 1.1.2.5 / (download) - annotate - [select for diffs], Tue Aug 13 02:19:39 2002 UTC (9 years, 9 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.1.2.4: +95 -11 lines
Diff to previous 1.1.2.4 (colored)

Catch up to -current.

Revision 1.17 / (download) - annotate - [select for diffs], Thu Aug 8 00:12:08 2002 UTC (9 years, 9 months ago) by thorpej
Branch: MAIN
Changes since 1.16: +93 -9 lines
Diff to previous 1.16 (colored)

Add support for the new i82540, i82545, and i82546 Gig-E chips.  The
i82546 chip has 2 Gig-E interfaces in a single chip.

The main difference is these chips have a special handshaking protocol
for accessing the EEPROM (due to the shared nature on the i82546).

Revision 1.16 / (download) - annotate - [select for diffs], Wed Aug 7 04:53:18 2002 UTC (9 years, 9 months ago) by simonb
Branch: MAIN
Changes since 1.15: +2 -2 lines
Diff to previous 1.15 (colored)

Fix a typo in a comment.

Revision 1.15 / (download) - annotate - [select for diffs], Tue Aug 6 23:51:43 2002 UTC (9 years, 9 months ago) by simonb
Branch: MAIN
Changes since 1.14: +2 -2 lines
Diff to previous 1.14 (colored)

Fix a typo in a comment.

Revision 1.1.2.4 / (download) - annotate - [select for diffs], Thu Aug 1 02:45:20 2002 UTC (9 years, 9 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.1.2.3: +164 -134 lines
Diff to previous 1.1.2.3 (colored)

Catch up to -current.

Revision 1.9.4.4 / (download) - annotate - [select for diffs], Mon Jul 15 16:17:53 2002 UTC (9 years, 10 months ago) by thorpej
Branch: netbsd-1-6
CVS Tags: netbsd-1-6-RC1
Changes since 1.9.4.3: +6 -1 lines
Diff to previous 1.9.4.3 (colored) to branchpoint 1.9 (colored)

pullup-1-6 ticket #501 (thorpej).

Original log message:
Document exactly what the problem with TCP/UDP checksum offloading is.

Revision 1.9.4.3 / (download) - annotate - [select for diffs], Mon Jul 15 16:16:45 2002 UTC (9 years, 10 months ago) by thorpej
Branch: netbsd-1-6
Changes since 1.9.4.2: +43 -8 lines
Diff to previous 1.9.4.2 (colored) to branchpoint 1.9 (colored)

pullup-1-6 ticket #500 (thorpej).

Original log message:
And thus spake the manual...

When initializing a TCP/IP context descriptor, even if a checksum
offload feature is not going to be used, the IPCSS and TUCSS fields
must be initialized.

Revision 1.9.2.1 / (download) - annotate - [select for diffs], Mon Jul 15 10:35:38 2002 UTC (9 years, 10 months ago) by gehenna
Branch: gehenna-devsw
Changes since 1.9: +164 -134 lines
Diff to previous 1.9 (colored)

catch up with -current.

Revision 1.14 / (download) - annotate - [select for diffs], Sun Jul 14 01:34:00 2002 UTC (9 years, 10 months ago) by thorpej
Branch: MAIN
Changes since 1.13: +6 -1 lines
Diff to previous 1.13 (colored)

Document exactly what the problem with TCP/UDP checksum offloading is.

Revision 1.13 / (download) - annotate - [select for diffs], Sun Jul 14 01:12:28 2002 UTC (9 years, 10 months ago) by thorpej
Branch: MAIN
Changes since 1.12: +43 -8 lines
Diff to previous 1.12 (colored)

And thus spake the manual...

When initializing a TCP/IP context descriptor, even if a checksum
offload feature is not going to be used, the IPCSS and TUCSS fields
must be initialized.

Revision 1.9.4.2 / (download) - annotate - [select for diffs], Wed Jul 10 01:34:50 2002 UTC (9 years, 10 months ago) by lukem
Branch: netbsd-1-6
Changes since 1.9.4.1: +10 -11 lines
Diff to previous 1.9.4.1 (colored) to branchpoint 1.9 (colored)

Pull up revision 1.12 (requested by thorpej in ticket #455):
* Shuffle the TODO list a bit.
* Fix outbound IPv4 header checksums (missing add of an offset).
* When enabling Rx TCP/UDP checksum offload, make sure that IPv4
  header checksum Rx offload is enabled on the chip, as well.

Revision 1.9.4.1 / (download) - annotate - [select for diffs], Wed Jul 10 01:26:44 2002 UTC (9 years, 10 months ago) by lukem
Branch: netbsd-1-6
Changes since 1.9: +29 -36 lines
Diff to previous 1.9 (colored)

Pull up revision 1.10 (requested by thorpej in ticket #451):
Make a few performance tweaks:
* Bump the number of Rx descriptors from 128 to 256.
* Don't use a sliding Tx interrupt window.  Instead, just do reap-behind
  when we have <= 1/8 of our available descriptors in wm_start().
* Don't use Tx Queue Empty interrupts, and always set the Tx Interrupt
  Delay bit in the Tx descriptor.
* In wm_intr(), always call wm_rxintr() and wm_txintr(), regardless of
  their respective ISR bits being set.  We're here, might as well do some
  work.
* Adjust the Tx and Rx interrupt delay timer values.  New values from
  Intel's driver for FreeBSD via Allen Briggs.
With these changes, NetBSD can sustain > 900Mb/s userland to userland
*without* using TCP checksum offload using Intel PRO/1000 XT cards.

Revision 1.12 / (download) - annotate - [select for diffs], Tue Jul 9 21:05:03 2002 UTC (9 years, 10 months ago) by thorpej
Branch: MAIN
Changes since 1.11: +9 -10 lines
Diff to previous 1.11 (colored)

* Shuffle the TODO list a bit.
* Fix outbound IPv4 header checksums (missing add of an offset).
* When enabling Rx TCP/UDP checksum offload, make sure that IPv4
  header checksum Rx offload is enabled on the chip, as well.

Revision 1.11 / (download) - annotate - [select for diffs], Tue Jul 9 19:47:46 2002 UTC (9 years, 10 months ago) by thorpej
Branch: MAIN
Changes since 1.10: +81 -83 lines
Diff to previous 1.10 (colored)

Don't use internal names to identify chips.  Add types for the
i82540, i82545, and i82546 (but don't match them yet).

Revision 1.10 / (download) - annotate - [select for diffs], Tue Jul 9 14:52:37 2002 UTC (9 years, 10 months ago) by thorpej
Branch: MAIN
Changes since 1.9: +29 -36 lines
Diff to previous 1.9 (colored)

Make a few performance tweaks:
* Bump the number of Rx descriptors from 128 to 256.
* Don't use a sliding Tx interrupt window.  Instead, just do reap-behind
  when we have <= 1/8 of our available descriptors in wm_start().
* Don't use Tx Queue Empty interrupts, and always set the Tx Interrupt
  Delay bit in the Tx descriptor.
* In wm_intr(), always call wm_rxintr() and wm_txintr(), regardless of
  their respective ISR bits being set.  We're here, might as well do some
  work.
* Adjust the Tx and Rx interrupt delay timer values.  New values from
  Intel's driver for FreeBSD via Allen Briggs.

With these changes, NetBSD can sustain > 900Mb/s userland to userland
*without* using TCP checksum offload using Intel PRO/1000 XT cards.

Revision 1.9.6.2 / (download) - annotate - [select for diffs], Sun Jun 23 17:47:46 2002 UTC (9 years, 11 months ago) by jdolecek
Branch: kqueue
Changes since 1.9.6.1: +2855 -0 lines
Diff to previous 1.9.6.1 (colored) to branchpoint 1.9 (colored)

catch up with -current on kqueue branch

Revision 1.1.2.3 / (download) - annotate - [select for diffs], Thu Jun 20 03:45:32 2002 UTC (9 years, 11 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.1.2.2: +150 -104 lines
Diff to previous 1.1.2.2 (colored)

Catch up to -current.

Revision 1.9.6.1, Thu May 9 01:00:12 2002 UTC (10 years ago) by jdolecek
Branch: kqueue
Changes since 1.9: +0 -2855 lines
FILE REMOVED

file if_wm.c was added on branch kqueue on 2002-06-23 17:47:46 +0000

Revision 1.9 / (download) - annotate - [select for diffs], Thu May 9 01:00:12 2002 UTC (10 years ago) by thorpej
Branch: MAIN
CVS Tags: netbsd-1-6-base
Branch point for: netbsd-1-6, kqueue, gehenna-devsw
Changes since 1.8: +6 -18 lines
Diff to previous 1.8 (colored)

* Increase the number of Tx job queue entries from 32 to 64.
* Garbage-collect some unused stuff.
* Make the Tx window slide along the Tx job queue space, not the
  Tx descriptor space.  We are more likely to run low on DMA maps
  than we are hardware descriptors.

Revision 1.8 / (download) - annotate - [select for diffs], Thu May 9 00:41:06 2002 UTC (10 years ago) by thorpej
Branch: MAIN
Changes since 1.7: +11 -7 lines
Diff to previous 1.7 (colored)

* Instrument the number of times we force a Tx interrupt.
* When forcing an interrupt, make sure that interrupt-delay-enable is
  cleared (necessary with last change to make sure it's set for all
  descriptors).
* Crank up the Transmit Interrupt Delay Value to 1024 * 1.024 msec.  We
  really want these to be deferred.

Revision 1.7 / (download) - annotate - [select for diffs], Wed May 8 21:43:10 2002 UTC (10 years ago) by thorpej
Branch: MAIN
Changes since 1.6: +8 -15 lines
Diff to previous 1.6 (colored)

Don't set WTX_TCPIP_CMD_TCP or WTX_TCPIP_CMD_IP in the TCP/IP context
descriptor.  Those are apparently only valid if using the Cordova's
"segmentation offload" feature.

Revision 1.6 / (download) - annotate - [select for diffs], Wed May 8 21:22:20 2002 UTC (10 years ago) by thorpej
Branch: MAIN
Changes since 1.5: +8 -14 lines
Diff to previous 1.5 (colored)

* Make sure the interrupt-delay bit gets set on ALL descriptors,
  except for the one we want to force a Tx interrupt.
* Tweak the Tx descriptor accounting a little.

Revision 1.5 / (download) - annotate - [select for diffs], Wed May 8 19:00:27 2002 UTC (10 years ago) by thorpej
Branch: MAIN
Changes since 1.4: +52 -12 lines
Diff to previous 1.4 (colored)

Implement a cache for the outbound IP/TCP/UDP checksum offload
context.

Revision 1.4 / (download) - annotate - [select for diffs], Wed May 8 17:53:28 2002 UTC (10 years ago) by thorpej
Branch: MAIN
Changes since 1.3: +52 -17 lines
Diff to previous 1.3 (colored)

* Account for the descriptor consumed by the Tx checksum offload
  context setup.
* Implement Matt Thomas's sliding Tx interrupt window algorithm,
  forcing an interrupt when the Tx desc list is 2/3 consumed.
* Use the Report Packet Sent interrupt, rather than Report Status,
  since we use the Tx descriptor to count Tx errors.

Revision 1.3 / (download) - annotate - [select for diffs], Thu May 2 16:34:47 2002 UTC (10 years ago) by thorpej
Branch: MAIN
Changes since 1.2: +3 -4 lines
Diff to previous 1.2 (colored)

Fix a comment.

Revision 1.2 / (download) - annotate - [select for diffs], Thu May 2 16:33:27 2002 UTC (10 years ago) by thorpej
Branch: MAIN
Changes since 1.1: +48 -55 lines
Diff to previous 1.1 (colored)

* Deal with errata on the i82542 and i82543 chips: The size of the
  transmit and receive descriptor rings is limited to 256 descriptors.
  So, set the if_snd queue length to 256 to let the upper layers queue
  lots of packets, and let the driver handle up to 32 of them at a time.
  (We should probably make this change to most Ethernet drivers, since
  it actually saves some resources.)
* Increase the number of Tx DMA segments from 8 to 16.
* Clean up the way we count "how many times did I get a packet with N
  DMA segments".
* Add a missing htole32() in wm_tx_cksum().
* Don't set both RS and RPS in the last Tx descriptor of a packet; just
  use RS.
* Add some more information to the watchdog message.

Revision 1.1.2.2 / (download) - annotate - [select for diffs], Mon Apr 1 07:46:27 2002 UTC (10 years, 1 month ago) by nathanw
Branch: nathanw_sa
Changes since 1.1.2.1: +2809 -0 lines
Diff to previous 1.1.2.1 (colored)

Catch up to -current.
(CVS: It's not just a program. It's an adventure!)

Revision 1.1.2.1, Thu Mar 28 04:54:35 2002 UTC (10 years, 2 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.1: +0 -2809 lines
FILE REMOVED

file if_wm.c was added on branch nathanw_sa on 2002-04-01 07:46:27 +0000

Revision 1.1 / (download) - annotate - [select for diffs], Thu Mar 28 04:54:35 2002 UTC (10 years, 2 months ago) by thorpej
Branch: MAIN
Branch point for: nathanw_sa

Device driver for the Intel i82542, i82542, and i82544 Gigabit
Ethernet interfaces.

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>