The NetBSD Project

CVS log for src/sys/dev/pci/if_wmreg.h

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.98.6.19 / (download) - annotate - [select for diffs], Thu Feb 29 10:46:28 2024 UTC (2 days, 19 hours ago) by martin
Branch: netbsd-8
Changes since 1.98.6.18: +4 -1 lines
Diff to previous 1.98.6.18 (colored) to branchpoint 1.98 (colored) next main 1.99 (colored)

Pull up the following, requested by msaitoh in ticket #1938:

	sys/dev/pci/if_wm.c			1.792,1.794-1.798 via patch
	sys/dev/pci/if_wmreg.h			1.131

- Add RQDPC(Receive Queue Drop Packet Count) to iqdrops.
- Drop frames if the RX descriptor ring has no room on multiqueue system.
- Improve dmesg output.
  - Print RX packet buffer size.
  - Fix the upper 16bit of Image Unique ID(EtrackID).
- Fix comment.

Revision 1.115.2.9 / (download) - annotate - [select for diffs], Fri Feb 23 19:45:40 2024 UTC (8 days, 10 hours ago) by martin
Branch: netbsd-9
Changes since 1.115.2.8: +4 -1 lines
Diff to previous 1.115.2.8 (colored) to branchpoint 1.115 (colored) next main 1.116 (colored)

Pull up the following, requested by msaitoh in ticket #1802:

	sys/dev/pci/if_wm.c			1.794-1.798 via patch
	sys/dev/pci/if_wmreg.h			1.131

- Add RQDPC(Receive Queue Drop Packet Count) to iqdrops.
- Drop frames if the RX descriptor ring has no room on multiqueue
  system.
- Improve dmesg output:
  - Print RX packet buffer size.
  - Fix the upper 16bit of Image Unique ID(EtrackID).

Revision 1.128.2.2 / (download) - annotate - [select for diffs], Fri Feb 23 18:54:36 2024 UTC (8 days, 11 hours ago) by martin
Branch: netbsd-10
CVS Tags: netbsd-10-0-RC5
Changes since 1.128.2.1: +4 -1 lines
Diff to previous 1.128.2.1 (colored) to branchpoint 1.128 (colored) next main 1.129 (colored)

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

	sys/dev/pci/if_wm.c: revision 1.795
	sys/dev/pci/if_wm.c: revision 1.796
	sys/dev/pci/if_wm.c: revision 1.797
	sys/dev/pci/if_wmreg.h: revision 1.131

wm(4): Add RQDPC(Receive Queue Drop Packet Count) to iqdrops.

 The iqdrops counter should include not only MPC(Missed Packet Count)
but also RQDPC(Receive Queue Drop Packet Count). Same as ixgbe(4) and igc(4).

 Note that the RQDPC is not currently counted because SRRCTL_DROP_EN
is not set.

wm(4): Drop frames if the RX descriptor ring has no room on multiqueue system.

 Drop frames if the RX descriptor ring has no room. This is enabled only on
multiqueue system to avoid bad influence to other queues. The drop count
can be seen by the RQDPC counter (wmN rxqXXdrop evcnt).

wm(4): Fix compile error without WM_EVENT_COUNTERS.

Revision 1.131 / (download) - annotate - [select for diffs], Mon Jan 29 05:02:06 2024 UTC (4 weeks, 6 days ago) by msaitoh
Branch: MAIN
CVS Tags: HEAD
Changes since 1.130: +4 -1 lines
Diff to previous 1.130 (colored)

wm(4): Add RQDPC(Receive Queue Drop Packet Count) to iqdrops.

 The iqdrops counter should include not only MPC(Missed Packet Count)
but also RQDPC(Receive Queue Drop Packet Count). Same as ixgbe(4) and igc(4).

 Note that the RQDPC is not currently counted because SRRCTL_DROP_EN
is not set.

Revision 1.98.6.18 / (download) - annotate - [select for diffs], Wed Oct 18 14:41:54 2023 UTC (4 months, 2 weeks ago) by martin
Branch: netbsd-8
Changes since 1.98.6.17: +3 -1 lines
Diff to previous 1.98.6.17 (colored) to branchpoint 1.98 (colored)

Pull up the following, requested by msaitoh in ticket #1915:

	sys/dev/pci/pcidevs			1.1497
	sys/dev/pci/if_wm.c			1.689,1.790-1.791 via patch
	sys/dev/pci/if_wmreg.h			1.120 via patch
	sys/dev/pci/if_wmvar.h			1.51

- Use 12K for packet buffer for jumbo frame on PCH2 and newer.
- Add new workaround for Tiger Lake and newer to avoid packet loss.
- Add I219{V,LM}({22,23}) devices (Raptor Lake).

Revision 1.98.6.17 / (download) - annotate - [select for diffs], Tue Jun 27 18:36:53 2023 UTC (8 months ago) by martin
Branch: netbsd-8
Changes since 1.98.6.16: +33 -1 lines
Diff to previous 1.98.6.16 (colored) to branchpoint 1.98 (colored)

Pull up the following revisions, requested by msaitoh in #1847:

	sys/dev/pci/if_wm.c				1.768-1.782 via patch
	sys/dev/pci/if_wmreg.h				1.129-1.130
	sys/dev/pci/if_wmvar.h				1.49

wm(4):
- Rework for event counters:
  - Fix calculation of GORC, GOTC, TOR and TOT counters correctly.
  - Rearrange the order of the registers so that they are roughly
    in ascending order.
  - Reorder evcnt_attach_dynamic(), WM_EVCNT_ADD() and evcnt_detach()
    to match.
  - IC{TX,RX}*C registers are for older than 82575.
  - Fix a bug that the transmit underrun counter is incorrectly
    counted.
  - Don't add "Count" for event counter's description.
  - Some statistics registers were replaced with new counters on newer
    chips. Treat 0x403c(CEXTERR->HTDPMC), 0x40fc(TSCTFC->CBRMPC),
    0x4124(ICRXOC->HTCBDPC) and from 0x4104 to 0x4124.
  - Add some new counters:
    - Circuit Breaker TX Manageability Packet
    - Circuit Breaker RX Dropped Packet
    - Host Good Octets RX
    - Host Good Octets TX
    - Length Errors
    - SerDes/SGMII Code Violation Packet
    - Header Redirection Missed Packet
    - EEE TX LPI
    - EEE RX LPI
  - Fix prc511's comment and description.
- Add SOICZIFDATA (ifconfig -z) support for evcnt(9).
- Use WM_IS_ICHPCH(). No functional change.
- Fix typo. s/ictxact/ictxatc/. No functional change.
- Add comment.

Revision 1.115.2.8 / (download) - annotate - [select for diffs], Tue Jun 27 18:32:46 2023 UTC (8 months ago) by martin
Branch: netbsd-9
Changes since 1.115.2.7: +33 -1 lines
Diff to previous 1.115.2.7 (colored) to branchpoint 1.115 (colored)

Pull up the following revisions, requested by msaitoh in #1656:

	sys/dev/pci/if_wm.c				1.768-1.782 via patch
	sys/dev/pci/if_wmreg.h				1.129-1.130
	sys/dev/pci/if_wmvar.h				1.49

wm(4):
- Rework for event counters:
  - Fix calculation of GORC, GOTC, TOR and TOT counters correctly.
  - Rearrange the order of the registers so that they are roughly
    in ascending order.
  - Reorder evcnt_attach_dynamic(), WM_EVCNT_ADD() and evcnt_detach()
    to match.
  - IC{TX,RX}*C registers are for older than 82575.
  - Fix a bug that the transmit underrun counter is incorrectly
    counted.
  - Don't add "Count" for event counter's description.
  - Some statistics registers were replaced with new counters on newer
    chips. Treat 0x403c(CEXTERR->HTDPMC), 0x40fc(TSCTFC->CBRMPC),
    0x4124(ICRXOC->HTCBDPC) and from 0x4104 to 0x4124.
  - Add some new counters:
    - Circuit Breaker TX Manageability Packet
    - Circuit Breaker RX Dropped Packet
    - Host Good Octets RX
    - Host Good Octets TX
    - Length Errors
    - SerDes/SGMII Code Violation Packet
    - Header Redirection Missed Packet
    - EEE TX LPI
    - EEE RX LPI
  - Fix prc511's comment and description.
- Add SOICZIFDATA (ifconfig -z) support for evcnt(9).
- Use WM_IS_ICHPCH(). No functional change.
- Fix typo. s/ictxact/ictxatc/. No functional change.
- Add comment.

Revision 1.128.2.1 / (download) - annotate - [select for diffs], Thu Jun 22 08:14:35 2023 UTC (8 months, 1 week ago) by martin
Branch: netbsd-10
CVS Tags: netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1
Changes since 1.128: +33 -1 lines
Diff to previous 1.128 (colored)

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

	sys/dev/pci/if_wm.c: revision 1.770
	sys/dev/pci/if_wm.c: revision 1.771
	sys/dev/pci/if_wm.c: revision 1.772
	sys/dev/pci/if_wm.c: revision 1.773
	sys/dev/pci/if_wm.c: revision 1.774
	sys/dev/pci/if_wm.c: revision 1.775
	sys/dev/pci/if_wm.c: revision 1.776
	sys/dev/pci/if_wmreg.h: revision 1.129
	sys/dev/pci/if_wm.c: revision 1.777
	sys/dev/pci/if_wm.c: revision 1.778
	sys/dev/pci/if_wmvar.h: revision 1.49
	sys/dev/pci/if_wm.c: revision 1.779
	sys/dev/pci/if_wm.c: revision 1.768
	sys/dev/pci/if_wm.c: revision 1.769
	sys/dev/pci/if_wmreg.h: revision 1.130
	sys/dev/pci/if_wm.c: revision 1.780
	sys/dev/pci/if_wm.c: revision 1.781

Count some 64bit counters correctly.
 - Fix calculation of GORC, GOTC, TOR and TOT counters correctly.
 - Found by knakahara.

Add note for the TORL register.

The TOR register includes error, flow control and broadcast rejected.

Sort lines. No functional change.

 Rearrange the order of the registers so that they are roughly in ascending
order.

Sort lines. No functional change.

Reorder evcnt_attach_dynamic(), WM_EVCNT_ADD() and evcnt_detach() to match.
IC{TX,RX}*C registers are for older than 82575.

Fix a bug that the transmit underrun counter is incorrectly counted.
 The transmit underrun bit in the transmit status filed is only for 82544
(and older?), so don't use the counter for newer chips. The bit is reserved
for newer chips, but the bit sometimes set on 82575 at least.

Don't add "Count" for event counter's description.

 Some statistics registers were replaced with new counters.
 - 0x403c was CEXTERR(Carrier Extension Error). 82575 and newer except 80003,
   ICHs and PCHs have HTDPMC(Host Tx Discarded Packets by MAC). I don't really
   know for 82575. The 82575 datasheet say nothing about it.
 - The following two are changed for circuit breaker. Only 82576's datasheet
   describes abut it, so the registers might be only for 82576.
   Use those registers for 82575 and newer except 80003, ICHs and PCHs just in
   case.
   - 0x40fc was TSCTFC(TCP Segmentation Context Tx Fail). It was replaced by
     the CBRMPC(Circuit Breaker Rx Manageability Packet) register.
   - 0x4124 was ICRXOC(Interrupt Cause Receiver Overrun). It was replaced by
     the HTCBDPC(Host Tx Circuit Breaker Dropped Packet) register.
 - From 0x4104 to 0x4124:
   - For 0x4124, 82575's datasheet says it's not changed(ICRXOC).
     I don't know if it's correct. We use new HTCBDPC register for 82575.
   - 82576 and newer changed the meaning.
   - I don't know for 80003, ICHs and PCHs. Don't count those registers.
     At least, those registers in PCH2 and PCH_CNP are all zero.

Add some new event counters.

Add the following counters for 82575 and newer except 80003, ICHs and PCHs:
    - Only 82576 document describes about the circuit breaker,
      so the following two might be only for 82575:
        - Circuit Breaker TX Manageability Packet
        - Circuit Breaker RX Dropped Packet
    - 82575's document doesn't describe the following two, but we can see
      the same value as GO{T,R}C have:
        - Host Good Octets RX
        - Host Good Octets TX
    - 82575's document doesn't describe the LENERRS (Length Errors) counter.
      I don't know if it has.
    - Perhaps Non-SerDes/SGMII devices don't have SCVPC
      (SerDes/SGMII Code Violation Packet) register. We don't care if
      it's SerDes/SGMII or not for now.
    - HRMPC (Header Redirection Missed Packet) appears only once
      in 8257[56]'s datasheet. FreeBSD's igb counts it, so we do, too.
    - Count the following two for I350 and newer. I don't know if PCHs have:
        - EEE TX LPI
        - EEE RX LPI

 Move statistics updating code from wm_tick() to new wm_update_stats().
 - To reuse.
 - No functional change.

Add SOICZIFDATA (ifconfig -z) support for evcnt(9).

 First update the statistics data, then clear the event counters,
and finally copy and clear if_data via ether_ioctl().

Fix prc511's comment and description.

 Use WM_IS_ICHPCH(). No functional change.

Fix typo. s/ictxact/ictxatc/. No functional change.

Revision 1.130 / (download) - annotate - [select for diffs], Thu May 11 07:19:02 2023 UTC (9 months, 3 weeks ago) by msaitoh
Branch: MAIN
CVS Tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation
Changes since 1.129: +11 -1 lines
Diff to previous 1.129 (colored)

Add some new event counters.

Add the following counters for 82575 and newer except 80003, ICHs and PCHs:
    - Only 82576 document describes about the circuit breaker,
      so the following two might be only for 82575:
        - Circuit Breaker TX Manageability Packet
        - Circuit Breaker RX Dropped Packet
    - 82575's document doesn't describe the following two, but we can see
      the same value as GO{T,R}C have:
        - Host Good Octets RX
        - Host Good Octets TX
    - 82575's document doesn't describe the LENERRS (Length Errors) counter.
      I don't know if it has.
    - Perhaps Non-SerDes/SGMII devices don't have SCVPC
      (SerDes/SGMII Code Violation Packet) register. We don't care if
      it's SerDes/SGMII or not for now.
    - HRMPC (Header Redirection Missed Packet) appears only once
      in 8257[56]'s datasheet. FreeBSD's igb counts it, so we do, too.
    - Count the following two for I350 and newer. I don't know if PCHs have:
        - EEE TX LPI
        - EEE RX LPI

Revision 1.129 / (download) - annotate - [select for diffs], Thu May 11 07:14:46 2023 UTC (9 months, 3 weeks ago) by msaitoh
Branch: MAIN
Changes since 1.128: +23 -1 lines
Diff to previous 1.128 (colored)

 Some statistics registers were replaced with new counters.

 - 0x403c was CEXTERR(Carrier Extension Error). 82575 and newer except 80003,
   ICHs and PCHs have HTDPMC(Host Tx Discarded Packets by MAC). I don't really
   know for 82575. The 82575 datasheet say nothing about it.
 - The following two are changed for circuit breaker. Only 82576's datasheet
   describes abut it, so the registers might be only for 82576.
   Use those registers for 82575 and newer except 80003, ICHs and PCHs just in
   case.
   - 0x40fc was TSCTFC(TCP Segmentation Context Tx Fail). It was replaced by
     the CBRMPC(Circuit Breaker Rx Manageability Packet) register.
   - 0x4124 was ICRXOC(Interrupt Cause Receiver Overrun). It was replaced by
     the HTCBDPC(Host Tx Circuit Breaker Dropped Packet) register.
 - From 0x4104 to 0x4124:
   - For 0x4124, 82575's datasheet says it's not changed(ICRXOC).
     I don't know if it's correct. We use new HTCBDPC register for 82575.
   - 82576 and newer changed the meaning.
   - I don't know for 80003, ICHs and PCHs. Don't count those registers.
     At least, those registers in PCH2 and PCH_CNP are all zero.

Revision 1.98.6.16 / (download) - annotate - [select for diffs], Mon Jan 23 14:01:26 2023 UTC (13 months, 1 week ago) by martin
Branch: netbsd-8
Changes since 1.98.6.15: +2 -2 lines
Diff to previous 1.98.6.15 (colored) to branchpoint 1.98 (colored)

Pull up the following revisions, requested by msaitoh in ticket #1795:

	sys/dev/pci/if_wm.c				1.764-1.767 via patch
	sys/dev/pci/if_wmreg.h				1.128

- Workaround for some hypervisor environments. The environments
  cannot stop e1000 interrupt immediately.
- Rename nq_txdesc' member "nqrx_ctx" to "nqtx_ctx". No functional
  change.
- Add comment. Modify comment.
- KNF.

Revision 1.115.2.7 / (download) - annotate - [select for diffs], Mon Jan 23 13:59:04 2023 UTC (13 months, 1 week ago) by martin
Branch: netbsd-9
Changes since 1.115.2.6: +2 -2 lines
Diff to previous 1.115.2.6 (colored) to branchpoint 1.115 (colored)

Pull up the following revisions, requested by msaitoh in ticket #1578:

	sys/dev/pci/if_wm.c				1.764-1.767 via patch
	sys/dev/pci/if_wmreg.h				1.128

- Workaround for some hypervisor environments. The environments
  cannot stop e1000 interrupt immediately.
- Rename nq_txdesc' member "nqrx_ctx" to "nqtx_ctx". No functional
  change.
- Add comment. Modify comment.
- KNF.

Revision 1.128 / (download) - annotate - [select for diffs], Wed Oct 19 06:37:25 2022 UTC (16 months, 2 weeks ago) by msaitoh
Branch: MAIN
CVS Tags: netbsd-10-base
Branch point for: netbsd-10
Changes since 1.127: +2 -2 lines
Diff to previous 1.127 (colored)

Fix typo. No functional change. OK'd by knakahara.

Revision 1.98.6.15 / (download) - annotate - [select for diffs], Wed Sep 7 10:09:20 2022 UTC (17 months, 3 weeks ago) by martin
Branch: netbsd-8
Changes since 1.98.6.14: +70 -12 lines
Diff to previous 1.98.6.14 (colored) to branchpoint 1.98 (colored)

Pull up the following revisions, requested by msaitoh in ticket #1759:

	sys/dev/pci/if_wm.c				1.741-1.749,1.753-1.757,
							1.762 via patch
	sys/dev/pci/if_wmreg.h				1.126-1.127

- Fix I219 workaround in wm_flush_desc_rings().
- Add more statistics counters.
- To avoid releasing mutex temporally, use new
  wm_set_mdio_slow_mode_hv_locked().
- No functional changes:
  - Turn a locking botch (shouldn't drop lock on error) into a KASSERT
    in wm_deferred_start_locked().
  - Remove unneeded header inclusion.
  - Use __BIT() a little.
  - Modify comment and debug messages.
  - Consistency use -1 instead of 1 for some error code.
  - KNF.

Revision 1.115.2.6 / (download) - annotate - [select for diffs], Wed Sep 7 10:05:42 2022 UTC (17 months, 3 weeks ago) by martin
Branch: netbsd-9
Changes since 1.115.2.5: +70 -12 lines
Diff to previous 1.115.2.5 (colored) to branchpoint 1.115 (colored)

Pull up the following revisions, requested by msaitoh in ticket #1515:

	sys/dev/pci/if_wm.c				1.741-1.749,
							1.753-1.757,
							1.762 via patch
	sys/dev/pci/if_wmreg.h				1.126-1.127

- Fix I219 workaround in wm_flush_desc_rings().
- Add more statistics counters.
- To avoid releasing mutex temporally, use new
  wm_set_mdio_slow_mode_hv_locked().
- No functional changes:
  - Turn a locking botch (shouldn't drop lock on error) into a KASSERT
    in wm_deferred_start_locked().
  - Remove unneeded header inclusion.
  - Use __BIT() a little.
  - Modify comment and debug messages.
  - Consistency use -1 instead of 1 for some error code.
  - KNF.

Revision 1.127 / (download) - annotate - [select for diffs], Fri Jul 22 05:23:50 2022 UTC (19 months, 1 week ago) by msaitoh
Branch: MAIN
CVS Tags: bouyer-sunxi-drm-base, bouyer-sunxi-drm
Changes since 1.126: +59 -1 lines
Diff to previous 1.126 (colored)

Add more statistics countes.

 - Add many statics counters that the chip has.
 - Attach event counters only if available.

Revision 1.126 / (download) - annotate - [select for diffs], Wed Jul 20 06:43:37 2022 UTC (19 months, 2 weeks ago) by msaitoh
Branch: MAIN
Changes since 1.125: +12 -12 lines
Diff to previous 1.125 (colored)

Modify comment. Use __BIT() a little. No functional change.

Revision 1.98.6.14 / (download) - annotate - [select for diffs], Mon Jul 11 14:15:58 2022 UTC (19 months, 3 weeks ago) by martin
Branch: netbsd-8
Changes since 1.98.6.13: +733 -728 lines
Diff to previous 1.98.6.13 (colored) to branchpoint 1.98 (colored)

Pull up the following revisions, requested by msaitoh in ticket #1751:

	sys/dev/pci/if_wmreg.h				1.122-1.125 via patch
	sys/dev/pci/if_wmvar.h				1.48
	sys/dev/pci/if_wm.c				1.719-1.720,1.722-1.725,
							1.727-1.740 via patch

- wm_tick: Add missing splx(s) when not WM_MPSAFE.
- Print DMA range info if the system is booting in the verbose mode.
- Micro optimization:
  - Call m_freem(m) only if m0 == NULL.
  - Call wm_xxeof() only when limit > 0.
  - Don't set the more flag when there is no packet to process.
- No functional changes:
  - Call txeof first, then rxeof for the consistency.
  - Remove duplicated break.
  - Remove stray semicolons from struct declaration.
  - Fix value return from void function.
  - Use macros.
  - Modify comment.
  - KNF.

Revision 1.115.2.5 / (download) - annotate - [select for diffs], Mon Jul 11 14:10:18 2022 UTC (19 months, 3 weeks ago) by martin
Branch: netbsd-9
CVS Tags: netbsd-9-3-RELEASE
Changes since 1.115.2.4: +736 -731 lines
Diff to previous 1.115.2.4 (colored) to branchpoint 1.115 (colored)

Pull up the following revisions, requested by msaitoh in ticket #1477:

	sys/dev/pci/if_wmreg.h				1.122-1.125
	sys/dev/pci/if_wmvar.h				1.48
	sys/dev/pci/if_wm.c				1.719-1.720,
							1.722-1.725,
							1.727-1.740 via patch

- wm_tick: Add missing splx(s) when not WM_MPSAFE.
- Print DMA range info if the system is booting in the verbose mode.
- Micro optimization:
  - Call m_freem(m) only if m0 == NULL.
  - Call wm_xxeof() only when limit > 0.
  - Don't set the more flag when there is no packet to process.
- No functional changes:
  - Call txeof first, then rxeof for the consistency.
  - Remove duplicated break.
  - Remove stray semicolons from struct declaration.
  - Fix value return from void function.
  - Use macros.
  - Modify comment.
  - KNF.

Revision 1.125 / (download) - annotate - [select for diffs], Wed Dec 22 07:28:34 2021 UTC (2 years, 2 months ago) by skrll
Branch: MAIN
Changes since 1.124: +4 -3 lines
Diff to previous 1.124 (colored)

Fixup NQTXC_CMD_{TCP,UDP} after previous

Revision 1.124 / (download) - annotate - [select for diffs], Wed Dec 22 07:19:34 2021 UTC (2 years, 2 months ago) by skrll
Branch: MAIN
Changes since 1.123: +540 -540 lines
Diff to previous 1.123 (colored)

In a close run thing use #define<tab> everywhere for consistency

Revision 1.123 / (download) - annotate - [select for diffs], Wed Dec 22 07:16:44 2021 UTC (2 years, 2 months ago) by skrll
Branch: MAIN
Changes since 1.122: +190 -186 lines
Diff to previous 1.122 (colored)

Use __BIT() some more. Same code before and after.

Revision 1.122 / (download) - annotate - [select for diffs], Mon Dec 20 12:50:35 2021 UTC (2 years, 2 months ago) by skrll
Branch: MAIN
Changes since 1.121: +21 -21 lines
Diff to previous 1.121 (colored)

Trailing whitespace

Revision 1.98.6.13 / (download) - annotate - [select for diffs], Sat Nov 20 15:11:32 2021 UTC (2 years, 3 months ago) by martin
Branch: netbsd-8
Changes since 1.98.6.12: +3 -3 lines
Diff to previous 1.98.6.12 (colored) to branchpoint 1.98 (colored)

Pull up the following, requested by msaitoh in ticket #1707:

	sys/dev/pci/if_wm.c				1.716-1.718 via patch
	sys/dev/pci/if_wmreg.h				1.121
	sys/dev/mii/ihphy.c				1.20

- Fix a bug that device timeout still happens when the link is down
  on ICH/PCH. Fixes PR kern/56478.
- Add some sysctl info for debugging.
- ihphy(4): Don't power down the PHY when the interface goes down.
- Use macro. Fix comment.

Revision 1.115.2.4 / (download) - annotate - [select for diffs], Sat Nov 20 14:59:04 2021 UTC (2 years, 3 months ago) by martin
Branch: netbsd-9
Changes since 1.115.2.3: +3 -3 lines
Diff to previous 1.115.2.3 (colored) to branchpoint 1.115 (colored)

Pull up the following, requested by msaitoh in ticket #1373:

	sys/dev/pci/if_wm.c				1.716-1.718 via patch
	sys/dev/pci/if_wmreg.h				1.121
	sys/dev/mii/ihphy.c				1.20

- Fix a bug that device timeout still happens when the link is down
  on ICH/PCH. Fixes PR kern/56478.
- Add some sysctl info for debugging.
- ihphy(4): Don't power down the PHY when the interface goes down.
- Use macro. Fix comment.

Revision 1.121 / (download) - annotate - [select for diffs], Fri Nov 5 06:15:42 2021 UTC (2 years, 3 months ago) by msaitoh
Branch: MAIN
Changes since 1.120: +3 -3 lines
Diff to previous 1.120 (colored)

 Fix comment. No functional change.

Revision 1.115.2.3 / (download) - annotate - [select for diffs], Wed Sep 23 08:46:54 2020 UTC (3 years, 5 months ago) by martin
Branch: netbsd-9
CVS Tags: netbsd-9-2-RELEASE, netbsd-9-1-RELEASE
Changes since 1.115.2.2: +4 -1 lines
Diff to previous 1.115.2.2 (colored) to branchpoint 1.115 (colored)

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

	sys/dev/pci/if_wmreg.h: revision 1.120
	sys/dev/pci/if_wmvar.h: revision 1.46
	sys/dev/pci/if_wm.c: revision 1.686
	sys/dev/pci/if_wm.c: revision 1.687
	sys/dev/mii/inbmphyreg.h: revision 1.20
	sys/dev/pci/if_wm.c: revision 1.688
	sys/dev/pci/if_wm.c: revision 1.689

s/ressource/resource/. Found by knakahara.

  Add new flag named WM_F_CRC_STRIP and use it. No functional change.

  This change also sets the RCTL_SECRC bit on I211 but it doesn't change
the behavior because I211 always strips CRC like I35[04] and I210.

  Add a workaround for jumbo frame on PCH2 and newer. Tested by chs@.

- Add wm_lv_jumbo_workaround_ich8lan() and use it. From FreeBSD.
   XXX For KUMCTRLSTA_OFFSET_HD_CTRL register modification, it's doubtful.
   FreeBSD and Linux do the same thing that they set the same value on both
   jumbo frame's enable case and the disable case. It seems the default value
   is 0x0b0c and it's not changed on the enable case, so it might be a bug
   on the enable case or the modification is not required.
- Rename I219_UNKNOWN1 to I82579_UNKNOWN1.
  Use 12K for packet buffer for jumbo frame on PCH2 and newer.

XXX Note that Linux Use 14K.

Revision 1.120 / (download) - annotate - [select for diffs], Wed Sep 16 15:04:02 2020 UTC (3 years, 5 months ago) by msaitoh
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-futex-base, thorpej-futex, thorpej-cfargs2-base, thorpej-cfargs2, thorpej-cfargs-base, thorpej-cfargs, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Changes since 1.119: +4 -1 lines
Diff to previous 1.119 (colored)

 Add a workaround for jumbo frame on PCH2 and newer. Tested by chs@.

- Add wm_lv_jumbo_workaround_ich8lan() and use it. From FreeBSD.

  XXX For KUMCTRLSTA_OFFSET_HD_CTRL register modification, it's doubtful.
  FreeBSD and Linux do the same thing that they set the same value on both
  jumbo frame's enable case and the disable case. It seems the default value
  is 0x0b0c and it's not changed on the enable case, so it might be a bug
  on the enable case or the modification is not required.

- Rename I219_UNKNOWN1 to I82579_UNKNOWN1.

Revision 1.98.6.12 / (download) - annotate - [select for diffs], Wed Aug 5 17:22:46 2020 UTC (3 years, 6 months ago) by martin
Branch: netbsd-8
Changes since 1.98.6.11: +5 -3 lines
Diff to previous 1.98.6.11 (colored) to branchpoint 1.98 (colored)

Pull up the following revisions, requested by msaitoh in ticket #1594:

	sys/dev/pci/if_wm.c			1.655-1.658, 1.660,
						1.662, 1.664-1.668,
						1.671-1.674, 1.678,
						1.680-1.685 via patch
	sys/dev/pci/if_wmreg.c			1.118-1.119 via patch
	sys/dev/pci/if_wmvar.c			1.45 via patch
	sys/dev/mii/igphy.c			1.35-1.36 via patch
	sys/dev/mii/igphyreg.h			1.12-1.13
	sys/dev/mii/makphy.c			1.66 via patch
	sys/dev/mii/makphyreg.h			1.11

- Add SFP support. Module insertion/removal is not supported yet.
  Currently, SFP detection is only done in the driver's attach phase.
- Detect the Media Auto Sense feature. Not supported yet.
- Fix SFF_SFP_ETH_FLAGS_100FX. It's not 0x10 but 0x20.
- Add extra delay in wm_serdes_power_up_link_82575().
- Add Intel I219 LM10-LM15 and V10-V14.
- wm(4) can use workqueue as deferred Rx/Tx handler).
  Set hw.wm*.txrx_workqueue=1 to use workqueue instead of softint.
  The default value of hw.wm*.txrx_workqueue is 0 which use softint
  as before.
- Unset RSS UDP flags like ixg(4) and other OSes. To handle IP
  fragmented UDP, first packet and second packet should be processed
  in the same Rx queue.
- It's useless to not to set PCI_PMCSR_PME_STS bit when writing because
  the bit is W1C. Instead, always write PCI_PMCSR_PME_STS bit to clear
  in case it's already set.
- Actually writing always the checksum offload context descriptor
  makes the HW do extra processing, avoid doing that if possible.
- Fix a bug that the WMREG_EEARBC_I210 register is incorrectly set if
  the system uses iNVM.
- "wmX: 0" on 82542 is difficult to understand, so don't print it.
- Explicitly cast from uint16_t to uint32_t before shifting 16bit left
  when printing Image Unique ID to avoid undefined behavior.
- Set if_baudrate for non-MII device.
- Rename some macros and function.
- KNF. Add comment.

Revision 1.115.2.2 / (download) - annotate - [select for diffs], Fri Jul 10 10:45:56 2020 UTC (3 years, 7 months ago) by martin
Branch: netbsd-9
Changes since 1.115.2.1: +5 -3 lines
Diff to previous 1.115.2.1 (colored) to branchpoint 1.115 (colored)

Pull up the following revisions, requested by msaitoh in ticket #994:

	sys/dev/pci/if_wm.c		1.655-1.658, 1.660, 1.662, 1.664-1.668,
					1.671-1.674, 1.678,1.680-1.681 via patch
	sys/dev/pci/if_wmreg.c		1.118-1.119
	sys/dev/pci/if_wmvar.c		1.45

- Add SFP support. Module insertion/removal is not supported yet.
  Currently, SFP detection is only done in the driver's attach phase.
- Detect the Media Auto Sense feature. Not supported yet.
- Fix SFF_SFP_ETH_FLAGS_100FX. It's not 0x10 but 0x20.
- Add extra delay in wm_serdes_power_up_link_82575().
- Add Intel I219 LM10-LM15 and V10-V14.
- wm(4) can use workqueue as deferred Rx/Tx handler.
  Set hw.wm*.txrx_workqueue=1 to use workqueue instead of softint.
  The default value of hw.wm*.txrx_workqueue is 0 which use softint
  as before.
- Unset RSS UDP flags like ixg(4) and other OSes. To handle IP
  fragmented UDP, first packet and second packet should be processed
  in the same Rx queue.
- It's useless to not to set PCI_PMCSR_PME_STS bit when writing because
  the bit is W1C. Instead, always write PCI_PMCSR_PME_STS bit to clear
  in case it's already set.
- Actually writing always the checksum offload context descriptor
  makes the HW do extra processing, avoid doing that if possible.
- Fix a bug that the WMREG_EEARBC_I210 register is incorrectly set if
  the system uses iNVM.
- "wmX: 0" on 82542 is difficult to understand, so don't print it.
- Rename some macros and function.
- KNF. Add comment.

Revision 1.107.2.3 / (download) - annotate - [select for diffs], Mon Apr 13 08:04:27 2020 UTC (3 years, 10 months ago) by martin
Branch: phil-wifi
Changes since 1.107.2.2: +1 -1 lines
Diff to previous 1.107.2.2 (colored) to branchpoint 1.107 (colored) next main 1.108 (colored)

Mostly merge changes from HEAD upto 20200411

Revision 1.107.2.2 / (download) - annotate - [select for diffs], Wed Apr 8 14:08:09 2020 UTC (3 years, 10 months ago) by martin
Branch: phil-wifi
Changes since 1.107.2.1: +37 -15 lines
Diff to previous 1.107.2.1 (colored) to branchpoint 1.107 (colored)

Merge changes from current as of 20200406

Revision 1.115.2.1 / (download) - annotate - [select for diffs], Sun Jan 26 11:13:28 2020 UTC (4 years, 1 month ago) by martin
Branch: netbsd-9
CVS Tags: netbsd-9-0-RELEASE, netbsd-9-0-RC2
Changes since 1.115: +33 -13 lines
Diff to previous 1.115 (colored)

Pull up the following (via patch), requested by msaitoh in ticket #650:

	sys/dev/pci/if_wm.c			1.650, 1.652-1.654
	sys/dev/pci/if_wmreg.h			1.116-1.117

- Set CTRL_ILOS(Invert loss of signal) bit correctly on 82580
  port 1, 2, 3 and newer chips. This change fixes a bug that some
  fiber, serdes or SFP devices don't detect the link status correctly.
- Simplify code by using "struct mii_data *mii" more. No functional
  change.
- MSI-X doesn't use sc->sc_icr variable, so move the code into
  non-MSI-X part. No functional change intended.
- Modify debug printfs a bit.
- Rename macro.
- Use __BIT()
- Fix comment. Add comment.
- KNF.

Revision 1.98.6.11 / (download) - annotate - [select for diffs], Fri Jan 24 18:43:35 2020 UTC (4 years, 1 month ago) by martin
Branch: netbsd-8
CVS Tags: netbsd-8-2-RELEASE
Changes since 1.98.6.10: +33 -13 lines
Diff to previous 1.98.6.10 (colored) to branchpoint 1.98 (colored)

Pull up the following, requested by msaitoh in ticket #1492:

	sys/dev/pci/if_wm.c			1.650, 1.652-1.654 via patch
	sys/dev/pci/if_wmreg.h			1.116-1.117

- Set CTRL_ILOS(Invert loss of signal) bit correctly on 82580
  port 1, 2, 3 and newer chips. This change fixes a bug that some
  fiber, serdes or SFP devices don't detect the link status correctly.
- Simplify code by using "struct mii_data *mii" more. No functional
  change.
- MSI-X doesn't use sc->sc_icr variable, so move the code into
  non-MSI-X part. No functional change intended.
- Modify debug printfs a bit.
- Rename macro.
- Use __BIT()
- Fix comment. Add comment.
- KNF.

Revision 1.119 / (download) - annotate - [select for diffs], Wed Jan 8 03:51:37 2020 UTC (4 years, 1 month ago) by msaitoh
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, is-mlppp-base, is-mlppp, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache
Changes since 1.118: +3 -2 lines
Diff to previous 1.118 (colored)

- Fix SFF_SFP_ETH_FLAGS_100FX. It's not 0x10 but 0x20.
- Define SFF_SFP_ETH_FLAGS_100LX with 0x10.

Revision 1.118 / (download) - annotate - [select for diffs], Wed Dec 11 10:28:19 2019 UTC (4 years, 2 months ago) by msaitoh
Branch: MAIN
Changes since 1.117: +3 -2 lines
Diff to previous 1.117 (colored)

Add SFP support part 1. The code for SerDes and SGMII setting is not include
in this commit. SFP module removal interrupt detects but not used yet:
- Detect SFP's 1000BASE-SX, 1000BASE-LX, 100BASE-FX and 1000BASE-T correctly.
- Detect the Media Auto Sense feature. Not supported yet.
- Add comment.

Revision 1.117 / (download) - annotate - [select for diffs], Wed Dec 11 09:48:16 2019 UTC (4 years, 2 months ago) by msaitoh
Branch: MAIN
Changes since 1.116: +5 -4 lines
Diff to previous 1.116 (colored)

- Set CTRL_ILOS(Invert loss of signal) bit correctly on 82580 port 1, 2, 3 and
  newer chips. This change fixes a bug that some fiber, serdes or SFP devices
  don't detect the link status correctly.
  XXX We should check for other NVM reads if they have the same problem. One of
  the solution to avoid this type of bug is to check the register layout
  in wm_nvm_read().
- Use __BIT()
- Add comment

Revision 1.116 / (download) - annotate - [select for diffs], Wed Dec 11 09:12:29 2019 UTC (4 years, 2 months ago) by msaitoh
Branch: MAIN
Changes since 1.115: +29 -10 lines
Diff to previous 1.115 (colored)

No functional change:
 - Add defintion of CONNSW register and PCS_NPTX (not used yet).
 - Add some bit definitions of PCS_LCTL.
 - Renae macro.
 - Fix comment. Add comment.
 - KNF.

Revision 1.98.6.10 / (download) - annotate - [select for diffs], Thu Aug 1 13:50:14 2019 UTC (4 years, 7 months ago) by martin
Branch: netbsd-8
Changes since 1.98.6.9: +2 -2 lines
Diff to previous 1.98.6.9 (colored) to branchpoint 1.98 (colored)

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

	sys/dev/pci/if_wm.c: revision 1.644
	sys/dev/pci/if_wm.c: revision 1.645
	sys/dev/pci/if_wmreg.h: revision 1.115

 Define RETA_ENTRY_MASK_Q(used in RSS redirection table) correctly.
Found by UBSan.

 Use aprint_debug_dev() instead of printf() in wm_ulp_disable().

- rnd_add_*() call must be serialized. Unserialized accesses broke the
  sc->rnd_source structure and caused off by one in kern_rndq.c's
  rnd_add_data_ts(). This problem was found by kUBSan. Make krndsource_t's
  data per queue-pair and call rnd_add_uint32() in wm_txrxintr_msix(). One of
  the reason why rnd_add_uint32() calls were moved from wm_{tx,rx}eof() is that
  rnd(9) manual page says "To allow the system to gather the timing information
  accurately, this call should be placed within the actual hardware interrupt
  service routine."

- Pass a better value to rnd_add_uint32() in wm_intr_legacy().
XXX pullup-8.

Revision 1.115 / (download) - annotate - [select for diffs], Tue Jul 23 09:37:08 2019 UTC (4 years, 7 months ago) by msaitoh
Branch: MAIN
CVS Tags: phil-wifi-20191119, netbsd-9-base, netbsd-9-0-RC1
Branch point for: netbsd-9
Changes since 1.114: +2 -2 lines
Diff to previous 1.114 (colored)

 Define RETA_ENTRY_MASK_Q(used in RSS redirection table) correctly.
Found by UBSan.

Revision 1.98.6.9 / (download) - annotate - [select for diffs], Wed Jul 17 16:12:17 2019 UTC (4 years, 7 months ago) by martin
Branch: netbsd-8
Changes since 1.98.6.8: +7 -7 lines
Diff to previous 1.98.6.8 (colored) to branchpoint 1.98 (colored)

Pull up the following revisions (via patch), requested by msaitoh in
ticket #1298:

	sys/dev/pci/if_wm.c				1.633, 1.637-1.641
	sys/dev/pci/if_wmreg.h				1.114

- Use unsigned to avoid undefined behavior.
- Print ICH/PCH's NVM version.
- Fix typo in comment. u_int*_t -> uint*_t. Whitespace fix.

Revision 1.107.2.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:07:17 2019 UTC (4 years, 8 months ago) by christos
Branch: phil-wifi
Changes since 1.107: +49 -17 lines
Diff to previous 1.107 (colored)

Sync with HEAD

Revision 1.114 / (download) - annotate - [select for diffs], Fri Jun 7 04:39:15 2019 UTC (4 years, 8 months ago) by msaitoh
Branch: MAIN
CVS Tags: phil-wifi-20190609
Changes since 1.113: +7 -7 lines
Diff to previous 1.113 (colored)

 Use unsigned. Found by UBSan. OK'd by kamil.

Revision 1.98.6.8 / (download) - annotate - [select for diffs], Thu Mar 7 17:11:53 2019 UTC (4 years, 11 months ago) by martin
Branch: netbsd-8
CVS Tags: netbsd-8-1-RELEASE, netbsd-8-1-RC1
Changes since 1.98.6.7: +2 -2 lines
Diff to previous 1.98.6.7 (colored) to branchpoint 1.98 (colored)

Pull up the following, requested by msaitoh in ticket #1206:

	sys/dev/pci/if_wmreg.h			1.113
	sys/dev/pci/if_wmvar.h			1.43-1.44
	sys/dev/pci/if_wm.c			1.626-1.627, 1.629-1.636 via patch

- Add support for I210 SGMII Flash-less device.
- Add I219 variations for Cannon Lake.
- Add missing rnd_detach_source().
- Use  do { ... } while (0) for DPRINTF(x, y).
- Swap enumeration of 82578 and 82577 PHY in if_wmvar.h. No functional
  change.
- Add KASSERT.
- Update TODO list. Add comment. Fix typo in comment.

Revision 1.113 / (download) - annotate - [select for diffs], Thu Feb 28 16:56:35 2019 UTC (5 years ago) by khorben
Branch: MAIN
CVS Tags: isaki-audio2-base, isaki-audio2
Changes since 1.112: +2 -2 lines
Diff to previous 1.112 (colored)

Typo (s/vaule/value/)

Revision 1.98.6.7 / (download) - annotate - [select for diffs], Thu Jan 31 06:43:48 2019 UTC (5 years, 1 month ago) by martin
Branch: netbsd-8
Changes since 1.98.6.6: +32 -9 lines
Diff to previous 1.98.6.6 (colored) to branchpoint 1.98 (colored)

Pull up the following, requested by msaitoh in ticket #1179:

	sys/dev/pci/if_wm.c			1.603-1.605,1.607-1.611,
						1.613,1.615,1.618-1.620
						via patch
	sys/dev/pci/if_wmreg.h			1.110-1.111
	sys/dev/pci/if_wmvar.h			1.40-1.42
	sys/dev/mii/inbmphyreg.h		1.13-1.15

- Add some code for suspend/resume:
  - Rename wm_smbustopci() to wm_init_phy_workarounds_pchlan(). It will
    also called when resume.
  - Call wm_phy_resetisblocked() after PHY reset in
    wm_init_phy_workarounds_pchlan() to wait for the PHY to quiesce to
    an accessible state.
  - Add new wm_resume_workarounds_pchlan() function and use it in
    wm_resume(). This workaround is only for PCH2 and newer.
  - Don't call wm_disable_aspm() neither in wm_attach() nor in
    wm_resume() but in wm_reset().
  - Do some initialization in wm_resume() when IFF_UP is NOT set.
  - Don't continue when it failed to acquire semaphore in
    wm_ulp_disable().
- Print CLSEM workaround bit correctly.
- Fix availability detection of WoL on some chips.
- Print the WUS (WakeUp Status) register bits when resume.
- Don't setup WoL on non-WoL capable port.
- Setup PHY wakeup feature on PCH and newer. Tested on Thinkpad X220.
- Remove an extra register read in
  wm_kmrn_lock_loss_workaround_ich8lan().
- Don't leave the MDICNFG register modified when the Power Management
  capability offset can't get.
- Reduce indent level of wm_linkintr_gmii(). No functional change.
- 80003's SERDES is not the same as 82575's but the same as legacy
  devices. Use the old methods on 80003.
- Use __nothing for null DPRINTF().
- Rename functions. Add comment.

Revision 1.112 / (download) - annotate - [select for diffs], Thu Jan 31 05:20:49 2019 UTC (5 years, 1 month ago) by msaitoh
Branch: MAIN
Changes since 1.111: +3 -2 lines
Diff to previous 1.111 (colored)

Add some workarounds which use EMI register or EEE related:
 - PCH only: Add workaround for link disconnects on a busy hub in half duplex.
 - PCH and PCH2 only: Set MSE higher to enable link to stay up when noise is
   high.
 - PCH2 only: Drop link after 5 times MSE threshold was reached.
 - PCH2 only: Set EEE LPI Update Timer to 200usec.
 - For PCH2 and newer: When connected at 10Mbps half-duplex, some parts are
   excessively aggressive resulting in many collisions. To avoid this, increase
   the IPG and reduce Rx latency in the PHY.
 - For I21[789] and if EEE is enabled: Disable LPLU if both link partners
   support 100BaseT EEE and 100Full is advertised on both ends of the link, and
   enable Auto Enable LPI since there will be no driver to enable LPI while in
   Sx.

Revision 1.105.2.3 / (download) - annotate - [select for diffs], Wed Dec 26 14:01:50 2018 UTC (5 years, 2 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.105.2.2: +32 -9 lines
Diff to previous 1.105.2.2 (colored) to branchpoint 1.105 (colored) next main 1.106 (colored)

Sync with HEAD, resolve a few conflicts

Revision 1.111 / (download) - annotate - [select for diffs], Thu Dec 20 09:32:13 2018 UTC (5 years, 2 months ago) by msaitoh
Branch: MAIN
CVS Tags: pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226
Changes since 1.110: +2 -2 lines
Diff to previous 1.110 (colored)

- Don't setup WoL on non-WoL capable port.
- Setup PHY wakeup feature on PCH and newer. Tested on Thinkpad X220.

Revision 1.110 / (download) - annotate - [select for diffs], Fri Dec 14 09:47:40 2018 UTC (5 years, 2 months ago) by msaitoh
Branch: MAIN
Changes since 1.109: +31 -8 lines
Diff to previous 1.109 (colored)

- Fix availability detection of WoL on some chips. This change has no effect
other than dmesg because WM_F_WOL is currently not used to change the behavior:
  - For ICH/PCH, check the capability not from NVM but from the WUC register.
    Check the value before clearing the register.
  - 82580 and newer have per-port NVM block, so read the area correctly.
    Note that 82580, I350 and I354 may have PCI function 2 and 3.
  - Some devices can't detect WoL capability neither from NVM nor from WUC.
    Use PCI device ID and the function number.
- Print the WUS (WakeUp Status) register bits when resume.

Revision 1.98.6.6 / (download) - annotate - [select for diffs], Tue Dec 4 11:21:32 2018 UTC (5 years, 2 months ago) by martin
Branch: netbsd-8
Changes since 1.98.6.5: +7 -1 lines
Diff to previous 1.98.6.5 (colored) to branchpoint 1.98 (colored)

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

	sys/dev/pci/if_wmreg.h: revision 1.109
	sys/dev/pci/if_wm.c: revision 1.597
	sys/dev/pci/if_wm.c: revision 1.598
	sys/dev/mii/inbmphyreg.h: revision 1.12
	sys/dev/pci/if_wm.c: revision 1.600
	sys/dev/pci/if_wm.c: revision 1.601
	sys/dev/pci/if_wm.c: revision 1.602

- Add new wm_gmii_{hv,i82544}_{read,write}reg_locked() and use them in
   wm_gmii_{hv,i82544}_{read,write}reg(). *_locked() functions are not
   mii(4) API functions, so it's not required to keep the mii API. Change
   the PHY register type from int to uint16_t. It also change the usage of
   return value. It returns zero on success and non-zero on error.
- Check the return value of *_locked() function and treat it.
- Use *writereg_locked() function to reduce race condition in
   wm_init_lcd_from_nvm().
- Add comment.
- Control TX/RX descriptor snooping control bits on ICH8 and newer.
   Only on ICH8, No-snoop bits are opposite polarity. On my Thinkpad X61,
   the default value of this bits are all zero, so this commit changes
   the snoop function enable on the machine. I tested with some other
   PCH machines and those bits are all zero (enable snoop by default),
   so this commit won't affect to some machines.
- Disable relax ordering on 82546GB(Device ID 0x1099 and 0x10b5) or >= ICH8.
   Same as other OSes.
- Add wm_oem_bits_config_ich8lan() to control LPLU and GbE setting base on
   the NVM's info.
- Modify wm_enable_wakeup() to reduce difference against FreeBSD and Linux.
   This modification affects to ICH8 and newer devices. I217 Rapid Start
   Technology support have not written yet (it's TODO).
- Add wm_k1_workaround_lv() from FreeBSD. It's PCH2 specific:
     Workaround to set the K1 beacon duration for 82579 parts in 10Mbps.
     Disable K1 for 1000 and 100 speeds.
- Make wm_link_stall_workaround_hv() and move an 82578 specific code into it.
   Don't apply the workaround if BMCR_LOOP bit is set. Same as FreeBSD.
- Add comment. Modify comment.
  Fix comment. No functional change.

Revision 1.105.2.2 / (download) - annotate - [select for diffs], Mon Nov 26 01:52:32 2018 UTC (5 years, 3 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.105.2.1: +9 -1 lines
Diff to previous 1.105.2.1 (colored) to branchpoint 1.105 (colored)

Sync with HEAD, resolve a couple of conflicts

Revision 1.109 / (download) - annotate - [select for diffs], Mon Nov 19 06:38:58 2018 UTC (5 years, 3 months ago) by msaitoh
Branch: MAIN
CVS Tags: pgoyette-compat-1126
Changes since 1.108: +7 -1 lines
Diff to previous 1.108 (colored)

- Control TX/RX descriptor snooping control bits on ICH8 and newer.
  Only on ICH8, No-snoop bits are opposite polarity. On my Thinkpas X61,
  the default value of this bits are all zero, so this commit changes
  the snoop function enable on the machine. I tested with some other
  PCH machines and those bits are all zero (enable snoop by default),
  so this commit won't affect to some machines.
- Disable relax ordering on 82546GB(Device ID 0x1099 and 0x10b5) or >= ICH8.
  Same as other OSes.

Revision 1.60.2.10 / (download) - annotate - [select for diffs], Fri Nov 9 11:28:39 2018 UTC (5 years, 3 months ago) by sborrill
Branch: netbsd-7
Changes since 1.60.2.9: +3 -1 lines
Diff to previous 1.60.2.9 (colored) to branchpoint 1.60 (colored) next main 1.61 (colored)

Pull up the following revisions(s) (requested by msaitoh in ticket #1648):
	sys/dev/mii/inbmphyreg.h		1.11
	sys/dev/pci/if_wm.c			1.586-1.588, 1.590-1.596 via patch
	sys/dev/pci/if_wmreg.h			1.108

- rename tu event counter to txunderrun.
- Try m_defrag() to reduce the number of DMA segment if bus_dmamap_load_mbuf()
   returned EFBIG. When m_defrag() is called, txqNNdefrag event counter is
   incremented. If the 2nd try of bus_dmamap_load_mbuf() failed, txqNNtoomanyseg
   event counter is incremented.
- Reduce the max number of DMA segments from 256 to 64 (it's the same value
   as other BSD's (EM_MAX_SCATTER) and more than before if_wm.c rev. 1.75's
   value (40)) because we do m_defrag() now.
- 82574 and newer document says the status field has neither EC
   (Excessive Collision) bit nor LC (Late Collision) bit (reserved), so
   don't check the bit.
- Add workaround for DMA hang problem which result in TX device timeout
   on PCH_LPT with I218. Same as FreeBSD and Linux. This workaround is
   only for device ID 0x155a, 0x15a2, 0x1559 and 0x15a3.
- Fix a PCH2 specific bug that wrong PHY register value can be read
   when boot. Same as FreeBSD and Linux.
- After writing MDIC register, don't read quickly the same register but
   do delay(50). Same as other OSes.
- Add missing wm_gate_hw_phy_config_ich8lan(false) in
   wm_phy_post_reset() on PCH2. wm_gate_hw_phy_config_ich8lan(true) is
   called in wm_reset(), so wm_gate_hw_phy_config_ich8lan(false) should
   be called after reset in wm_phy_post_reset().
- On PCH2, set the phy config counter to 50msec after (PHY) reset.
- KNF & Use macro.

Revision 1.98.6.5 / (download) - annotate - [select for diffs], Thu Nov 8 12:09:18 2018 UTC (5 years, 3 months ago) by martin
Branch: netbsd-8
Changes since 1.98.6.4: +3 -1 lines
Diff to previous 1.98.6.4 (colored) to branchpoint 1.98 (colored)

Pull up the following, requested by msaitoh in tickt #1085:

	sys/dev/mii/inbmphyreg.h		1.11
	sys/dev/pci/if_wmreg.h			1.108
	sys/dev/pci/if_wm.c			1.590-1.596 via patch

- 82574 and newer document says the status field has neither EC
  (Excessive Collision) bit nor LC (Late Collision) bit (reserved), so
  don't check the bit.
- Add workaround for DMA hang problem which result in TX device timeout
  on PCH_LPT with I218. Same as FreeBSD and Linux. This workaround is
  only for device ID 0x155a, 0x15a2, 0x1559 and 0x15a3.
- Fix a PCH2 specific bug that wrong PHY register value can be read
  when boot. Same as FreeBSD and Linux.
- After writing MDIC register, don't read quickly the same register but
  do delay(50). Same as other OSes.
- Add missing wm_gate_hw_phy_config_ich8lan(false) in
  wm_phy_post_reset() on PCH2. wm_gate_hw_phy_config_ich8lan(true) is
  called in wm_reset(), so wm_gate_hw_phy_config_ich8lan(false) should
  be called after reset in wm_phy_post_reset().
- On PCH2, set the phy config counter to 50msec after (PHY) reset.
- KNF & Use macro.

Revision 1.108 / (download) - annotate - [select for diffs], Fri Nov 2 03:22:19 2018 UTC (5 years, 4 months ago) by msaitoh
Branch: MAIN
Changes since 1.107: +3 -1 lines
Diff to previous 1.107 (colored)

 Add workaround for DMA hang problem which result in TX device timeout on
PCH_LPT with I218. Same as FreeBSD and Linux. This woraround is only for
device ID 0x155a, 0x15a2, 0x1559 and 0x15a3. I observed this problem on my
Shuttle DS57U's I218 port six times in two months.

Revision 1.60.2.9 / (download) - annotate - [select for diffs], Sat Aug 11 13:34:21 2018 UTC (5 years, 6 months ago) by martin
Branch: netbsd-7
CVS Tags: netbsd-7-2-RELEASE
Changes since 1.60.2.8: +67 -37 lines
Diff to previous 1.60.2.8 (colored) to branchpoint 1.60 (colored)

Pull up the following, requested by msaitoh in ticket #1628:

share/man/man4/wm.4				1.40 via patch
sys/dev/mii/ihphyreg.h				1.2
sys/dev/mii/inbmphyreg.h			1.10
sys/dev/pci/if_wm.c				1.504, 1.506, 1.510-1.535, 1.539-1.540, 1.546, 1.548, 1.551-1.552, 1.558, 1.565-1.573, 1.575, 1.579, 1.582, 1.584 via patch
sys/dev/pci/if_wmreg.h				1.99-1.103, 1.106-1.107 via patch
sys/dev/pci/if_wmvar.h				1.34-1.39 via patch
sys/dev/pci/pcidevs				1.1327 via patch
sys/dev/pci/pcidevs.h				regen
sys/dev/pci/pcidevs_data.h			regen
sys/dev/pci/pcireg.h				patch

	Sync wm(4) up to 2018/08/08 except MSI/MSI-X and NET_MPSAFE:
	- remove extra "+"
	- Fix a bug that non-GMII devices don't send a routing message when
	  the link status is changed.
	- Set WMREG_KABGTXD not in wm_init_locked() but in wm_reset(). Same as
	  other OSes.
	- If a interrupt is a spurious interrupt, don't print debug message.
	- Don't print the Image Unique ID if an NVM is iNVM (i210 and I211).
	- Print sc_flags with snprintb().
	- Fix a bug that a RAL was written at incorrect address when the index
	  number is more than 16 on 82544 and newer.
	- The layout of RAL on PCH* are different from others. Fix it.
	- Flush every MTA write. Same as Linux.
	- Move the location of calling wm_set_filter. Same as some other OSes.
	- Add CSR_WRITE_FLUSH() after writing WMREG_CTRL in
	  wm_gmii_mediachange().
	- Add missing "else" in wm_nvm_release().
	- Make new wm_phy_post_reset() and use this function at all location
	  after resetting phy.
	- Move the location of calling wm_get_hw_control. Same as Linux.
	- Add I219 specific wokaround for legacy interrupt. From OpenBSD.
	- Move the location of calling wm_lplu_d0_disable().
	- Fix latency calculation in wm_platform_pm_pch_lpt().
	- Set OBFF water mark and enable OBFF on PCH_LPT and newer.
	- Disable D0 LPLU on 8257[12356], 82580, I350 and I21[01], too.	Before
	  this commit, above devices and non-PCIe devices accessed wrong
	  register.
	- Use device_printf() instead of aprint_error_dev() for PHY read/write
	  functions because those are used not only in device attach.
	- Fix a bug that wm_gmii_i82544_{read,write}reg() didn't take care of
	  page select. PHY access from igphy() automatically did it, but
	  accessing from wm(4) for wrokaround didn't work correctly. This
	  change affects 8254[17], 8257[12] ICH8, ICH9 and ICH10.
	- Call wm_kmrn_lock_loss_workaround_ich8lan() before any PHY access in
	  wm_linkintr_gmii().
	- Register access in wm_kmrn_lock_loss_workaround_ich8lan() now works
	  correctly. Enable this function.
	- Configure the LCD with the extended configuration region in NVM if
	  it's required.
	- If TX is not required to flush, RX is also not required to flush
	  in wm_flush_desc_rings(). Same as other OSes.
	- Remove wrong semaphore access in wm_nvm_{read,write}_{ich8,spt} to
	  prevent hangup. A semaphore is get/put in wm_nvm_{read,write}.
	- Move some initialization stuff in wm_attach() before wm_reset(). Some
	  flags and callback function are required to set correctly before
	  wm_reset() because wm_reset() and some helper functions refer them.
	- Add wm_write_smbus_addr() to set SMBus address by software.
	- Modify wm_gmii_hv_{read,write}reg_locked() to make them access
	  HV_SMB_ADDR correctly.
	- Use new nvm.{acquire,release}() for semaphore.
	- Our MII readreg/writereg API has not way to detect an error.
	  kmrn_{read,write}reg() are not used for MII API, so it's not required
	  for these functions to use the same API. So,
	  - Change return value as error code.
	  - Change register value from int to uint16_t.
	  - read: pass pointer for uint16_t as an argument.
	  - Check return value on caller side.
	- Check whether it's required to use MDIC workaround for 80003 or not
	  in wm_reset(). If the workaround isn't required, don't use the
	  workaround code in wm_gmii_i80003_{read,write}reg.
	- Add WM_F_WA_I210_CLSEM flag for a workaround. FreeBSD/Linux drivers
	  say "In rare circumstances, the SW semaphore may already be held
	  unintentionally on I21[01]". PXE boot is one of the case.
	- Qemu's e1000e emulation (82574L)'s SPI has only 64 words. I've never
	  seen on real 82574 hardware with such small SPI ROM. Check
	  sc->sc_nvm_wordsize before accessing higher address words to prevent
	  timeout.
	- Check some wm_nvm_read()'s return vale.
	- Print NVM offset and word count when EERD polling failed.
	- On I219, drop TARC0 bit 28 for DMA hang workaround (from Linux).
	- 82583 supports jumbo frame. Fixes PR#52773 reported by
	  Shinichi Doyashiki.
	- Fix typo in comment. Reported by Shinichi Doyashiki in PR#52885.
	- Add ASPM workaround for 8257[1234] and 82583 to prevent device
	  timeout or hangup. Fixes PR#52818 reported by Shinichi Doyashiki.
	- CID-1427779: Fix uninitialized variables.
	- Fix a bug that wm_pll_workaround_i210() is not called when
	  a) Chip is I211 or b) Chip is I210 and it uses iNVM (not FLASH).
	- Do wm_reset_mdicnfg_82580() on 82580 only.
	- Fix FLASH access on PCH_SPT and newer. Their FLASH access should be
	  done by 32bit. Especially for ICH_FLASH_HSFCTL register, it's located
	  at 0x0006, so it must be accessed via ICH_FLASH_HSFSTS(0x0004) and
	  use shift or mask.
	- Make wm_nvm_valid_bank_detect_ich8lan() the same as other OSes.
	- If the extended configuration size in the EXTCNFSIZE register is 0,
	  don't continue in wm_init_lcd_from_nvm().
	- Add PCH_CNP support (I219 with Intel 300 series chipset).
	- Enable I219 support.
	- I354 uses an external PHY, so don't use wm_set_eee_i350().
	- Fix a bug that the link can't detect in link interrupt function for
	  non-SERDES fiber.
	- Fix a bug that 82542 misunderstand fiber's signal detection.
	- Add debug printf()s.
	- Update comment.
	- Rename functions and variables.
	- Add diagnostic code.
	- Sort registers.
	- Lowercase hexadecimal values.
	- KNF.

Revision 1.98.6.4 / (download) - annotate - [select for diffs], Mon Apr 16 14:25:49 2018 UTC (5 years, 10 months ago) by martin
Branch: netbsd-8
CVS Tags: netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1
Changes since 1.98.6.3: +35 -35 lines
Diff to previous 1.98.6.3 (colored) to branchpoint 1.98 (colored)

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

	sys/dev/pci/if_wm.c: revision 1.567
	sys/dev/pci/if_wm.c: revision 1.568
	sys/dev/pci/if_wm.c: revision 1.569
	sys/dev/pci/if_wmvar.h: revision 1.38
	sys/dev/pci/if_wm.c: revision 1.570
	sys/dev/pci/if_wm.c: revision 1.571
	sys/dev/pci/if_wm.c: revision 1.572
	share/man/man4/wm.4: revision 1.40
	sys/dev/pci/if_wmreg.h: revision 1.106
	sys/dev/pci/if_wmreg.h: revision 1.107

SW PHY Config Enable bit for ICH8 B0 stepping is not bit 1 but bit 0.

 No binary change:
- Sort registers.
- Lowercase hexadecimal value.

 On PCH_SPT (and newer), FLASH access should be done by 32bit.
Especially for ICH_FLASH_HSFCTL register, it's located at 0x0006, so
it should be accessed via ICH_FLASH_HSFSTS(0x0004) and use shift or mask.

 Our PCH_SPT part of wm_nvm_valid_bank_detect_ich8lan() was based on
FreeBSD r287467. After that, they reverted it and committed the different
code in r287762. r287762's bank detect code didn't work for us because our wm
dirver had a problem in flash access. The problem was fixed in if_wm.c rev.
1.567, so we can use the new way now.

 If the extended configration size in the EXTCNFSIZE register is 0, don't
continue.
 Add PCH_CNP support (I219 with Intel 300 series chipset).
It's required more test, so it's disabled by default.

 Enable I219.

 I354 uses an external PHY, so don't use wm_set_eee_i350().

Revision 1.105.2.1 / (download) - annotate - [select for diffs], Mon Apr 16 01:59:58 2018 UTC (5 years, 10 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.105: +35 -35 lines
Diff to previous 1.105 (colored)

Sync with HEAD, resolve some conflicts

Revision 1.107 / (download) - annotate - [select for diffs], Thu Apr 12 02:15:07 2018 UTC (5 years, 10 months ago) by msaitoh
Branch: MAIN
CVS Tags: phil-wifi-base, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, jdolecek-ncqfixes-base, jdolecek-ncqfixes
Branch point for: phil-wifi
Changes since 1.106: +33 -33 lines
Diff to previous 1.106 (colored)

No binary change:
- Sort registers.
- Lowercase hexadecimal value.

Revision 1.106 / (download) - annotate - [select for diffs], Tue Apr 10 08:18:38 2018 UTC (5 years, 10 months ago) by msaitoh
Branch: MAIN
Changes since 1.105: +3 -3 lines
Diff to previous 1.105 (colored)

 SW PHY Config Enable bit for ICH8 B0 stepping is not bit 1 but bit 0.

Revision 1.48.2.4 / (download) - annotate - [select for diffs], Sun Dec 3 11:37:08 2017 UTC (6 years, 3 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.48.2.3: +678 -124 lines
Diff to previous 1.48.2.3 (colored) to branchpoint 1.48 (colored) next main 1.49 (colored)

update from HEAD

Revision 1.98.6.3 / (download) - annotate - [select for diffs], Fri Nov 24 08:39:09 2017 UTC (6 years, 3 months ago) by martin
Branch: netbsd-8
Changes since 1.98.6.2: +1 -13 lines
Diff to previous 1.98.6.2 (colored) to branchpoint 1.98 (colored)

Pull up following revision(s) (requested by msaitoh in ticket #389):
	sys/net/if_ether.h: revision 1.69
	sys/net/if_vlan.c: revision 1.108
	sys/dev/pci/if_bge.c: revision 1.313
	sys/net/if_vlanvar.h: revision 1.11
	sys/net/if_vlanvar.h: revision 1.12
	sys/net/if_ether.h: revision 1.70
	sys/net/if_vlan.c: revision 1.110
	sys/dev/pci/if_wm.c: revision 1.544
	sys/dev/pci/if_wmreg.h: revision 1.105
  Fix a bug that a vlan packet which has priority or CFI bit in the tag causes
panic.
  Revert part of if_bge.c 1.312. It's not required to mask other than VLAN ID
bits in VLAN tag.
  Revert if_wmreg.h 1.104 and if_wm.c 1.542. It's not required to mask other
than VLAN ID bits in VLAN tag.
No functional change:
  - u_int16_t -> uint16_t
  - u_short -> uint16_t
  - tag_hash_func -> vlan_tag_hash
  - 0 -> NULL because vlr_parent is a pointer.

Revision 1.105 / (download) - annotate - [select for diffs], Wed Nov 22 02:36:52 2017 UTC (6 years, 3 months ago) by msaitoh
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202, pgoyette-compat-base, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315
Branch point for: pgoyette-compat
Changes since 1.104: +1 -13 lines
Diff to previous 1.104 (colored)

 Revert if_wmreg.h 1.104 and if_wm.c 1.542. It's not required to mask other
than VLAN ID bits in VLAN tag.

Revision 1.98.6.2 / (download) - annotate - [select for diffs], Mon Nov 6 09:54:01 2017 UTC (6 years, 3 months ago) by snj
Branch: netbsd-8
CVS Tags: matt-nb8-mediatek-base, matt-nb8-mediatek
Changes since 1.98.6.1: +13 -1 lines
Diff to previous 1.98.6.1 (colored) to branchpoint 1.98 (colored)

Pull up following revision(s) (requested by knakahara in ticket #348):
	sys/dev/pci/if_wm.c: revision 1.542
	sys/dev/pci/if_wmreg.h: revision 1.104
fix wm(4) vlan panic. Reported and tested by Tom Ivar Helbekkmo, thanks.
wm(4) used PRI bits and CFI bit as vlantag by mistake. It is found out
by if_ether.h:r1.67.

Revision 1.104 / (download) - annotate - [select for diffs], Mon Oct 23 23:29:38 2017 UTC (6 years, 4 months ago) by knakahara
Branch: MAIN
Changes since 1.103: +13 -1 lines
Diff to previous 1.103 (colored)

fix wm(4) vlan panic. Reported and tested by Tom Ivar Helbekkmo, thanks.

wm(4) used PRI bits and CFI bit as vlantag by mistake. It is found out
by if_ether.h:r1.67.

XXX need pullup-8

Revision 1.65.2.8 / (download) - annotate - [select for diffs], Mon Aug 28 17:52:06 2017 UTC (6 years, 6 months ago) by skrll
Branch: nick-nhusb
Changes since 1.65.2.7: +50 -15 lines
Diff to previous 1.65.2.7 (colored) to branchpoint 1.65 (colored) next main 1.66 (colored)

Sync with HEAD

Revision 1.98.6.1 / (download) - annotate - [select for diffs], Tue Aug 1 23:33:18 2017 UTC (6 years, 7 months ago) by snj
Branch: netbsd-8
Changes since 1.98: +44 -14 lines
Diff to previous 1.98 (colored)

Pull up following revision(s) (requested by msaitoh in ticket #173):
	sys/dev/pci/if_wmreg.h: 1.99-1.103
	sys/dev/pci/if_wmvar.h: 1.34-1.37
	sys/dev/pci/if_wm.c: 1.510-1.537
	sys/dev/mii/ihphyreg.h: 1.2
	sys/dev/mii/inbmphyreg.h: 1.10
	sys/dev/mii/igphy.c: 1.27
Sync wm(4) up to if_wm.c rev. 1.537:
- Set WMREG_KABGTXD not in wm_init_locked() but in wm_reset().
- If a legacy interrupt is a spurious interrupt, don't print debug
  message.
- Don't print the Image Unique ID if an NVM is iNVM (i210 and I211).
- Fix a bug that a RAL was written at incorrect address when the index
  number is more than 16 on 82544 and newer.
- The layout of RAL on PCH* are different from others. Fix it.
- Flush every MTA write. Same as Linux.
- Move the location of calling wm_set_filter. Same as some other OSes.
- Flush writing WMREG_CTRL in wm_gmii_mediachange().
- Make new wm_phy_post_reset() and use this function at all location
  after resetting phy.
- Add I219 specific workaround for legacy interrupt. From OpenBSD.
- Move the location of calling wm_lplu_d0_disable().
- Disable D0 LPLU on 8257[12356], 82580, I350 and I21[01], too. Before
  this commit, above devices and non-PCIe devices accessed wrong
  register.
- Fix latency calculation in wm_platform_pm_pch_lpt().
- Set OBFF water mark and enable OBFF on PCH_LPT and newer.
- Fix a bug that wm_gmii_i82544_{read,write}reg() didn't take care of
  page select. PHY access from igphy() automatically did it, but
  accessing from wm(4) for workaround didn't work correctly. This
  change affects 8254[17], 8257[12] ICH8, ICH9 and ICH10.
- Call wm_kmrn_lock_loss_workaround_ich8lan() before any PHY access in
  wm_linkintr_gmii().
- Register access in wm_kmrn_lock_loss_workaround_ich8lan() now works
  correctly. Enable this function.
- IF TX is not required to flush, RX is also not required to flush in
  wm_flush_desc_rings(). Same as other OSes.
- Remove wrong semaphore access in wm_nvm_{read,write}_{ich8,spt} to
  prevent hangup. A semaphore is get/put in wm_nvm_{read,write}.
- Move some initialization stuff in wm_attach() before wm_reset().
  Some flags and callback function is required to set correctly before
  wm_reset() because wm_reset() and some helper functions refer them.
- Add wm_write_smbus_addr() to set SMBus address by software.
- Modify wm_gmii_hv_{read,write}reg_locked() to make them access
  HV_SMB_ADDR correctly.
- Configure the LCD with the extended configuration region in NVM if
  it's required. Tested with Thinkpad X220.
- 8257[12]: Don't directly access SPI but use EERD register.
- 82575-I354: If the size of SPI ROM >= 32K words, use direct SPI
  access instead of EERD register access.
- Add wm_nvm_eec_clock_raise() and wm_nvm_eec_clock_lower() and use
  them for Microwire/SPI bus control. Same as Linux and FreeBSD.
- Reduce timeout value for 80003 in wm_get_swfw_semaphore(). Same as
  Linux and FreeBSD.
- Change API of kmrn_{read,write}reg() and check the return value.
- Check whether it's required to use MDIC workaround for 80003 or not
  in wm_reset(). If the workaround isn't required, don't use the
  workaround code in wm_gmii_i80003_{read,write}reg.
- Add WM_F_WA_I210_CLSEM flag for a workaround. FreeBSD/Linux drivers
  say "In rare circumstances, the SW semaphore may already be held
  unintentionally." on I21[01]. PXE boot is one of the case.
- Qemu's e1000e emulation (82574L)'s SPI has only 64 words. I've never
  seen on real 82574 hardware with such small SPI ROM. Check
  NVM word size before accessing higher address words to prevent
  timeout.
- Check some wm_nvm_read()'s return vale.
- Use device_printf() instead of aprint_error_dev() for PHY read/write
  functions because those are used not only in device attach.
- Print internal driver flags when attaching.
- Add debug printf()s.
- Rename variables.
- Add comment, update comment and remove wrong comment.

Revision 1.103 / (download) - annotate - [select for diffs], Wed Jul 26 06:48:49 2017 UTC (6 years, 7 months ago) by msaitoh
Branch: MAIN
CVS Tags: nick-nhusb-base-20170825
Changes since 1.102: +11 -7 lines
Diff to previous 1.102 (colored)

-  Our MII readreg/writereg API has not way to detect an error.
  kmrn_{read,write}reg() are not used for MII API, so it's not required for
  these functions to use the same API. So,
  - Change return value as error code.
  - Change register vaule from int to uint16_t.
  - read: pass pointer for uint16_t as an argument.
  - Check return value on caller side.
- Check whether it's required to use MDIC workaround for 80003 or not in
  wm_reset(). If the workaround isn't required, don't use the workaround code
  in wm_gmii_i80003_{read,write}reg.

Revision 1.102 / (download) - annotate - [select for diffs], Thu Jul 13 08:22:21 2017 UTC (6 years, 7 months ago) by msaitoh
Branch: MAIN
CVS Tags: perseant-stdc-iso10646-base, perseant-stdc-iso10646
Changes since 1.101: +11 -5 lines
Diff to previous 1.101 (colored)

- Call wm_kmrn_lock_loss_workaround_ich8lan() before any PHY access in
  wm_linkintr_gmii().
- Register access in wm_kmrn_lock_loss_workaround_ich8lan() now works
  correctly. Enable this function.
- Configure the LCD with the extended configuration region in NVM if it's
  required.
- Add debug printf.

Revision 1.101 / (download) - annotate - [select for diffs], Wed Jul 12 08:15:31 2017 UTC (6 years, 7 months ago) by msaitoh
Branch: MAIN
Changes since 1.100: +5 -1 lines
Diff to previous 1.100 (colored)

 Disable D0 LPLU on 8257[12356], 82580, I350 and I21[01], too. Before this commit,
above devices and non-PCIe devices accessed wrong register.

Revision 1.100 / (download) - annotate - [select for diffs], Mon Jun 26 04:22:46 2017 UTC (6 years, 8 months ago) by msaitoh
Branch: MAIN
Changes since 1.99: +10 -1 lines
Diff to previous 1.99 (colored)

- Make new wm_phy_post_reset() and use this function at all location after
  reseting phy.
- Move the location of calling wm_get_hw_control. Same as Linux.
- Add I219 specific wokaround for legacy interrupt. From OpenBSD.
- Move the location of calling wm_lplu_d0_disable().
- Fix latency calculation in wm_platform_pm_pch_lpt().
- Set OBFF water mark and enable OBFF on PCH_LPT and newer.

Revision 1.99 / (download) - annotate - [select for diffs], Mon Jun 26 04:09:02 2017 UTC (6 years, 8 months ago) by msaitoh
Branch: MAIN
Changes since 1.98: +11 -4 lines
Diff to previous 1.98 (colored)

- Fix wm_set_ral():
 - Fix a bug that a RAL was written at incorrect address when the index number
   is more than 16 on 82544 and newer.
 - The layout of RAL on PCH* are different from others.
- Remove wrong comment.

Revision 1.94.2.1 / (download) - annotate - [select for diffs], Fri Apr 21 16:53:48 2017 UTC (6 years, 10 months ago) by bouyer
Branch: bouyer-socketcan
Changes since 1.94: +219 -3 lines
Diff to previous 1.94 (colored) next main 1.95 (colored)

Sync with HEAD

Revision 1.89.2.2 / (download) - annotate - [select for diffs], Mon Mar 20 06:57:29 2017 UTC (6 years, 11 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.89.2.1: +219 -3 lines
Diff to previous 1.89.2.1 (colored) to branchpoint 1.89 (colored) next main 1.90 (colored)

Sync with HEAD

Revision 1.60.2.5.2.2 / (download) - annotate - [select for diffs], Mon Mar 13 07:41:27 2017 UTC (6 years, 11 months ago) by skrll
Branch: netbsd-7-nhusb
Changes since 1.60.2.5.2.1: +2 -2 lines
Diff to previous 1.60.2.5.2.1 (colored) to branchpoint 1.60.2.5 (colored) next main 1.60.2.6 (colored)

Sync with netbsd-7-1-RELEASE

Revision 1.60.2.8 / (download) - annotate - [select for diffs], Thu Mar 9 06:28:36 2017 UTC (6 years, 11 months ago) by snj
Branch: netbsd-7
CVS Tags: netbsd-7-1-RELEASE, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1
Changes since 1.60.2.7: +2 -2 lines
Diff to previous 1.60.2.7 (colored) to branchpoint 1.60 (colored)

Pull up following revision(s) (requested by msaitoh in ticket #1372):
	sys/dev/pci/if_wm.c: revisions 1.462, 1.464-1.465 1.474 via patch
	sys/dev/pci/if_wmreg.h: revision 1.97
	sys/dev/pci/if_wmvar.h: revision 1.33
- Set IPV6EXDIS bit in RFCTL register because of an Errata on 82575 and
  newer devices.
- Linux and FreeBSD defines 0x10f5 as E1000_DEV_ID_ICH9_IGP_M_AMT. In
  reality, This is not IGP but BM. Add new case to identify PHY type
  device. Fixes PR#51924 reported byJarle Greipsland.
- Use new wm_gmii_setup_phytype() function to setup sc_phytype and
  mii_{read|write}reg. This change improves detection of PHY type.
- Fix typo in comment.

Revision 1.98 / (download) - annotate - [select for diffs], Tue Feb 28 09:55:47 2017 UTC (7 years ago) by knakahara
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-20170426, pgoyette-localcount-20170320, netbsd-8-base, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1
Branch point for: netbsd-8
Changes since 1.97: +7 -2 lines
Diff to previous 1.97 (colored)

fix EITR setting.

    + 82574
      - add EITR setting, that is MSI-X mode interrupt interval
    + 82575
      - fix EITR value. 82575's EITR usage is the same as legacy (not NEWQUEUE)
        controllers
      - apply workaround which 82575's EITR does not have CNT_INGR bit
    + other NEWQUEUE controllers
      - fix interrupt interval field. NEWQUEUE (include 82575) controllers'
        interrupt interval field is 2:14
      - use CNT_INGR bit which avoid to overwrite counter

tested 82574, 82575 and I354.
ok by msaitoh@n.o.

Revision 1.65.2.7 / (download) - annotate - [select for diffs], Sun Feb 5 13:40:30 2017 UTC (7 years ago) by skrll
Branch: nick-nhusb
Changes since 1.65.2.6: +219 -4 lines
Diff to previous 1.65.2.6 (colored) to branchpoint 1.65 (colored)

Sync with HEAD

Revision 1.97 / (download) - annotate - [select for diffs], Thu Feb 2 05:38:59 2017 UTC (7 years, 1 month ago) by msaitoh
Branch: MAIN
CVS Tags: nick-nhusb-base-20170204
Changes since 1.96: +2 -2 lines
Diff to previous 1.96 (colored)

Fix typo in comment.

Revision 1.96 / (download) - annotate - [select for diffs], Wed Feb 1 04:18:43 2017 UTC (7 years, 1 month ago) by knakahara
Branch: MAIN
Changes since 1.95: +31 -31 lines
Diff to previous 1.95 (colored)

tabify

Revision 1.60.2.5.2.1 / (download) - annotate - [select for diffs], Wed Jan 18 08:46:27 2017 UTC (7 years, 1 month ago) by skrll
Branch: netbsd-7-nhusb
Changes since 1.60.2.5: +71 -8 lines
Diff to previous 1.60.2.5 (colored)

Sync with netbsd-5

Revision 1.95 / (download) - annotate - [select for diffs], Mon Jan 16 00:09:06 2017 UTC (7 years, 1 month ago) by knakahara
Branch: MAIN
Changes since 1.94: +212 -1 lines
Diff to previous 1.94 (colored)

support {extended, advanced} receive descriptor for wm(4).

support below two receive descriptors.
    - extended descriptor (used by 82574 only)
    - advanced descriptor (used by 82575 and newer)

SPH(split header buffer) is not supported yet.

ok by msaitoh@n.o.

Revision 1.89.2.1 / (download) - annotate - [select for diffs], Sat Jan 7 08:56:33 2017 UTC (7 years, 1 month ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.89: +59 -17 lines
Diff to previous 1.89 (colored)

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

Revision 1.60.2.7 / (download) - annotate - [select for diffs], Sun Dec 18 07:53:09 2016 UTC (7 years, 2 months ago) by snj
Branch: netbsd-7
CVS Tags: netbsd-7-nhusb-base-20170116, netbsd-7-1-RC2, netbsd-7-1-RC1
Changes since 1.60.2.6: +7 -3 lines
Diff to previous 1.60.2.6 (colored) to branchpoint 1.60 (colored)

Pull up following revision(s) (requested by msaitoh in ticket #1327):
	sys/dev/pci/if_wm.c: revision 1.457
	sys/dev/pci/if_wmreg.h: revision 1.94
- Change to use 2500Base-KX correctly on C2000(I354). It worked, but the
output of ifconfig and if_baudrate was not good. Tested by nils@:
   - The STATUS_TBIMODE bit in the STATUS register is deleted since 82575,
     so check for 82575 and newer first and then check for old devices.
   - Check the 2P5_SKU and 2P5_SKU_OVER bit for KX.
   - Set IFM_2500_SX instead of IFM_1000_SX for 2.5G.
- Check SERDES's speed directly from the PCS layer (PCS_LSTS register) for old
   devices.
- Style fix.

Revision 1.94 / (download) - annotate - [select for diffs], Tue Dec 13 10:01:44 2016 UTC (7 years, 2 months ago) by msaitoh
Branch: MAIN
CVS Tags: pgoyette-localcount-20170107, bouyer-socketcan-base
Branch point for: bouyer-socketcan
Changes since 1.93: +7 -3 lines
Diff to previous 1.93 (colored)

- Change to use 2500Base-KX correctly on C2000(I354). It worked, but the
output of ifconfig and if_baudrate was not good. Tested by nils@:
  - The STATUS_TBIMODE bit in the STATUS register is deleted since 82575,
    so check for 82575 and newer first and then check for old devices.
  - Check the 2P5_SKU and 2P5_SKU_OVER bit for KX.
  - Set IFM_2500_SX instead of IFM_1000_SX for 2.5G.
- Check SERDES's speed directly from the PCS layer (PCS_LSTS register) for old
  devices.
- Style fix.

Revision 1.60.2.6 / (download) - annotate - [select for diffs], Mon Dec 12 07:18:29 2016 UTC (7 years, 2 months ago) by snj
Branch: netbsd-7
Changes since 1.60.2.5: +65 -6 lines
Diff to previous 1.60.2.5 (colored) to branchpoint 1.60 (colored)

Pull up following revision(s) (requested by msaitoh in ticket #1302):
	sys/dev/mii/igphyreg.h: revisions 1.7-1.10
	sys/dev/mii/ikphyreg.h: revisions 1.3
	sys/dev/mii/inbmphyreg.h: revisions 1.4-1.9
	sys/dev/mii/mii.h: revisions 1.19-1.20
	sys/dev/pci/if_wm.c: revisions 1.390, 1.392-1.395, 1.397, 1.419-1.425, 1.427-1.428, 1.430-1.435, 1.437-1.453 via patch
	sys/dev/pci/if_wmreg.: revisions 1.89-1.93 via patch
	sys/dev/pci/if_wmvar.h: revisions 1.31-1.32
Update wm(4) up to if_wm.c rev. 1.453 except MSI/MSI-X, multiqueue and
NET_MPSAFE:
- Add I219 support. It's not stable so it's disabled by default.
- wm_gate_hw_phy_config_ich8lan() is for younger than PCH2.
- Drop the host wakeup bit after resetting PHY on PCH and newer
  devices.
- Increase delay while toggling LANPHYPC
- Move call of wm_reset() in wm_attach() after setting PHY and NVM
  related flags because those flags are used in wm_reset().
- Use mutex for NVM access on ICH8 and newer devices. Same as FreeBSD.
- Rewrite PHY related lock stuff. Almost the same as FreeBSD.
  This change will fix a bug that PHY read/write fail on some cases.
- Increase delay in wm_phy_resetisblocked(). Same as FreeBSD.
- Use semaphore in wm_hv_phy_workaround_ich8lan() and
  wm_k1_gig_workaround_hv()
- Use wm_gii_mdic_readreg/writereg() in wm_access_phy_wakeup_reg_bm()
  because these functions are called with taking lock.
- 82567V_3 is BME1000_E_2(bm). Tested with Advantech AIMB-212 1st
  Ethernet port.
- Use wm_gmii_82544_{read,write}reg() on non-82567 ICH8, 9 and 10.
- Remove an 82578 workaround which was for PCH rev < 3. FreeBSD
  removed this workaround in r228386.
- Add an 82578 workaround which is for PHY rev < 2. From FreeBSD and
  Linux.
- Fix wm(4) input drop packet counter. WMREG_RNBC is incremented when
  there is no available buffers in host memory. However, ethernet
  controller can receive packets in such case if there is space in
  phy's FIFO. That is, ethernet controller drops packet only if there
  is no available buffers *and* there is no space in phy's FIFO. So,
  the number of dropped packets should be added WMREG_MPC only.
- Use MII_ADDRMASK.
- Define WMPHY_I217, WMPHY_VF and WMPHY_210.
- Use BME1000_PHY_PAGE_SELECT in wm_gmii_bm_{read,write}reg(). This
  change has no effect because GG82563_PHY_PAGE_SELECT and
  BME1000_PHY_PAGE_SELECT have the same value.
- Fix PHY access on  82567(ICH8 or ICH10), 82574 and 82583:
  - Use wm_gmii_bm_{read,write}reg() on 82574 and 82573.
  - Issue page select correctly on BM PHYs.
- Fix workaround which did dummy read BM_WUC register. This code was
  changed to drop BM_WUC_HOST_WU_BIT of BM_PROT_GEN_CFG register in
  FreeBSD r228386. The code was added rev. 1.149, but the location was
  not the best.
- wm_gmii_hv_{read/write}reg*(): USE PHY address 1 for some special
  registers.
- Add check code for an 82578 workaround. Not completed yet.
- wm_release_hw_control(): Remove extra line. No any effect.
- Add "10/100" into non-gigabit devices' name.
- Call wm_enable_wakeup() in wm_detach() and wm_suspend(). Now wake on
  lan works on Thinkpad X61(ICH8).
- Fix wm_access_phy_wakeup_reg_bm(). This change has no effect because
  this function is used for WUC register and our driver currenlty
  doesn't access to it.
- Call wm_enable_phy_wakeup() on PCH2 and newer, too. Now these devices
  can do WOL. Tested with Thinkpad X220(PCH2).
- Set CTRL_MEHE correctly (PCH_{LPT,SPT} only).
- Add three workarounds for PCH_{LPT,SPT}.
- Fix a bug that 8257[56], 82580, I35[04] and I21[01] didn't use
  wm_{get,release}_hw_control() correctly.
- Sync wm_smbustopci() with Linux and FreeBSD. This change effects PCH
  and newer devices.
- Move the location of wm_smbustopci() call.
- Fix flag check in wm_get_wakeup()
  - 8254[17]* and 8257[124] should not set WM_F_ARC_SUBSYS_VALID.
  - Add missing WM_T_82541_2 and WM_T_82547_2.
- Fix WOL related setting of the WUC register for other than PCH* in
  wm_enable_wakeup(). Tested with 82567V(ICH8) and 82583V.
- Use common MII_ADDRMASK.
- igphy(4): No binary change:
  - s/IGPPHY/IGPHY/
  - Fix the definition of PLHR_VALID_CHANNEL_*
  - Fix the definition of MSE_CHANNEL_*
  - Add MII_IGPHY_POWER_MGMT.
- Add some KASSERT.
- Add comment. Modify comment.
- Add debug code.

Revision 1.65.2.6 / (download) - annotate - [select for diffs], Mon Dec 5 10:55:03 2016 UTC (7 years, 2 months ago) by skrll
Branch: nick-nhusb
Changes since 1.65.2.5: +53 -15 lines
Diff to previous 1.65.2.5 (colored) to branchpoint 1.65 (colored)

Sync with HEAD

Revision 1.93 / (download) - annotate - [select for diffs], Wed Nov 16 08:56:17 2016 UTC (7 years, 3 months ago) by msaitoh
Branch: MAIN
CVS Tags: nick-nhusb-base-20161204
Changes since 1.92: +17 -1 lines
Diff to previous 1.92 (colored)

 Sync wm_smbustopci() with Linux and FreeBSD. This change effects PCH and
newer devices.

Revision 1.92 / (download) - annotate - [select for diffs], Wed Nov 16 07:24:52 2016 UTC (7 years, 3 months ago) by msaitoh
Branch: MAIN
Changes since 1.91: +27 -5 lines
Diff to previous 1.91 (colored)

Add three workarounds for PCH_{LPT,SPT}.

Revision 1.91 / (download) - annotate - [select for diffs], Mon Nov 14 08:48:03 2016 UTC (7 years, 3 months ago) by msaitoh
Branch: MAIN
Changes since 1.90: +11 -11 lines
Diff to previous 1.90 (colored)

Sort registers. No functional change.

Revision 1.90 / (download) - annotate - [select for diffs], Fri Nov 11 07:31:03 2016 UTC (7 years, 3 months ago) by msaitoh
Branch: MAIN
Changes since 1.89: +2 -2 lines
Diff to previous 1.89 (colored)

The MEHE bit in the CTRL register is not bit 17 but 19.

Revision 1.65.2.5 / (download) - annotate - [select for diffs], Sun May 29 08:44:22 2016 UTC (7 years, 9 months ago) by skrll
Branch: nick-nhusb
Changes since 1.65.2.4: +22 -1 lines
Diff to previous 1.65.2.4 (colored) to branchpoint 1.65 (colored)

Sync with HEAD

Revision 1.46.2.9 / (download) - annotate - [select for diffs], Fri May 6 18:43:34 2016 UTC (7 years, 9 months ago) by snj
Branch: netbsd-6
Changes since 1.46.2.8: +92 -12 lines
Diff to previous 1.46.2.8 (colored) to branchpoint 1.46 (colored) next main 1.47 (colored)

Pull up following revision(s) (requested by msaitoh in ticket #1366):
	sys/dev/pci/if_wm.c: 1.281, 1.318, 1.320, 1.324-1.332, 1.334, 1.336, 1.343-1.344, 1.347-1.348, 1.350, 1.376-1.382, 1.386-1.387, 1.389 via patch
	sys/dev/pci/if_wmreg.h: 1.68-1.70, 1.73-1.77, 1.79-1.80, 1.82, 1.86-1.88 via patch
	sys/dev/pci/if_wmvar.h: 1.22-1.23, 1.25-1.30 via patch
	sys/dev/mii/igphy.c: 1.25
	sys/dev/mii/ukphy.c: 1.48
Sync wm(4) as of if_wm.c rev 1.389 except SERDES, MSI/MSI-X, multiqueue
and NET_MPSAFE:
- Set ICH9 and ICH10's PBA size to 14K if the RX buffer size is more
  than 4096. Almost the same as other OSes.
- For 82576 and newer devices, the PBA register is deleted. Don't write
  PBA for those chips. Also change the calculation of RX packet buffer
  size in new way.
- Print NVM image version and option ROM version.
- Add workaround for I210 Errata 25 and I211 Errata 10 (PLL bug). This
  workaround is required if the NVM image version < 3.25.
- Fix a bug that wm_detach() didn't unmap the FHASH's area. Now
  "drvctl -d wm0" -> "drvctl -r pci0" works on ICH* and PCH*.
- Add workaround for 82574 Errata 25 and 82583 Errata 12 "Dropped RX
  packets" and for 82573 (unknown). Set GCR_L1_ACT_WITHOUT_L0S_RX bit.
  The NVM Image version 2.1.4 and newer have this workaround.
- Check PHY type correctly. This change is required to use igphy(4)
  device correctly.
- Disable LPLU (Low Power Link Up) on D0 state on 82574, 82583 and ICH*
  too.
- Call wm_get_hw_control() correctly. This change fixes a bug that some
  AMT based systems doesn't linkup at 1000BaseT. The problem was
  observed on HP Compaq dc7700. A lot of fixes have been done for wm(4)
  and igphy(4), so now PR#44893 should be fixed.
- Call wm_get_wakeup(sc) before checking WM_F_HAS_AMT. It's required to
  check the existence of AMT correctly.
- Fix a problem that wm_gate_hw_phy_config_ich8lan() isn't called in
  wm_reset() on PCH2.
- Clear WMREG_WUC in wm_reset() if the chip >= 82544. This might fix
  the behavior on suspend/resume.
- Fix logic of wm_check_reset_block() on ICH* and PCH*. This change
  might fix a problem that PHY's read/write functions can't get
  semaphore.
- On ICH8, call wm_gig_downshift_workaround_ich8lan() when link changed
  down.
- Drop PHY_CTRL_GBE_DIS explicitly in wm_lplu_d0_disable() in case BIOS
  sets this bit.
- Fix two bugs in wm_kmrn_lock_loss_workaround_ich8lan(). Now the
  function checks the status correctly but it causes linkdown up to 10
  times, so it's disabled for the time being.
- PR/50527: David Binderman: Fix impossible code. Odd offsets need
  special treatment.
- Fix RAL table's size of PCH2 and PCH_LPT.
- PCH_LPT (and newer device) is required to check FWSM_WLOCK_MAC bit to
  determine the range of the RAL.
- Use sc->sc_itr instead of hard-coded number.
- Rename wm_tbi_check_link() to wm_tbi_tick() because this function
  acts as mii_tick().
- ACK Accelerate Disable in the RFCTL register is not bit 13 but 12.
  No binary change because this definition has not used yet.
- Add ACK data Disable bit's definition (not used yet).
- PHY_CTRL_GBE_DIS is not bit 4 but bit 6. This change has no any
  effect by default because WM_WOL is not defined yet and
  m_kmrn_lock_loss_workaround_ich8lan() is broken.
- Fix wm_check_mng_mode_ich8lan(). This function is used only when
  WM_WOL is defined and it's disabled by default.
- Rename wm_check_reset_block() to wm_phy_resetisblocked() and make it
  returns bool. No functional change.
- Reorder function definitions and macro definitions. No functional
  change.
- Fix comment. Add comment. Update comment.
- KNF.

Revision 1.89 / (download) - annotate - [select for diffs], Fri May 6 08:56:20 2016 UTC (7 years, 9 months ago) by msaitoh
Branch: MAIN
CVS Tags: pgoyette-localcount-base, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, nick-nhusb-base-20161004, nick-nhusb-base-20160907, nick-nhusb-base-20160529, localcount-20160914
Branch point for: pgoyette-localcount
Changes since 1.88: +22 -1 lines
Diff to previous 1.88 (colored)

Basic support for I219. It doesn't work on I219, so it's disabled.

Revision 1.60.2.5 / (download) - annotate - [select for diffs], Fri Feb 26 22:08:17 2016 UTC (8 years ago) by snj
Branch: netbsd-7
CVS Tags: netbsd-7-nhusb-base
Branch point for: netbsd-7-nhusb
Changes since 1.60.2.4: +79 -13 lines
Diff to previous 1.60.2.4 (colored) to branchpoint 1.60 (colored)

Pull up following revision(s) (requested by msaitoh in ticket #1102):
	sys/dev/mii/igphy.c: 1.25
	sys/dev/mii/ukphy.c: 1.48
	sys/dev/pci/if_wm.c: revisions 1.308, 1.318, 1.320, 1.324-1.332, 1.334, 1.336, 1.343-1.344, 1.347-1.348, 1.350, 1.376-1.382, 1.386-1.389 via patch
	sys/dev/pci/if_wmreg.h: revisions 1.68-1.70, 1.73-1.77, 1.79-1.80, 1.82, 1.86-1.88 via patch
	sys/dev/pci/if_wmvar.h: revisions 1.22-1.23, 1.25-1.30 via patch
Sync wm(4) as of if_wm.c rev 1.389 except MSI/MSI-X, multiqueue and NET_MPSAFE:
- Add C2000 KX and 2.5G support.
- Set ICH9 and ICH10's PBA size to 14K if the RX buffer size is more than
  4096. Almost the same as other OSes.
- For 82576 and newer devices, the PBA register is deleted. Don't write PBA
  for those chips. Also change the calculation of RX packet buffer size in
  new way.
- Fix a lot of bugs to make 82575 and newer SERDES based systems work.
- Print NVM image version and option ROM version.
- Add workaround for I210 Errata 25 and I211 Errata 10 (PLL bug). This
  workaround is required if the NVM image version < 3.25.
- Fix a bug that wm_detach() didn't unmap the FHASH's area. Now
  "drvct -d wm0" -> "drvctl -r pci0" works on ICH* and PCH*.
- Add workaround for 82574 Errata 25 and 82583 Errata 12 "Dropped RX packets"
  and for 82573 (unknown). Set GCR_L1_ACT_WITHOUT_L0S_RX bit. The NVM Image
  version 2.1.4 and newer have this workaround.
- Check PHY type correctly. This change is required to use igphy(4) device
  correctly.
- Disable LPLU (Low Power Link Up) on D0 state on 82574, 82583 and ICH* too.
- Call wm_get_hw_control() correctly. This change fixes a bug that some AMT
  based systems doesn't linkup at 1000BaseT. The problem was observed on HP
  Compaq dc7700. A lot of fixes have been done for wm(4) and igphy(4), so now
  PR#44893 should be fixed.
- Call wm_get_wakeup(sc) before checking WM_F_HAS_AMT. It's required to
  check the existence of AMT correctly.
- Fix a problem that wm_gate_hw_phy_config_ich8lan() isn't called in
  wm_reset() on PCH2.
- Clear WMREG_WUC in wm_reset() if the chip >= 82544. This might fix the
  behavior on suspend/resume.
- Fix logic of wm_check_reset_block() on ICH* and PCH*. This change might fix
  a problem that PHY's read/write functions can't get semaphore.
- On ICH8, call wm_gig_downshift_workaround_ich8lan() when link changed down.
- Drop PHY_CTRL_GBE_DIS explicitly in wm_lplu_d0_disable() in case BIOS sets
  this bit.
- Fix two bugs in wm_kmrn_lock_loss_workaround_ich8lan(). Now the function
  checks the status correctly but it causes linkdown up to 10 times, so it's
  disabled for the time being.
- PR/50527: David Binderman: Fix impossible code. Odd offsets need special
  treatment.
- Fix RAL table's size of PCH2 and PCH_LPT.
- PCH_LPT (and newer device) is required to check FWSM_WLOCK_MAC bit to
  determine the range of the RAL.
- Use sc->sc_itr instead of hard-coded number.
- Rename wm_tbi_check_link() to wm_tbi_tick() because this function acts as
  mii_tick().
- ACK Accelerate Disable in the RFCTL register is not bit 13 but 12.
  No binary change because this definition has not used yet.
- Add ACK data Disable bit's definition (not used yet).
- PHY_CTRL_GBE_DIS is not bit 4 but bit 6. This change has no any effect by
  default because WM_WOL is not defined yet and
  m_kmrn_lock_loss_workaround_ich8lan() is broken.
- Fix wm_check_mng_mode_ich8lan(). This function is used only when WM_WOL is
  defined and it's disabled by default.
- Rename wm_check_reset_block() to wm_phy_resetisblocked() and make it returns
  bool. No functional change.
- Reorder function definitions and macro definitions. No functional change.
- Fix comment. Add comment. Update comment.
- KNF.

Revision 1.65.2.4 / (download) - annotate - [select for diffs], Sun Dec 27 12:09:50 2015 UTC (8 years, 2 months ago) by skrll
Branch: nick-nhusb
Changes since 1.65.2.3: +111 -45 lines
Diff to previous 1.65.2.3 (colored) to branchpoint 1.65 (colored)

Sync with HEAD (as of 26th Dec)

Revision 1.88 / (download) - annotate - [select for diffs], Fri Dec 25 04:50:16 2015 UTC (8 years, 2 months ago) by msaitoh
Branch: MAIN
CVS Tags: nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226
Changes since 1.87: +8 -6 lines
Diff to previous 1.87 (colored)

- Fix RAL table's size of PCH2 and PCH_LPT.
- PCH_LPT (and newer device) is required to check FWSM_WLOCK_MAC bit to
  determine the range of the RAL.
- Fix typo in comment and modify comment by tnn@.
- Rename wm_check_reset_block() to wm_phy_resetisblocked() and make it returns
  bool. No functional change.

Revision 1.87 / (download) - annotate - [select for diffs], Tue Oct 27 14:23:23 2015 UTC (8 years, 4 months ago) by msaitoh
Branch: MAIN
Changes since 1.86: +2 -2 lines
Diff to previous 1.86 (colored)

 Move the definition of CTRL_EXT_PHYPDEN and use __BIT(). No binary change.

Revision 1.86 / (download) - annotate - [select for diffs], Fri Oct 23 08:45:14 2015 UTC (8 years, 4 months ago) by msaitoh
Branch: MAIN
Changes since 1.85: +2 -2 lines
Diff to previous 1.85 (colored)

 PHY_CTRL_GBE_DIS is not bit 4 but bit 6. This change has no any effect by
default because WM_WOL is not defined yet and
m_kmrn_lock_loss_workaround_ich8lan() is broken.

Revision 1.85 / (download) - annotate - [select for diffs], Tue Oct 13 10:39:25 2015 UTC (8 years, 4 months ago) by knakahara
Branch: MAIN
Changes since 1.84: +2 -2 lines
Diff to previous 1.84 (colored)

fix RXCSUM_CRCOFL bit of WMREG_RXCSUM register.

Revision 1.84 / (download) - annotate - [select for diffs], Tue Oct 13 08:36:02 2015 UTC (8 years, 4 months ago) by knakahara
Branch: MAIN
Changes since 1.83: +54 -1 lines
Diff to previous 1.83 (colored)

support RX multiqueue.

ok by msaitoh@n.o

Revision 1.83 / (download) - annotate - [select for diffs], Tue Oct 13 08:23:31 2015 UTC (8 years, 4 months ago) by knakahara
Branch: MAIN
Changes since 1.82: +45 -36 lines
Diff to previous 1.82 (colored)

change const value register macros to macro expressions to support multiqueue.

Revision 1.82 / (download) - annotate - [select for diffs], Thu Oct 8 04:30:25 2015 UTC (8 years, 4 months ago) by msaitoh
Branch: MAIN
Changes since 1.81: +3 -2 lines
Diff to previous 1.81 (colored)

- ACK Accelerate Disable in the RFCTL register is not bit 13 but 12.
  No binary change because this definition have not used yet.
- Add ACK data Disable bit's definition.

Revision 1.81 / (download) - annotate - [select for diffs], Wed Sep 30 08:42:04 2015 UTC (8 years, 5 months ago) by knakahara
Branch: MAIN
Changes since 1.80: +2 -2 lines
Diff to previous 1.80 (colored)

fix IVARs offset for 82580 and newer.

Revision 1.80 / (download) - annotate - [select for diffs], Wed Sep 30 04:28:04 2015 UTC (8 years, 5 months ago) by msaitoh
Branch: MAIN
Changes since 1.79: +2 -1 lines
Diff to previous 1.79 (colored)

-  Add workaround for 82574 Errata 25 and 82583 Errata 12 "Dropped RX packets"
  and for 82573 (unknown). Set GCR_L1_ACT_WITHOUT_L0S_RX bit. The NVM Image
  version 2.1.4 and newer have this workaround.
- Print the NVM image version on 82583, too.

 Pointed out by joerg@.

Revision 1.65.2.3 / (download) - annotate - [select for diffs], Tue Sep 22 12:05:59 2015 UTC (8 years, 5 months ago) by skrll
Branch: nick-nhusb
Changes since 1.65.2.2: +52 -1 lines
Diff to previous 1.65.2.2 (colored) to branchpoint 1.65 (colored)

Sync with HEAD

Revision 1.79 / (download) - annotate - [select for diffs], Mon Sep 7 15:19:05 2015 UTC (8 years, 5 months ago) by msaitoh
Branch: MAIN
CVS Tags: nick-nhusb-base-20150921
Changes since 1.78: +8 -1 lines
Diff to previous 1.78 (colored)

- Check iNVM's image version and print it.
- Update TODO.

Revision 1.78 / (download) - annotate - [select for diffs], Sat Jun 13 15:47:58 2015 UTC (8 years, 8 months ago) by msaitoh
Branch: MAIN
Changes since 1.77: +45 -1 lines
Diff to previous 1.77 (colored)

 Add MSI/MSI-X support written by Kengo Nakahara. Some old devices' support
is written by me. It's disabled by default. If you'd like to use, define
WM_MSI_MSIX.

Tested with:
	8254[3405617] (INTx even if it has MSI CAP because of a errata)
	8257[12], 82583 ICH8, ICH10, PCH2, PCH_LPT(I21[78]) (MSI)
	8257[456], 82580, I35[04], I21[01] (MSI-X)

Not tested:
	82542, 82573, 80003, ICH9, PCH,

Revision 1.60.2.4 / (download) - annotate - [select for diffs], Wed Jun 10 16:43:51 2015 UTC (8 years, 8 months ago) by snj
Branch: netbsd-7
CVS Tags: netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0
Changes since 1.60.2.3: +2 -1 lines
Diff to previous 1.60.2.3 (colored) to branchpoint 1.60 (colored)

Pull up following revision(s) (requested by msaitoh in ticket #833):
	sys/dev/pci/if_wm.c: revisions 1.322, 1.323
	sys/dev/pci/if_wmreg.h: revision 1.72
- Currently, WM_F_EEE bit is not set on all chips. It's intened to not
  to use all of EEE fuctions but wm_set_eee_i350() leaves IPCNFG_10BASE_TE
  bit and it causes link negotiation problem on some old switches. Disable
  10BASE-Te function, too.
- Call wm_set_eee_i350() on some chips, too.
--
Fix a bug that flags related to semaphore were incorrectly checked in
wm_kmrn_{readreg,writereg}. i80003, ICH* and PCH* had this problem.

Revision 1.65.2.2 / (download) - annotate - [select for diffs], Sat Jun 6 14:40:09 2015 UTC (8 years, 8 months ago) by skrll
Branch: nick-nhusb
Changes since 1.65.2.1: +120 -28 lines
Diff to previous 1.65.2.1 (colored) to branchpoint 1.65 (colored)

Sync with HEAD

Revision 1.77 / (download) - annotate - [select for diffs], Sat Jun 6 04:39:12 2015 UTC (8 years, 8 months ago) by msaitoh
Branch: MAIN
CVS Tags: nick-nhusb-base-20150606
Changes since 1.76: +16 -4 lines
Diff to previous 1.76 (colored)

- Add workaround for I210 Errata 25 and I211 Errata 10.
   - Add wm_gmii_gs40g_{read|write}reg() and use it to access non-standatrd
     page.
   - Add wm_pll_workaround_i210() and call it when
       chip is i211
       chip is i210 and it use INVM
       chip is i210 and NVM image version < 3.25
- Add comment
- Rename macros.

Revision 1.76 / (download) - annotate - [select for diffs], Sat Jun 6 03:38:40 2015 UTC (8 years, 8 months ago) by msaitoh
Branch: MAIN
Changes since 1.75: +13 -0 lines
Diff to previous 1.75 (colored)

 Print NVM image version.

Revision 1.75 / (download) - annotate - [select for diffs], Sat Jun 6 03:37:01 2015 UTC (8 years, 8 months ago) by msaitoh
Branch: MAIN
Changes since 1.74: +3 -32 lines
Diff to previous 1.74 (colored)

 Revert previos. Sorry, I committed in another working directory...

Revision 1.74 / (download) - annotate - [select for diffs], Sat Jun 6 03:33:37 2015 UTC (8 years, 8 months ago) by msaitoh
Branch: MAIN
Changes since 1.73: +33 -4 lines
Diff to previous 1.73 (colored)

 Print NVM image version.

Revision 1.73 / (download) - annotate - [select for diffs], Tue Jun 2 14:19:26 2015 UTC (8 years, 9 months ago) by msaitoh
Branch: MAIN
Changes since 1.72: +27 -1 lines
Diff to previous 1.72 (colored)

Fix a lot of bugs to make 82575 and newer's SERDES based systems work.
 - Add SERDES specific functions.
 - Fix IO pin configuration.
 - Reset autonego timer when link becomes up.

TODO:
 - Fix a bug that SFP ROM can't read.
 - Perhaps some work is required for 8257[12] serdes systems.
 - Remove duplicated code in TBI's link related functions.

Revision 1.72 / (download) - annotate - [select for diffs], Fri May 22 03:15:43 2015 UTC (8 years, 9 months ago) by msaitoh
Branch: MAIN
Changes since 1.71: +2 -1 lines
Diff to previous 1.71 (colored)

- Currently, WM_F_EEE bit is not set on all chips. it's intended to not
  to use all of EEE fuctions but wm_set_eee_i350() leaves IPCNFG_10BASE_TE
  bit and it causes link negotiation problem on some old switches. Disable
  10BASE-Te function, too.
- Call wm_set_eee_i350() on some chips, too.

Revision 1.60.2.3 / (download) - annotate - [select for diffs], Tue May 19 05:09:02 2015 UTC (8 years, 9 months ago) by snj
Branch: netbsd-7
Changes since 1.60.2.2: +41 -2 lines
Diff to previous 1.60.2.2 (colored) to branchpoint 1.60 (colored)

Pull up following revision(s) (requested by msaitoh in ticket #784):
	sys/dev/pci/if_wm.c: revision 1.321
	sys/dev/pci/if_wmreg.h: revision 1.71
	sys/dev/pci/if_wmvar.h: 1.24 via patch
Add support iNVM (integrated Non-Volatile Memory) for I21[01].
This change fixes a bug that a MAC address is wrongly set on
iNVM machines/NICs.

Revision 1.71 / (download) - annotate - [select for diffs], Sat May 16 22:41:59 2015 UTC (8 years, 9 months ago) by msaitoh
Branch: MAIN
Changes since 1.70: +41 -2 lines
Diff to previous 1.70 (colored)

 Add support iNVM (integrated Non-Volatile Memory) for I21[01]. This change
fixes a bug that a MAC address is wrongly set on iNVM machines and NICs.
Tested with Shuttle DS57U(iNVM based) and other non iNVM based I210 machines.

Revision 1.70 / (download) - annotate - [select for diffs], Fri May 15 07:59:00 2015 UTC (8 years, 9 months ago) by msaitoh
Branch: MAIN
Changes since 1.69: +2 -2 lines
Diff to previous 1.69 (colored)

Fix typo in comment.

Revision 1.69 / (download) - annotate - [select for diffs], Mon May 4 10:10:42 2015 UTC (8 years, 10 months ago) by msaitoh
Branch: MAIN
Changes since 1.68: +4 -1 lines
Diff to previous 1.68 (colored)

 For 82576 and newer devices, the PBA register is deleted. Don't write PBA
for those chips. Also change the calculation of RX packet buffer size in
new way.

Revision 1.68 / (download) - annotate - [select for diffs], Mon May 4 06:51:08 2015 UTC (8 years, 10 months ago) by msaitoh
Branch: MAIN
Changes since 1.67: +2 -1 lines
Diff to previous 1.67 (colored)

 Set ICH9 and ICH10's PBA size to 14K if the RX buffer size is
more than 4096. Almost the Same as other OSes

Revision 1.67 / (download) - annotate - [select for diffs], Mon May 4 06:44:13 2015 UTC (8 years, 10 months ago) by msaitoh
Branch: MAIN
Changes since 1.66: +1 -4 lines
Diff to previous 1.66 (colored)

 Remove WMREG_TQSA_LO and WMREG_TQSA_HIGH. Those registers
are not described in documents and other OS's drivers don't
access it.
(I have no the first chip(82542)'s document. Those registers
might be described in the document).

Revision 1.24.20.9 / (download) - annotate - [select for diffs], Thu Apr 30 20:00:27 2015 UTC (8 years, 10 months ago) by snj
Branch: netbsd-5
Changes since 1.24.20.8: +58 -12 lines
Diff to previous 1.24.20.8 (colored) to branchpoint 1.24 (colored) next main 1.25 (colored)

Pull up following revision(s) (requested by msaitoh in ticket #1962):
	sys/dev/pci/if_wm.c: revisions 1.259-1.266, 1.269, 1.271, 1.273-1.274, 1.277-1.278, 1.282, 1.284-1.285, 1.287, 1.290, 1.294, 1.297-1.298, 1.300-1.301, 1.304-1.307, 1.310, 1.312-1.314, 1.316 via patch
	sys/dev/pci/if_wmreg.c: revisions 1.54-1.57, 1.59-1.60, 1.62, 1.64-1.66 via patch
	sys/dev/pci/if_wmvar.c: revisions 1.17, 1.20-1.21 via patch
	sys/dev/pci/pcidevs: revisions 1.1172, 1.1195, 1.1201 via patch
- Fix "MDIC write error" bug for 82574 and 82583. For those chips, the
  semaphore must be released after chip reset. Found and tested by
  Mark Davies.
- Fix BMC related bugs.
- Fix yet another NVM bank detect problem in wm(4). Use bank 0 if the detect
  function failed. It's the same as FreeBSD. Observed and tested with
  Asus P8P67 Deluxe motherboard and tested by jnemeth.
- Add support for I354 DH89xxCC and some new I218 devices.
- Fix definition of CTRL_GIO_M_DIS bit.
- Insert completion barrier between register write and delay().
- Bump max TX DMA size to avoid pathological condition with TSO. From dyoung.
- Fix semaphore related bugs.
- Call wm_set_pcie_completion_timeout() on I350, I354, I210 and I211, too.
  Same as FreeBSD and OpenBSD.
- Drop PHPM_GO_LINK_D bit in WMREG_PHPM on some chips. From FreeBSD.
-  Fix fiber link problem (PR#44776 and PR#30880).
- WM_T_82545 is not 1000base-SX but 1000base-LX. Same as FreeBSD.
- Set the WM_F_ATTACHED flag if wm_attach() finished succesfully and check
  the flag in wm_detach(). It will avoid to panic in wm_detach().
  Fixes PR#49102.
- It's not required to print "failed to detect NVM bank" with
  aprint_error_dev(). Use DPRINTF(). Same as {Free,Open}BSD.
- Fix a bug that the offset of alt MAC address is wrongly calculated to 0
  when alt MAC address function is really used. This bug does not appear
  as real bug if the same MAC address is written in the default location
  and alt MAC address's location.
- Initialize some hardware bits for 8257[1234], 82583, 80003, ICH* and PCH*.
  Some of them are workaround code. From other *BSDs, Linux and documents.
- Fix a bug that wm_sgmii_writereg() function doesn't pass the "val" argument
  to the I2CCMD register. Reported by Bernard Merindol in PR#49789.
- Delete 82580ER related code. It was from FreeBSD and was removed
  in r203049.
- Remove extra debug message.
- Remove unused variable.
- Remove a duplicated error message.
- Cleanup comments.
- Fix debug message.

Revision 1.46.2.8 / (download) - annotate - [select for diffs], Thu Apr 16 06:20:08 2015 UTC (8 years, 10 months ago) by snj
Branch: netbsd-6
Changes since 1.46.2.7: +18 -4 lines
Diff to previous 1.46.2.7 (colored) to branchpoint 1.46 (colored)

Pull up following revision(s) (requested by msaitoh in ticket #1277):
	sys/dev/pci/if_wm.c: revision 1.312 via patch
	sys/dev/pci/if_wmreg.h: revision 1.66 via patch
- Initialize some hardware bits for 8257[1234], 82583, 80003, ICH* and PCH*.
  Some of them are workaround code. From other *BSDs, Linux and documents.
- Add comment.
- Fix typo in comment.

Revision 1.65.2.1 / (download) - annotate - [select for diffs], Mon Apr 6 15:18:10 2015 UTC (8 years, 10 months ago) by skrll
Branch: nick-nhusb
Changes since 1.65: +18 -4 lines
Diff to previous 1.65 (colored)

Sync with HEAD

Revision 1.60.2.2 / (download) - annotate - [select for diffs], Wed Mar 18 04:39:15 2015 UTC (8 years, 11 months ago) by snj
Branch: netbsd-7
Changes since 1.60.2.1: +18 -4 lines
Diff to previous 1.60.2.1 (colored) to branchpoint 1.60 (colored)

Pull up following revision(s) (requested by msaitoh in ticket #614):
	sys/dev/pci/if_wm.c: revision 1.311-1.313
	sys/dev/pci/if_wmreg.h: revision 1.66
Fix a bug that sc_mediatype is evaluated incorrectly. The real problem
might be occured only on fiber and serdes cases.
#####
- Initialize some hardware bits for 8257[1234], 82583, 80003, ICH* and PCH*.
  Some of them are workaround code. From other *BSDs, Linux and documents.
- Add comment.
- Fix typo in comment.
#####
 Fix a bug that the first access to NVM is failed on 8254[17] which use
SPI EEPROM. Observed on Dell PowerEdge [12]850. Thanks Tom Ivar Helbekkmo
for debugging.

Revision 1.66 / (download) - annotate - [select for diffs], Sun Feb 15 21:32:33 2015 UTC (9 years ago) by msaitoh
Branch: MAIN
CVS Tags: nick-nhusb-base-20150406
Changes since 1.65: +18 -4 lines
Diff to previous 1.65 (colored)

- Initialize some hardware bits for 8257[1234], 82583, 80003, ICH* and PCH*.
  Some of them are workaround code. From other *BSDs, Linux and documents.
- Add comment.
- Fix typo in comment.

Revision 1.46.2.7 / (download) - annotate - [select for diffs], Thu Dec 4 06:04:07 2014 UTC (9 years, 3 months ago) by snj
Branch: netbsd-6
Changes since 1.46.2.6: +212 -213 lines
Diff to previous 1.46.2.6 (colored) to branchpoint 1.46 (colored)

Pull up following revision(s) (requested by msaitoh in ticket #1203):
	sys/dev/pci/if_wm.c: revisions 1.271, 1.273-1.274, 1.277-1.278,
				       1.280, 1.282, 1.284-1.285, 1.287,
				       1.293-1.294, 1.297-1.298,
				       1.300-1.301, 1.305-1.307 via patch
	sys/dev/pci/if_wmreg.h: revisions 1.57-1.62, 1.64-1.65 via patch
	sys/dev/pci/if_wmvar.h: revisions 1.19, 1.21 via patch
- Acquire SW semaphore in wm_get_swsm_semaphore().
- Fix some bugs realted to semaphore. This change fixes a problem which
  was exposed in if_wm.c rev. 1.271. Tested by riastradh@.
  - Clear the SMBI bit in SWSM register before accessing NVM and PHY in
    wm_attach(). Same as FreeBSD.
  - Fix a bug that 82573 doesn't put the hardware semaphore. Same as
    FreeBSD r256200.
- Call wm_set_pcie_completion_timeout() on I350, I354, I210 and I211, too.
  Same as FreeBSD and OpenBSD.
- Drop PHPM_GO_LINK_D bit in WMREG_PHPM on some chips. From FreeBSD.
- Fix fiber link problem (PR#44776 and PR#30880). Tested with 82543GC, 82544EI,
  82545EM, 82546GB 82571EB and 82572EI fiber cards.
  - Don't use the RXCFG interrupt. It's not required and the interrupt is very
    heavy (a lot of interrupts). Same as {Free,Open}BSD.
  - Modify wm_tbi_mediachange() to be close to em_setup_fiber_serdes_link()
    of {Free,Open}BSD. At least, don't forget to set duplex setting.
  - WM_T_82545 is not 1000base-SX but 1000base-LX. Same as FreeBSD.
- Don't check SWSM_SMBI bit if WM_F_LOCK_SWSM isn't set. Fix a problem when
  using vmware with e1000"e". With e1000e which is regarded as 82574L,
  wm_gmii_init() fails with "could not acquire SWSM SMBI" message without
  this change. This problem doesn't occur with real 82574L card.
- Fix a bug that wm_get_swsm_semaphore() timed out when attaching device on
  some machines.
  - Calculate NVM word size correctly.
  - Determine timeout value based on the NVM word size.
- It's not required to print "failed to detect NVM bank" message.
  Only print while debugging. Same as {Free,Open}BSD.
- Add some new I218 devices.
- Delete 82580ER related code. It was from FreeBSD and was removed in r203049.
- Fix a bug that the offset of alt MAC address is wrongly calculated to 0
  when alt MAC address function is really used. This bug does not appear
  as real bug if the same MAC address is written in the default location
  and alt MAC address's location.
- Move some NVM related macros from if_wm.c to if_wmreg.h.
- Sort definitions in if_wmreg.h
  - move NVM related values to the bottom.
  - sort in register's address' order.
- Simplify wm_read_mac_addr().
- Fix debug message.
- Add missing prototypes.
- Rename some functions for consistency and clarify.
- Rename some macros for consistency.
- Remove a duplicated error message.
- Fix typo in comment.
- Cleanup comments.
- KNF.

Revision 1.46.2.6 / (download) - annotate - [select for diffs], Sun Nov 9 12:03:18 2014 UTC (9 years, 3 months ago) by martin
Branch: netbsd-6
Changes since 1.46.2.5: +11 -2 lines
Diff to previous 1.46.2.5 (colored) to branchpoint 1.46 (colored)

Pullup the following revisions, requested by msaitoh in ticket #1188:
sys/dev/pci/pcidevs			1.1172
sys/dev/pci/if_wm.c			1.263-1.266 via patch
sys/dev/pci/if_wmreg.h			1.55-1.56
sys/dev/pci/if_wmvar.h			1.17
share/man/man4/wm.4			1.26-1.27 and 1.29 via patch

- Add I354 support.
- Insert completion barrier between register write and delay().
- Fix the definition of CTRL_GIO_M_DIS. This bit is not bit 3 but bit 2.
- Cleanup

Revision 1.60.2.1 / (download) - annotate - [select for diffs], Fri Nov 7 21:34:56 2014 UTC (9 years, 3 months ago) by snj
Branch: netbsd-7
Changes since 1.60: +85 -63 lines
Diff to previous 1.60 (colored)

Pull up following revision(s) (requested by msaitoh in ticket #190):
	sys/dev/pci/pcidevs			1.1201-1.1202 via patch
	sys/dev/pci/if_wm.c			1.291-1.301, 1.304, 1.306-1.307 via patch
	sys/dev/pci/if_wmreg.h			1.61-1.65 via patch
	sys/dev/pci/if_wmvar.h			1.21 via patch
	share/man/man4/wm.4			1.31 via patch
- Add Internal SERDES mode support newer than or equal to 82575.
- Add new I218 devices.
- Add DH89xxCC device.
- Add some old devices.
- Fix a bug that wm_get_swsm_semaphore() timed out when attaching device on
  some machines.
- Fix a bug that the offset of alt MAC address is wrongly calculated to 0
  when alt MAC address function is really used. This bug does not appear
  as real bug if the same MAC address is written in the default location
  and alt MAC address's location.
- Don't print "failed to detect NVM bank" message.
- Delete 82580ER related code.
- Fix typo in comment.
- Fix debug message.
- Cleanup

Revision 1.65 / (download) - annotate - [select for diffs], Fri Oct 24 17:58:09 2014 UTC (9 years, 4 months ago) by msaitoh
Branch: MAIN
CVS Tags: nick-nhusb-base
Branch point for: nick-nhusb
Changes since 1.64: +2 -4 lines
Diff to previous 1.64 (colored)

Simplify. No functional change.

Revision 1.64 / (download) - annotate - [select for diffs], Fri Oct 24 17:50:50 2014 UTC (9 years, 4 months ago) by msaitoh
Branch: MAIN
Changes since 1.63: +2 -4 lines
Diff to previous 1.63 (colored)

 Fix a bug that the offset of alt MAC address is wrongly calculated to 0
when alt MAC address function is really used. This bug does not appear
as real bug if the same MAC address is written in the default location
and alt MAC address's location.

Revision 1.63 / (download) - annotate - [select for diffs], Wed Sep 3 14:30:04 2014 UTC (9 years, 6 months ago) by msaitoh
Branch: MAIN
Changes since 1.62: +15 -1 lines
Diff to previous 1.62 (colored)

Read SFF SFP ROM and configure driver from the value.

Revision 1.62 / (download) - annotate - [select for diffs], Mon Sep 1 16:42:27 2014 UTC (9 years, 6 months ago) by msaitoh
Branch: MAIN
Changes since 1.61: +3 -0 lines
Diff to previous 1.61 (colored)

 Fix a bug that wm_get_swsm_semaphore() timed out when attaching device on some
machines.
- Calculate NVM word size correctly.
- Determine timeout value based on the NVM word size.

Revision 1.61 / (download) - annotate - [select for diffs], Fri Aug 29 12:14:29 2014 UTC (9 years, 6 months ago) by msaitoh
Branch: MAIN
Changes since 1.60: +72 -63 lines
Diff to previous 1.60 (colored)

No binary change:
- Move some NVM related macros from if_wm.c to if_wmreg.h.
- Rename some macros for consistency.

Revision 1.48.2.3 / (download) - annotate - [select for diffs], Wed Aug 20 00:03:42 2014 UTC (9 years, 6 months ago) by tls
Branch: tls-maxphys
Changes since 1.48.2.2: +215 -209 lines
Diff to previous 1.48.2.2 (colored) to branchpoint 1.48 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.55.2.1 / (download) - annotate - [select for diffs], Sun Aug 10 06:54:54 2014 UTC (9 years, 6 months ago) by tls
Branch: tls-earlyentropy
Changes since 1.55: +205 -214 lines
Diff to previous 1.55 (colored) next main 1.56 (colored)

Rebase.

Revision 1.60 / (download) - annotate - [select for diffs], Thu Jul 31 03:50:09 2014 UTC (9 years, 7 months ago) by msaitoh
Branch: MAIN
CVS Tags: tls-maxphys-base, tls-earlyentropy-base, netbsd-7-base
Branch point for: netbsd-7
Changes since 1.59: +4 -1 lines
Diff to previous 1.59 (colored)

 Fix fiber link problem (PR#44776 and PR#30880). Tested with 82543GC, 82544EI,
82545EM, 82546GB 82571EB and 82572EI fiber cards.
- Don't use the RXCFG interrupt. It's not required and the interrupt is very
  heavy (a lot of interrupts). Same as {Free,Open}BSD.
- Modify wm_tbi_mediachange() to be close to em_setup_fiber_serdes_link()
  of {Free,Open}BSD. At least, don't forget to set duplex setting.
- WM_T_82545 is not 1000base-SX but 1000base-LX. Same as FreeBSD. Tested with
  my own 82545EM card.

Revision 1.59 / (download) - annotate - [select for diffs], Fri Jul 25 18:28:03 2014 UTC (9 years, 7 months ago) by msaitoh
Branch: MAIN
Changes since 1.58: +4 -1 lines
Diff to previous 1.58 (colored)

- Call wm_set_pcie_completion_timeout() on I350, I354, I210 and I211, too.
  Same as FreeBSD and OpenBSD.
- Drop PHPM_GO_LINK_D bit in WMREG_PHPM on some chips. From FreeBSD.

Revision 1.58 / (download) - annotate - [select for diffs], Fri Jul 25 01:05:00 2014 UTC (9 years, 7 months ago) by msaitoh
Branch: MAIN
Changes since 1.57: +195 -213 lines
Diff to previous 1.57 (colored)

No functional change:
- move NVM related values to the bottom.
- sort in register's address.

Revision 1.57 / (download) - annotate - [select for diffs], Fri Jul 11 02:23:44 2014 UTC (9 years, 7 months ago) by msaitoh
Branch: MAIN
Changes since 1.56: +4 -1 lines
Diff to previous 1.56 (colored)

Fix some bugs realted to semaphore. This change fixes a problem which
was exposed in if_wm.c rev. 1.271. Tested by riastradh@.
- Clear the SMBI bit in SWSM register before accessing NVM and PHY in
  wm_attach(). Same as FreeBSD.
- Fix a bug that 82573 doesn't put the hardware semaphore. Same as
  FreeBSD r256200.

Revision 1.45.4.3 / (download) - annotate - [select for diffs], Thu May 22 11:40:25 2014 UTC (9 years, 9 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.45.4.2: +74 -6 lines
Diff to previous 1.45.4.2 (colored) to branchpoint 1.45 (colored) next main 1.46 (colored)

sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")

Revision 1.54.2.1 / (download) - annotate - [select for diffs], Sun May 18 17:45:40 2014 UTC (9 years, 9 months ago) by rmind
Branch: rmind-smpnet
Changes since 1.54: +11 -2 lines
Diff to previous 1.54 (colored) next main 1.55 (colored)

sync with head

Revision 1.56 / (download) - annotate - [select for diffs], Fri Apr 11 04:42:34 2014 UTC (9 years, 10 months ago) by msaitoh
Branch: MAIN
CVS Tags: yamt-pagecache-base9, rmind-smpnet-nbase, rmind-smpnet-base
Changes since 1.55: +2 -2 lines
Diff to previous 1.55 (colored)

Fix the definition of CTRL_GIO_M_DIS. This bit is not bit 3 but bit 2.
Reported by pooka@.

Revision 1.55 / (download) - annotate - [select for diffs], Sun Dec 29 21:28:41 2013 UTC (10 years, 2 months ago) by msaitoh
Branch: MAIN
CVS Tags: riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3
Branch point for: tls-earlyentropy
Changes since 1.54: +10 -1 lines
Diff to previous 1.54 (colored)

Add support For I354(C2000 interna Ethernet controller):
 - Add I354 support.
 - Fix SGMII+MDIO case. SGMII+I2C is not supported yet.
 - Not tested well.
 - Sprinkle "XXX" to check later.

Revision 1.24.20.8 / (download) - annotate - [select for diffs], Sat Sep 7 17:10:18 2013 UTC (10 years, 5 months ago) by bouyer
Branch: netbsd-5
Changes since 1.24.20.7: +48 -1 lines
Diff to previous 1.24.20.7 (colored) to branchpoint 1.24 (colored)

sys/dev/pci/if_wm.c				1.246-1.247, 1.249-1.258
sys/dev/pci/if_wmreg.h				1.51, 1.53
sys/dev/pci/if_wmvar.h				1.15-1.16
sys/dev/pci/pcidevs				1.1152-1.1153
sys/dev/pci/pcidevs.h				regen
sys/dev/pci/pcidevs_data.h			regen

	Add I21[0178] support.
	Fix a bug that wm_attach() may fail on some PCH2 or newer system.
	wm_valid_nvm_bank_detect_ich8lan() misunderstood the NVM's bank
	number. Fixes PR#47878.
	Fix a bug that the check of reset complete fails on Intel 8 series
	with "wm_lan_init_done: lan_init_done failed to complete" message.
	The broken code was used for ICH8, 9... and PCH2.
	The wm_linkintr_gmii() function is called from interrupt. That's
	not tick, so call mii_pollstat() instead of mii_tick().
	Add ECC support for the packet buffer. Only 82571 and I21[78] support
	ECC.
	Fix a bug that wrong semaphore is used in wm_gmii_hv_{read,write}reg.
	Add comments, fix some comments, use macros and remove trailing
	whitespaces.
	[msaitoh, ticket #1867]

Revision 1.46.2.5 / (download) - annotate - [select for diffs], Mon Jul 29 20:24:04 2013 UTC (10 years, 7 months ago) by jdc
Branch: netbsd-6
Changes since 1.46.2.4: +8 -2 lines
Diff to previous 1.46.2.4 (colored) to branchpoint 1.46 (colored)

Pull up revisions:
  src/sys/dev/pci/if_wm.c revisions 1.259,1.260,1.261,1.262
  src/sys/dev/pci/if_wmreg.h revision 1.54
(requested by msaitoh in ticket #918).

 Fix "MDIC write error" bug for 82574 and 82583. For those chips, the semaphore
must be released after chip reset. Found and tested by Mark Davies.

 Sync the wm_enable_mng_pass_thru() function with FreeBSD. Don't check
MANC_EN_MAC_ADDR_FILTER bit. Add 82574 and 82583 specific check. This
modification may change the setting of WM_F_HAS_MANAGE flag on some machines.

 Sync the wm_release_manageablilty() fucntion with FreeBSD. Set MANC_ARP_EN.
This change enables HW ARP function when entering suspend.

 When the chip is 82580(ER) or I350, set WM_F_ASF_FIRMWARE_PRES flag and
check for the WM_F_ARC_SUBSYS_VALID flag. Same as FreeBSD.

 Move the location of wm_check_mng_mode() and wm_get_wakeup() in wm_attach().
Those functions access EEPROM, so they have to call after identifying EEPROM
access type. This modification may change the behavior of BMC(IPMI).

 Fix yet another NVM bank detect problem in wm(4). Use bank 0 if the detect
function failed. It's the same as FreeBSD. Observed and tested with Asus P8P67
Deluxe motherboard and tested by jnemeth.

Revision 1.46.2.4 / (download) - annotate - [select for diffs], Sun Jul 14 20:39:13 2013 UTC (10 years, 7 months ago) by riz
Branch: netbsd-6
Changes since 1.46.2.3: +51 -1 lines
Diff to previous 1.46.2.3 (colored) to branchpoint 1.46 (colored)

Apply changes (requested by msaitoh in ticket #907):

sys/dev/pci/if_wm.c				1.238, 1.244-1.247, 1.249-1.258
sys/dev/pci/if_wmreg.h				1.50-1.51, 1.53
sys/dev/pci/if_wmvar.h				1.15-1.16

	Various fixes to wm(4):
	Add I21[0178] support.
	Fix a bug that wm_attach() may fail on some PCH2 or newer system.
	wm_valid_nvm_bank_detect_ich8lan() misunderstood the NVM's bank
	number. Fixes PR#47878.
	Fix a bug that the check of reset complete fails on Intel 8 series
	with "wm_lan_init_done: lan_init_done failed to complete" message.
	The broken code was used for ICH8, 9... and PCH2.
	The wm_linkintr_gmii() function is called from interrupt. That's
	not tick, so call mii_pollstat() instead of mii_tick().
	Add ECC support for the packet buffer. Only 82571 and I21[78] support
	ECC.
	Fix a bug that wrong semaphore is used in wm_gmii_hv_{read,write}reg.
	Change style, add comments, fix some comments, use macros and
	remove trailing whitespaces.
	[msaitoh, ticket #907]

Revision 1.54 / (download) - annotate - [select for diffs], Tue Jun 25 17:38:38 2013 UTC (10 years, 8 months ago) by msaitoh
Branch: MAIN
CVS Tags: riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2
Branch point for: rmind-smpnet
Changes since 1.53: +8 -2 lines
Diff to previous 1.53 (colored)

 Sync the wm_enable_mng_pass_thru() function with FreeBSD. Don't check
MANC_EN_MAC_ADDR_FILTER bit. Add 82574 and 82583 specific check. This
modification may change the setting of WM_F_HAS_MANAGE flag on some machines.

 Sync the wm_release_manageablilty() fucntion with FreeBSD. Set MANC_ARP_EN.
This change enables HW ARP function when entering suspend.

 When the chip is 82580(ER) or I350, set WM_F_ASF_FIRMWARE_PRES flag and
check for the WM_F_ARC_SUBSYS_VALID flag. Same as FreeBSD.

Revision 1.48.2.2 / (download) - annotate - [select for diffs], Sun Jun 23 06:20:18 2013 UTC (10 years, 8 months ago) by tls
Branch: tls-maxphys
Changes since 1.48.2.1: +49 -2 lines
Diff to previous 1.48.2.1 (colored) to branchpoint 1.48 (colored)

resync from head

Revision 1.53 / (download) - annotate - [select for diffs], Wed Jun 19 10:38:51 2013 UTC (10 years, 8 months ago) by msaitoh
Branch: MAIN
Changes since 1.52: +47 -1 lines
Diff to previous 1.52 (colored)

Add ECC support for the packet buffer. Only 82571 and I21[78] support ECC.

Revision 1.24.20.7 / (download) - annotate - [select for diffs], Wed Jun 19 07:50:15 2013 UTC (10 years, 8 months ago) by bouyer
Branch: netbsd-5
Changes since 1.24.20.6: +143 -13 lines
Diff to previous 1.24.20.6 (colored) to branchpoint 1.24 (colored)

Pullup the following revisions via patch, requested by msaitoh in ticket #1850:
	sys/dev/pci/if_wm.c			1.201, 1.203-1.204,
						1.207-1.212, 1.215,
						1.217-1.218, 1.220-1.223,
						1.228, 1.232-245
	sys/dev/pci/if_wmreg.h			1.40-1.45, 1.47-1.48
	sys/dev/pci/if_wmvar.h			1.11-1.13
	sys/dev/pci/pcidevs			1.1074, 1.1077, 1.1117
	sys/dev/pci/pcidevs.h			regen
	sys/dev/pci/pcidevs_data.h		regen
	sys/dev/mii/igphyreg.h			1.6
	sys/dev/mii/ihphy.c			1.1-1.2
	sys/dev/mii/ihphyreg.h			1.1
	sys/dev/mii/inbmphyreg.h		1.3
	sys/dev/mii/files.mii			1.47 via patch
	sys/dev/mii/miidevs			1.97 and 1.100
	sys/dev/mii/miidevs.h			regen
	sys/dev/mii/miidevs_data.h		regen
	sys/arch/i386/conf/ALL			1.280
	sys/arch/i386/conf/GENERIC		1.1001
	sys/arch/i386/conf/INSTALL_FLOPPY	1.11
	sys/arch/i386/conf/XEN2_DOM0		patch
	sys/arch/amd64/conf/GENERIC		1.293
	sys/arch/amd64/conf/XEN3_DOM0		1.61
	share/man/man4/wm.4			1.21-1.24

Apply almost all fixes and improvements from netbsd-6 except for
the rev. 1.196's iqdrops' change.

- Add the detach code.
- Add code for WOL, ASF, IPMI and Intel AMT. WOL is disabled by default
- Add Yet another workaround for ICH8.
- 82576 is dual port, so check the FUNCID and increment the MAC address for
  the 2nd port.
- Fix the names of 82577L[MC] LAN controllers (for mobile).
- 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 82580 support.
- 82571 quirk. Only 82571 shares port 0 of EEMNGCTL_CFGDONE.
- The document says that the TDH register must be set after
  TCL.EN is set on 82575 and newer devices.
- Fix some register names. No functional change.
- Omit U+00AE "REGISTERED SIGN" in a product name due to its non-ASCII nature.
- Stop wm(4) from needlessly resetting when you add or delete a vlan(4).
- 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.
- Add PCH2(and 82579) support. Fixes PR#46487
- Add yet another 82567V support.
- Add ICH10+HANKSVILL support.
- Add support Intel I350 Ethernet.
- Make vlan and all ip/ip6 checksum offload work for the I350.
- Fix compile error with  WM_DEBUG.
- Fix a bug that PHY isn't set to low-power mode on PCH and PCH2.
- Add WM_DEBUG_NVM. If WM_DEBUG_NVM is enabled, dump the FLASH ROM data.
- Skip 64bit BAR correctly.
- Fix RAL_TABSIZE for ICH8, 82576, 82580 and I350.
- Use 82580(and I350) specific PHY read/write functions. Fixes PR#47542.
- Style fix. Fix typo in comment. Fix comments. Add comments.

Revision 1.52 / (download) - annotate - [select for diffs], Sun Apr 21 19:59:41 2013 UTC (10 years, 10 months ago) by msaitoh
Branch: MAIN
CVS Tags: khorben-n900
Changes since 1.51: +2 -2 lines
Diff to previous 1.51 (colored)

Delete "PCI_" from PCIX and PICE capability registers.

Revision 1.51 / (download) - annotate - [select for diffs], Thu Apr 18 12:42:03 2013 UTC (10 years, 10 months ago) by msaitoh
Branch: MAIN
Changes since 1.50: +2 -1 lines
Diff to previous 1.50 (colored)

Add support I21[01]. Only tested with my own I210-T1 Ethernet Server Adapter.

Revision 1.48.2.1 / (download) - annotate - [select for diffs], Mon Feb 25 00:29:18 2013 UTC (11 years ago) by tls
Branch: tls-maxphys
Changes since 1.48: +9 -3 lines
Diff to previous 1.48 (colored)

resync with head

Revision 1.46.2.3 / (download) - annotate - [select for diffs], Mon Feb 18 18:05:30 2013 UTC (11 years ago) by riz
Branch: netbsd-6
CVS Tags: netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1
Changes since 1.46.2.2: +6 -3 lines
Diff to previous 1.46.2.2 (colored) to branchpoint 1.46 (colored)

Pull up following revision(s) (requested by msaitoh in ticket #824):
	sys/dev/pci/if_wm.c: revision 1.240
	sys/dev/pci/if_wm.c: revision 1.241
	sys/dev/pci/if_wm.c: revision 1.242
	sys/dev/pci/if_wmreg.h: revision 1.49
- Add WM_DEBUG_NVM.
- If WM_DEBUG_NVM is enabled, dump the FLASH ROM data.
Skip 64bit BAR correctly. I don't know if this bug causes a real problem.
Fix RAL_TABSIZE for ICH8, 82576, 82580 and I350.

Revision 1.50 / (download) - annotate - [select for diffs], Wed Feb 13 16:58:04 2013 UTC (11 years ago) by msaitoh
Branch: MAIN
CVS Tags: agc-symver-base, agc-symver
Changes since 1.49: +4 -1 lines
Diff to previous 1.49 (colored)

No functional change.
 - Fix comment.
 - Use macro.

Revision 1.49 / (download) - annotate - [select for diffs], Thu Feb 7 15:38:42 2013 UTC (11 years ago) by msaitoh
Branch: MAIN
Changes since 1.48: +6 -3 lines
Diff to previous 1.48 (colored)

Fix RAL_TABSIZE for ICH8, 82576, 82580 and I350.

Revision 1.46.2.1.2.1 / (download) - annotate - [select for diffs], Thu Nov 1 16:45:02 2012 UTC (11 years, 4 months ago) by matt
Branch: matt-nb6-plus
Changes since 1.46.2.1: +58 -1 lines
Diff to previous 1.46.2.1 (colored) next main 1.46.2.2 (colored)

sync with netbsd-6-0-RELEASE.

Revision 1.45.4.2 / (download) - annotate - [select for diffs], Tue Oct 30 17:21:34 2012 UTC (11 years, 4 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.45.4.1: +74 -1 lines
Diff to previous 1.45.4.1 (colored) to branchpoint 1.45 (colored)

sync with head

Revision 1.46.2.2 / (download) - annotate - [select for diffs], Mon Sep 3 19:09:41 2012 UTC (11 years, 6 months ago) by riz
Branch: netbsd-6
CVS Tags: netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, matt-nb6-plus-nbase, matt-nb6-plus-base
Changes since 1.46.2.1: +58 -1 lines
Diff to previous 1.46.2.1 (colored) to branchpoint 1.46 (colored)

Pull up following revision(s) (requested by bouyer in ticket #534):
	sys/dev/pci/if_wmreg.h: revision 1.48
	sys/dev/pci/if_wm.c: revision 1.232
	sys/dev/pci/if_wm.c: revision 1.233
	sys/dev/pci/if_wm.c: revision 1.234
Make vlan and all ip/ip6 checksum offload work for the I350.
On newer devices, when using the legacy TX descriptors, vlan-related flags
that were set on the last descriptor of a packet have to be set on the
first one.
For tso/checksum offloads, a new "advanced" descriptor format has to be
used.
Change wcd_txdescs to a union defining all types of descriptors (they
are all 16-bytes wide).
Define a new tx function wm_nq_start(), which handle newer devices.
There is some code duplication with wm_start(), but adding support to
the existing wm_start() would make it a if () {} else {} maze. This also
allows to get rid of some workaround for older chips that are not needed
here.
Use wm_nq_start() instead of wm_start() for the I350 (this should probably
be for all WM_F_NEWQUEUE devices, but I have no hardware but the I350 to
test). Call ifp->if_start() instead of wm_start() where is matters.
Tested on a I350, and a i80003 (which use the old format), both with and
without vlans, with and without checksum offloads.
Enable VLAN hardware tagging on all chips that have the new queue mechanism.
Tested with 82575{EB,GB}, 82576, 82580, I350 and ICH9.
Shut up gcc about some uninitialized variables.

Revision 1.48 / (download) - annotate - [select for diffs], Wed Aug 29 20:39:24 2012 UTC (11 years, 6 months ago) by bouyer
Branch: MAIN
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6
Branch point for: tls-maxphys
Changes since 1.47: +58 -1 lines
Diff to previous 1.47 (colored)

Make vlan and all ip/ip6 checksum offload work for the I350.

On newer devices, when using the legacy TX descriptors, vlan-related flags
that were set on the last descriptor of a packet have to be set on the
first one.
For tso/checksum offloads, a new "advanced" descriptor format has to be
used.

Change wcd_txdescs to a union defining all types of descriptors (they
are all 16-bytes wide).
Define a new tx function wm_nq_start(), which handle newer devices.
There is some code duplication with wm_start(), but adding support to
the existing wm_start() would make it a if () {} else {} maze. This also
allows to get rid of some workaround for older chips that are not needed
here.
Use wm_nq_start() instead of wm_start() for the I350 (this should probably
be for all WM_F_NEWQUEUE devices, but I have no hardware but the I350 to
test). Call ifp->if_start() instead of wm_start() where is matters.

Tested on a I350, and a i80003 (which use the old format), both with and
without vlans, with and without checksum offloads.

Revision 1.46.2.1 / (download) - annotate - [select for diffs], Thu Jun 28 16:06:36 2012 UTC (11 years, 8 months ago) by riz
Branch: netbsd-6
CVS Tags: netbsd-6-0-RC1
Branch point for: matt-nb6-plus
Changes since 1.46: +17 -1 lines
Diff to previous 1.46 (colored)

Pull up following revision(s) (requested by msaitoh in ticket #362):
sys/dev/pci/if_wm.c             1.228
        sys/dev/pci/if_wmreg.h          1.47
        sys/dev/pci/if_wmvar.h          1.13
        sys/dev/pci/pcidevs             1.1117
        sys/dev/pci/pcidevs.h           regen
        sys/dev/pci/pcidevs_data.h      regen
        share/man/man4/wm.4             1.22-1.25

                Add support for Intel I350 Ethernet.
                Update document.

Revision 1.45.8.2 / (download) - annotate - [select for diffs], Sat Jun 2 11:09:18 2012 UTC (11 years, 9 months ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.45.8.1: +17 -1 lines
Diff to previous 1.45.8.1 (colored) to branchpoint 1.45 (colored) next main 1.46 (colored)

sync to latest -current.

Revision 1.47 / (download) - annotate - [select for diffs], Fri May 25 23:37:38 2012 UTC (11 years, 9 months ago) by msaitoh
Branch: MAIN
CVS Tags: jmcneill-usbmp-base10
Changes since 1.46: +17 -1 lines
Diff to previous 1.46 (colored)

Add support Intel I350 Ethernet.

Revision 1.45.4.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:07:50 2012 UTC (11 years, 10 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.45: +7 -7 lines
Diff to previous 1.45 (colored)

sync with head

Revision 1.45.8.1 / (download) - annotate - [select for diffs], Sat Feb 18 07:34:43 2012 UTC (12 years ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.45: +7 -7 lines
Diff to previous 1.45 (colored)

merge to -current.

Revision 1.24.20.6 / (download) - annotate - [select for diffs], Thu Jan 5 11:54:05 2012 UTC (12 years, 1 month ago) by sborrill
Branch: netbsd-5
CVS Tags: netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2
Changes since 1.24.20.5: +7 -7 lines
Diff to previous 1.24.20.5 (colored) to branchpoint 1.24 (colored)

Pull up the following revisions(s) (requested by dyoung in ticket #1703):
	sys/dev/pci/if_wmreg.h:	revision 1.46

Mark all of the wm(4) Rx descriptor fields 'volatile' so that the compiler
will not re-order accesses.  Some versions of GCC (such as one in NetBSD
5.x) definitely do re-order reads from these fields if they're not
marked volatile.

Revision 1.46 / (download) - annotate - [select for diffs], Tue Dec 20 21:27:29 2011 UTC (12 years, 2 months ago) by dyoung
Branch: MAIN
CVS Tags: yamt-pagecache-base5, yamt-pagecache-base4, netbsd-6-base, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2
Branch point for: netbsd-6
Changes since 1.45: +7 -7 lines
Diff to previous 1.45 (colored)

Mark all of the Rx descriptor fields 'volatile' so that the compiler
will not re-order accesses.  Some versions of GCC (such as one in NetBSD
5.x) definitely do re-order reads from these fields if they're not
marked volatile.

Revision 1.44.2.1 / (download) - annotate - [select for diffs], Mon Jun 6 09:08:16 2011 UTC (12 years, 9 months ago) by jruoho
Branch: jruoho-x86intr
Changes since 1.44: +7 -2 lines
Diff to previous 1.44 (colored) next main 1.45 (colored)

Sync with HEAD.

Revision 1.40.2.3 / (download) - annotate - [select for diffs], Tue May 31 03:04:41 2011 UTC (12 years, 9 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.40.2.2: +6 -1 lines
Diff to previous 1.40.2.2 (colored) to branchpoint 1.40 (colored) next main 1.41 (colored)

sync with head

Revision 1.45 / (download) - annotate - [select for diffs], Fri May 20 01:51:36 2011 UTC (12 years, 9 months ago) by msaitoh
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, rmind-uvmplock-nbase, rmind-uvmplock-base, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base, jmcneill-audiomp3-base, jmcneill-audiomp3, cherry-xenmp-base, cherry-xenmp
Branch point for: yamt-pagecache, jmcneill-usbmp
Changes since 1.44: +7 -2 lines
Diff to previous 1.44 (colored)

Add PCH2 support.

Revision 1.40.2.2 / (download) - annotate - [select for diffs], Sat Mar 5 20:53:45 2011 UTC (13 years ago) by rmind
Branch: rmind-uvmplock
Changes since 1.40.2.1: +5 -5 lines
Diff to previous 1.40.2.1 (colored) to branchpoint 1.40 (colored)

sync with head

Revision 1.24.20.5 / (download) - annotate - [select for diffs], Fri Nov 19 23:40:28 2010 UTC (13 years, 3 months ago) by riz
Branch: netbsd-5
CVS Tags: matt-nb5-pq3-base, matt-nb5-pq3
Changes since 1.24.20.4: +134 -14 lines
Diff to previous 1.24.20.4 (colored) to branchpoint 1.24 (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.36.2.2 / (download) - annotate - [select for diffs], Tue Aug 17 06:46:26 2010 UTC (13 years, 6 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.36.2.1: +24 -7 lines
Diff to previous 1.36.2.1 (colored) to branchpoint 1.36 (colored) next main 1.37 (colored)

Sync with HEAD.

Revision 1.24.10.4 / (download) - annotate - [select for diffs], Wed Aug 11 22:53:49 2010 UTC (13 years, 6 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.24.10.3: +25 -8 lines
Diff to previous 1.24.10.3 (colored) to branchpoint 1.24 (colored) next main 1.25 (colored)

sync with head.

Revision 1.44 / (download) - annotate - [select for diffs], Wed Jul 14 00:11:06 2010 UTC (13 years, 7 months ago) by msaitoh
Branch: MAIN
CVS Tags: yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, matt-mips64-premerge-20101231, jruoho-x86intr-base, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: jruoho-x86intr
Changes since 1.43: +5 -5 lines
Diff to previous 1.43 (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.40.2.1 / (download) - annotate - [select for diffs], Sat Jul 3 01:19:37 2010 UTC (13 years, 8 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.40: +21 -4 lines
Diff to previous 1.40 (colored)

sync with head

Revision 1.43 / (download) - annotate - [select for diffs], Fri Jun 25 04:16:28 2010 UTC (13 years, 8 months ago) by msaitoh
Branch: MAIN
Changes since 1.42: +3 -3 lines
Diff to previous 1.42 (colored)

fix comment.

Revision 1.42 / (download) - annotate - [select for diffs], Fri Jun 25 04:03:14 2010 UTC (13 years, 8 months ago) by msaitoh
Branch: MAIN
Changes since 1.41: +19 -2 lines
Diff to previous 1.41 (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.41 / (download) - annotate - [select for diffs], Fri Jun 25 03:47:57 2010 UTC (13 years, 8 months ago) by msaitoh
Branch: MAIN
Changes since 1.40: +2 -2 lines
Diff to previous 1.40 (colored)

The GIO master enable bit in STATUS register is not bit 16 but bit 19.
It will fix a problem in the reset sequence on PCI-e chips.

Revision 1.36.2.1 / (download) - annotate - [select for diffs], Fri Apr 30 14:43:38 2010 UTC (13 years, 10 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.36: +156 -15 lines
Diff to previous 1.36 (colored)

Sync with HEAD.

Revision 1.24.26.1.2.1 / (download) - annotate - [select for diffs], Wed Apr 21 00:27:42 2010 UTC (13 years, 10 months ago) by matt
Branch: matt-nb5-mips64
CVS Tags: matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-k15
Changes since 1.24.26.1: +46 -3 lines
Diff to previous 1.24.26.1 (colored) next main 1.25 (colored)

sync to netbsd-5

Revision 1.24.10.3 / (download) - annotate - [select for diffs], Thu Mar 11 15:03:49 2010 UTC (13 years, 11 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.24.10.2: +192 -19 lines
Diff to previous 1.24.10.2 (colored) to branchpoint 1.24 (colored)

sync with head

Revision 1.40 / (download) - annotate - [select for diffs], Sun Mar 7 09:05:19 2010 UTC (13 years, 11 months ago) by msaitoh
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9, uebayasi-xip-base1
Branch point for: rmind-uvmplock
Changes since 1.39: +31 -2 lines
Diff to previous 1.39 (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.39 / (download) - annotate - [select for diffs], Sun Mar 7 07:53:37 2010 UTC (13 years, 11 months ago) by msaitoh
Branch: MAIN
Changes since 1.38: +9 -1 lines
Diff to previous 1.38 (colored)

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

Revision 1.38 / (download) - annotate - [select for diffs], Tue Feb 16 15:17:17 2010 UTC (14 years ago) by msaitoh
Branch: MAIN
Changes since 1.37: +116 -12 lines
Diff to previous 1.37 (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.37 / (download) - annotate - [select for diffs], Tue Feb 16 10:06:19 2010 UTC (14 years ago) by msaitoh
Branch: MAIN
Changes since 1.36: +2 -2 lines
Diff to previous 1.36 (colored)

indent, tabify and remove extra spaces.

Revision 1.36 / (download) - annotate - [select for diffs], Thu Feb 4 09:13:23 2010 UTC (14 years, 1 month ago) by msaitoh
Branch: MAIN
CVS Tags: uebayasi-xip-base
Branch point for: uebayasi-xip
Changes since 1.35: +10 -2 lines
Diff to previous 1.35 (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.24.20.4 / (download) - annotate - [select for diffs], Wed Jan 27 22:27:42 2010 UTC (14 years, 1 month 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, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1
Changes since 1.24.20.3: +30 -6 lines
Diff to previous 1.24.20.3 (colored) to branchpoint 1.24 (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.35 / (download) - annotate - [select for diffs], Thu Jan 14 18:56:02 2010 UTC (14 years, 1 month ago) by msaitoh
Branch: MAIN
Changes since 1.34: +9 -1 lines
Diff to previous 1.34 (colored)

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

Revision 1.34 / (download) - annotate - [select for diffs], Tue Jan 12 22:26:30 2010 UTC (14 years, 1 month ago) by msaitoh
Branch: MAIN
Changes since 1.33: +3 -1 lines
Diff to previous 1.33 (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.33 / (download) - annotate - [select for diffs], Mon Jan 11 12:29:28 2010 UTC (14 years, 1 month ago) by msaitoh
Branch: MAIN
Changes since 1.32: +4 -1 lines
Diff to previous 1.32 (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.32 / (download) - annotate - [select for diffs], Thu Jan 7 17:45:58 2010 UTC (14 years, 1 month ago) by msaitoh
Branch: MAIN
Changes since 1.31: +10 -1 lines
Diff to previous 1.31 (colored)

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

Revision 1.31 / (download) - annotate - [select for diffs], Thu Jan 7 17:34:38 2010 UTC (14 years, 1 month ago) by msaitoh
Branch: MAIN
Changes since 1.30: +2 -2 lines
Diff to previous 1.30 (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.30 / (download) - annotate - [select for diffs], Tue Jan 5 10:02:01 2010 UTC (14 years, 2 months ago) by msaitoh
Branch: MAIN
Changes since 1.29: +5 -4 lines
Diff to previous 1.29 (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.29 / (download) - annotate - [select for diffs], Tue Dec 29 16:01:21 2009 UTC (14 years, 2 months ago) by msaitoh
Branch: MAIN
Changes since 1.28: +2 -1 lines
Diff to previous 1.28 (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.24.20.3 / (download) - annotate - [select for diffs], Wed Dec 23 10:37:37 2009 UTC (14 years, 2 months ago) by sborrill
Branch: netbsd-5
Changes since 1.24.20.2: +7 -1 lines
Diff to previous 1.24.20.2 (colored) to branchpoint 1.24 (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.24.24.2 / (download) - annotate - [select for diffs], Thu Jul 23 23:31:58 2009 UTC (14 years, 7 months ago) by jym
Branch: jym-xensuspend
Changes since 1.24.24.1: +7 -1 lines
Diff to previous 1.24.24.1 (colored) to branchpoint 1.24 (colored) next main 1.25 (colored)

Sync with HEAD.

Revision 1.24.26.1 / (download) - annotate - [select for diffs], Sun Jul 19 19:48:26 2009 UTC (14 years, 7 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.24: +3 -1 lines
Diff to previous 1.24 (colored) next main 1.25 (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.24.10.2 / (download) - annotate - [select for diffs], Sat Jul 18 14:53:05 2009 UTC (14 years, 7 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.24.10.1: +7 -1 lines
Diff to previous 1.24.10.1 (colored) to branchpoint 1.24 (colored)

sync with head.

Revision 1.28 / (download) - annotate - [select for diffs], Tue Jul 14 00:00:44 2009 UTC (14 years, 7 months ago) by msaitoh
Branch: MAIN
CVS Tags: yamt-nfs-mp-base8, yamt-nfs-mp-base7, yamt-nfs-mp-base6, matt-premerge-20091211, jymxensuspend-base, jym-xensuspend-nbase
Changes since 1.27: +7 -1 lines
Diff to previous 1.27 (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.24.20.2 / (download) - annotate - [select for diffs], Thu May 21 01:13:49 2009 UTC (14 years, 9 months ago) by snj
Branch: netbsd-5
Changes since 1.24.20.1: +6 -1 lines
Diff to previous 1.24.20.1 (colored) to branchpoint 1.24 (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.24.24.1 / (download) - annotate - [select for diffs], Wed May 13 17:20:26 2009 UTC (14 years, 9 months ago) by jym
Branch: jym-xensuspend
Changes since 1.24: +16 -1 lines
Diff to previous 1.24 (colored)

Sync with HEAD.

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

Revision 1.24.10.1 / (download) - annotate - [select for diffs], Mon May 4 08:12:58 2009 UTC (14 years, 10 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.24: +16 -1 lines
Diff to previous 1.24 (colored)

sync with head.

Revision 1.24.20.1 / (download) - annotate - [select for diffs], Sun May 3 17:51:02 2009 UTC (14 years, 10 months ago) by snj
Branch: netbsd-5
Changes since 1.24: +11 -1 lines
Diff to previous 1.24 (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.24.18.1 / (download) - annotate - [select for diffs], Tue Apr 28 07:35:57 2009 UTC (14 years, 10 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.24: +16 -1 lines
Diff to previous 1.24 (colored) next main 1.25 (colored)

Sync with HEAD.

Revision 1.27 / (download) - annotate - [select for diffs], Tue Apr 7 18:23:37 2009 UTC (14 years, 10 months ago) by msaitoh
Branch: MAIN
CVS Tags: yamt-nfs-mp-base5, yamt-nfs-mp-base4, yamt-nfs-mp-base3, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base, jym-xensuspend-base
Changes since 1.26: +3 -1 lines
Diff to previous 1.26 (colored)

Fix about TBI mode. This fix doesn't influence MII mode.
 - 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.26 / (download) - annotate - [select for diffs], Fri Mar 20 07:29:15 2009 UTC (14 years, 11 months ago) by msaitoh
Branch: MAIN
Changes since 1.25: +11 -1 lines
Diff to previous 1.25 (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.25 / (download) - annotate - [select for diffs], Tue Mar 10 03:41:50 2009 UTC (14 years, 11 months ago) by msaitoh
Branch: MAIN
Changes since 1.24: +4 -1 lines
Diff to previous 1.24 (colored)

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

Revision 1.23.6.1 / (download) - annotate - [select for diffs], Mon Feb 18 21:05:58 2008 UTC (16 years ago) by mjf
Branch: mjf-devfs
Changes since 1.23: +5 -5 lines
Diff to previous 1.23 (colored) next main 1.24 (colored)

Sync with HEAD.

Revision 1.14.6.4 / (download) - annotate - [select for diffs], Mon Jan 21 09:44:03 2008 UTC (16 years, 1 month ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.14.6.3: +5 -5 lines
Diff to previous 1.14.6.3 (colored) to branchpoint 1.14 (colored) next main 1.15 (colored)

sync with head

Revision 1.22.8.2 / (download) - annotate - [select for diffs], Wed Jan 9 01:53:51 2008 UTC (16 years, 1 month ago) by matt
Branch: matt-armv6
Changes since 1.22.8.1: +5 -5 lines
Diff to previous 1.22.8.1 (colored) to branchpoint 1.22 (colored) next main 1.23 (colored)

sync with HEAD

Revision 1.23.12.1 / (download) - annotate - [select for diffs], Wed Jan 2 21:54:48 2008 UTC (16 years, 2 months ago) by bouyer
Branch: bouyer-xeni386
CVS Tags: bouyer-xeni386-merge1
Changes since 1.23: +5 -5 lines
Diff to previous 1.23 (colored) next main 1.24 (colored)

Sync with HEAD

Revision 1.23.8.1 / (download) - annotate - [select for diffs], Wed Dec 26 19:46:59 2007 UTC (16 years, 2 months ago) by ad
Branch: vmlocking2
Changes since 1.23: +5 -5 lines
Diff to previous 1.23 (colored) next main 1.24 (colored)

Sync with head.

Revision 1.24 / (download) - annotate - [select for diffs], Tue Dec 25 18:33:41 2007 UTC (16 years, 2 months ago) by perry
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, yamt-lazymbuf-base15, yamt-lazymbuf-base14, wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, wrstuden-revivesa, vmlocking2-base3, simonb-wapbl-nbase, simonb-wapbl-base, simonb-wapbl, nick-net80211-sync-base, nick-net80211-sync, nick-hppapmap-base2, netbsd-5-base, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, mjf-devfs2-base, mjf-devfs2, mjf-devfs-base, matt-mips64-base2, matt-armv6-nbase, matt-armv6-base, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-nbase, hpcarm-cleanup-base, haad-nbase2, haad-dm-base2, haad-dm-base1, haad-dm-base, haad-dm, bouyer-xeni386-nbase, bouyer-xeni386-base, ad-socklock-base1, ad-audiomp2-base, ad-audiomp2
Branch point for: yamt-nfs-mp, nick-hppapmap, netbsd-5-0, netbsd-5, jym-xensuspend
Changes since 1.23: +5 -5 lines
Diff to previous 1.23 (colored)

Convert many of the uses of __attribute__ to equivalent
__packed, __unused and __dead macros from cdefs.h

Revision 1.14.4.4 / (download) - annotate - [select for diffs], Mon Nov 19 21:24:24 2007 UTC (16 years, 3 months ago) by bouyer
Branch: netbsd-3
Changes since 1.14.4.3: +4 -1 lines
Diff to previous 1.14.4.3 (colored) to branchpoint 1.14 (colored) next main 1.15 (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.22.8.1 / (download) - annotate - [select for diffs], Tue Nov 6 23:29:11 2007 UTC (16 years, 3 months ago) by matt
Branch: matt-armv6
CVS Tags: matt-armv6-prevmlocking
Changes since 1.22: +4 -1 lines
Diff to previous 1.22 (colored)

sync with HEAD

Revision 1.14.4.3 / (download) - annotate - [select for diffs], Sun Oct 14 05:07:51 2007 UTC (16 years, 4 months ago) by riz
Branch: netbsd-3
Changes since 1.14.4.2: +69 -1 lines
Diff to previous 1.14.4.2 (colored) to branchpoint 1.14 (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.21.8.2 / (download) - annotate - [select for diffs], Tue Oct 9 13:41:48 2007 UTC (16 years, 4 months ago) by ad
Branch: vmlocking
Changes since 1.21.8.1: +4 -1 lines
Diff to previous 1.21.8.1 (colored) to branchpoint 1.21 (colored) next main 1.22 (colored)

Sync with head.

Revision 1.22.6.1 / (download) - annotate - [select for diffs], Mon Sep 3 16:48:20 2007 UTC (16 years, 6 months ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.22: +4 -1 lines
Diff to previous 1.22 (colored) next main 1.23 (colored)

Sync with HEAD.

Revision 1.14.6.3 / (download) - annotate - [select for diffs], Mon Sep 3 14:37:06 2007 UTC (16 years, 6 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.14.6.2: +72 -1 lines
Diff to previous 1.14.6.2 (colored) to branchpoint 1.14 (colored)

sync with head.

Revision 1.22.2.1 / (download) - annotate - [select for diffs], Mon Sep 3 10:21:04 2007 UTC (16 years, 6 months ago) by skrll
Branch: nick-csl-alignment
Changes since 1.22: +4 -1 lines
Diff to previous 1.22 (colored) next main 1.23 (colored)

Sync with HEAD.

Revision 1.21.2.1.2.1 / (download) - annotate - [select for diffs], Mon Sep 3 07:04:34 2007 UTC (16 years, 6 months ago) by wrstuden
Branch: wrstuden-fixsa
Changes since 1.21.2.1: +4 -1 lines
Diff to previous 1.21.2.1 (colored) next main 1.21.2.2 (colored)

Sync w/ NetBSD-4-RC_1

Revision 1.21.2.2 / (download) - annotate - [select for diffs], Wed Aug 29 16:12:53 2007 UTC (16 years, 6 months ago) by liamjfoy
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-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, matt-nb4-arm-base, matt-nb4-arm
Changes since 1.21.2.1: +4 -1 lines
Diff to previous 1.21.2.1 (colored) to branchpoint 1.21 (colored) next main 1.22 (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.23 / (download) - annotate - [select for diffs], Tue Aug 28 01:10:35 2007 UTC (16 years, 6 months ago) by msaitoh
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, vmlocking2-base2, vmlocking2-base1, vmlocking-nbase, vmlocking-base, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, nick-csl-alignment-base5, jmcneill-pm-base, jmcneill-base, cube-autoconf-base, cube-autoconf, bouyer-xenamd64-base2, bouyer-xenamd64-base, bouyer-xenamd64
Branch point for: vmlocking2, mjf-devfs, bouyer-xeni386
Changes since 1.22: +4 -1 lines
Diff to previous 1.22 (colored)

add ICH9
need more work?

Revision 1.21.10.1 / (download) - annotate - [select for diffs], Wed Jul 11 20:07:46 2007 UTC (16 years, 7 months ago) by mjf
Branch: mjf-ufs-trans
Changes since 1.21: +69 -1 lines
Diff to previous 1.21 (colored) next main 1.22 (colored)

Sync with head.

Revision 1.21.8.1 / (download) - annotate - [select for diffs], Sun May 27 14:30:24 2007 UTC (16 years, 9 months ago) by ad
Branch: vmlocking
Changes since 1.21: +69 -1 lines
Diff to previous 1.21 (colored)

Sync with head.

Revision 1.21.4.1 / (download) - annotate - [select for diffs], Mon May 7 10:55:30 2007 UTC (16 years, 10 months ago) by yamt
Branch: yamt-idlelwp
Changes since 1.21: +69 -1 lines
Diff to previous 1.21 (colored) next main 1.22 (colored)

sync with head.

Revision 1.21.2.1 / (download) - annotate - [select for diffs], Thu May 3 05:07:06 2007 UTC (16 years, 10 months ago) by snj
Branch: netbsd-4
Branch point for: wrstuden-fixsa
Changes since 1.21: +69 -1 lines
Diff to previous 1.21 (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.22 / (download) - annotate - [select for diffs], Sun Apr 29 20:35:21 2007 UTC (16 years, 10 months ago) by bouyer
Branch: MAIN
CVS Tags: yamt-idlelwp-base8, nick-csl-alignment-base, mjf-ufs-trans-base, matt-mips64-base, matt-mips64, hpcarm-cleanup
Branch point for: nick-csl-alignment, matt-armv6, jmcneill-pm
Changes since 1.21: +69 -1 lines
Diff to previous 1.21 (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.14.4.2 / (download) - annotate - [select for diffs], Sat Mar 31 15:25:36 2007 UTC (16 years, 11 months ago) by bouyer
Branch: netbsd-3
Changes since 1.14.4.1: +84 -3 lines
Diff to previous 1.14.4.1 (colored) to branchpoint 1.14 (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.14.6.2 / (download) - annotate - [select for diffs], Sat Dec 30 20:48:46 2006 UTC (17 years, 2 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.14.6.1: +66 -1 lines
Diff to previous 1.14.6.1 (colored) to branchpoint 1.14 (colored)

sync with head.

Revision 1.19.8.2 / (download) - annotate - [select for diffs], Sun Dec 10 07:17:45 2006 UTC (17 years, 2 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.19.8.1: +2 -1 lines
Diff to previous 1.19.8.1 (colored) to branchpoint 1.19 (colored) next main 1.20 (colored)

sync with head.

Revision 1.19.6.1 / (download) - annotate - [select for diffs], Sat Nov 18 21:34:31 2006 UTC (17 years, 3 months ago) by ad
Branch: newlock2
Changes since 1.19: +66 -1 lines
Diff to previous 1.19 (colored) next main 1.20 (colored)

Sync with head.

Revision 1.21 / (download) - annotate - [select for diffs], Thu Nov 16 06:07:54 2006 UTC (17 years, 3 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, thorpej-atomic-base, thorpej-atomic, reinoud-bufcleanup, post-newlock2-merge, newlock2-nbase, newlock2-base, netbsd-4-base, ad-audiomp-base, ad-audiomp
Branch point for: yamt-idlelwp, vmlocking, netbsd-4, mjf-ufs-trans
Changes since 1.20: +2 -1 lines
Diff to previous 1.20 (colored)

wm: add IPv6 rx tcp/udp checksum offloading.

Revision 1.19.8.1 / (download) - annotate - [select for diffs], Sun Oct 22 06:06:17 2006 UTC (17 years, 4 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.19: +65 -1 lines
Diff to previous 1.19 (colored)

sync with head

Revision 1.20 / (download) - annotate - [select for diffs], Sat Oct 21 14:10:33 2006 UTC (17 years, 4 months ago) by bouyer
Branch: MAIN
CVS Tags: yamt-splraiseipl-base2
Changes since 1.19: +65 -1 lines
Diff to previous 1.19 (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.16.4.1 / (download) - annotate - [select for diffs], Sat Sep 9 02:52:18 2006 UTC (17 years, 5 months ago) by rpaulo
Branch: rpaulo-netinet-merge-pcb
Changes since 1.16: +20 -3 lines
Diff to previous 1.16 (colored) next main 1.17 (colored)

sync with head

Revision 1.16.8.1 / (download) - annotate - [select for diffs], Mon Jun 26 12:51:22 2006 UTC (17 years, 8 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.16: +20 -3 lines
Diff to previous 1.16 (colored) next main 1.17 (colored)

sync with head.

Revision 1.14.6.1 / (download) - annotate - [select for diffs], Wed Jun 21 15:05:05 2006 UTC (17 years, 8 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.14: +21 -4 lines
Diff to previous 1.14 (colored)

sync with head.

Revision 1.16.14.1 / (download) - annotate - [select for diffs], Mon Jun 19 04:01:36 2006 UTC (17 years, 8 months ago) by chap
Branch: chap-midi
Changes since 1.16: +20 -3 lines
Diff to previous 1.16 (colored) next main 1.17 (colored)

Sync with head.

Revision 1.19 / (download) - annotate - [select for diffs], Sat Jun 10 14:26:52 2006 UTC (17 years, 8 months ago) by msaitoh
Branch: MAIN
CVS Tags: yamt-splraiseipl-base, yamt-pdpolicy-base9, yamt-pdpolicy-base8, yamt-pdpolicy-base7, yamt-pdpolicy-base6, rpaulo-netinet-merge-pcb-base, gdamore-uart-base, gdamore-uart, chap-midi-nbase, chap-midi-base, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: yamt-splraiseipl, newlock2
Changes since 1.18: +4 -1 lines
Diff to previous 1.18 (colored)

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

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

KNF.

Revision 1.17 / (download) - annotate - [select for diffs], Sat Jun 10 08:01:31 2006 UTC (17 years, 8 months ago) by msaitoh
Branch: MAIN
Changes since 1.16: +17 -3 lines
Diff to previous 1.16 (colored)

fix TX_COLLISION_DISTANCE_FDX and TX_COLLISION_DISTANCE_HDX (swapped).

add some register definitions (EERD, EEWR).

Revision 1.16 / (download) - annotate - [select for diffs], Sun Dec 11 12:22:50 2005 UTC (18 years, 2 months ago) by christos
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5, yamt-uio_vmspace, yamt-pdpolicy-base5, yamt-pdpolicy-base4, yamt-pdpolicy-base3, yamt-pdpolicy-base2, yamt-pdpolicy-base, simonb-timecounters-base, simonb-timecounters, simonb-timcounters-final, peter-altq-base, peter-altq, elad-kernelauth-base, elad-kernelauth
Branch point for: yamt-pdpolicy, rpaulo-netinet-merge-pcb, chap-midi
Changes since 1.15: +1 -1 lines
Diff to previous 1.15 (colored)

merge ktrace-lwp.

Revision 1.5.2.6 / (download) - annotate - [select for diffs], Thu Nov 10 14:06:02 2005 UTC (18 years, 3 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.5.2.5: +2 -2 lines
Diff to previous 1.5.2.5 (colored) next main 1.6 (colored)

Sync with HEAD. Here we go again...

Revision 1.14.4.1 / (download) - annotate - [select for diffs], Sun Aug 28 09:49:37 2005 UTC (18 years, 6 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, 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.14: +2 -2 lines
Diff to previous 1.14 (colored)

Pull up following revision(s) (requested by yamt in ticket #699):
	sys/dev/pci/if_wmreg.h: revision 1.15
fix a typo(?) in an unused macro.  (WRX_ST_ISXM -> WRX_ST_IXSM)

Revision 1.15 / (download) - annotate - [select for diffs], Sun Aug 7 04:56:25 2005 UTC (18 years, 7 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-vop-base3, yamt-vop-base2, yamt-vop-base, yamt-vop, yamt-readahead-pervnode, yamt-readahead-perfile, yamt-readahead-base3, yamt-readahead-base2, yamt-readahead-base, yamt-readahead, thorpej-vnode-attr-base, thorpej-vnode-attr, ktrace-lwp-base
Changes since 1.14: +2 -2 lines
Diff to previous 1.14 (colored)

fix a typo(?) in an unused macro.  (WRX_ST_ISXM -> WRX_ST_IXSM)

Revision 1.13.4.1 / (download) - annotate - [select for diffs], Fri Apr 29 11:29:07 2005 UTC (18 years, 10 months ago) by kent
Branch: kent-audio2
Changes since 1.13: +9 -1 lines
Diff to previous 1.13 (colored) next main 1.14 (colored)

sync with -current

Revision 1.13.6.1 / (download) - annotate - [select for diffs], Sat Mar 19 08:35:11 2005 UTC (18 years, 11 months ago) by yamt
Branch: yamt-km
Changes since 1.13: +9 -1 lines
Diff to previous 1.13 (colored) next main 1.14 (colored)

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

Revision 1.5.2.5 / (download) - annotate - [select for diffs], Fri Mar 4 16:45:21 2005 UTC (19 years ago) by skrll
Branch: ktrace-lwp
Changes since 1.5.2.4: +9 -1 lines
Diff to previous 1.5.2.4 (colored)

Sync with HEAD.

Hi Perry!

Revision 1.14 / (download) - annotate - [select for diffs], Fri Feb 18 04:32:35 2005 UTC (19 years ago) by briggs
Branch: MAIN
CVS Tags: yamt-km-base4, yamt-km-base3, netbsd-3-base, kent-audio2-base
Branch point for: yamt-lazymbuf, netbsd-3
Changes since 1.13: +9 -1 lines
Diff to previous 1.13 (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.10.4.3 / (download) - annotate - [select for diffs], Wed Jan 12 21:36:26 2005 UTC (19 years, 1 month ago) by he
Branch: netbsd-2
CVS Tags: netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1
Changes since 1.10.4.2: +4 -1 lines
Diff to previous 1.10.4.2 (colored) to branchpoint 1.10 (colored) next main 1.11 (colored)

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

Revision 1.10.2.2 / (download) - annotate - [select for diffs], Sat Jan 8 08:59:16 2005 UTC (19 years, 1 month 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.10.2.1: +2 -2 lines
Diff to previous 1.10.2.1 (colored) to branchpoint 1.10 (colored) next main 1.11 (colored)

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

Revision 1.10.4.2 / (download) - annotate - [select for diffs], Sat Jan 8 08:57:26 2005 UTC (19 years, 1 month ago) by jdc
Branch: netbsd-2
Changes since 1.10.4.1: +2 -2 lines
Diff to previous 1.10.4.1 (colored) to branchpoint 1.10 (colored)

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

Revision 1.10.4.1 / (download) - annotate - [select for diffs], Fri Jan 7 11:43:33 2005 UTC (19 years, 1 month ago) by jdc
Branch: netbsd-2
Changes since 1.10: +27 -1 lines
Diff to previous 1.10 (colored)

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

- Add some useful constants related to the Packet Buffer Allocation
  register.
- Add the Receive and Transmit Data FIFO registers.

Revision 1.10.2.1 / (download) - annotate - [select for diffs], Fri Jan 7 11:43:29 2005 UTC (19 years, 1 month ago) by jdc
Branch: netbsd-2-0
Changes since 1.10: +27 -1 lines
Diff to previous 1.10 (colored)

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

- Add some useful constants related to the Packet Buffer Allocation
  register.
- Add the Receive and Transmit Data FIFO registers.

Revision 1.5.2.4 / (download) - annotate - [select for diffs], Tue Oct 19 15:56:59 2004 UTC (19 years, 4 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.5.2.3: +30 -1 lines
Diff to previous 1.5.2.3 (colored)

Sync with HEAD

Revision 1.13 / (download) - annotate - [select for diffs], Tue Oct 5 21:29:56 2004 UTC (19 years, 5 months ago) by thorpej
Branch: MAIN
CVS Tags: yamt-km-base2, yamt-km-base, kent-audio1-beforemerge, kent-audio1-base, kent-audio1
Branch point for: yamt-km, kent-audio2
Changes since 1.12: +4 -1 lines
Diff to previous 1.12 (colored)

Largest Tx descriptor buffer size is actually 4K.

Revision 1.12 / (download) - annotate - [select for diffs], Tue Oct 5 02:17:21 2004 UTC (19 years, 5 months ago) by thorpej
Branch: MAIN
Changes since 1.11: +27 -1 lines
Diff to previous 1.11 (colored)

- Add some useful constants related to the Packet Buffer Allocation
  register.
- Add the Receive and Transmit Data FIFO registers.

Revision 1.5.2.3 / (download) - annotate - [select for diffs], Tue Sep 21 13:31:04 2004 UTC (19 years, 5 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.5.2.2: +1 -1 lines
Diff to previous 1.5.2.2 (colored)

Fix the sync with head I botched.

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

Sync with HEAD.

Revision 1.5.2.1 / (download) - annotate - [select for diffs], Tue Aug 3 10:49:09 2004 UTC (19 years, 7 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.5: +41 -14 lines
Diff to previous 1.5 (colored)

Sync with HEAD

Revision 1.11 / (download) - annotate - [select for diffs], Sun May 16 02:34:47 2004 UTC (19 years, 9 months ago) by thorpej
Branch: MAIN
Changes since 1.10: +9 -2 lines
Diff to previous 1.10 (colored)

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

Revision 1.10 / (download) - annotate - [select for diffs], Thu Feb 19 05:19:52 2004 UTC (20 years ago) by thorpej
Branch: MAIN
CVS Tags: netbsd-2-base, netbsd-2-0-base, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1
Branch point for: netbsd-2-0, netbsd-2
Changes since 1.9: +2 -2 lines
Diff to previous 1.9 (colored)

s/WTC_DTYP_D/WTX_DTYP_D/

Revision 1.9 / (download) - annotate - [select for diffs], Wed Jan 14 14:29:48 2004 UTC (20 years, 1 month ago) by tsutsui
Branch: MAIN
Changes since 1.8: +10 -12 lines
Diff to previous 1.8 (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.8 / (download) - annotate - [select for diffs], Fri Nov 7 06:03:52 2003 UTC (20 years, 4 months ago) by thorpej
Branch: MAIN
Changes since 1.7: +2 -1 lines
Diff to previous 1.7 (colored)

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

Revision 1.7 / (download) - annotate - [select for diffs], Tue Oct 21 05:07:10 2003 UTC (20 years, 4 months ago) by thorpej
Branch: MAIN
Changes since 1.6: +2 -2 lines
Diff to previous 1.6 (colored)

Fix a typo.

Revision 1.6 / (download) - annotate - [select for diffs], Tue Oct 21 04:39:32 2003 UTC (20 years, 4 months ago) by thorpej
Branch: MAIN
Changes since 1.5: +22 -1 lines
Diff to previous 1.5 (colored)

Add some additional register definitions needed for newer chips:
- Control register shadow
- SPI EEPROM stuff

Revision 1.1.6.4 / (download) - annotate - [select for diffs], Fri Jun 20 07:01:00 2003 UTC (20 years, 8 months ago) by msaitoh
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.1.6.3: +3 -3 lines
Diff to previous 1.1.6.3 (colored) to branchpoint 1.1 (colored) next main 1.2 (colored)

Pull up revision 1.5 (requested by matt in ticket #1299):
 FIx to recognize the PHY on i83543 correctly.

Revision 1.5 / (download) - annotate - [select for diffs], Fri May 30 02:08:55 2003 UTC (20 years, 9 months ago) by matt
Branch: MAIN
Branch point for: ktrace-lwp
Changes since 1.4: +3 -3 lines
Diff to previous 1.4 (colored)

Use proper shift marcos for EXT.  This makes the PHY on i83543 get
recognized.  From Doug Donsbach <dldonsbach at tds dot net>

Revision 1.1.6.3 / (download) - annotate - [select for diffs], Thu Nov 21 18:35:44 2002 UTC (21 years, 3 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.1.6.2: +1 -1 lines
Diff to previous 1.1.6.2 (colored) to branchpoint 1.1 (colored)

Pull up revision 1.4 (requested by yamt in ticket #925):
fix typos; "wiseman" is 82542, not 82452.

Revision 1.1.2.5 / (download) - annotate - [select for diffs], Mon Nov 11 22:11:14 2002 UTC (21 years, 3 months ago) by nathanw
Branch: nathanw_sa
CVS Tags: nathanw_sa_end
Changes since 1.1.2.4: +2 -2 lines
Diff to previous 1.1.2.4 (colored) to branchpoint 1.1 (colored) next main 1.2 (colored)

Catch up to -current

Revision 1.1.6.2 / (download) - annotate - [select for diffs], Fri Nov 8 08:50:42 2002 UTC (21 years, 3 months ago) by tron
Branch: netbsd-1-6
Changes since 1.1.6.1: +8 -1 lines
Diff to previous 1.1.6.1 (colored) to branchpoint 1.1 (colored)

Pull up revision 1.3 (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.4 / (download) - annotate - [select for diffs], Fri Oct 18 00:56:16 2002 UTC (21 years, 4 months ago) by yamt
Branch: MAIN
CVS Tags: nathanw_sa_before_merge, nathanw_sa_base, kqueue-beforemerge, kqueue-aftermerge, gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw, fvdl_fs64_base
Changes since 1.3: +2 -2 lines
Diff to previous 1.3 (colored)

fix typos; "wiseman" is 82542, not 82452.

Revision 1.1.8.3 / (download) - annotate - [select for diffs], Fri Sep 6 08:45:22 2002 UTC (21 years, 6 months ago) by jdolecek
Branch: kqueue
Changes since 1.1.8.2: +10 -3 lines
Diff to previous 1.1.8.2 (colored) to branchpoint 1.1 (colored) next main 1.2 (colored)

sync kqueue branch with HEAD

Revision 1.1.4.2 / (download) - annotate - [select for diffs], Thu Aug 29 05:22:40 2002 UTC (21 years, 6 months ago) by gehenna
Branch: gehenna-devsw
Changes since 1.1.4.1: +8 -1 lines
Diff to previous 1.1.4.1 (colored) to branchpoint 1.1 (colored) next main 1.2 (colored)

catch up with -current.

Revision 1.1.2.4 / (download) - annotate - [select for diffs], Tue Aug 13 02:19:40 2002 UTC (21 years, 6 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.1.2.3: +8 -1 lines
Diff to previous 1.1.2.3 (colored) to branchpoint 1.1 (colored)

Catch up to -current.

Revision 1.3 / (download) - annotate - [select for diffs], Thu Aug 8 00:12:08 2002 UTC (21 years, 7 months ago) by thorpej
Branch: MAIN
CVS Tags: kqueue-base, gehenna-devsw-base
Changes since 1.2: +8 -1 lines
Diff to previous 1.2 (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.1.2.3 / (download) - annotate - [select for diffs], Thu Aug 1 02:45:21 2002 UTC (21 years, 7 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.1.2.2: +3 -3 lines
Diff to previous 1.1.2.2 (colored) to branchpoint 1.1 (colored)

Catch up to -current.

Revision 1.1.6.1 / (download) - annotate - [select for diffs], Mon Jul 15 16:14:01 2002 UTC (21 years, 7 months ago) by thorpej
Branch: netbsd-1-6
CVS Tags: netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1
Changes since 1.1: +3 -3 lines
Diff to previous 1.1 (colored)

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

Original log message:
Correct the description of two bits in the TCP context descriptor.

Revision 1.1.4.1 / (download) - annotate - [select for diffs], Mon Jul 15 10:35:39 2002 UTC (21 years, 7 months ago) by gehenna
Branch: gehenna-devsw
Changes since 1.1: +3 -3 lines
Diff to previous 1.1 (colored)

catch up with -current.

Revision 1.2 / (download) - annotate - [select for diffs], Sun Jul 14 00:56:22 2002 UTC (21 years, 7 months ago) by thorpej
Branch: MAIN
Changes since 1.1: +3 -3 lines
Diff to previous 1.1 (colored)

Correct the description of two bits in the TCP context descriptor.

Revision 1.1.8.2 / (download) - annotate - [select for diffs], Sun Jun 23 17:47:47 2002 UTC (21 years, 8 months ago) by jdolecek
Branch: kqueue
Changes since 1.1.8.1: +509 -0 lines
Diff to previous 1.1.8.1 (colored) to branchpoint 1.1 (colored)

catch up with -current on kqueue branch

Revision 1.1.2.2 / (download) - annotate - [select for diffs], Mon Apr 1 07:46:28 2002 UTC (21 years, 11 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.1.2.1: +509 -0 lines
Diff to previous 1.1.2.1 (colored) to branchpoint 1.1 (colored)

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

Revision 1.1.8.1, Thu Mar 28 04:54:35 2002 UTC (21 years, 11 months ago) by jdolecek
Branch: kqueue
Changes since 1.1: +0 -509 lines
FILE REMOVED

file if_wmreg.h was added on branch kqueue on 2002-06-23 17:47:47 +0000

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

file if_wmreg.h was added on branch nathanw_sa on 2002-04-01 07:46:28 +0000

Revision 1.1 / (download) - annotate - [select for diffs], Thu Mar 28 04:54:35 2002 UTC (21 years, 11 months ago) by thorpej
Branch: MAIN
CVS Tags: netbsd-1-6-base
Branch point for: netbsd-1-6, nathanw_sa, kqueue, gehenna-devsw

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>