The NetBSD Project

CVS log for src/sys/dev/mii/makphy.c

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.73 / (download) - annotate - [select for diffs], Fri Feb 9 22:08:35 2024 UTC (3 weeks, 3 days ago) by andvar
Branch: MAIN
CVS Tags: triaxx-drm, HEAD
Changes since 1.72: +3 -3 lines
Diff to previous 1.72 (colored)

fix spelling mistakes, mainly in comments and log messages.

Revision 1.60.2.4 / (download) - annotate - [select for diffs], Sat Jan 29 16:59:31 2022 UTC (2 years, 1 month ago) by martin
Branch: netbsd-9
CVS Tags: netbsd-9-3-RELEASE
Changes since 1.60.2.3: +62 -14 lines
Diff to previous 1.60.2.3 (colored) to branchpoint 1.60 (colored) next main 1.61 (colored)

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

	sys/dev/mii/makphy.c				1.67,1.69-1.72
	sys/dev/mii/makphyvar.h				1.3-1.4

- Add I347-AT4 support.
- Add three workarounds for QEMU e1000:
  - QEMU sets BMSR_EXTSTAT but the access to register 15 fails.
    Set EXTSR_1000TFDX and EXTSR_1000THDX if the access failed in the
    attach function. It's just a cosmetic change.
  - Marvell 88E1[01]11 have the Fiber/Copper auto selection feature,
    but QEMU doesn't implement it. If the register access failed,
    the media is regarded as copper only. It's just a cosmetic change.
  - QEMU provides the PHY specific status register at 0x11 but the
    link indication bit (PSSR_LINK) is always 1. It causes
    "virsh domif-setlink xxx yyy down" doesn't work. To avoid this
    problem, read the BMSR and check the BMSR_LINK bit. Add
    MAKPHY_QUIRK_PSSR_LINK bit for this quirk. Set it if MII_EXTSR
    doesn't exist because it's one of the case of QEMU.
- Reduce the number of access to the ESSR register. One of the reason
  is that the register is not implemented on QEMU. Another reason is
  that it's not required to access the register if the device is in
  the copper only mode.

Revision 1.42.8.6 / (download) - annotate - [select for diffs], Sat Jan 29 16:56:18 2022 UTC (2 years, 1 month ago) by martin
Branch: netbsd-8
Changes since 1.42.8.5: +3 -4 lines
Diff to previous 1.42.8.5 (colored) to branchpoint 1.42 (colored) next main 1.43 (colored)

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

	sys/dev/mii/igphy.c: revision 1.37
	sys/dev/mii/ihphy.c: revision 1.19
	sys/dev/mii/makphy.c: revision 1.68

  Fix a bug that "ifconfig xx0 media none" set LINK_STATE_UNKNOWN instead of
LINK_STATE_DOWN.

XXX We should check for other PHY drivers, too.

Revision 1.60.2.3 / (download) - annotate - [select for diffs], Sat Jan 29 16:54:42 2022 UTC (2 years, 1 month ago) by martin
Branch: netbsd-9
Changes since 1.60.2.2: +3 -4 lines
Diff to previous 1.60.2.2 (colored) to branchpoint 1.60 (colored)

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

	sys/dev/mii/igphy.c: revision 1.37
	sys/dev/mii/ihphy.c: revision 1.19
	sys/dev/mii/makphy.c: revision 1.68

  Fix a bug that "ifconfig xx0 media none" set LINK_STATE_UNKNOWN instead of
LINK_STATE_DOWN.

XXX We should check for other PHY drivers, too.

Revision 1.72 / (download) - annotate - [select for diffs], Thu Jan 6 07:39:10 2022 UTC (2 years, 1 month ago) by msaitoh
Branch: MAIN
CVS Tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, netbsd-10-base, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, bouyer-sunxi-drm-base, bouyer-sunxi-drm
Changes since 1.71: +26 -4 lines
Diff to previous 1.71 (colored)

QEMU e1000's PHY code doesn't reflect the PSSR_LINK bit. Do workaround.

   IEEE 802.3 clause 22's PHY device has a link status bit in the BMCR
  register, but it's required to read twice to get the correct value.
  Almost all PHY devices have the vendor specific register which has
  the link status bit that it's not required to read twice. makphy(4)
  use the bit in the PSSR register to reduce the access cost.

   QEMU's e1000 provides the PHY specific status register at 0x11 but the
  link indication bit (PSSR_LINK.) is always 1 because
  e1000x_update_regs_on_link_{down,up}() modify MII_SR_LINK_STATUS
  (BMSR_LINK in NetBSD) but don't modify PSSR_LINK. It causes
  "virsh domif-setlink xxx yyy down" doesn't work.
  To avoid this problem, read the BMSR and check the BMSR_LINK bit. Add
  MAKPHY_QUIRK_PSSR_LINK bit for this quirk. Set it if MII_EXTSR doesn't
  exist because it's one of the case of QEMU.

  Found and tested by ozaki-r.

Revision 1.71 / (download) - annotate - [select for diffs], Tue Dec 28 06:36:29 2021 UTC (2 years, 2 months ago) by msaitoh
Branch: MAIN
Changes since 1.70: +15 -9 lines
Diff to previous 1.70 (colored)

Reduce the access of the ESSR register.

 - makphyattach() have a code to detect the Fiber/Copper auto selection
   feature. Save the info to sc_flags to reduce the access
   to the ESSR register. One of the reason is that the register is not
   implemented on QEMU. Another reason is that it's not required to
   access the register if the device is in the copper only mode.

Revision 1.70 / (download) - annotate - [select for diffs], Tue Dec 28 06:35:37 2021 UTC (2 years, 2 months ago) by msaitoh
Branch: MAIN
Changes since 1.69: +14 -4 lines
Diff to previous 1.69 (colored)

QEMU e1000's PHY code doesn't implement register 16. Do workaround.

 - Marvell 88E1[01]11 (and many other Marvell PHYs) have the Fiber/Copper
   auto selection feature. Our makphy(4) implement it but QEMU doesn't.
   If it fails, a garbage data is used in the attach function and unexpected
   media may be used. Fix this behavior by checking the return value of
   PHY_READ(MAKPHY_ESSR). If the access failed, the media is regarded
   as copper only. It's just a cosmetic change. It's not affected to the
   packet processing.

Revision 1.69 / (download) - annotate - [select for diffs], Tue Dec 28 06:34:40 2021 UTC (2 years, 2 months ago) by msaitoh
Branch: MAIN
Changes since 1.68: +13 -4 lines
Diff to previous 1.68 (colored)

QEMU e1000's PHY code doesn't implement page 0 register 15. Do workaround.

 - The BMSR register bit 8 (BMSR_EXTSTAT) denote the existence of page 0
   register 15. qemu's e1000 sets BMSR_EXTSTAT but the access to register 15
   fails. It doesn't conforms to the IEEE standard. Our makphy automatically
   check the existence of 1000BASE-T or 1000BASE-SX by accessing the register
   15. If the access failed, neither 1000BASE-T nor 1000BASE-SX is set to
   the ability(mii_extcapabilities). Set EXTSR_1000TFDX and EXTSR_1000THDX
   if the access failed in the attach function. It's just a cosmetic change.
   It's not affected to the packet processing.

Revision 1.67.2.1 / (download) - annotate - [select for diffs], Mon Dec 14 14:38:06 2020 UTC (3 years, 2 months ago) by thorpej
Branch: thorpej-futex
Changes since 1.67: +3 -4 lines
Diff to previous 1.67 (colored) next main 1.68 (colored)

Sync w/ HEAD.

Revision 1.68 / (download) - annotate - [select for diffs], Wed Nov 4 09:15:10 2020 UTC (3 years, 4 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-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.67: +3 -4 lines
Diff to previous 1.67 (colored)

 Fix a bug that "ifconfig xx0 media none" set LINK_STATE_UNKNOWN instead of
LINK_STATE_DOWN.

XXX We should check for other PHY drivers, too.

Revision 1.67 / (download) - annotate - [select for diffs], Tue Oct 20 08:53:34 2020 UTC (3 years, 4 months ago) by msaitoh
Branch: MAIN
Branch point for: thorpej-futex
Changes since 1.66: +3 -2 lines
Diff to previous 1.66 (colored)

Add Intel I347-AT4.

Revision 1.42.8.5 / (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.42.8.4: +9 -9 lines
Diff to previous 1.42.8.4 (colored) to branchpoint 1.42 (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.60.2.2 / (download) - annotate - [select for diffs], Wed Aug 5 15:14:18 2020 UTC (3 years, 6 months ago) by martin
Branch: netbsd-9
CVS Tags: netbsd-9-2-RELEASE, netbsd-9-1-RELEASE
Changes since 1.60.2.1: +9 -9 lines
Diff to previous 1.60.2.1 (colored) to branchpoint 1.60 (colored)

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

	sys/dev/mii/igphy.c: revision 1.35
	sys/dev/mii/igphy.c: revision 1.36
	sys/dev/mii/igphyreg.h: revision 1.12
	sys/dev/mii/igphyreg.h: revision 1.13
	sys/dev/mii/makphyreg.h: revision 1.11
	sys/dev/pci/if_wm.c: revision 1.682
	sys/dev/pci/if_wm.c: revision 1.683
	sys/dev/pci/if_wm.c: revision 1.684
	sys/dev/pci/if_wm.c: revision 1.685
	sys/dev/mii/makphy.c: revision 1.66

s/MII_IGPHY_/IGPHY_/. No functional change.

Rename PSSR_* to MAKPHY_PSSR_* and IGPHY_PSSR_* to avoid conflict.
No functional change.

  Setup PCS and SGMII for SFP correctly. It still doesn't support SFP
insertion/removal.

Copper:
wm2: SGMII(SFP)
wm2: 0x1043c440<SPI,IOH_VALID,PCIE,SGMII,NEWQUEUE,ASF_FIRM,EEE,SFP>
makphy0 at wm2 phy 6: Marvell 88E1111 Gigabit PHY, rev. 1

Fiber:
wm3: SERDES(SFP)
wm3: 0x10034440<SPI,IOH_VALID,PCIE,NEWQUEUE,ASF_FIRM,SFP>
wm3: 1000baseSX, 1000baseSX-FDX, auto

  Explicitly cast from uint16_t to uint32_t before shifting 16bit left
when printing Image Unique ID. Found by kUBSan.

  Set if_baudrate for non-MII device. Before this commit, it was 0.

Revision 1.66 / (download) - annotate - [select for diffs], Mon Aug 3 07:25:59 2020 UTC (3 years, 7 months ago) by msaitoh
Branch: MAIN
Changes since 1.65: +9 -9 lines
Diff to previous 1.65 (colored)

Rename PSSR_* to MAKPHY_PSSR_* and IGPHY_PSSR_* to avoid conflict.
No functional change.

Revision 1.45.2.2 / (download) - annotate - [select for diffs], Mon Apr 13 08:04:24 2020 UTC (3 years, 10 months ago) by martin
Branch: phil-wifi
Changes since 1.45.2.1: +98 -26 lines
Diff to previous 1.45.2.1 (colored) to branchpoint 1.45 (colored) next main 1.46 (colored)

Mostly merge changes from HEAD upto 20200411

Revision 1.65 / (download) - annotate - [select for diffs], Sun Mar 15 23:04:50 2020 UTC (3 years, 11 months ago) by thorpej
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh
Changes since 1.64: +11 -2 lines
Diff to previous 1.64 (colored)

Define and implement a locking protocol for the ifmedia / mii layers:
- MP-safe drivers provide a mutex to ifmedia that is used to serialize
  access to media-related structures / hardware regsiters.  Converted
  drivers use the new ifmedia_init_with_lock() function for this.  The
  new name is provided to ease the transition.
- Un-converted drivers continue to call ifmedia_init(), which will supply
  a compatibility lock to be used instead.  Several media-related entry
  points must be aware of this compatibility lock, and are able to acquire
  it recursively a limited number of times, if needed.  This is a SPIN
  mutex with priority IPL_NET.
- This same lock is used to serialize access to PHY registers and other
  MII-related data structures.

The PHY drivers are modified to acquire and release the lock, as needed,
and assert the lock is held as a diagnostic aid.

The "usbnet" framework has had an overhaul of its internal locking
protocols to fit in with the media / mii changes, and the drivers adapted.

USB wifi drivers have been changed to provide their own adaptive mutex
to the ifmedia later via a new ieee80211_media_init_with_lock() function.
This is required because the USB drivers need an adaptive mutex.

Besised "usbnet", a few other drivers are converted: vmx, wm, ixgbe / ixv.

mcx also now calls ifmedia_init_with_lock() because it needs to also use
an adaptive mutex.  The mcx driver still needs to be fully converted to
NET_MPSAFE.

Revision 1.63.2.1 / (download) - annotate - [select for diffs], Sat Feb 29 20:19:09 2020 UTC (4 years ago) by ad
Branch: ad-namecache
Changes since 1.63: +3 -3 lines
Diff to previous 1.63 (colored) next main 1.64 (colored)

Sync with head.

Revision 1.60.2.1 / (download) - annotate - [select for diffs], Tue Jan 28 11:04:14 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.60: +89 -22 lines
Diff to previous 1.60 (colored)

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

	sys/dev/mii/makphy.c			1.61, 1.63-1.64 via patch
	sys/dev/mii/makphyreg.h			1.10

- Remove ESSR_FIBER_LINK bit check in makphyattach(). This bit is
  valid only when the link is up, so it's not good to check in the
  attach function.
- There is an environment that both copper and fiber bits are set in
  EXTSR but it support copper only. To resolve this problem, check the
  ESSR register's HWCFG_MODE bit and drop unsupported bits.
- If the chip is in Fiber/Copper auto select mode, check which media is
  selected. Currently, the code supports 88E1011, 88E1111 and 88E1112
  only.
- Fix comment. KNF.

Revision 1.42.8.4 / (download) - annotate - [select for diffs], Tue Jan 28 09:34:29 2020 UTC (4 years, 1 month ago) by martin
Branch: netbsd-8
CVS Tags: netbsd-8-2-RELEASE
Changes since 1.42.8.3: +90 -20 lines
Diff to previous 1.42.8.3 (colored) to branchpoint 1.42 (colored)

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

	sys/dev/mii/makphy.c			1.61, 1.63-1.64 via patch
	sys/dev/mii/makphyreg.h			1.10

- Remove ESSR_FIBER_LINK bit check in makphyattach(). This bit is
  valid only when the link is up, so it's not good to check in the
  attach function.
- There is an environment that both copper and fiber bits are set in
  EXTSR but it support copper only. To resolve this problem, check the
  ESSR register's HWCFG_MODE bit and drop unsupported bits.
- If the chip is in Fiber/Copper auto select mode, check which media is
  selected. Currently, the code supports 88E1011, 88E1111 and 88E1112
  only.
- Fix comment. KNF.

Revision 1.64 / (download) - annotate - [select for diffs], Tue Jan 28 05:08:02 2020 UTC (4 years, 1 month ago) by msaitoh
Branch: MAIN
CVS Tags: is-mlppp-base, is-mlppp, ad-namecache-base3
Changes since 1.63: +3 -3 lines
Diff to previous 1.63 (colored)

 Fix comment.

Revision 1.63 / (download) - annotate - [select for diffs], Thu Dec 12 09:25:37 2019 UTC (4 years, 2 months ago) by msaitoh
Branch: MAIN
CVS Tags: ad-namecache-base2, ad-namecache-base1, ad-namecache-base
Branch point for: ad-namecache
Changes since 1.62: +87 -19 lines
Diff to previous 1.62 (colored)

- Remove ESSR_FIBER_LINK bit check in makphyattach(). This bit is valid only
  when the link is up, so it's not good to check in the attach function.
- There is an environment that both copper and fiber bits are set in EXTSR
  but it support copper only. To resolve this problem, check the ESSR
  register's HWCFG_MODE bit and drop unsupported bits.
- If the chip is in Fiber/Copper auto select mode, check which media is
  selected. Currently, the code supports 88E1011, 88E1111 and 88E1112 only.
  To support other chips documents are required.

Revision 1.62 / (download) - annotate - [select for diffs], Wed Nov 27 10:19:20 2019 UTC (4 years, 3 months ago) by msaitoh
Branch: MAIN
Changes since 1.61: +3 -10 lines
Diff to previous 1.61 (colored)

- Simplify sc->mii_anegticks setting. Same as FreeBSD.

   Don't set the default value not in the attach function. Instead, set the
  default value (MII_ANEGTICKS) first in the beginning of the
  mii_phy_add_media(). The function already has the code to change the value to
  MII_ANEGTICKS_GIGE if it's gigabit capable.

- Remove extra pmf_device_register() call. It's done in mii_phy_add_media().

Revision 1.61 / (download) - annotate - [select for diffs], Tue Nov 26 08:19:51 2019 UTC (4 years, 3 months ago) by msaitoh
Branch: MAIN
Changes since 1.60: +3 -5 lines
Diff to previous 1.60 (colored)

 KNF. No functional change.

Revision 1.42.8.3 / (download) - annotate - [select for diffs], Thu Aug 1 14:27:30 2019 UTC (4 years, 7 months ago) by martin
Branch: netbsd-8
Changes since 1.42.8.2: +67 -27 lines
Diff to previous 1.42.8.2 (colored) to branchpoint 1.42 (colored)

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

	sys/dev/mii/makphy.c				1.54,1.57-1.60 via patch
	sys/dev/mii/makphyvar.h				1.1-1.2
	sys/dev/mii/ihphy.c				1.12,1.14 via patch

- Support Intel I21[01].
- 88E1000(S) has no page select register, so don't access it.
  Note that qemu doesn't implement the register and the access fails.
- Check the result of the ESSR register access because Qemu doesn't
  implement the register.
- KNF.

Revision 1.60 / (download) - annotate - [select for diffs], Wed Jul 3 17:40:29 2019 UTC (4 years, 8 months ago) by maxv
Branch: MAIN
CVS Tags: phil-wifi-20191119, netbsd-9-base, netbsd-9-0-RC1
Branch point for: netbsd-9
Changes since 1.59: +7 -3 lines
Diff to previous 1.59 (colored)

Check the return value of PHY_READ(). Because, if it fails, 'reg' is not
initialized. On Qemu, this read systematically fails.

Print an error in this case, and act as if there was no fiber. Maybe there
is a smarter way to fix this kind of things.

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

Sync with HEAD

Revision 1.59 / (download) - annotate - [select for diffs], Mon Mar 25 07:34:13 2019 UTC (4 years, 11 months ago) by msaitoh
Branch: MAIN
CVS Tags: phil-wifi-20190609, isaki-audio2-base, isaki-audio2
Changes since 1.58: +6 -12 lines
Diff to previous 1.58 (colored)

 KNF. No functional change.

Revision 1.58 / (download) - annotate - [select for diffs], Mon Mar 25 05:39:51 2019 UTC (4 years, 11 months ago) by msaitoh
Branch: MAIN
Changes since 1.57: +33 -10 lines
Diff to previous 1.57 (colored)

- 88E1000(S) has no page select register, so don't access it.
  Note that qemu doesn't implement the register and the access fails.
  For I210, we can use the register.
- Don't set PSCR_CRS_ON_TX bit on I210.

Revision 1.42.8.2 / (download) - annotate - [select for diffs], Thu Mar 7 17:19:38 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.42.8.1: +7 -4 lines
Diff to previous 1.42.8.1 (colored) to branchpoint 1.42 (colored)

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

	sys/dev/mii/makphy.c: revision 1.53

- Add 88E1240.
- Rename E1116R_29 to E1318S

Revision 1.57 / (download) - annotate - [select for diffs], Wed Feb 27 18:21:04 2019 UTC (5 years ago) by jakllsch
Branch: MAIN
Changes since 1.56: +3 -3 lines
Diff to previous 1.56 (colored)

Use symbolic MII_MODEL_xxMARVELL_I210 instead of a literal 0 in makphy_isi210().

Revision 1.56 / (download) - annotate - [select for diffs], Mon Feb 25 04:26:22 2019 UTC (5 years ago) by msaitoh
Branch: MAIN
Changes since 1.55: +2 -4 lines
Diff to previous 1.55 (colored)

 Remove xxMARVELL E1000 and duplicated xxMARVELL E1000S to make functionality
the same as rev. 1.54.

Revision 1.55 / (download) - annotate - [select for diffs], Sun Feb 24 17:22:21 2019 UTC (5 years ago) by christos
Branch: MAIN
Changes since 1.54: +29 -73 lines
Diff to previous 1.54 (colored)

use a macro to tidy up the phydesc array initialization, from FreeBSD

Revision 1.54 / (download) - annotate - [select for diffs], Tue Feb 19 05:47:08 2019 UTC (5 years ago) by msaitoh
Branch: MAIN
Changes since 1.53: +34 -12 lines
Diff to previous 1.53 (colored)

- Match Intel I21[01]. These chips' model number is wrongly set to 0
  (== 88E1000 with model number 0). It seems the PHY function is almost the
  same as 88E1512. When we add 88E1512 related change to makphy.c, I21[01]
  should be take into account.
- KNF.

Revision 1.53 / (download) - annotate - [select for diffs], Fri Feb 8 09:17:12 2019 UTC (5 years ago) by msaitoh
Branch: MAIN
Changes since 1.52: +7 -4 lines
Diff to previous 1.52 (colored)

- Add 88E1240.
- Rename E1116R_29 to E1318S

Revision 1.42.14.3 / (download) - annotate - [select for diffs], Sat Jan 26 22:00:06 2019 UTC (5 years, 1 month ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.42.14.2: +24 -19 lines
Diff to previous 1.42.14.2 (colored) to branchpoint 1.42 (colored) next main 1.43 (colored)

Sync with HEAD

Revision 1.52 / (download) - annotate - [select for diffs], Tue Jan 22 03:42:27 2019 UTC (5 years, 1 month ago) by msaitoh
Branch: MAIN
CVS Tags: pgoyette-compat-20190127
Changes since 1.51: +24 -19 lines
Diff to previous 1.51 (colored)

 Change MII PHY read/write API from:

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

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

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

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

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

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


Tested with the following device:

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

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

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

Revision 1.42.14.2 / (download) - annotate - [select for diffs], Fri Jan 18 08:50:26 2019 UTC (5 years, 1 month ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.42.14.1: +106 -145 lines
Diff to previous 1.42.14.1 (colored) to branchpoint 1.42 (colored)

Synch with HEAD

Revision 1.42.8.1 / (download) - annotate - [select for diffs], Thu Jan 17 17:23:02 2019 UTC (5 years, 1 month ago) by martin
Branch: netbsd-8
Changes since 1.42: +170 -68 lines
Diff to previous 1.42 (colored)

Pull up the following (requested by msaitoh in ticket #1164):

	sys/dev/mii/miidevs			1.128, 1.132 (patch)
	sys/dev/mii/makphy.c			1.43-1.51
	sys/dev/mii/makphyreg.h 		1.7-1.9

- miidevs: Add E1000 with model id 0x0006, it exists according to
  OpenBSD rename E1000 model 0x0000 to E1000_0 for consistency.
- Match 88E1112, 88E1118, 88E1512, 88E3082 and G65G.
- Match 88E3016 and add some 88E3016 specific code. Fixes part of
  PR kern/49270 and PR kern/53301.
- Make sure page 0 is selected when we initialize the PHY. Fixes
  problems with the eephy(4) that attaches to nfe(4) on machines like
  the Sun Ultra 40. (we had condition for this, now the page 0 is
  selected for any PHY type)
- If autonegotiation is not enabled, we need a software reset for the
  settings to take effect in makphy_service().
- Don't set PSCR_CRS_ON_TX on newer. Those chips have no this bit.
- Control BMCR_PDOWN for IFM_NONE. Some chips still don't work as
  expected. It would be required to modify PSCR and/or other register.
- Set mii_media_active correctly on non-autonego mode.
- Remove obsolete comment.
- Whitespace fix.

Revision 1.51 / (download) - annotate - [select for diffs], Wed Jan 16 05:19:30 2019 UTC (5 years, 1 month ago) by msaitoh
Branch: MAIN
CVS Tags: pgoyette-compat-20190118
Changes since 1.50: +3 -3 lines
Diff to previous 1.50 (colored)

 Change the register size to uint16_t again in makphy_reset(). No functional
change intended.

Revision 1.50 / (download) - annotate - [select for diffs], Wed Jan 16 05:11:06 2019 UTC (5 years, 1 month ago) by msaitoh
Branch: MAIN
Changes since 1.49: +6 -2 lines
Diff to previous 1.49 (colored)

 Restore a comment which was removed in rev. 1.46.

Revision 1.49 / (download) - annotate - [select for diffs], Tue Jan 8 03:14:51 2019 UTC (5 years, 1 month ago) by msaitoh
Branch: MAIN
Changes since 1.48: +3 -3 lines
Diff to previous 1.48 (colored)

 Whitespace fixes. No functional change.

Revision 1.48 / (download) - annotate - [select for diffs], Sun Dec 30 06:40:52 2018 UTC (5 years, 2 months ago) by msaitoh
Branch: MAIN
Changes since 1.47: +5 -2 lines
Diff to previous 1.47 (colored)

 Add 88E1512.

Revision 1.47 / (download) - annotate - [select for diffs], Sun Dec 30 06:33:30 2018 UTC (5 years, 2 months ago) by msaitoh
Branch: MAIN
Changes since 1.46: +55 -15 lines
Diff to previous 1.46 (colored)

- Control BMCR_PDOWN for IFM_NONE. Some chips still don't work as expected.
  It would be required to modify PSCR and/or other register.
- Set mii_media_active correctly on non-autonego mode.

Revision 1.46 / (download) - annotate - [select for diffs], Fri Dec 28 06:20:32 2018 UTC (5 years, 2 months ago) by msaitoh
Branch: MAIN
Changes since 1.45: +58 -144 lines
Diff to previous 1.45 (colored)

- Backout some changes done in rev. 1.44. OK'd by jdolecek@:
  - Remove e1000phyreg.h and use makphyreg.h again.
  - Remove Energy detect stuff. Leave it by default.
  - Remove MDI crossover configuraton. Leave it by default. I think it's OK to
    add new API to change the mode.
  - PHY_RESET() is used to commit some changes, so I think it's not good to
    always clear BMCR_AUTOEN before reset in makphy_reset().
  - It's not required to read MII_100T2SR twice because this register has no
    any bit which is latched.
- Use mii_phy_reset() instead of extracted code.
- Don't set PSCR_CRS_ON_TX on newer. Those chips have no this bit.
- Add some "XXX FIXME" comment. Non GMII mode uses different page except
  very old chip. Some bits are at the same location but others are not.
- Remove obsolete comment.
- s/MII_MAKPHY_/MAKPHY_/

XXX rev. 1.44 changed the setting of mii_media_active when the interface is
set to other than auto. I suspect the intention of the change is to reflect
the link up/down status. But, it didn't work because non auto setting makes
PSSR_LINK bit alwasy set "without modifing some registers".
This commit won't fix the change and it'll be fixed in the next commit.

Revision 1.42.14.1 / (download) - annotate - [select for diffs], Mon Jun 25 07:25:51 2018 UTC (5 years, 8 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.42: +234 -93 lines
Diff to previous 1.42 (colored)

Sync with HEAD

Revision 1.45 / (download) - annotate - [select for diffs], Mon Jun 18 09:12:17 2018 UTC (5 years, 8 months ago) by msaitoh
Branch: MAIN
CVS Tags: phil-wifi-base, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, jdolecek-ncqfixes-base, jdolecek-ncqfixes
Branch point for: phil-wifi
Changes since 1.44: +26 -20 lines
Diff to previous 1.44 (colored)

- All of Marvell PHY's registers from addr 0x0 to 0xf conforms IEEE 802.3
 specification, so those register definitions are not required. Use mii.h's
 definitions. Note that E1000_ER_PAR_DETECT_FAULT should be 0x0010 instead of
 0x0100(typo).
- Restore code for BMCR_ISO which was removed in makphy.c rev. 1.44
- Whitespace fix.

Revision 1.44 / (download) - annotate - [select for diffs], Sat Jun 16 17:44:53 2018 UTC (5 years, 8 months ago) by jdolecek
Branch: MAIN
Changes since 1.43: +197 -91 lines
Diff to previous 1.43 (colored)

switch to using OpenBSD eehpy(4) code to drive maphy(4), synchronizing support
for several special PHY conditions, particularly:
- Properly re-initialise the PHY upon resume
- Store next page in the Link Partner Next Page register for compatibility
  with 802.3ab on 88E3016 PHYs.  Fixes some autonegotiation problems on msk(4)
- Make 88E3016 actually work
- Make sure page 0 is selected when we initialize the PHY.  Fixes problems
  with the eephy(4) that attaches to nfe(4) on machines like the Sun Ultra 40.
  (we had condition for this, now the page 0 is selected for any PHY type)
- Disable fiber/copper auto-selection on the 88E1111 if it is in RGMII mode, to
  work around the fact that the onboard PHYs attached to nfe(4) on the Sun
  X4100 M2 have fiber/copper auto-selection enabled even though the interfaces
  are clearly copper-only

make sure to also add appropriate licenses, since basically nothing
really significant remains out of previous code

use FreeBSD <dev/mii/e1000reg.h> for register definitions as a base instead
of OpenBSD <dev/mii/eephyreg.h>, since it has some extra definitions for some
3016 bits, but add the several extra bits from OpenBSD needed by the code;
removed no longed used <dev/mii/makphyreg.h>

tested with PHY 88E1111, there no particular change observed - the
link status works as it did before, just now it does media nego
even before the interface is up

should however fix 88E3016 support and hence PR kern/49270 and PR kern/53301

Revision 1.43 / (download) - annotate - [select for diffs], Wed Jun 13 23:27:48 2018 UTC (5 years, 8 months ago) by jdolecek
Branch: MAIN
Changes since 1.42: +41 -12 lines
Diff to previous 1.42 (colored)

sort the models, and add several more variants; data found in OpenBSD eephy.c

this also makes makphy match model 88E3016, which adresses PR kern/53301
by Chris Humphries

Revision 1.37.6.2 / (download) - annotate - [select for diffs], Sun Dec 3 11:37:06 2017 UTC (6 years, 3 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.37.6.1: +3 -2 lines
Diff to previous 1.37.6.1 (colored) to branchpoint 1.37 (colored) next main 1.38 (colored)

update from HEAD

Revision 1.40.8.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.40: +4 -2 lines
Diff to previous 1.40 (colored) next main 1.41 (colored)

Sync with netbsd-5

Revision 1.41.2.1 / (download) - annotate - [select for diffs], Sat Jan 7 08:56:32 2017 UTC (7 years, 1 month ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.41: +4 -2 lines
Diff to previous 1.41 (colored) next main 1.42 (colored)

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

Revision 1.40.2.1 / (download) - annotate - [select for diffs], Mon Dec 12 07:04:31 2016 UTC (7 years, 2 months ago) by snj
Branch: netbsd-7
CVS Tags: netbsd-7-nhusb-base-20170116, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1
Changes since 1.40: +4 -2 lines
Diff to previous 1.40 (colored) next main 1.41 (colored)

Pull up following revision(s) (requested by msaitoh in ticket #1301):
	sys/dev/mii/inphy.c: revision 1.55
	sys/dev/mii/makphy.c: revision 1.42
	sys/dev/mii/ikphy.c: revision 1.12
	sys/dev/mii/atphy.c: revision 1.18
	sys/dev/mii/ihphy.c: revision 1.10
Set mii_mpd_{oui,model,rev}.
--
Set mii_mpd_{oui,model,rev}.
--
Set mii_mpd_{oui,model,rev}.
--
Set mii_mpd_{oui,rev}.

Revision 1.40.4.2 / (download) - annotate - [select for diffs], Mon Dec 5 10:55:02 2016 UTC (7 years, 3 months ago) by skrll
Branch: nick-nhusb
Changes since 1.40.4.1: +4 -2 lines
Diff to previous 1.40.4.1 (colored) to branchpoint 1.40 (colored) next main 1.41 (colored)

Sync with HEAD

Revision 1.42 / (download) - annotate - [select for diffs], Tue Nov 8 08:48:35 2016 UTC (7 years, 3 months ago) by msaitoh
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-compat-base, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, nick-nhusb-base-20170204, nick-nhusb-base-20161204, netbsd-8-base, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, matt-nb8-mediatek-base, matt-nb8-mediatek, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: pgoyette-compat, netbsd-8
Changes since 1.41: +4 -2 lines
Diff to previous 1.41 (colored)

Set mii_mpd_{oui,rev}.

Revision 1.40.4.1 / (download) - annotate - [select for diffs], Sat Jul 9 20:25:03 2016 UTC (7 years, 7 months ago) by skrll
Branch: nick-nhusb
Changes since 1.40: +3 -4 lines
Diff to previous 1.40 (colored)

Sync with HEAD

Revision 1.41 / (download) - annotate - [select for diffs], Thu Jul 7 06:55:41 2016 UTC (7 years, 7 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, localcount-20160914
Branch point for: pgoyette-localcount
Changes since 1.40: +3 -4 lines
Diff to previous 1.40 (colored)

KNF. Remove extra spaces. No functional change.

Revision 1.37.2.1 / (download) - annotate - [select for diffs], Sun Nov 9 12:13:15 2014 UTC (9 years, 3 months ago) by martin
Branch: netbsd-6
Changes since 1.37: +4 -2 lines
Diff to previous 1.37 (colored) next main 1.38 (colored)

Pull up following revision(s) (requested by msaitoh in ticket #1189):
	sys/dev/pci/if_wm.c: revision 1.270
	sys/dev/mii/inphy.c: revision 1.53
	sys/dev/mii/glxtphy.c: revision 1.24
	sys/dev/mii/tlphy.c: revision 1.62
	sys/dev/mii/iophy.c: revision 1.37
	sys/dev/mii/brgphy.c: revision 1.70
	sys/dev/mii/ihphy.c: revision 1.8
	sys/dev/mii/bmtphy.c: revision 1.31
	sys/dev/mii/urlphy.c: revision 1.30
	sys/dev/mii/makphy.c: revision 1.40
	sys/dev/mii/qsphy.c: revision 1.48
	sys/dev/mii/igphy.c: revision 1.23
	sys/dev/mii/nsphy.c: revision 1.58
	sys/dev/mii/mvphy.c: revision 1.10
	sys/dev/pci/if_txp.c: revision 1.41
	sys/dev/mii/nsphy.c: revision 1.59
	sys/dev/mii/rlphy.c: revision 1.28
	sys/dev/mii/icsphy.c: revision 1.49
	sys/dev/mii/rlphy.c: revision 1.29
	sys/dev/mii/lxtphy.c: revision 1.49
	sys/dev/mii/ciphyreg.h: revision 1.5
	sys/dev/mii/nsphyter.c: revision 1.38
	sys/dev/mii/sqphy.c: revision 1.50
	sys/dev/mii/gentbi.c: revision 1.26
	sys/dev/mii/gentbi.c: revision 1.27
	sys/dev/mii/tqphy.c: revision 1.39
	sys/dev/mii/ikphy.c: revision 1.10
	sys/dev/mii/dmphy.c: revision 1.35
	sys/dev/mii/amhphy.c: revision 1.20
	sys/dev/mii/acphy.c: revision 1.24
	sys/dev/mii/ciphy.c: revision 1.25
	sys/dev/mii/brgphyreg.h: revision 1.8
	sys/dev/mii/ukphy_subr.c: revision 1.12
	sys/dev/ic/rtl80x9.c: revision 1.16
	sys/arch/mips/adm5120/dev/if_admsw.c: revision 1.12
	sys/dev/pci/if_kse.c: revision 1.28
	sys/dev/mii/ukphy_subr.c: revision 1.13
	sys/dev/mii/mii.h: revision 1.18
	sys/dev/mii/gphyter.c: revision 1.29
No functional change:
- Fix typo.
- Remove trailing white spaces.
- Capitalize comments.
- Tabify.
- KNF.
 IFM_FDX and IFM_HDX use different bit, so set IFM_HDX bit if it's not full
duplex. For many drivers, it recognize half duplex if IFM_FDX isn't set,
but not for others. Same as {Free|Open}BSD.

Revision 1.37.6.1 / (download) - annotate - [select for diffs], Wed Aug 20 00:03:41 2014 UTC (9 years, 6 months ago) by tls
Branch: tls-maxphys
Changes since 1.37: +37 -5 lines
Diff to previous 1.37 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.38.2.1 / (download) - annotate - [select for diffs], Sun Aug 10 06:54:53 2014 UTC (9 years, 6 months ago) by tls
Branch: tls-earlyentropy
Changes since 1.38: +34 -5 lines
Diff to previous 1.38 (colored) next main 1.39 (colored)

Rebase.

Revision 1.40 / (download) - annotate - [select for diffs], Mon Jun 16 16:48:16 2014 UTC (9 years, 8 months ago) by msaitoh
Branch: MAIN
CVS Tags: tls-maxphys-base, tls-earlyentropy-base, nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226, nick-nhusb-base-20150921, nick-nhusb-base-20150606, nick-nhusb-base-20150406, nick-nhusb-base, netbsd-7-nhusb-base, netbsd-7-base, 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
Branch point for: nick-nhusb, netbsd-7-nhusb, netbsd-7
Changes since 1.39: +4 -2 lines
Diff to previous 1.39 (colored)

 IFM_FDX and IFM_HDX use different bit, so set IFM_HDX bit if it's not full
duplex. For many drivers, it recognize half duplex if IFM_FDX isn't set,
but not for others. Same as {Free|Open}BSD.

Revision 1.35.8.2 / (download) - annotate - [select for diffs], Thu May 22 11:40:23 2014 UTC (9 years, 9 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.35.8.1: +5 -2 lines
Diff to previous 1.35.8.1 (colored) to branchpoint 1.35 (colored) next main 1.36 (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.37.10.1 / (download) - annotate - [select for diffs], Sun May 18 17:45:39 2014 UTC (9 years, 9 months ago) by rmind
Branch: rmind-smpnet
Changes since 1.37: +35 -5 lines
Diff to previous 1.37 (colored) next main 1.38 (colored)

sync with head

Revision 1.39 / (download) - annotate - [select for diffs], Tue May 13 02:11:26 2014 UTC (9 years, 9 months ago) by christos
Branch: MAIN
CVS Tags: rmind-smpnet-nbase, rmind-smpnet-base
Changes since 1.38: +32 -5 lines
Diff to previous 1.38 (colored)

Add some code from FreeBSD to make the E1147* work. Still does not autoneg
to GiGE for some reason but it autonegs to 100BaseTX full-duplex.

Revision 1.38 / (download) - annotate - [select for diffs], Sat Dec 21 15:20:39 2013 UTC (10 years, 2 months ago) by kiyohara
Branch: MAIN
CVS Tags: yamt-pagecache-base9, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3
Branch point for: tls-earlyentropy
Changes since 1.37: +5 -2 lines
Diff to previous 1.37 (colored)

Add Marvell 88E1543.  Tested on OPENBLOCKS_AX3.

Revision 1.35.8.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:07:41 2012 UTC (11 years, 10 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.35: +8 -2 lines
Diff to previous 1.35 (colored)

sync with head

Revision 1.36.4.1 / (download) - annotate - [select for diffs], Sat Feb 18 07:34:32 2012 UTC (12 years ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.36: +5 -2 lines
Diff to previous 1.36 (colored) next main 1.37 (colored)

merge to -current.

Revision 1.37 / (download) - annotate - [select for diffs], Sat Jan 21 16:48:08 2012 UTC (12 years, 1 month ago) by chs
Branch: MAIN
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, khorben-n900, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2, jmcneill-usbmp-base10, agc-symver-base, agc-symver
Branch point for: tls-maxphys, rmind-smpnet, netbsd-6
Changes since 1.36: +5 -2 lines
Diff to previous 1.36 (colored)

disable the entry for Marvell E1149 for now since this driver doesn't work
with some instances of this hardware (in particular, the ones on the
motherboard of an HP XW9400 workstation, which is supposedly a Tyan S2915).
ukphy works fine for this.

Revision 1.28.14.2 / (download) - annotate - [select for diffs], Sat Dec 24 01:33:03 2011 UTC (12 years, 2 months ago) by matt
Branch: matt-nb5-mips64
Changes since 1.28.14.1: +5 -2 lines
Diff to previous 1.28.14.1 (colored) to branchpoint 1.28 (colored) next main 1.29 (colored)

Match 88E1114

Revision 1.36 / (download) - annotate - [select for diffs], Sat Nov 12 11:10:49 2011 UTC (12 years, 3 months ago) by sekiya
Branch: MAIN
CVS Tags: jmcneill-usbmp-pre-base2, jmcneill-usbmp-base, jmcneill-audiomp3-base, jmcneill-audiomp3
Branch point for: jmcneill-usbmp
Changes since 1.35: +5 -2 lines
Diff to previous 1.35 (colored)

Add support for makphy 0x0029 variation found on most recent Globalscale Dreamplug.

Revision 1.33.4.1 / (download) - annotate - [select for diffs], Sat Mar 5 20:53:32 2011 UTC (13 years ago) by rmind
Branch: rmind-uvmplock
Changes since 1.33: +8 -2 lines
Diff to previous 1.33 (colored) next main 1.34 (colored)

sync with head

Revision 1.28.18.1 / (download) - annotate - [select for diffs], Fri Jan 7 02:20:27 2011 UTC (13 years, 2 months ago) by matt
Branch: matt-nb5-pq3
Changes since 1.28: +5 -2 lines
Diff to previous 1.28 (colored) next main 1.29 (colored)

Match some more phys.

Revision 1.35 / (download) - annotate - [select for diffs], Sat Dec 11 18:10:42 2010 UTC (13 years, 2 months ago) by matt
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, rmind-uvmplock-nbase, rmind-uvmplock-base, matt-mips64-premerge-20101231, jruoho-x86intr-base, jruoho-x86intr, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: yamt-pagecache
Changes since 1.34: +5 -2 lines
Diff to previous 1.34 (colored)

Match Marvell E1145

Revision 1.33.2.1 / (download) - annotate - [select for diffs], Tue Aug 17 06:46:19 2010 UTC (13 years, 6 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.33: +5 -2 lines
Diff to previous 1.33 (colored) next main 1.34 (colored)

Sync with HEAD.

Revision 1.26.4.4 / (download) - annotate - [select for diffs], Wed Aug 11 22:53:40 2010 UTC (13 years, 6 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.26.4.3: +5 -2 lines
Diff to previous 1.26.4.3 (colored) to branchpoint 1.26 (colored) next main 1.27 (colored)

sync with head.

Revision 1.34 / (download) - annotate - [select for diffs], Sun Aug 1 09:54:12 2010 UTC (13 years, 7 months ago) by kiyohara
Branch: MAIN
CVS Tags: yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2
Changes since 1.33: +5 -2 lines
Diff to previous 1.33 (colored)

Add Marvell E1116R.

Revision 1.26.4.3 / (download) - annotate - [select for diffs], Thu Mar 11 15:03:41 2010 UTC (13 years, 11 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.26.4.2: +5 -7 lines
Diff to previous 1.26.4.2 (colored) to branchpoint 1.26 (colored)

sync with head

Revision 1.33 / (download) - annotate - [select for diffs], Mon Dec 14 00:51:06 2009 UTC (14 years, 2 months ago) by matt
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9, uebayasi-xip-base1, uebayasi-xip-base
Branch point for: uebayasi-xip, rmind-uvmplock
Changes since 1.32: +5 -2 lines
Diff to previous 1.32 (colored)

Add E1149 Phy.

Revision 1.28.14.1 / (download) - annotate - [select for diffs], Mon Nov 9 10:09:19 2009 UTC (14 years, 3 months ago) by cliff
Branch: matt-nb5-mips64
CVS Tags: matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15
Changes since 1.28: +5 -2 lines
Diff to previous 1.28 (colored)

- add table entry for MII_STR_xxMARVELL_E1149
  no spec available, may need special handling?

Revision 1.32 / (download) - annotate - [select for diffs], Mon Oct 19 18:41:14 2009 UTC (14 years, 4 months ago) by bouyer
Branch: MAIN
CVS Tags: matt-premerge-20091211, jym-xensuspend-nbase
Changes since 1.31: +2 -7 lines
Diff to previous 1.31 (colored)

Remove closes 3 & 4 from my licence. Lots of thanks to Soren Jacobsen
for the booring work !

Revision 1.29.4.1 / (download) - annotate - [select for diffs], Wed May 13 17:20:15 2009 UTC (14 years, 9 months ago) by jym
Branch: jym-xensuspend
Changes since 1.29: +2 -2 lines
Diff to previous 1.29 (colored) next main 1.30 (colored)

Sync with HEAD.

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

Revision 1.26.4.2 / (download) - annotate - [select for diffs], Mon May 4 08:12:52 2009 UTC (14 years, 10 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.26.4.1: +2 -5 lines
Diff to previous 1.26.4.1 (colored) to branchpoint 1.26 (colored)

sync with head.

Revision 1.31 / (download) - annotate - [select for diffs], Sun Apr 19 11:17:46 2009 UTC (14 years, 10 months ago) by msaitoh
Branch: MAIN
CVS Tags: yamt-nfs-mp-base8, yamt-nfs-mp-base7, yamt-nfs-mp-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base4, yamt-nfs-mp-base3, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base, jymxensuspend-base, jym-xensuspend-base
Changes since 1.30: +1 -15 lines
Diff to previous 1.30 (colored)

Oooops. Back out some of previous my commit.

Revision 1.30 / (download) - annotate - [select for diffs], Sun Apr 19 11:10:36 2009 UTC (14 years, 10 months ago) by msaitoh
Branch: MAIN
Changes since 1.29: +17 -3 lines
Diff to previous 1.29 (colored)

Some fixes and enhancements:

  Both if_bge* and brgphy.[ch]:
    Check the parent's MAC and use the quirk code for the bug like OpenBSD and
    FreeBSD. Some bugs can't identify the PHY ID. For example, 5704 Ax has the
    ADC bug, but 5704 A3 and 5704 B0 have the same PHY ID and revision. Add
    BGE_PHY_CRC_BUG, BGE_PHY_ADC_BUG, BGE_PHY_5704_A0_BUG, BGE_PHY_JITTER_BUG,
    BGE_PHY_ADJUST_TRIM and BGE_PHY_BER_BUG for this flag. Some of the DSP
    patches are newly taken from OpenBSD and FreeBSD.

  if_bge*:
    Remove duplicated BGE_CHIPID_BCM5714_A0 entry in the known CHIPID table.
    Fix obsolete comments.

  brgphy.[ch]:
    Add some PHY IDs.

TODO:
  Add more three quirk code into bge and brgphy (the brgphy side's are
  currently #if0'ed).
  Add support for bnx into brgphy (currently #if0'ed)

Revision 1.28.8.1 / (download) - annotate - [select for diffs], Mon Jan 19 13:18:14 2009 UTC (15 years, 1 month ago) by skrll
Branch: nick-hppapmap
Changes since 1.28: +2 -5 lines
Diff to previous 1.28 (colored) next main 1.29 (colored)

Sync with HEAD.

Revision 1.25.6.2 / (download) - annotate - [select for diffs], Sat Jan 17 13:28:58 2009 UTC (15 years, 1 month ago) by mjf
Branch: mjf-devfs2
Changes since 1.25.6.1: +0 -3 lines
Diff to previous 1.25.6.1 (colored) to branchpoint 1.25 (colored) next main 1.26 (colored)

Sync with HEAD.

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

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

Revision 1.29 / (download) - annotate - [select for diffs], Mon Nov 17 03:04:27 2008 UTC (15 years, 3 months ago) by dyoung
Branch: MAIN
CVS Tags: nick-hppapmap-base2, mjf-devfs2-base, haad-nbase2, haad-dm-base2, haad-dm-base, ad-audiomp2-base, ad-audiomp2
Branch point for: jym-xensuspend
Changes since 1.28: +2 -5 lines
Diff to previous 1.28 (colored)

Reduce code duplication: most PHY drivers call mii_phy_add_media()
when they attach to the device tree, so call pmf_device_register(9)
once there instead of once in more than twenty drivers.

Revision 1.25.6.1 / (download) - annotate - [select for diffs], Mon Jun 2 13:23:35 2008 UTC (15 years, 9 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.25: +9 -16 lines
Diff to previous 1.25 (colored)

Sync with HEAD.

Revision 1.26.2.1 / (download) - annotate - [select for diffs], Sun May 18 12:34:13 2008 UTC (15 years, 9 months ago) by yamt
Branch: yamt-pf42
Changes since 1.26: +9 -16 lines
Diff to previous 1.26 (colored) next main 1.27 (colored)

sync with head.

Revision 1.26.4.1 / (download) - annotate - [select for diffs], Fri May 16 02:24:36 2008 UTC (15 years, 9 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.26: +9 -16 lines
Diff to previous 1.26 (colored)

sync with head.

Revision 1.28 / (download) - annotate - [select for diffs], Sun May 4 17:06:09 2008 UTC (15 years, 10 months ago) by xtraeme
Branch: MAIN
CVS Tags: yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-nfs-mp-base2, wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, wrstuden-revivesa, simonb-wapbl-nbase, simonb-wapbl-base, simonb-wapbl, netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, netbsd-5, matt-nb5-pq3-base, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, hpcarm-cleanup-nbase, haad-dm-base1
Branch point for: nick-hppapmap, matt-nb5-pq3, matt-nb5-mips64, haad-dm
Changes since 1.27: +9 -9 lines
Diff to previous 1.27 (colored)

device_t/softc split for all mii(4) devices, and other related
cosmetic changes.

Revision 1.27 / (download) - annotate - [select for diffs], Mon Apr 28 20:23:53 2008 UTC (15 years, 10 months ago) by martin
Branch: MAIN
Changes since 1.26: +2 -9 lines
Diff to previous 1.26 (colored)

Remove clause 3 and 4 from TNF licenses

Revision 1.26 / (download) - annotate - [select for diffs], Tue Apr 8 20:10:20 2008 UTC (15 years, 10 months ago) by cegger
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base, yamt-nfs-mp-base
Branch point for: yamt-pf42, yamt-nfs-mp
Changes since 1.25: +3 -3 lines
Diff to previous 1.25 (colored)

use aprint_*_dev and device_xname

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

Sync with HEAD.

Revision 1.16.2.4 / (download) - annotate - [select for diffs], Mon Jan 21 09:43:26 2008 UTC (16 years, 1 month ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.16.2.3: +8 -2 lines
Diff to previous 1.16.2.3 (colored) to branchpoint 1.16 (colored) next main 1.17 (colored)

sync with head

Revision 1.23.18.1 / (download) - annotate - [select for diffs], Wed Jan 9 01:53:21 2008 UTC (16 years, 1 month ago) by matt
Branch: matt-armv6
Changes since 1.23: +8 -2 lines
Diff to previous 1.23 (colored) next main 1.24 (colored)

sync with HEAD

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

Sync with HEAD

Revision 1.25 / (download) - annotate - [select for diffs], Sat Dec 29 13:09:36 2007 UTC (16 years, 2 months ago) by wiz
Branch: MAIN
CVS Tags: yamt-lazymbuf-base15, yamt-lazymbuf-base14, nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, matt-armv6-nbase, matt-armv6-base, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-base, bouyer-xeni386-nbase, bouyer-xeni386-base, ad-socklock-base1
Branch point for: mjf-devfs2
Changes since 1.24: +5 -2 lines
Diff to previous 1.24 (colored)

Recognize Marvell 88E1116 Gigabit PHY.

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

Sync with head.

Revision 1.23.28.1 / (download) - annotate - [select for diffs], Tue Dec 11 15:29:23 2007 UTC (16 years, 2 months ago) by yamt
Branch: yamt-kmem
Changes since 1.23: +5 -2 lines
Diff to previous 1.23 (colored) next main 1.24 (colored)

sync with head.

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

Merge jmcneill-pm branch.

Revision 1.23.16.2 / (download) - annotate - [select for diffs], Sat Dec 8 16:21:18 2007 UTC (16 years, 3 months ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.23.16.1: +3 -3 lines
Diff to previous 1.23.16.1 (colored) to branchpoint 1.23 (colored) next main 1.24 (colored)

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

Revision 1.23.16.1 / (download) - annotate - [select for diffs], Tue Nov 27 09:28:22 2007 UTC (16 years, 3 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.23: +5 -2 lines
Diff to previous 1.23 (colored)

Register MII PHY drives with the PM framework. Nothing to do on suspend,
just reset the PHY on resume.

Revision 1.15.10.2 / (download) - annotate - [select for diffs], Sat Mar 31 15:25:35 2007 UTC (16 years, 11 months ago) by bouyer
Branch: netbsd-3
Changes since 1.15.10.1: +25 -3 lines
Diff to previous 1.15.10.1 (colored) to branchpoint 1.15 (colored) next main 1.16 (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.22.2.1 / (download) - annotate - [select for diffs], Mon Mar 26 21:05:34 2007 UTC (16 years, 11 months ago) by jdc
Branch: netbsd-4
CVS Tags: wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, 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.22: +16 -3 lines
Diff to previous 1.22 (colored) next main 1.23 (colored)

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

fix some negotiation problems on wm(4).

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

Revision 1.22.4.1 / (download) - annotate - [select for diffs], Tue Feb 27 16:53:54 2007 UTC (17 years ago) by yamt
Branch: yamt-idlelwp
Changes since 1.22: +16 -3 lines
Diff to previous 1.22 (colored) next main 1.23 (colored)

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

Revision 1.16.2.3 / (download) - annotate - [select for diffs], Mon Feb 26 09:10:18 2007 UTC (17 years ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.16.2.2: +16 -3 lines
Diff to previous 1.16.2.2 (colored) to branchpoint 1.16 (colored)

sync with head.

Revision 1.23 / (download) - annotate - [select for diffs], Fri Feb 23 03:03:10 2007 UTC (17 years ago) by msaitoh
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, yamt-kmem-base, yamt-idlelwp-base8, vmlocking2-base2, vmlocking2-base1, vmlocking-nbase, vmlocking-base, vmlocking, thorpej-atomic-base, thorpej-atomic, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, reinoud-bufcleanup, nick-csl-alignment-base5, nick-csl-alignment-base, nick-csl-alignment, mjf-ufs-trans-base, mjf-ufs-trans, matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, jmcneill-pm-base, jmcneill-base, hpcarm-cleanup, bouyer-xenamd64-base2, bouyer-xenamd64-base, bouyer-xenamd64, ad-audiomp-base, ad-audiomp
Branch point for: yamt-kmem, vmlocking2, mjf-devfs, matt-armv6, jmcneill-pm
Changes since 1.22: +16 -3 lines
Diff to previous 1.22 (colored)

fix some negotiation problems on wm(4).

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

Revision 1.16.2.2 / (download) - annotate - [select for diffs], Sat Dec 30 20:48:38 2006 UTC (17 years, 2 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.16.2.1: +14 -4 lines
Diff to previous 1.16.2.1 (colored) to branchpoint 1.16 (colored)

sync with head.

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

sync with head.

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

Sync with head.

Revision 1.22 / (download) - annotate - [select for diffs], Thu Nov 16 21:24:07 2006 UTC (17 years, 3 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, post-newlock2-merge, newlock2-nbase, newlock2-base, netbsd-4-base
Branch point for: yamt-idlelwp, netbsd-4
Changes since 1.21: +3 -3 lines
Diff to previous 1.21 (colored)

- don't hardcode 5, 10 define and use MII_ANEGTICKS{,_GIGE}
- instead of != limit, use <= limit (conservative)

Revision 1.21 / (download) - annotate - [select for diffs], Thu Nov 16 01:33:06 2006 UTC (17 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.20: +4 -4 lines
Diff to previous 1.20 (colored)

__unused removal on arguments; approved by core.

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

sync with head

Revision 1.20 / (download) - annotate - [select for diffs], Sat Oct 21 13:55:30 2006 UTC (17 years, 4 months ago) by bouyer
Branch: MAIN
CVS Tags: yamt-splraiseipl-base2
Changes since 1.19: +11 -2 lines
Diff to previous 1.19 (colored)

Restart negotiation when we change media even if autoneg is not enabled.
Otherwise switching from a fixed media to another fixed media isn't noticed
by the switch and the effective speed doesn't change.

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

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

Revision 1.17.4.1 / (download) - annotate - [select for diffs], Sat Sep 9 02:52:03 2006 UTC (17 years, 5 months ago) by rpaulo
Branch: rpaulo-netinet-merge-pcb
Changes since 1.17: +3 -3 lines
Diff to previous 1.17 (colored) next main 1.18 (colored)

sync with head

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

sync with head.

Revision 1.17.6.1 / (download) - annotate - [select for diffs], Sat Apr 22 11:39:11 2006 UTC (17 years, 10 months ago) by simonb
Branch: simonb-timecounters
CVS Tags: simonb-timcounters-final
Changes since 1.17: +3 -3 lines
Diff to previous 1.17 (colored) next main 1.18 (colored)

Sync with head.

Revision 1.17.10.1 / (download) - annotate - [select for diffs], Wed Apr 19 03:25:23 2006 UTC (17 years, 10 months ago) by elad
Branch: elad-kernelauth
Changes since 1.17: +3 -3 lines
Diff to previous 1.17 (colored) next main 1.18 (colored)

sync with head.

Revision 1.17.8.1 / (download) - annotate - [select for diffs], Sat Apr 1 12:07:11 2006 UTC (17 years, 11 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.17: +3 -3 lines
Diff to previous 1.17 (colored) next main 1.18 (colored)

sync with head.

Revision 1.17.12.1 / (download) - annotate - [select for diffs], Fri Mar 31 09:45:22 2006 UTC (17 years, 11 months ago) by tron
Branch: peter-altq
Changes since 1.17: +3 -3 lines
Diff to previous 1.17 (colored) next main 1.18 (colored)

Merge 2006-03-31 NetBSD-current into the "peter-altq" branch.

Revision 1.18 / (download) - annotate - [select for diffs], Wed Mar 29 07:05:24 2006 UTC (17 years, 11 months ago) by thorpej
Branch: MAIN
CVS Tags: yamt-splraiseipl-base, yamt-pdpolicy-base9, yamt-pdpolicy-base8, yamt-pdpolicy-base7, yamt-pdpolicy-base6, yamt-pdpolicy-base5, yamt-pdpolicy-base4, yamt-pdpolicy-base3, simonb-timecounters-base, rpaulo-netinet-merge-pcb-base, gdamore-uart-base, gdamore-uart, elad-kernelauth-base, chap-midi-nbase, chap-midi-base, chap-midi, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: yamt-splraiseipl, newlock2
Changes since 1.17: +3 -3 lines
Diff to previous 1.17 (colored)

Use device_private().

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

merge ktrace-lwp.

Revision 1.12.2.5 / (download) - annotate - [select for diffs], Thu Nov 10 14:06:00 2005 UTC (18 years, 3 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.12.2.4: +5 -2 lines
Diff to previous 1.12.2.4 (colored) to branchpoint 1.12 (colored) next main 1.13 (colored)

Sync with HEAD. Here we go again...

Revision 1.15.10.1 / (download) - annotate - [select for diffs], Sun Jul 3 21:15:08 2005 UTC (18 years, 8 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.15: +5 -2 lines
Diff to previous 1.15 (colored)

Pull up revision 1.16 (requested by briggs in ticket #524):
Match Marvell 88E1111 from Dave Huang in PR kern/30556

Revision 1.16 / (download) - annotate - [select for diffs], Thu Jun 23 19:21:26 2005 UTC (18 years, 8 months ago) by briggs
Branch: MAIN
CVS Tags: yamt-vop-base3, yamt-vop-base2, yamt-vop-base, yamt-vop, yamt-readahead-pervnode, yamt-readahead-perfile, yamt-readahead-base3, yamt-readahead-base2, yamt-readahead-base, yamt-readahead, thorpej-vnode-attr-base, thorpej-vnode-attr, ktrace-lwp-base
Branch point for: yamt-lazymbuf
Changes since 1.15: +5 -2 lines
Diff to previous 1.15 (colored)

Match Marvell 88E1111 from Dave Huang in PR kern/30556

Revision 1.12.2.4 / (download) - annotate - [select for diffs], Tue Sep 21 13:30:40 2004 UTC (19 years, 5 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.12.2.3: +2 -2 lines
Diff to previous 1.12.2.3 (colored) to branchpoint 1.12 (colored)

Fix the sync with head I botched.

Revision 1.12.2.3 / (download) - annotate - [select for diffs], Sat Sep 18 14:48:44 2004 UTC (19 years, 5 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.12.2.2: +2 -2 lines
Diff to previous 1.12.2.2 (colored) to branchpoint 1.12 (colored)

Sync with HEAD.

Revision 1.12.2.2 / (download) - annotate - [select for diffs], Wed Aug 25 06:58:05 2004 UTC (19 years, 6 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.12.2.1: +12 -12 lines
Diff to previous 1.12.2.1 (colored) to branchpoint 1.12 (colored)

Sync with HEAD.

Revision 1.15 / (download) - annotate - [select for diffs], Mon Aug 23 06:16:06 2004 UTC (19 years, 6 months ago) by thorpej
Branch: MAIN
CVS Tags: yamt-km-base4, yamt-km-base3, yamt-km-base2, yamt-km-base, yamt-km, netbsd-3-base, kent-audio2-base, kent-audio2, kent-audio1-beforemerge, kent-audio1-base, kent-audio1
Branch point for: netbsd-3
Changes since 1.14: +12 -12 lines
Diff to previous 1.14 (colored)

Make use of static.

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

Sync with HEAD

Revision 1.14 / (download) - annotate - [select for diffs], Sun Apr 11 15:40:56 2004 UTC (19 years, 10 months ago) by thorpej
Branch: MAIN
Changes since 1.13: +3 -3 lines
Diff to previous 1.13 (colored)

gmii_phy_getflowcontrol() -> mii_phy_flowstatus().  From HITOSHI Osada.

Revision 1.13 / (download) - annotate - [select for diffs], Sat Apr 10 18:47:56 2004 UTC (19 years, 10 months ago) by thorpej
Branch: MAIN
Changes since 1.12: +4 -3 lines
Diff to previous 1.12 (colored)

Fetch negotiated flow control parameters.  From HITOSHI Osada.

Revision 1.12 / (download) - annotate - [select for diffs], Tue Apr 29 01:49:34 2003 UTC (20 years, 10 months ago) by thorpej
Branch: MAIN
CVS Tags: netbsd-2-base, 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, netbsd-2-0-base, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2-0, netbsd-2
Branch point for: ktrace-lwp
Changes since 1.11: +7 -6 lines
Diff to previous 1.11 (colored)

Use aprint*().

Revision 1.6.4.1 / (download) - annotate - [select for diffs], Sat Nov 16 09:52:38 2002 UTC (21 years, 3 months ago) by he
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, 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.6: +5 -2 lines
Diff to previous 1.6 (colored) next main 1.7 (colored)

Pull up revision 1.8 (requested by thorpej in ticket #649):
  Match 881011 PHY.

Revision 1.2.4.9 / (download) - annotate - [select for diffs], Fri Oct 18 02:42:48 2002 UTC (21 years, 4 months ago) by nathanw
Branch: nathanw_sa
CVS Tags: nathanw_sa_end
Changes since 1.2.4.8: +4 -6 lines
Diff to previous 1.2.4.8 (colored) next main 1.3 (colored)

Catch up to -current.

Revision 1.2.2.8 / (download) - annotate - [select for diffs], Thu Oct 10 18:40:09 2002 UTC (21 years, 4 months ago) by jdolecek
Branch: kqueue
Changes since 1.2.2.7: +4 -6 lines
Diff to previous 1.2.2.7 (colored) next main 1.3 (colored)

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

Revision 1.11 / (download) - annotate - [select for diffs], Wed Oct 2 16:34:19 2002 UTC (21 years, 5 months ago) by thorpej
Branch: MAIN
CVS Tags: nathanw_sa_before_merge, nathanw_sa_base, kqueue-beforemerge, kqueue-base, kqueue-aftermerge, gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw, fvdl_fs64_base
Changes since 1.10: +3 -3 lines
Diff to previous 1.10 (colored)

Add trailing ; to CFATTACH_DECL.

Revision 1.10 / (download) - annotate - [select for diffs], Mon Sep 30 21:57:49 2002 UTC (21 years, 5 months ago) by thorpej
Branch: MAIN
Changes since 1.9: +4 -6 lines
Diff to previous 1.9 (colored)

Use CFATTACH_DECL().

Revision 1.9 / (download) - annotate - [select for diffs], Fri Sep 27 20:39:23 2002 UTC (21 years, 5 months ago) by thorpej
Branch: MAIN
Changes since 1.8: +3 -3 lines
Diff to previous 1.8 (colored)

Declare all cfattach structures const.

Revision 1.2.2.7 / (download) - annotate - [select for diffs], Fri Sep 6 08:45:01 2002 UTC (21 years, 6 months ago) by jdolecek
Branch: kqueue
Changes since 1.2.2.6: +5 -3 lines
Diff to previous 1.2.2.6 (colored)

sync kqueue branch with HEAD

Revision 1.6.2.2 / (download) - annotate - [select for diffs], Thu Aug 29 05:22:37 2002 UTC (21 years, 6 months ago) by gehenna
Branch: gehenna-devsw
Changes since 1.6.2.1: +5 -2 lines
Diff to previous 1.6.2.1 (colored) to branchpoint 1.6 (colored) next main 1.7 (colored)

catch up with -current.

Revision 1.2.4.8 / (download) - annotate - [select for diffs], Tue Aug 13 02:19:33 2002 UTC (21 years, 6 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.2.4.7: +5 -2 lines
Diff to previous 1.2.4.7 (colored)

Catch up to -current.

Revision 1.8 / (download) - annotate - [select for diffs], Thu Aug 8 00:04:57 2002 UTC (21 years, 7 months ago) by fvdl
Branch: MAIN
CVS Tags: gehenna-devsw-base
Changes since 1.7: +5 -2 lines
Diff to previous 1.7 (colored)

Match 881011 PHY.

Revision 1.2.4.7 / (download) - annotate - [select for diffs], Thu Aug 1 02:45:05 2002 UTC (21 years, 7 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.2.4.6: +2 -3 lines
Diff to previous 1.2.4.6 (colored)

Catch up to -current.

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

catch up with -current.

Revision 1.7 / (download) - annotate - [select for diffs], Wed Jul 3 06:25:52 2002 UTC (21 years, 8 months ago) by simonb
Branch: MAIN
Changes since 1.6: +2 -3 lines
Diff to previous 1.6 (colored)

Don't include <malloc.h> - no memory management style functions are use
in any of the MII drivers.

Revision 1.2.2.6 / (download) - annotate - [select for diffs], Sun Jun 23 17:47:24 2002 UTC (21 years, 8 months ago) by jdolecek
Branch: kqueue
Changes since 1.2.2.5: +3 -3 lines
Diff to previous 1.2.2.5 (colored)

catch up with -current on kqueue branch

Revision 1.2.4.6 / (download) - annotate - [select for diffs], Mon Apr 1 07:46:10 2002 UTC (21 years, 11 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.2.4.5: +3 -3 lines
Diff to previous 1.2.4.5 (colored)

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

Revision 1.6 / (download) - annotate - [select for diffs], Mon Mar 25 20:51:25 2002 UTC (21 years, 11 months ago) by thorpej
Branch: MAIN
CVS Tags: netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1
Branch point for: netbsd-1-6, gehenna-devsw
Changes since 1.5: +3 -3 lines
Diff to previous 1.5 (colored)

Get flags passed down to PHY drivers correctly.  This was done on
an adhoc basis in a couple of PHY drivers, this fixes it more generally.

Per a discussion w/ Cliff Neighbors <cliff@allegronetworks.com>.

Revision 1.2.4.5 / (download) - annotate - [select for diffs], Thu Feb 28 04:13:53 2002 UTC (22 years ago) by nathanw
Branch: nathanw_sa
Changes since 1.2.4.4: +7 -4 lines
Diff to previous 1.2.4.4 (colored)

Catch up to -current.

Revision 1.2.2.5 / (download) - annotate - [select for diffs], Mon Feb 11 20:09:53 2002 UTC (22 years ago) by jdolecek
Branch: kqueue
Changes since 1.2.2.4: +7 -4 lines
Diff to previous 1.2.2.4 (colored)

Sync w/ -current.

Revision 1.5 / (download) - annotate - [select for diffs], Tue Jan 15 21:01:59 2002 UTC (22 years, 1 month ago) by thorpej
Branch: MAIN
CVS Tags: newlock-base, newlock, ifpoll-base, eeh-devprop-base, eeh-devprop
Changes since 1.4: +7 -4 lines
Diff to previous 1.4 (colored)

Update for 88E1000 model number changes.

Revision 1.2.2.4 / (download) - annotate - [select for diffs], Thu Jan 10 19:56:14 2002 UTC (22 years, 1 month ago) by thorpej
Branch: kqueue
Changes since 1.2.2.3: +4 -1 lines
Diff to previous 1.2.2.3 (colored)

Sync kqueue branch with -current.

Revision 1.2.4.4 / (download) - annotate - [select for diffs], Wed Nov 14 19:15:02 2001 UTC (22 years, 3 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.2.4.3: +4 -1 lines
Diff to previous 1.2.4.3 (colored)

Catch up to -current.

Revision 1.4 / (download) - annotate - [select for diffs], Tue Nov 13 07:41:36 2001 UTC (22 years, 3 months ago) by lukem
Branch: MAIN
Changes since 1.3: +4 -1 lines
Diff to previous 1.3 (colored)

add RCSID

Revision 1.2.4.3 / (download) - annotate - [select for diffs], Fri Sep 21 22:35:50 2001 UTC (22 years, 5 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.2.4.2: +9 -18 lines
Diff to previous 1.2.4.2 (colored)

Catch up to -current.

Revision 1.2.2.3 / (download) - annotate - [select for diffs], Thu Sep 13 01:15:45 2001 UTC (22 years, 5 months ago) by thorpej
Branch: kqueue
Changes since 1.2.2.2: +9 -18 lines
Diff to previous 1.2.2.2 (colored)

Update the kqueue branch to HEAD.

Revision 1.3 / (download) - annotate - [select for diffs], Sat Aug 25 18:04:01 2001 UTC (22 years, 6 months ago) by thorpej
Branch: MAIN
CVS Tags: thorpej-mips-cache-base, thorpej-mips-cache, thorpej-devvp-base3, thorpej-devvp-base2, thorpej-devvp-base, thorpej-devvp, pre-chs-ubcperf, post-chs-ubcperf
Changes since 1.2: +9 -18 lines
Diff to previous 1.2 (colored)

ANSI'ify.

Revision 1.2.4.2 / (download) - annotate - [select for diffs], Fri Aug 24 00:09:58 2001 UTC (22 years, 6 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.2.4.1: +288 -0 lines
Diff to previous 1.2.4.1 (colored)

Catch up with -current.

Revision 1.2.2.2 / (download) - annotate - [select for diffs], Fri Aug 3 04:13:13 2001 UTC (22 years, 7 months ago) by lukem
Branch: kqueue
Changes since 1.2.2.1: +288 -0 lines
Diff to previous 1.2.2.1 (colored)

update to -current

Revision 1.2.4.1, Fri Jul 20 07:07:05 2001 UTC (22 years, 7 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.2: +0 -288 lines
FILE REMOVED

file makphy.c was added on branch nathanw_sa on 2001-08-24 00:09:58 +0000

Revision 1.2.2.1, Fri Jul 20 07:07:05 2001 UTC (22 years, 7 months ago) by lukem
Branch: kqueue
Changes since 1.2: +0 -288 lines
FILE REMOVED

file makphy.c was added on branch kqueue on 2001-08-03 04:13:13 +0000

Revision 1.2 / (download) - annotate - [select for diffs], Fri Jul 20 07:07:05 2001 UTC (22 years, 7 months ago) by thorpej
Branch: MAIN
Branch point for: nathanw_sa, kqueue
Changes since 1.1: +3 -3 lines
Diff to previous 1.1 (colored)

Adjust for the corrected Marvell entry.

Revision 1.1 / (download) - annotate - [select for diffs], Thu Jul 12 17:30:45 2001 UTC (22 years, 7 months ago) by thorpej
Branch: MAIN

Driver for the Marvell 88E1000 ``Alaska'' 10/100/1000 PHY.

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>