The NetBSD Project

CVS log for src/sys/dev/mii/miivar.h

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

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.75: download - view: text, markup, annotated - select for diffs
Sun Aug 14 20:34:26 2022 UTC (2 years, 3 months ago) by riastradh
Branches: MAIN
CVS tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, perseant-exfatfs-base-20240630, perseant-exfatfs-base, perseant-exfatfs, netbsd-10-base, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, bouyer-sunxi-drm-base, bouyer-sunxi-drm, HEAD
Diff to: previous 1.74: preferred, colored
Changes since revision 1.74: +5 -2 lines
mii(4): Wait for MIIF_DOINGAUTO to clear with MIIF_AUTOTSLEEP too.

Otherwise mii_phy_detach may return while mii_phy_auto_timeout_locked
is still in progress in another thread.

Reuse the storage for mii_nway_ch, which is unused if MIIF_AUTOTSLEEP
is set, for a new condvar in a union.  This doesn't change the kernel
ABI because sizeof(struct kcondvar) <= sizeof(struct callout) and
both have the same alignment, for an array of void *.

Revision 1.73.6.1: download - view: text, markup, annotated - select for diffs
Sun Aug 1 22:42:24 2021 UTC (3 years, 4 months ago) by thorpej
Branches: thorpej-i2c-spi-conf
Diff to: previous 1.73: preferred, colored; next MAIN 1.74: preferred, colored
Changes since revision 1.73: +4 -1 lines
Sync with HEAD.

Revision 1.74: download - view: text, markup, annotated - select for diffs
Tue Jun 29 21:03:36 2021 UTC (3 years, 5 months ago) by pgoyette
Branches: MAIN
CVS tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-futex2-base, thorpej-futex2, thorpej-cfargs2-base, thorpej-cfargs2
Diff to: previous 1.73: preferred, colored
Changes since revision 1.73: +4 -1 lines
Rework the xxxVERBOSE option to share the common module-hook-based
verbose mechanism with MIIVERBOSE.  This reduces some duplicated code
and allows us to once again permit auto-unload of MIIVERBOSE.

Change details:
* Update dev/devlist2h.awk to accomodate miidevs, including generation
  of MII_STR_oui_model definitions and use of oui and model rather than
  vendor and product.  This also changes the compressed data in the
  xxxdevs_data.h files to uint32_t (since mii oui's are up to 6 hex
  digits long)
* Update a couple of phy drivers to use new calls to get verbose data
* Regen all of the xxxdevs{,_data}.h files (separate commit, coming
  very soon)
* Update mii/mii_verbose.[ch] and mii/mii_physubr.c to use the various
  DEV_VERBOSE_xxx macros
* Update the pci, usb, and hdaudio code as needed, to #include the
  xxxdevs.h files (in order to get the proper printf format strings)
* Since dev/dev_verbose.c now uses non-literal printf format strings,
  (to deal with the vendor/product vs oui/model issue), we need to
  make sure it gets compiled with -Wno-error=format-nonliteral, even
  in userland's libpci and librumpdev!
* Bump kernel version for the change in module interfaces

Welcome to 9.99.86!

XXX It might be useful in the future to extend the MII_STR_oui_model
XXX definitions to PCI as well (and perhaps USB and HDAUDIO).  This
XXX would allow for a single centralized location for the products'
XXX descriptions, rather than being dispersed among individual
XXX drivers' xxx_match tables.

Revision 1.73: download - view: text, markup, annotated - select for diffs
Mon Aug 24 04:23:41 2020 UTC (4 years, 3 months ago) by msaitoh
Branches: MAIN
CVS tags: thorpej-futex-base, thorpej-futex, thorpej-cfargs-base, thorpej-cfargs, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Branch point for: thorpej-i2c-spi-conf
Diff to: previous 1.72: preferred, colored
Changes since revision 1.72: +2 -1 lines
 Don't do full initialization for autonego when just restarting autonego
because it's not required.

 This change reduce extra initialization which include PHY_RESET() which
caused long delay(max 500ms).

Revision 1.72: download - view: text, markup, annotated - select for diffs
Tue Jul 7 08:44:12 2020 UTC (4 years, 5 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.71: preferred, colored
Changes since revision 1.71: +2 -2 lines
- Remove the waitfor argument from mii_phy_auto().
- Whitespace fix.

Revision 1.71: download - view: text, markup, annotated - select for diffs
Mon May 25 19:47:58 2020 UTC (4 years, 6 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.70: preferred, colored
Changes since revision 1.70: +3 -1 lines
Add MIIF_RXID and MIIF_TXID flags to signal that RX or TX delays are required, from OpenBSD.

Revision 1.62.28.2: download - view: text, markup, annotated - select for diffs
Wed Apr 8 14:08:08 2020 UTC (4 years, 8 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.62.28.1: preferred, colored; branchpoint 1.62: preferred, colored; next MAIN 1.63: preferred, colored
Changes since revision 1.62.28.1: +62 -31 lines
Merge changes from current as of 20200406

Revision 1.70: download - view: text, markup, annotated - select for diffs
Sun Mar 15 23:04:50 2020 UTC (4 years, 8 months ago) by thorpej
Branches: MAIN
CVS tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh
Diff to: previous 1.69: preferred, colored
Changes since revision 1.69: +62 -31 lines
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.62.20.1: download - view: text, markup, annotated - select for diffs
Thu Nov 21 14:06:16 2019 UTC (5 years ago) by martin
Branches: netbsd-8
CVS tags: netbsd-8-3-RELEASE, netbsd-8-2-RELEASE
Diff to: previous 1.62: preferred, colored; next MAIN 1.63: preferred, colored
Changes since revision 1.62: +2 -2 lines
Pull up the following revisions, requested by msaitoh in ticket #1454:

	sys/dev/mii/atphy.c			1.22-1.23, 1.25 via patch
	sys/dev/mii/mii_physubr.c		1.88 via patch
	sys/dev/mii/miivar.h			1.69 via patch

- Fix a bug that atphy(4) can't negotiate correctly when the media
  setting is neither auto nor 1000baseT.
- Code cleanup.

Revision 1.68.4.1: download - view: text, markup, annotated - select for diffs
Thu Nov 21 14:00:49 2019 UTC (5 years ago) by martin
Branches: netbsd-9
CVS tags: netbsd-9-4-RELEASE, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1
Diff to: previous 1.68: preferred, colored; next MAIN 1.69: preferred, colored
Changes since revision 1.68: +2 -2 lines
Pull up following revision(s) (requested by msaitoh in ticket #459):

	sys/dev/mii/atphy.c: revision 1.23
	sys/dev/mii/atphy.c: revision 1.25
	sys/dev/mii/miivar.h: revision 1.69
	sys/dev/mii/mii_physubr.c: revision 1.88

s/etphy/atphy/. No functional change.

 Fix a bug that atphy(4) can't negotiate correctly when the media setting is
neither auto nor 1000baseT. Use correct index for mii_media_table[].

 History: mii_anar() is first added in OpenBSD and ported to NetBSD. On NetBSD,
only atphy(4) use this function. mii_physubr.c rev. 1.75 changed mii_anar()
for simplify. It changed the argument from the ifmedia word to ifm_data used
in our MII API, but the caller have not been changed. And then, PR kern/50206
was reported and the caller was modified by me to prevent panic but it was not
correct fix.

Revision 1.69: download - view: text, markup, annotated - select for diffs
Wed Nov 20 08:50:59 2019 UTC (5 years ago) by msaitoh
Branches: MAIN
CVS tags: is-mlppp-base, is-mlppp, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache
Diff to: previous 1.68: preferred, colored
Changes since revision 1.68: +2 -2 lines
 Fix a bug that atphy(4) can't negotiate correctly when the media setting is
neither auto nor 1000baseT. Use correct index for mii_media_table[].

 History: mii_anar() is first added in OpenBSD and ported to NetBSD. On NetBSD,
only atphy(4) use this function. mii_physubr.c rev. 1.75 changed mii_anar()
for simplify. It changed the argument from the ifmedia word to ifm_data used
in our MII API, but the caller have not been changed. And then, PR kern/50206
was reported and the caller was modified by me to prevent panic but it was not
correct fix.

Revision 1.62.28.1: download - view: text, markup, annotated - select for diffs
Mon Jun 10 22:07:14 2019 UTC (5 years, 6 months ago) by christos
Branches: phil-wifi
Diff to: previous 1.62: preferred, colored
Changes since revision 1.62: +77 -25 lines
Sync with HEAD

Revision 1.68: download - view: text, markup, annotated - select for diffs
Thu Apr 11 09:14:07 2019 UTC (5 years, 8 months ago) by msaitoh
Branches: MAIN
CVS tags: phil-wifi-20191119, phil-wifi-20190609, netbsd-9-base, isaki-audio2-base, isaki-audio2
Branch point for: netbsd-9
Diff to: previous 1.67: preferred, colored
Changes since revision 1.67: +4 -8 lines
 KNF. No functional change.

Revision 1.67: download - view: text, markup, annotated - select for diffs
Tue Apr 9 11:28:45 2019 UTC (5 years, 8 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.66: preferred, colored
Changes since revision 1.66: +7 -7 lines
- Use uint16_t more for MII registers.
- Whitespace.

Revision 1.66: download - view: text, markup, annotated - select for diffs
Tue Feb 26 05:26:10 2019 UTC (5 years, 9 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.65: preferred, colored
Changes since revision 1.65: +53 -1 lines
Add MI MII clause 45 MMD MDIO access macros via clause 22 indirect registers:

DESCRIPTION
    static inline int
    MMD_INDIRECT(struct mii_softc *sc, uint16_t daddr, uint16_t regnum):
	Setup MMD device address and register number. It also setup
	address incrementation function.

    static inline int
    MMD_INDIRECT_READ(struct mii_softc *sc, uint16_t daddr, uint16_t regnum,
      uint16_t *valp)):
	Do MMD_INDIRECT() and then read the register.

    static inline int
    MMD_INDIRECT_WRITE(struct mii_softc *sc, uint16_t daddr, uint16_t regnum,
      uint16_t val):
	Do MMD_INDIRECT() and then write the register.

RETURN VALUE
    Retruns 0 on success. Non-zero vaule on failure.

    Note that old PHYs have no indirect access registers. Accessing such
    devices with these functions cause timeout and return non-zero value
    (e.g. ETIMEDOUT).

EXAMPLE
	Read MMD Auto negotiation device's EEE advertisement register,
	drop 100BASE-TX support and write it.

	uint16_t eeadvert;

	/* Post increment is not required */
	MMD_INDIRECT_READ(sc, MDIO_MMD_AN | MMDACR_FN_DATA,
	    MDIO_AN_EEEADVERT, &eeadvert);
	eeadvert &= ~AN_EEEADVERT_100_TX;

	/*
	 * MMD device address and the register number are already set, so it's
	 * enough to read MII_MMDACR.
	 */
	PHY_WRITE(sc. MII_MMDACR, eeadvert);

Revision 1.65: download - view: text, markup, annotated - select for diffs
Sun Feb 24 17:22:21 2019 UTC (5 years, 9 months ago) by christos
Branches: MAIN
Diff to: previous 1.64: preferred, colored
Changes since revision 1.64: +5 -1 lines
use a macro to tidy up the phydesc array initialization, from FreeBSD

Revision 1.62.26.2: download - view: text, markup, annotated - select for diffs
Sat Jan 26 22:00:06 2019 UTC (5 years, 10 months ago) by pgoyette
Branches: pgoyette-compat
CVS tags: pgoyette-compat-merge-20190127
Diff to: previous 1.62.26.1: preferred, colored; branchpoint 1.62: preferred, colored; next MAIN 1.63: preferred, colored
Changes since revision 1.62.26.1: +10 -10 lines
Sync with HEAD

Revision 1.64: download - view: text, markup, annotated - select for diffs
Tue Jan 22 03:42:27 2019 UTC (5 years, 10 months ago) by msaitoh
Branches: MAIN
CVS tags: pgoyette-compat-20190127
Diff to: previous 1.63: preferred, colored
Changes since revision 1.63: +10 -10 lines
 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.62.26.1: download - view: text, markup, annotated - select for diffs
Fri Jan 18 08:50:26 2019 UTC (5 years, 10 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.62: preferred, colored
Changes since revision 1.62: +3 -3 lines
Synch with HEAD

Revision 1.63: download - view: text, markup, annotated - select for diffs
Tue Jan 8 03:03:50 2019 UTC (5 years, 11 months ago) by msaitoh
Branches: MAIN
CVS tags: pgoyette-compat-20190118
Diff to: previous 1.62: preferred, colored
Changes since revision 1.62: +3 -3 lines
s/u_int32_t/uint32_t/

Revision 1.52.10.3: download - view: text, markup, annotated - select for diffs
Mon Nov 9 12:33:01 2015 UTC (9 years, 1 month ago) by sborrill
Branches: netbsd-5
Diff to: previous 1.52.10.2: preferred, colored; branchpoint 1.52: preferred, colored; next MAIN 1.53: preferred, colored
Changes since revision 1.52.10.2: +2 -1 lines
Pull up the following revisions(s) (requested by msaitoh in ticket #1983):
	sys/dev/pci/pcidevs:		revisions 1.1079, 1.1134, 1.1148-1.1149, 1.1151
	sys/dev/pci/pcidevs.h:		regen
	sys/dev/pci/pcidevs_data.h:	regen
	sys/dev/pci/if_bge.c:		revisions 1.183-1.185, 1.187, 1.189-1.193, 1.195-1.199, 1.202-1.226, 1.228-1.237, 1.240-1.264, 1.267-1.276, 1.278-1.280, 1.283-1.287 via patch
	sys/dev/pci/if_bgereg.h:	revisions 1.57-1.74, 1.76-1.90 via patch
	sys/dev/pci/if_bgevar.h:	revisions 1.6, 1.10-1.13, 1.15-1.17 via patch
	sys/dev/pci/if_bnx.c:		revisions 1.32, 1.34-1.43, 1.48-1.49, 1.52
	sys/dev/pci/if_bnxreg.h:	revisions 1.8, 1.11-1.14
	sys/dev/pci/if_bnxvar.h:	revisions 1.1-1.3
	sys/dev/mii/brgphy.c:		revisions 1.53-1.63, 1.65-69, 1.72-1.74 via patch
	sys/dev/mii/brgphyreg.h:	revisions 1.5-1.8
	sys/dev/mii/miivar.h:		revisions 1.61
	sys/dev/pci/pcireg.h:		patch

Sync bge(4) up to if_bge.c rev. 1.287. Sync brgphy(4) up to 1.74.
Fix some bugs on bnx(4).

Common:
- Add device IDs for Broadcom BCM57710, BCM57711(E), BCM57712(E) and
  BCM57766 (pcidevs only).
- Fix BCM5709 PHY detection.
- Fix detection of BGEPHYF_FIBER_{MII|TBI}
- Add BCM5708S support in brgphy(4).
- Don't use the WIRESPEED function for fiber devices.
bge(4):
- Add some Fujitsu's device support from Michael Moll.
- Add BCM57762 support (PR#46961 from Ryo Onodera).
- Add Altima AC1003, APPLE BCM5701, Broadcom BCM5785F. BCM5785G,
  BCM5787F, BCM5719, BCM5720, BCM57766, BCM57782 and BCM57786.
- Fix DMA setting for read/write on conventional PCI bus devices.
  This bug was added in rev. 1.166.
- Fix printing "discarding oversize frame (len=-4)" message and
  crash by NULL pointer dereferencing.
- The BCM5785 is a PCIe chip but does not report PCIe capabilities.
  Check for this chip explicitely and enable PCIe. Fixes
  'firmware handshake timeout'.
- Allow disabling interrupt mitigation.
- Workaround for BCM5906 silicon bug. When auto-negotiation results
  in half-duplex operation, excess collision on the ethernet link may
  cause internal chip delays that may result in subsequent valid
  frames being dropped due to insufficient receive buffer resources.
  (FreeBSD: r214219, r214251, r214292).
- Allow write DMA to request larger DMA burst size to get better
  performance on BCM5785. (FreeBSD r213333: OpenBSD 1.294)
- Enable TX MAC state machine lockup fix for both BCM5755 or higher
  and BCM5906. Publicly available data sheet just says it may happen
  due to corrupted TxMbuf. (FreeBSD r214216)
- Follow Broadcom datasheet:
  Delay 100 microseconds after enabling transmit MAC.
  Delay 10 microseconds after enabling receive MAC. (FreeBSD
  r241220)
- Insert the completion barrier between register write and the
  consecutive delay(). It will fix some device timeout problems we have
  seen before.
- Add DELAY(40) after turning on write DMA state machine.
- Add some workarounds for 5717 A0 and 5776[56] to be stable.
- Check BGE_RXBDFLAG_IPV6 flag for 5717_PLUS case. Note that
  {tcp,udp}6csum flag is currently not added in the capability.
- Add delay after clearing BGE_MACMODE_TBI_SEND_CFGS for the link
  checking.
- Do not touch the jumbo replenish threshold register on chips that do
  not have jumbo support.
- Wait for the bootcode to complete initialization for 5717 and newer
  devices.
- 5718 and 57785 document say we should wait 100us in init.
- Fix a bug that chips which have BCM5906 ASIC touch GPIO wrongly.
- Fix the setting of Tx Random Backoff Register.
- Check the hardware config words and print them.
- Set BGE_MISC_CTL's byte/word swap options before using
  bge_readmem_ind(). Fixes PR#47716.
- For BGE_IS_575X_PLUS() devices, don't set
  BGE_RXLPSTATCONTROL_DACK_FIX bits because these bits are reserved.
- Document says 5717 and newer chips have no
  BGE_PCISTATE_INTR_NOT_ACTIVE bit, so don't use the bit on those
  chips. Same as OpenBSD.
- Fix a bug that the PHY address bits in MI_MODE register is wrongly
  cleard. Set the PHY address correctly.
- Use BGE_SETBIT() instead of CSR_WRITE_4() for the BGE_MISC_LOCAL_CTL
  register to not to modify some GPIO bits.
- Set DMA watermark depend on the PCI max payload size.
- Set BGE_JUMBO_CAPABLE correctly.
- Fix a link detect bug on non-autopoll systems.
- Change the TX ring size for 5717 series and 57764 series.
- Set maximum read byte count to 2048 for PCI-X BCM5703/5704 devices.
- For PCI-X BCM5704, set maximum outstanding split transactions to 0.
- Add 40bit DMA bug workaround(BGEF_40BIT_BUG) from FreeBSD.
  This workaround is for 5714/5715 controllers and is not actually a
  MAC controller bug but an issue with the embedded PCIe to PCI-X
  bridge in the device. This change uses bus_dmatag_subregion(),
  so this workaround won't work on some archs which doesn't support
  bus_dmatag_subregion().
- Add 2500SX support (not tested).
- Don't use the PHY Auto Poll Mode on many chips. This fixes a bug
  that MII Fiber NIC drop packet about 50%. Tested on HP Moonshot.
- Add workaround for PR#48451. Some BCM5717-5720 based systems getNMI
  on boot. This problem doesn't occur when we don't use prefetchable
  memory in the APE area. Tested with HP MicroServer Gen8.
- In the BCM5703, the DMA read watermark should be set to less than
  or equal to the maximum memory read byte count of the PCI-X command
  register.
- Fix a bug that BGE_PHY_TEST_CTRL_REG isn't set correctly on some
  PCIe devices.
- Use another firmware command in bge_asf_driver_up(). Same as Linux.
  This change fixes a bug that watchdog timeout occurs every 25-30
  minutes on HP ML110 G6 reported enami@ in PR#49657.
- Fix mbuf leak on failure.
- Remove PCI_PRODUCT_BROADCOM_BCM5724 and
  PCI_PRODUCT_BROADCOM_BCM5750M. These devices have not released to
  public.
- Add some workaround code for BGE_ASICREV_BCM5784 from Linux.
- Change some printf() to aprint_*().
- Fix typo in comments.
- Cleanup.
brgphy(4):
- Fix bit definition of BRGPHY_MRBE_MSG_PG5_NP_T2 from FreeBSD.
- Add BCM5481, BCM5709S, BCM5756, BCM5717C, BCM5720C, BCM5785,
  BCM57765(PR#46961), BCM57780
- In brgphyattach(), set sc_isbge, sc_isbnx and sc_phyflags before
  PHY_RESET() because brgphy_reset() refers those flags.
- Call brgpy specific autonego function in MII_TICK. Before this
  commit, only MII_MEDIACHG calls brgphy_mii_phy_auto() and MII_TICK
  calls MI mii_phy_auto(). That was not intended.
- Remove extra delay in brgphy_mii_phy_auto. Same as {Free,Open}BSD.
bnx(4):
- Add missing ifmedia_delete_instance() in bnx_detach().
- Fix a bug that BNX_NO_WOL_FLAG isn't correctly set on some chips.
  Reported by From Henning Petersen in PR#44151.
- Fix SERDES initialization.
- Get out of the interrupt handler early if !IFF_RUNNING.

Revision 1.60.2.2: download - view: text, markup, annotated - select for diffs
Wed Aug 20 00:03:41 2014 UTC (10 years, 3 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.60.2.1: preferred, colored; branchpoint 1.60: preferred, colored; next MAIN 1.61: preferred, colored
Changes since revision 1.60.2.1: +1 -1 lines
Rebase to HEAD as of a few days ago.

Revision 1.61.10.1: download - view: text, markup, annotated - select for diffs
Sun Aug 10 06:54:53 2014 UTC (10 years, 4 months ago) by tls
Branches: tls-earlyentropy
Diff to: previous 1.61: preferred, colored; next MAIN 1.62: preferred, colored
Changes since revision 1.61: +2 -2 lines
Rebase.

Revision 1.62: download - view: text, markup, annotated - select for diffs
Wed May 28 09:49:55 2014 UTC (10 years, 6 months ago) by msaitoh
Branches: MAIN
CVS tags: tls-maxphys-base-20171202, tls-maxphys-base, tls-earlyentropy-base, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, phil-wifi-base, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, pgoyette-compat-base, pgoyette-compat-1226, pgoyette-compat-1126, 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, 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, nick-nhusb-base-20161004, nick-nhusb-base-20160907, 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, nick-nhusb, netbsd-8-base, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7, matt-nb8-mediatek-base, matt-nb8-mediatek, localcount-20160914, jdolecek-ncqfixes-base, jdolecek-ncqfixes, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: phil-wifi, pgoyette-compat, netbsd-8
Diff to: previous 1.61: preferred, colored
Changes since revision 1.61: +2 -2 lines
Fix typo in comment.

Revision 1.59.8.2: download - view: text, markup, annotated - select for diffs
Thu May 22 11:40:23 2014 UTC (10 years, 6 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.59.8.1: preferred, colored; branchpoint 1.59: preferred, colored; next MAIN 1.60: preferred, colored
Changes since revision 1.59.8.1: +2 -1 lines
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.59.14.1: download - view: text, markup, annotated - select for diffs
Sat Sep 7 16:39:32 2013 UTC (11 years, 3 months ago) by bouyer
Branches: netbsd-6
Diff to: previous 1.59: preferred, colored; next MAIN 1.60: preferred, colored
Changes since revision 1.59: +2 -1 lines
sys/dev/pci/if_bge.c		1.203-1.237, 1.239-1.241, 1.243-1.258 via patch
sys/dev/pci/if_bgereg.h		1.58-1.74, 1.76-1.83 via patch
sys/dev/pci/if_bgevar.h		1.10-1.16 via patch
sys/dev/pci/pcidevs		1.1149 via patch
sys/dev/pci/pcidevs.h		regen
sys/dev/pci/pcidevs_data.h	regen
sys/dev/mii/brgphy.c		1.61-1.63, 1.65, 1.67 via patch
sys/dev/mii/miivar.h		1.61 via patch
sys/dev/mii/miidevs		1.112-1.113 via patch
sys/dev/mii/miidevs.h		regen
sys/dev/mii/miidevs_data.h	regen
share/man/man4/bge.4		1.13-1.15 via patch

	Add some device support, fix a lot of bugs and add some enahcements.
	- Add Altima AC1003, APPLE BCM5701, Broadcom BCM5785F,
	  BCM5785G, BCM5787F, BCM5719, BCM5720, BCM57766, BCM57782 and BCM57786.
	- brgphy(4): Add BCM5756, BCM5717C, BCM5719C, BCM5720C and BCM57780.
	- Add some bugfixes and enhancement from FreeBSD:
	  - Workaround for BCM5906 silicon bug. When auto-negotiation results in
	   half-duplex operation, excess collision on the ethernet link may
	   cause internal chip delays that may result in subsequent valid
	   frames being dropped due to insufficient receive buffer resources.
	   (FreeBSD: r214219, r214251, r214292)
	  - Allow write DMA to request larger DMA burst size to get better
	   performance on BCM5785.
	   (FreeBSD r213333: OpenBSD 1.294)
	  - Enable TX MAC state machine lockup fix for both BCM5755 or higher
	   and BCM5906. Publicly available data sheet just says it may happen
	   due to corrupted TxMbuf.
	   (FreeBSD r214216)
	  - Follow Broadcom datasheet:
	   Delay 100 microseconds after enabling transmit MAC.
	   Delay 10 microseconds after enabling receive MAC.
	   (FreeBSD r241220)
	- Insert the completion barrier between register write and the
	  consecutive delay(). It will fix some device timeout problems
	  we have seen before.
	- Add DELAY(40) after turning on write DMA state machine.
	- Add some workarounds for 5717 A0 and 5776[56] to be stable.
	  From Linux tg3 driver.
	- Sync with *BSD. No functional change:
	  - make bge_chipid() and use it.
	  - use switch() instead of a lot of if()s.
	- Check BGE_RXBDFLAG_IPV6 flag for 5717_PLUS case.
	  Note that {tcp,udp}6csum flag is currently not added in the
	  capability.
	- Add delay after clearing BGE_MACMODE_TBI_SEND_CFGS for the link
	  checking.  FreeBSD has the same delay().
	- Rename PHY related flags for the consistency. It's the same as
	  FreeBSD.
	- Remove BGE_10_100_ONLY flag because this was not used.
	  For 10/100 devices, when calling mii_attach(), mask BMSR_EXTSTAT
	  flag to not to check Gigabit flags. It's the same as FreeBSD.
	- In brgphyattach(), set sc_isbge, sc_isbnx and sc_phyflags before
	  PHY_RESET() because brgphy_reset() refers those flags.
	- Call brgpy specific autonego function in MII_TICK. Before this commit,
	  only MII_MEDIACHG calls brgphy_mii_phy_auto() and MII_TICK calls MI
	  mii_phy_auto(). That was not intended.
	- Sync with FreeBSD and OpenBSD. Almost the same as OpenBSD rev. 1.325:
	  - Sync the ring setup code closer to FreeBSD's driver
	  - Do not touch the jumbo replenish threshold register on chips that
	    do not have jumbo support
	- Wait for the bootcode to complete initialization for 5717 and newer
	  devices.  See BCM5718 programmer's guide's "step 13,
	  Device reset Procedure, Section7".
	  57781's document has the same note.
	- 5718 and 57785 document say we should wait 100us.
	- Change the order of register settings a little to match both
	  Broadcom's document and Linux tg3.
	- Add detach function.
	- Fix a bug that chips which have BCM5906 ASIC touch GPIO wrongly.
	- Fix a bug that the NVRAM lock timeout occured on sparc64 onboard bge.
	- Check BGE_SGDIG_STS when the chip is NOT a 5717 A0, like freebsd
	  (OpenBSD rev. 1.327).
	- Fix the setting of Tx Random Backoff Register.
	- Add BGE_PCIMISCCTL_PCISTATE_RW in BGE_INIT. It's required to set the
	  PCISTATE register correctly.
	- Update comments from 57XX-PG105-R.pdf and 5718-PG106-R.pdf.
	- Add missing bus_dmamap_sync() in bge_intr(). The status word is
	  in DMAed area. Same as other *BSDs.
	- Check the hardware config words and print them. This change only
	  read them and print the values.
	- Set BGE_MISC_CTL's byte/word swap options before using
	  bge_readmem_ind().
	- For BGE_IS_575X_PLUS() devices, don't set
	  BGE_RXLPSTATCONTROL_DACK_FIX bits because these bits are reserved.
	- bge_init_tx_ring() uses BGE_RSLOTS (==256) but bge_free_tx_ring() uses
	  BGE_TX_RING_CNT (== 512). Delete BGE_RSLOTS and use BGE_TX_RING_CNT.
	  Same as OpenBSD's if_bge.c rev. 1.86.
	- Document says 5717 and newer chips have no
	  BGE_PCISTATE_INTR_NOT_ACTIVE bit, so don't use the bit on those
	  chips. Same as OpenBSD.
	- Fix a bug that the PHY address bits in MI_MODE register is wrongly
	  cleard.  Set the PHY address correctly.
	- Use BGE_SETBIT() instead of CSR_WRITE_4() for the BGE_MISC_LOCAL_CTL
	  register to not to modify some GPIO bits.
	- Call bge_poll_fw() before writing BGE_MODE_CTL register like the
	  latest linux tg3 dirver.
	- Set DMA watermark depend on the PCI max payload size.
	- Add BGE_JUMBO_CAPABLE flag to some chips. With this commit, 5714,
	  5780, 5717, 5718, 5719 (exclude rev. A0), 5720, 57765 and 57766 are
	  added to support jumbo frame.
	- Fix the setting of sc->bge_flags for 5717 and newer devices.
	- Fix a link detect bug on non-autopoll systems. Same as OpenBSD
	  (rev.1.329 and 1.336) and FreeBSD (r213710).
	- 57765 series is not based on 5717 series. 5717 series is based on
	  57765 series.
	- Set the TX DMA segment size based on the MTU size.
	- Change the TX ring size for 5717 series and 57764 series.
	- For 57766, set BGE_RDMAMODE_JMB_2K_MMRR for non-jumbo frame.
	  Same as Linux tg3.
	- For 57765 and newer devices, set BGE_MAX_RX_FRAME_LOWAT to 1.
	  This value is recommended by the document.
	- Change sysctl related functions for consistency.
	- Style change.
	- Use macro. Remove duplicated macro. Remove unused variable.
	- Fix comments. Add comments.
	- Remove extra semicolon. Remove unused code.
	[msaitoh, ticket #939]

Revision 1.60.2.1: download - view: text, markup, annotated - select for diffs
Sun Jun 23 06:20:18 2013 UTC (11 years, 5 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.60: preferred, colored
Changes since revision 1.60: +2 -1 lines
resync from head

Revision 1.61: download - view: text, markup, annotated - select for diffs
Fri Mar 15 06:18:13 2013 UTC (11 years, 9 months ago) by msaitoh
Branches: MAIN
CVS tags: yamt-pagecache-base9, rmind-smpnet-nbase, rmind-smpnet-base, rmind-smpnet, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, khorben-n900, agc-symver-base, agc-symver
Branch point for: tls-earlyentropy
Diff to: previous 1.60: preferred, colored
Changes since revision 1.60: +2 -1 lines
Add BCM5756, BCM5717C, BCM5719C, BCM5720C and BCM57780.

Revision 1.59.8.1: download - view: text, markup, annotated - select for diffs
Tue Oct 30 17:21:20 2012 UTC (12 years, 1 month ago) by yamt
Branches: yamt-pagecache
CVS tags: yamt-pagecache-tag8
Diff to: previous 1.59: preferred, colored
Changes since revision 1.59: +3 -2 lines
sync with head

Revision 1.60: download - view: text, markup, annotated - select for diffs
Sun Jul 22 14:33:00 2012 UTC (12 years, 4 months ago) by matt
Branches: MAIN
CVS tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6
Branch point for: tls-maxphys
Diff to: previous 1.59: preferred, colored
Changes since revision 1.59: +3 -2 lines
Fix mii_statchg to take a 'struct ifnet *' instead of device_t.  This fixes
problem with a common MDIO bus used for multiple interfaces.
Some drivers converted to CFATTACL_DECL_NEW.

Revision 1.57.2.2: download - view: text, markup, annotated - select for diffs
Tue Aug 17 06:46:20 2010 UTC (14 years, 3 months ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.57.2.1: preferred, colored; branchpoint 1.57: preferred, colored; next MAIN 1.58: preferred, colored
Changes since revision 1.57.2.1: +2 -0 lines
Sync with HEAD.

Revision 1.50.4.5: download - view: text, markup, annotated - select for diffs
Wed Aug 11 22:53:40 2010 UTC (14 years, 4 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.50.4.4: preferred, colored; branchpoint 1.50: preferred, colored; next MAIN 1.51: preferred, colored
Changes since revision 1.50.4.4: +3 -1 lines
sync with head.

Revision 1.58.2.1: download - view: text, markup, annotated - select for diffs
Sat Jul 3 01:19:36 2010 UTC (14 years, 5 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.58: preferred, colored; next MAIN 1.59: preferred, colored
Changes since revision 1.58: +3 -1 lines
sync with head

Revision 1.59: download - view: text, markup, annotated - select for diffs
Sun May 30 17:44:08 2010 UTC (14 years, 6 months ago) by pgoyette
Branches: MAIN
CVS tags: yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, rmind-uvmplock-nbase, rmind-uvmplock-base, 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, matt-mips64-premerge-20101231, jruoho-x86intr-base, jruoho-x86intr, jmcneill-usbmp-pre-base2, 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, jmcneill-usbmp-base, jmcneill-usbmp, jmcneill-audiomp3-base, jmcneill-audiomp3, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: yamt-pagecache, netbsd-6
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +3 -1 lines
Extract MIIVERBOSE into a kernel module.  The module can be builtin
by defining 'options MIIVERBOSE' in the kernel config file (no change
from current behavior), or it can be loaded at boot time on those
architectures that support the boot loader's "load" command.

Revision 1.57.2.1: download - view: text, markup, annotated - select for diffs
Fri Apr 30 14:43:28 2010 UTC (14 years, 7 months ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +2 -2 lines
Sync with HEAD.

Revision 1.52.10.1.4.1: download - view: text, markup, annotated - select for diffs
Wed Apr 21 00:27:39 2010 UTC (14 years, 7 months ago) by matt
Branches: matt-nb5-mips64
CVS tags: matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-k15
Diff to: previous 1.52.10.1: preferred, colored; next MAIN 1.52.10.2: preferred, colored
Changes since revision 1.52.10.1: +3 -2 lines
sync to netbsd-5

Revision 1.50.4.4: download - view: text, markup, annotated - select for diffs
Thu Mar 11 15:03:41 2010 UTC (14 years, 9 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.50.4.3: preferred, colored; branchpoint 1.50: preferred, colored
Changes since revision 1.50.4.3: +2 -3 lines
sync with head

Revision 1.58: download - view: text, markup, annotated - select for diffs
Wed Feb 24 22:37:59 2010 UTC (14 years, 9 months ago) by dyoung
Branches: MAIN
CVS tags: yamt-nfs-mp-base9, uebayasi-xip-base1
Branch point for: rmind-uvmplock
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +2 -2 lines
A pointer typedef entails trading too much flexibility to declare const
and non-const types, and the kernel uses both const and non-const
PMF qualifiers and device suspensors, so change the pmf_qual_t and
device_suspensor_t typedefs from "pointers to const" to non-pointer,
non-const types.

Revision 1.57: download - view: text, markup, annotated - select for diffs
Fri Jan 8 19:58:33 2010 UTC (14 years, 11 months ago) by dyoung
Branches: MAIN
CVS tags: uebayasi-xip-base
Branch point for: uebayasi-xip
Diff to: previous 1.56: preferred, colored
Changes since revision 1.56: +2 -2 lines
Expand PMF_FN_* macros.

Revision 1.56: download - view: text, markup, annotated - select for diffs
Fri Dec 4 22:37:35 2009 UTC (15 years ago) by dyoung
Branches: MAIN
CVS tags: matt-premerge-20091211
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +1 -2 lines
Delete unused function mii_activate().

Revision 1.47.2.1: download - view: text, markup, annotated - select for diffs
Tue Aug 18 10:10:19 2009 UTC (15 years, 3 months ago) by bouyer
Branches: netbsd-4
Diff to: previous 1.47: preferred, colored; next MAIN 1.48: preferred, colored
Changes since revision 1.47: +3 -2 lines
Pull up following revision(s) (requested by msaitoh in ticket #1342):
	sys/dev/pci/if_bge.c: revisions 1.135, 1.146, 1.151-1.152,
					1.155-1.167 via patch
	sys/dev/pci/if_bgereg.h: revisions 1.43, 1.48-1.52
	sys/dev/pci/if_bgevar.h: revision 1.1
	sys/dev/mii/brgphy.c: revisions 1.36, 1.40, 1.43-1.44 and
					1.47-1.48 via patch
	sys/dev/mii/brgphyreg.h: revisions 1.3-1.4
	sys/dev/mii/miidevs: revisions 1.75, 1.77, 1.85
	sys/dev/mii/miidevs.h: regen
	sys/dev/mii/miidevs_data.h: regen
	sys/dev/mii/miivar.h: revision 1.54
For bge:
  - Really set Tx threshold.
  - Fix the case of setting a flag in BGE_PCI_DMA_RW_CTL on
    conventional PCI.
  - Fix some bugs that the driver unable to detect link loss
    (OpenBSD 1.135, FreeBSD 1.102)
  - bge_tick(): fix some extra input error (OpenBSD 1.221 FreeBSD 1.212)
  - Acknowledge link change interrupts by setting the "link changed" bit
    in the status register (used to have no effect). FreeBSD 1.44
    (OpenBSD 1.21)
  - Add some fiber support (OpenBSD 1.220)
  - Set BGE_MISCCFG_KEEP_GPHY_POWER as {Open,Free}BSD and linux.
  - Add special case code to fix a problem with the BCM5704 in TBI
    mode (FreeBSD rev. 1.71, OpenBSD rev. 1.35)
  - Force an interrupt in bge_ifmedia_upd (FreeBSD rev. 1.205, OpenBSD
    rev. 1.242)
  - Add missing workaround for 5705 (FreeBSD rev. 1.44, OpenBSD rev.
    1.21)
  - Don't print error message only when the register is BGE_SRS_MODE.
    It occurs on some environment (and once after boot?). Other *BSDs
    and Linux don't print the error message for all registers.
  - Fix comments.
  - Remove obsolete codes.
  - Add BCM5786 support.
for brgphy:
  - Add some quirk codes.
  - Add support for BCM5462, BCM54K2, BCM5708C, BCM5722, and BCM5906.

Revision 1.52.10.2: download - view: text, markup, annotated - select for diffs
Tue Aug 4 19:46:20 2009 UTC (15 years, 4 months ago) by snj
Branches: 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, 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, matt-nb5-pq3-base, matt-nb5-pq3
Diff to: previous 1.52.10.1: preferred, colored; branchpoint 1.52: preferred, colored
Changes since revision 1.52.10.1: +3 -2 lines
Apply patch (requested by msaitoh in ticket #866):
For bge:
  - Fix the case of setting a flag in BGE_PCI_DMA_RW_CTL on
    conventional PCI.
  - Fix some bugs that the driver unable to detect link loss
    (OpenBSD 1.135, FreeBSD 1.102)
  - bge_tick(): fix some extra input error (OpenBSD 1.221 FreeBSD 1.212)
  - Acknowledge link change interrupts by setting the 'link changed' bit
    in the status register (used to have no effect). FreeBSD 1.44
    (OpenBSD 1.21)
  - Add some fiber support (OpenBSD 1.220)
  - Set BGE_MISCCFG_KEEP_GPHY_POWER as {Open,Free}BSD and linux.
  - Add special case code to fix a problem with the BCM5704 in TBI
    mode (FreeBSD rev. 1.71, OpenBSD rev. 1.35)
  - Force an interrupt in bge_ifmedia_upd (FreeBSD rev. 1.205, OpenBSD
    rev. 1.242)
  - Add missing workaround for 5705 (FreeBSD rev. 1.44, OpenBSD rev.
    1.21)
  - Don't print error message only when the register is BGE_SRS_MODE.
    It occurs on some environment (and once after boot?). Other *BSDs
    and Linux don't print the error message for all registers.
  - Fix comments.
  - Remove obsolete codes.
For brgphy:
  - Add some quirk codes.
  - Add support for BCM5462, BCM54K2 and BCM5722.

Revision 1.50.4.3: download - view: text, markup, annotated - select for diffs
Sat May 16 10:41:30 2009 UTC (15 years, 7 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.50.4.2: preferred, colored; branchpoint 1.50: preferred, colored
Changes since revision 1.50.4.2: +4 -4 lines
sync with head

Revision 1.53.2.1: download - view: text, markup, annotated - select for diffs
Wed May 13 17:20:15 2009 UTC (15 years, 7 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.53: preferred, colored; next MAIN 1.54: preferred, colored
Changes since revision 1.53: +6 -5 lines
Sync with HEAD.

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

Revision 1.55: download - view: text, markup, annotated - select for diffs
Tue May 12 14:31:27 2009 UTC (15 years, 7 months ago) by cegger
Branches: MAIN
CVS tags: yamt-nfs-mp-base8, yamt-nfs-mp-base7, yamt-nfs-mp-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base4, jymxensuspend-base, jym-xensuspend-nbase, jym-xensuspend-base
Diff to: previous 1.54: preferred, colored
Changes since revision 1.54: +4 -4 lines
struct device * -> device_t, no functional changes intended.

Revision 1.50.4.2: download - view: text, markup, annotated - select for diffs
Mon May 4 08:12:52 2009 UTC (15 years, 7 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.50.4.1: preferred, colored; branchpoint 1.50: preferred, colored
Changes since revision 1.50.4.1: +4 -2 lines
sync with head.

Revision 1.52.8.2: download - view: text, markup, annotated - select for diffs
Tue Apr 28 07:35:54 2009 UTC (15 years, 7 months ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.52.8.1: preferred, colored; branchpoint 1.52: preferred, colored; next MAIN 1.53: preferred, colored
Changes since revision 1.52.8.1: +3 -2 lines
Sync with HEAD.

Revision 1.52.10.1: download - view: text, markup, annotated - select for diffs
Thu Apr 23 02:19:40 2009 UTC (15 years, 7 months ago) by snj
Branches: netbsd-5
CVS tags: netbsd-5-0-RELEASE, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, 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
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +2 -1 lines
Pull up following revision(s) (requested by sborrill in ticket #715):
	sys/dev/mii/mii_physubr.c: revision 1.62
	sys/dev/mii/miivar.h: revision 1.53
add mii_anar(). From OpenBSD.

Revision 1.54: download - view: text, markup, annotated - select for diffs
Sun Apr 19 10:47:48 2009 UTC (15 years, 7 months ago) by msaitoh
Branches: MAIN
CVS tags: yamt-nfs-mp-base3, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +3 -2 lines
Add mii_mpd_rev to keep MII PHY revision.

Revision 1.52.8.1: download - view: text, markup, annotated - select for diffs
Mon Jan 19 13:18:14 2009 UTC (15 years, 10 months ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +2 -1 lines
Sync with HEAD.

Revision 1.49.6.3: download - view: text, markup, annotated - select for diffs
Sat Jan 17 13:28:58 2009 UTC (15 years, 10 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.49.6.2: preferred, colored; branchpoint 1.49: preferred, colored; next MAIN 1.50: preferred, colored
Changes since revision 1.49.6.2: +1 -0 lines
Sync with HEAD.

Revision 1.53: download - view: text, markup, annotated - select for diffs
Fri Jan 16 20:51:18 2009 UTC (15 years, 10 months ago) by cegger
Branches: MAIN
CVS tags: nick-hppapmap-base2, mjf-devfs2-base
Branch point for: jym-xensuspend
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +2 -1 lines
add mii_anar(). From OpenBSD.

Revision 1.49.6.2: download - view: text, markup, annotated - select for diffs
Mon Jun 2 13:23:35 2008 UTC (16 years, 6 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.49.6.1: preferred, colored; branchpoint 1.49: preferred, colored
Changes since revision 1.49.6.1: +6 -14 lines
Sync with HEAD.

Revision 1.50.2.1: download - view: text, markup, annotated - select for diffs
Sun May 18 12:34:13 2008 UTC (16 years, 6 months ago) by yamt
Branches: yamt-pf42
Diff to: previous 1.50: preferred, colored; next MAIN 1.51: preferred, colored
Changes since revision 1.50: +7 -15 lines
sync with head.

Revision 1.50.4.1: download - view: text, markup, annotated - select for diffs
Fri May 16 02:24:37 2008 UTC (16 years, 7 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +7 -15 lines
sync with head.

Revision 1.52: download - view: text, markup, annotated - select for diffs
Sun May 4 17:06:09 2008 UTC (16 years, 7 months ago) by xtraeme
Branches: 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-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, matt-mips64-base2, hpcarm-cleanup-nbase, haad-nbase2, haad-dm-base2, haad-dm-base1, haad-dm-base, haad-dm, ad-audiomp2-base, ad-audiomp2
Branch point for: nick-hppapmap, netbsd-5
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +7 -8 lines
device_t/softc split for all mii(4) devices, and other related
cosmetic changes.

Revision 1.51: download - view: text, markup, annotated - select for diffs
Mon Apr 28 20:23:53 2008 UTC (16 years, 7 months ago) by martin
Branches: MAIN
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +1 -8 lines
Remove clause 3 and 4 from TNF licenses

Revision 1.49.6.1: download - view: text, markup, annotated - select for diffs
Thu Apr 3 12:42:47 2008 UTC (16 years, 8 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +2 -2 lines
Sync with HEAD.

Revision 1.49.2.1: download - view: text, markup, annotated - select for diffs
Mon Mar 24 07:15:46 2008 UTC (16 years, 8 months ago) by keiichi
Branches: keiichi-mipv6
Diff to: previous 1.49: preferred, colored; next MAIN 1.50: preferred, colored
Changes since revision 1.49: +2 -2 lines
sync with head.

Revision 1.47.24.2: download - view: text, markup, annotated - select for diffs
Sun Mar 23 02:04:43 2008 UTC (16 years, 8 months ago) by matt
Branches: matt-armv6
Diff to: previous 1.47.24.1: preferred, colored; branchpoint 1.47: preferred, colored; next MAIN 1.48: preferred, colored
Changes since revision 1.47.24.1: +4 -2 lines
sync with HEAD

Revision 1.43.4.4: download - view: text, markup, annotated - select for diffs
Mon Mar 17 09:15:10 2008 UTC (16 years, 9 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.43.4.3: preferred, colored; branchpoint 1.43: preferred, colored; next MAIN 1.44: preferred, colored
Changes since revision 1.43.4.3: +2 -2 lines
sync with head.

Revision 1.50: download - view: text, markup, annotated - select for diffs
Fri Feb 29 06:40:38 2008 UTC (16 years, 9 months ago) by dyoung
Branches: MAIN
CVS tags: yamt-pf42-baseX, yamt-pf42-base, yamt-nfs-mp-base, yamt-lazymbuf-base15, yamt-lazymbuf-base14, matt-armv6-nbase, keiichi-mipv6-nbase, keiichi-mipv6-base, ad-socklock-base1
Branch point for: yamt-pf42, yamt-nfs-mp
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +2 -2 lines
Use PMF_FN_ARGS, PMF_FN_PROTO.

Revision 1.47.30.1: download - view: text, markup, annotated - select for diffs
Mon Feb 18 21:05:51 2008 UTC (16 years, 9 months ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.47: preferred, colored; next MAIN 1.48: preferred, colored
Changes since revision 1.47: +3 -1 lines
Sync with HEAD.

Revision 1.43.4.3: download - view: text, markup, annotated - select for diffs
Mon Jan 21 09:43:28 2008 UTC (16 years, 10 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.43.4.2: preferred, colored; branchpoint 1.43: preferred, colored
Changes since revision 1.43.4.2: +4 -1 lines
sync with head

Revision 1.48.2.1: download - view: text, markup, annotated - select for diffs
Thu Jan 10 23:44:20 2008 UTC (16 years, 11 months ago) by bouyer
Branches: bouyer-xeni386
CVS tags: bouyer-xeni386-merge1
Diff to: previous 1.48: preferred, colored; next MAIN 1.49: preferred, colored
Changes since revision 1.48: +3 -1 lines
Sync with HEAD

Revision 1.49: download - view: text, markup, annotated - select for diffs
Thu Jan 10 07:29:42 2008 UTC (16 years, 11 months ago) by dyoung
Branches: MAIN
CVS tags: nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, hpcarm-cleanup-base, bouyer-xeni386-nbase, bouyer-xeni386-base
Branch point for: mjf-devfs2, keiichi-mipv6
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +3 -1 lines
Add a helper routine for ethernet drivers, mii_ifmedia_change().

Remove an mii_softc from its mii_data in mii_phy_detach(), not in
mii_detach(), so that we do not leave dangling pointers to a PHY
in an mii_data.

Revision 1.47.24.1: download - view: text, markup, annotated - select for diffs
Wed Jan 9 01:53:23 2008 UTC (16 years, 11 months ago) by matt
Branches: matt-armv6
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +2 -1 lines
sync with HEAD

Revision 1.47.34.1: download - view: text, markup, annotated - select for diffs
Wed Dec 26 19:46:36 2007 UTC (16 years, 11 months ago) by ad
Branches: vmlocking2
Diff to: previous 1.47: preferred, colored; next MAIN 1.48: preferred, colored
Changes since revision 1.47: +2 -1 lines
Sync with head.

Revision 1.47.36.1: download - view: text, markup, annotated - select for diffs
Tue Dec 11 15:29:23 2007 UTC (17 years ago) by yamt
Branches: yamt-kmem
Diff to: previous 1.47: preferred, colored; next MAIN 1.48: preferred, colored
Changes since revision 1.47: +2 -1 lines
sync with head.

Revision 1.48: download - view: text, markup, annotated - select for diffs
Sun Dec 9 20:28:03 2007 UTC (17 years ago) by jmcneill
Branches: MAIN
CVS tags: yamt-kmem-base3, yamt-kmem-base2, vmlocking2-base3, matt-armv6-base, cube-autoconf-base, cube-autoconf
Branch point for: bouyer-xeni386
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +2 -1 lines
Merge jmcneill-pm branch.

Revision 1.47.22.1: download - view: text, markup, annotated - select for diffs
Tue Nov 27 09:28:23 2007 UTC (17 years ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.47: preferred, colored; next MAIN 1.48: preferred, colored
Changes since revision 1.47: +2 -1 lines
Register MII PHY drives with the PM framework. Nothing to do on suspend,
just reset the PHY on resume.

Revision 1.43.4.2: download - view: text, markup, annotated - select for diffs
Sat Dec 30 20:48:38 2006 UTC (17 years, 11 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.43.4.1: preferred, colored; branchpoint 1.43: preferred, colored
Changes since revision 1.43.4.1: +5 -1 lines
sync with head.

Revision 1.46.10.1: download - view: text, markup, annotated - select for diffs
Sun Dec 10 07:17:36 2006 UTC (18 years ago) by yamt
Branches: yamt-splraiseipl
Diff to: previous 1.46: preferred, colored; next MAIN 1.47: preferred, colored
Changes since revision 1.46: +5 -1 lines
sync with head.

Revision 1.46.8.1: download - view: text, markup, annotated - select for diffs
Sat Nov 18 21:34:26 2006 UTC (18 years ago) by ad
Branches: newlock2
Diff to: previous 1.46: preferred, colored; next MAIN 1.47: preferred, colored
Changes since revision 1.46: +5 -1 lines
Sync with head.

Revision 1.47: download - view: text, markup, annotated - select for diffs
Thu Nov 16 21:24:07 2006 UTC (18 years, 1 month ago) by christos
Branches: MAIN
CVS tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, yamt-kmem-base, yamt-idlelwp-base8, yamt-idlelwp, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, vmlocking2-base2, vmlocking2-base1, vmlocking-nbase, vmlocking-base, vmlocking, thorpej-atomic-base, thorpej-atomic, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, reinoud-bufcleanup, post-newlock2-merge, nick-csl-alignment-base5, nick-csl-alignment-base, nick-csl-alignment, newlock2-nbase, newlock2-base, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, mjf-ufs-trans-base, mjf-ufs-trans, matt-nb4-arm-base, matt-nb4-arm, 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, netbsd-4, mjf-devfs, matt-armv6, jmcneill-pm
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +5 -1 lines
- don't hardcode 5, 10 define and use MII_ANEGTICKS{,_GIGE}
- instead of != limit, use <= limit (conservative)

Revision 1.44.4.1: download - view: text, markup, annotated - select for diffs
Sat Sep 9 02:52:03 2006 UTC (18 years, 3 months ago) by rpaulo
Branches: rpaulo-netinet-merge-pcb
Diff to: previous 1.44: preferred, colored; next MAIN 1.45: preferred, colored
Changes since revision 1.44: +3 -4 lines
sync with head

Revision 1.43.4.1: download - view: text, markup, annotated - select for diffs
Wed Jun 21 15:04:46 2006 UTC (18 years, 5 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +3 -4 lines
sync with head.

Revision 1.44.6.1: download - view: text, markup, annotated - select for diffs
Sat Apr 22 11:39:11 2006 UTC (18 years, 7 months ago) by simonb
Branches: simonb-timecounters
CVS tags: simonb-timcounters-final
Diff to: previous 1.44: preferred, colored; next MAIN 1.45: preferred, colored
Changes since revision 1.44: +3 -4 lines
Sync with head.

Revision 1.45.4.1: download - view: text, markup, annotated - select for diffs
Wed Apr 19 03:25:23 2006 UTC (18 years, 7 months ago) by elad
Branches: elad-kernelauth
Diff to: previous 1.45: preferred, colored; next MAIN 1.46: preferred, colored
Changes since revision 1.45: +3 -3 lines
sync with head.

Revision 1.45.2.1: download - view: text, markup, annotated - select for diffs
Sat Apr 1 12:07:11 2006 UTC (18 years, 8 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.45: preferred, colored; next MAIN 1.46: preferred, colored
Changes since revision 1.45: +3 -3 lines
sync with head.

Revision 1.45.6.1: download - view: text, markup, annotated - select for diffs
Tue Mar 28 09:42:12 2006 UTC (18 years, 8 months ago) by tron
Branches: peter-altq
Diff to: previous 1.45: preferred, colored; next MAIN 1.46: preferred, colored
Changes since revision 1.45: +3 -3 lines
Merge 2006-03-28 NetBSD-current into the "peter-altq" branch.

Revision 1.46: download - view: text, markup, annotated - select for diffs
Sat Mar 25 23:17:36 2006 UTC (18 years, 8 months ago) by thorpej
Branches: MAIN
CVS tags: yamt-splraiseipl-base2, 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
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +3 -3 lines
Use device_parent().

Revision 1.44.2.1: download - view: text, markup, annotated - select for diffs
Wed Mar 1 09:28:21 2006 UTC (18 years, 9 months ago) by yamt
Branches: yamt-uio_vmspace
Diff to: previous 1.44: preferred, colored; next MAIN 1.45: preferred, colored
Changes since revision 1.44: +1 -2 lines
sync with head.

Revision 1.45: download - view: text, markup, annotated - select for diffs
Sat Feb 18 19:51:07 2006 UTC (18 years, 9 months ago) by joerg
Branches: MAIN
CVS tags: yamt-uio_vmspace-base5, yamt-pdpolicy-base2, yamt-pdpolicy-base, peter-altq-base
Branch point for: yamt-pdpolicy, peter-altq, elad-kernelauth
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +1 -2 lines
Change the link status code in MII to use if_link_state_change instead
of calling rt_ifmsg directly. This allows other parts of the kernel
to change the behaviour depending on the link state and is a
prerequirement for CARP.

Hide mii_phy_statusmsg, mii_phy_update should be used instead.
Don't send routing messages for baudrate changes, if_baudrate is
currently not exported via this interface.

OK tls@

Revision 1.44: download - view: text, markup, annotated - select for diffs
Sun Dec 11 12:22:42 2005 UTC (19 years ago) by christos
Branches: MAIN
Branch point for: yamt-uio_vmspace, simonb-timecounters, rpaulo-netinet-merge-pcb
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +1 -1 lines
merge ktrace-lwp.

Revision 1.42.2.1: download - view: text, markup, annotated - select for diffs
Fri Apr 29 11:29:04 2005 UTC (19 years, 7 months ago) by kent
Branches: kent-audio2
Diff to: previous 1.42: preferred, colored; next MAIN 1.43: preferred, colored
Changes since revision 1.42: +2 -2 lines
sync with -current

Revision 1.42.4.1: download - view: text, markup, annotated - select for diffs
Sat Mar 19 08:34:59 2005 UTC (19 years, 8 months ago) by yamt
Branches: yamt-km
Diff to: previous 1.42: preferred, colored; next MAIN 1.43: preferred, colored
Changes since revision 1.42: +2 -2 lines
sync with head.  xen and whitespace.  xen part is not finished.

Revision 1.37.2.7: download - view: text, markup, annotated - select for diffs
Fri Mar 4 16:44:57 2005 UTC (19 years, 9 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.37.2.6: preferred, colored; branchpoint 1.37: preferred, colored; next MAIN 1.38: preferred, colored
Changes since revision 1.37.2.6: +2 -2 lines
Sync with HEAD.

Hi Perry!

Revision 1.43: download - view: text, markup, annotated - select for diffs
Sun Feb 27 00:27:31 2005 UTC (19 years, 9 months ago) by perry
Branches: 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, yamt-km-base4, yamt-km-base3, thorpej-vnode-attr-base, thorpej-vnode-attr, netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, netbsd-3, ktrace-lwp-base, kent-audio2-base
Branch point for: yamt-lazymbuf
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +2 -2 lines
nuke trailing whitespace

Revision 1.37.2.6: download - view: text, markup, annotated - select for diffs
Sat Dec 18 09:32:08 2004 UTC (19 years, 11 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.37.2.5: preferred, colored; branchpoint 1.37: preferred, colored
Changes since revision 1.37.2.5: +2 -2 lines
Sync with HEAD.

Revision 1.42: download - view: text, markup, annotated - select for diffs
Thu Dec 16 03:13:28 2004 UTC (20 years ago) by heas
Branches: MAIN
CVS tags: yamt-km-base2, yamt-km-base, kent-audio1-beforemerge
Branch point for: yamt-km, kent-audio2
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +2 -2 lines
Fix a comment.

Revision 1.37.2.5: download - view: text, markup, annotated - select for diffs
Tue Sep 21 13:30:41 2004 UTC (20 years, 2 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.37.2.4: preferred, colored; branchpoint 1.37: preferred, colored
Changes since revision 1.37.2.4: +1 -1 lines
Fix the sync with head I botched.

Revision 1.37.2.4: download - view: text, markup, annotated - select for diffs
Sat Sep 18 14:48:44 2004 UTC (20 years, 2 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.37.2.3: preferred, colored; branchpoint 1.37: preferred, colored
Changes since revision 1.37.2.3: +1 -1 lines
Sync with HEAD.

Revision 1.37.2.3: download - view: text, markup, annotated - select for diffs
Fri Sep 3 12:45:27 2004 UTC (20 years, 3 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.37.2.2: preferred, colored; branchpoint 1.37: preferred, colored
Changes since revision 1.37.2.2: +1 -2 lines
Sync with HEAD

Revision 1.41: download - view: text, markup, annotated - select for diffs
Wed Sep 1 20:59:30 2004 UTC (20 years, 3 months ago) by drochner
Branches: MAIN
CVS tags: kent-audio1-base, kent-audio1
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +1 -2 lines
include locators.h from .c only, avoids unnecessary dependencies

Revision 1.37.2.2: download - view: text, markup, annotated - select for diffs
Wed Aug 25 06:58:05 2004 UTC (20 years, 3 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.37.2.1: preferred, colored; branchpoint 1.37: preferred, colored
Changes since revision 1.37.2.1: +32 -32 lines
Sync with HEAD.

Revision 1.40: download - view: text, markup, annotated - select for diffs
Mon Aug 23 06:05:30 2004 UTC (20 years, 3 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +32 -32 lines
De-__P

Revision 1.37.2.1: download - view: text, markup, annotated - select for diffs
Tue Aug 3 10:48:49 2004 UTC (20 years, 4 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +3 -1 lines
Sync with HEAD

Revision 1.39: download - view: text, markup, annotated - select for diffs
Sun Apr 11 15:40:56 2004 UTC (20 years, 8 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +2 -2 lines
gmii_phy_getflowcontrol() -> mii_phy_flowstatus().  From HITOSHI Osada.

Revision 1.38: download - view: text, markup, annotated - select for diffs
Sat Apr 10 02:32:10 2004 UTC (20 years, 8 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +3 -1 lines
Flow-control advertisement and parsing support.  From HITOSHI Osada.
Slightly modified by me.

Revision 1.37: download - view: text, markup, annotated - select for diffs
Tue Jul 1 22:58:48 2003 UTC (21 years, 5 months ago) by msaitoh
Branches: 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
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +2 -2 lines
- last commit (rev. 1.36) add a entry to keep model number of the PHY in
  mii_softc. There are some situations to want to check model number.
- add comment

Revision 1.36: download - view: text, markup, annotated - select for diffs
Tue Jul 1 22:46:09 2003 UTC (21 years, 5 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +2 -1 lines
Add ICS1889 and 1892

Revision 1.35: download - view: text, markup, annotated - select for diffs
Thu Feb 20 00:55:22 2003 UTC (21 years, 9 months ago) by matt
Branches: MAIN
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +2 -1 lines
Add a MIIF_FORCEANEG flag to be passed to mii_attach.  This forces an
autonegotiation to take place if IFM_AUTO is selected in mii_media_set.
Make the gem driver use it.  (XXX hme probably should use it but I can't
test that).

Revision 1.19.2.8: download - view: text, markup, annotated - select for diffs
Mon Nov 11 22:10:53 2002 UTC (22 years, 1 month ago) by nathanw
Branches: nathanw_sa
CVS tags: nathanw_sa_end
Diff to: previous 1.19.2.7: preferred, colored; next MAIN 1.20: preferred, colored
Changes since revision 1.19.2.7: +7 -7 lines
Catch up to -current

Revision 1.34: download - view: text, markup, annotated - select for diffs
Thu Nov 7 07:45:03 2002 UTC (22 years, 1 month ago) by thorpej
Branches: MAIN
CVS tags: nathanw_sa_before_merge, nathanw_sa_base, gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw, fvdl_fs64_base
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +3 -3 lines
Make mii_media_active unsigned.

Revision 1.33: download - view: text, markup, annotated - select for diffs
Thu Nov 7 07:41:24 2002 UTC (22 years, 1 month ago) by thorpej
Branches: MAIN
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +6 -6 lines
Fix signed/unsigned comparison warnings.

Revision 1.19.2.7: download - view: text, markup, annotated - select for diffs
Fri Oct 18 02:42:48 2002 UTC (22 years, 2 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.19.2.6: preferred, colored
Changes since revision 1.19.2.6: +2 -2 lines
Catch up to -current.

Revision 1.27.2.4: download - view: text, markup, annotated - select for diffs
Thu Oct 10 18:40:09 2002 UTC (22 years, 2 months ago) by jdolecek
Branches: kqueue
Diff to: previous 1.27.2.3: preferred, colored; next MAIN 1.28: preferred, colored
Changes since revision 1.27.2.3: +2 -2 lines
sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work

Revision 1.32: download - view: text, markup, annotated - select for diffs
Sun Sep 29 23:24:00 2002 UTC (22 years, 2 months ago) by wiz
Branches: MAIN
CVS tags: kqueue-beforemerge, kqueue-base, kqueue-aftermerge
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +2 -2 lines
"definitions" has lots of 'i's, but that's not reason to leave one out.

Revision 1.27.2.3: download - view: text, markup, annotated - select for diffs
Sun Jun 23 17:47:25 2002 UTC (22 years, 5 months ago) by jdolecek
Branches: kqueue
Diff to: previous 1.27.2.2: preferred, colored
Changes since revision 1.27.2.2: +2 -4 lines
catch up with -current on kqueue branch

Revision 1.19.2.6: download - view: text, markup, annotated - select for diffs
Thu Jun 20 03:45:17 2002 UTC (22 years, 5 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.19.2.5: preferred, colored
Changes since revision 1.19.2.5: +2 -2 lines
Catch up to -current.

Revision 1.31: download - view: text, markup, annotated - select for diffs
Fri May 10 20:45:06 2002 UTC (22 years, 7 months ago) by thorpej
Branches: MAIN
CVS tags: netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001, netbsd-1-6, gehenna-devsw-base, gehenna-devsw
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +2 -2 lines
Make sure ifp->if_baudrate is valid when the parent's statchg
callback is made.

Pointed out by Matt Thomas.

Revision 1.19.2.5: download - view: text, markup, annotated - select for diffs
Mon Apr 1 07:46:12 2002 UTC (22 years, 8 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.19.2.4: preferred, colored
Changes since revision 1.19.2.4: +1 -3 lines
Catch up to -current.
(CVS: It's not just a program. It's an adventure!)

Revision 1.30: download - view: text, markup, annotated - select for diffs
Mon Mar 25 20:51:25 2002 UTC (22 years, 8 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +1 -3 lines
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.19.2.4: download - view: text, markup, annotated - select for diffs
Fri Sep 21 22:35:50 2001 UTC (23 years, 2 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.19.2.3: preferred, colored
Changes since revision 1.19.2.3: +2 -1 lines
Catch up to -current.

Revision 1.27.2.2: download - view: text, markup, annotated - select for diffs
Thu Sep 13 01:15:46 2001 UTC (23 years, 3 months ago) by thorpej
Branches: kqueue
Diff to: previous 1.27.2.1: preferred, colored
Changes since revision 1.27.2.1: +2 -1 lines
Update the kqueue branch to HEAD.

Revision 1.29: download - view: text, markup, annotated - select for diffs
Sat Aug 25 01:41:17 2001 UTC (23 years, 3 months ago) by thorpej
Branches: 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, newlock-base, newlock, ifpoll-base, eeh-devprop-base, eeh-devprop
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +2 -1 lines
Add a flag that indicates that a device is a HomePNA device.

Revision 1.19.2.3: download - view: text, markup, annotated - select for diffs
Fri Aug 24 00:09:59 2001 UTC (23 years, 3 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.19.2.2: preferred, colored
Changes since revision 1.19.2.2: +3 -1 lines
Catch up with -current.

Revision 1.27.2.1: download - view: text, markup, annotated - select for diffs
Fri Aug 3 04:13:14 2001 UTC (23 years, 4 months ago) by lukem
Branches: kqueue
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +3 -1 lines
update to -current

Revision 1.28: download - view: text, markup, annotated - select for diffs
Fri Jul 27 22:44:59 2001 UTC (23 years, 4 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +3 -1 lines
Clean up 1000BASE-SX autonegotiation, and add a way to advertise
PAUSE capability.

Revision 1.19.2.2: download - view: text, markup, annotated - select for diffs
Thu Jun 21 20:04:23 2001 UTC (23 years, 5 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.19.2.1: preferred, colored
Changes since revision 1.19.2.1: +29 -5 lines
Catch up to -current.

Revision 1.27: download - view: text, markup, annotated - select for diffs
Sat Jun 2 21:39:40 2001 UTC (23 years, 6 months ago) by thorpej
Branches: MAIN
Branch point for: kqueue
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +14 -2 lines
Make PHY matching all table-driven.

Revision 1.26: download - view: text, markup, annotated - select for diffs
Thu May 31 18:44:48 2001 UTC (23 years, 6 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +8 -4 lines
Enable frobbing the 1000baseT control register on Gig-E PHYs,
used for hard-wiring master mode, and for advertising the 1000baseT
media options during autonegotiation.

Revision 1.25: download - view: text, markup, annotated - select for diffs
Thu May 31 16:02:29 2001 UTC (23 years, 6 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +2 -1 lines
Make the number of ticks between auto-negotiation tries PHY-specific,
and default every PHY to 5 seconds (what we used before).  If we find
Gig-E media on a PHY, bump it to 10 seconds, since it can take 5
seconds just to negotiate a Gig-E link.

Revision 1.24: download - view: text, markup, annotated - select for diffs
Thu May 17 17:28:21 2001 UTC (23 years, 7 months ago) by drochner
Branches: MAIN
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +3 -2 lines
re-enable mii_flags in attach args - I've found a use for it: tell the
PHY which support it that a fiber interface is present

Revision 1.23: download - view: text, markup, annotated - select for diffs
Mon Apr 30 19:49:08 2001 UTC (23 years, 7 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +5 -2 lines
Add code to recognize and set media on GMII (Gigabit MII) PHYs.

802.3 doens't specify ANAR or ANLPAR bits for GMII.  Need to
use PHY-specific registers for this, for now, which means we
need specific drivers for the Gigabit-capable PHYs (I think the
most common is the BCM5400).

Revision 1.9.2.2: download - view: text, markup, annotated - select for diffs
Sat Apr 21 17:49:03 2001 UTC (23 years, 7 months ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.9.2.1: preferred, colored; branchpoint 1.9: preferred, colored; next MAIN 1.10: preferred, colored
Changes since revision 1.9.2.1: +12 -3 lines
Sync with HEAD

Revision 1.22: download - view: text, markup, annotated - select for diffs
Fri Apr 13 11:14:55 2001 UTC (23 years, 8 months ago) by augustss
Branches: MAIN
CVS tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +4 -2 lines
Comment out some flag stuff that isn't used.  Someone should take a look
at this.  There is something fishy with the mii code, the last argument to
mii_attach() is not being used in any meaningful way.

Revision 1.21: download - view: text, markup, annotated - select for diffs
Fri Apr 13 11:12:37 2001 UTC (23 years, 8 months ago) by augustss
Branches: MAIN
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +3 -2 lines
Add a flag to mii_flags which will cause autonegotiation to use tsleep()
instead of callout.  This way adapters which need a process context for
PHY register access (e.g. USB adapters) have a chance.

Revision 1.19.2.1: download - view: text, markup, annotated - select for diffs
Mon Apr 9 01:56:54 2001 UTC (23 years, 8 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +7 -1 lines
Catch up with -current.

Revision 1.20: download - view: text, markup, annotated - select for diffs
Wed Mar 28 14:13:07 2001 UTC (23 years, 8 months ago) by drochner
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +7 -1 lines
Reading the IEEE specs shows that the bits have to be reversed when
mapping an OUI to the MII id registers.
Doing this in the MII_OUI() macro would be too complex, so put it into
a helper function and move the MII id register interpretation stuff
into miivar.h.

Revision 1.9.2.1: download - view: text, markup, annotated - select for diffs
Mon Nov 20 11:42:11 2000 UTC (24 years ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +79 -17 lines
Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.

Revision 1.18.4.1: download - view: text, markup, annotated - select for diffs
Tue Jul 4 04:11:13 2000 UTC (24 years, 5 months ago) by thorpej
Branches: netbsd-1-5
CVS tags: netbsd-1-5-RELEASE, netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2
Diff to: previous 1.18: preferred, colored; next MAIN 1.19: preferred, colored
Changes since revision 1.18: +19 -11 lines
Update from trunk:
Restructure the PHY entry points to use a structure of entry points
instead of discrete function pointers, and extend this to include
a "reset" entry point.  Make sure any PHY-specific reset routine is
always used, and provide one for the LXT-970 which disables MII
interrupts (as is done for a few other PHYs we have drivers for).

Revision 1.19: download - view: text, markup, annotated - select for diffs
Tue Jul 4 03:28:59 2000 UTC (24 years, 5 months ago) by thorpej
Branches: MAIN
Branch point for: nathanw_sa
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +19 -11 lines
Restructure the PHY entry points to use a structure of entry points
instead of discrete function pointers, and extend this to include
a "reset" entry point.  Make sure any PHY-specific reset routine is
always used, and provide one for the LXT-970 which disables MII
interrupts (as is done for a few other PHYs we have drivers for).

Revision 1.18: download - view: text, markup, annotated - select for diffs
Thu Mar 23 07:01:36 2000 UTC (24 years, 8 months ago) by thorpej
Branches: MAIN
CVS tags: netbsd-1-5-base, minoura-xpg4dl-base, minoura-xpg4dl
Branch point for: netbsd-1-5
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +5 -1 lines
New callout mechanism with two major improvements over the old
timeout()/untimeout() API:
- Clients supply callout handle storage, thus eliminating problems of
  resource allocation.
- Insertion and removal of callouts is constant time, important as
  this facility is used quite a lot in the kernel.

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

Revision 1.17: download - view: text, markup, annotated - select for diffs
Mon Mar 6 20:56:57 2000 UTC (24 years, 9 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +6 -2 lines
Factor out the tick handling code into a common function, and send
rt_ifmsg's when the link speed or link status changes.

Revision 1.16: download - view: text, markup, annotated - select for diffs
Wed Feb 2 17:50:45 2000 UTC (24 years, 10 months ago) by thorpej
Branches: MAIN
CVS tags: chs-ubc2-newbase
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +11 -3 lines
Make PHY drivers provide a pointer to their status routine, and add
a generic mii_phy_status() that calls back into the PHY.  It doesn't
do anything interesting yet, but it will soon.

Revision 1.15: download - view: text, markup, annotated - select for diffs
Wed Feb 2 17:09:44 2000 UTC (24 years, 10 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +4 -2 lines
Don't dry to diving MIIF_NOISOLATE in the PHY drivers.  Instead, pass
flags down from the parent to child vi mii_attach().

Revision 1.14: download - view: text, markup, annotated - select for diffs
Wed Feb 2 08:05:33 2000 UTC (24 years, 10 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +13 -14 lines
Bring some order to the chaos which was the MII code function naming
"conventions".

Revision 1.13: download - view: text, markup, annotated - select for diffs
Thu Jan 27 16:44:30 2000 UTC (24 years, 10 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +7 -1 lines
Add detachment support to the MII layer.

Revision 1.9.8.1: download - view: text, markup, annotated - select for diffs
Mon Dec 27 18:35:13 1999 UTC (24 years, 11 months ago) by wrstuden
Branches: wrstuden-devbsize
Diff to: previous 1.9: preferred, colored; next MAIN 1.10: preferred, colored
Changes since revision 1.9: +39 -8 lines
Pull up to last week's -current.

Revision 1.9.4.1: download - view: text, markup, annotated - select for diffs
Mon Nov 15 00:40:56 1999 UTC (25 years, 1 month ago) by fvdl
Branches: fvdl-softdep
Diff to: previous 1.9: preferred, colored; next MAIN 1.10: preferred, colored
Changes since revision 1.9: +39 -8 lines
Sync with -current

Revision 1.12: download - view: text, markup, annotated - select for diffs
Fri Nov 12 18:13:00 1999 UTC (25 years, 1 month ago) by thorpej
Branches: MAIN
CVS tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, fvdl-softdep-base
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +4 -1 lines
Add mii_down(), which is used by MAC drivers to inform PHYs that the
interface is now down.  PHYs use this to cancel pending asynchronous
operations.

Revision 1.11: download - view: text, markup, annotated - select for diffs
Thu Nov 4 00:22:08 1999 UTC (25 years, 1 month ago) by thorpej
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +18 -5 lines
Allow mii_phy_probe() to be called multiple times, and allow the caller
to specify either the PHY number or the PHY `offset' (1st, 2nd, 3rd, etc.)
to configure.

Revision 1.10: download - view: text, markup, annotated - select for diffs
Wed Nov 3 22:30:32 1999 UTC (25 years, 1 month ago) by thorpej
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +21 -6 lines
Clean up the code that adds media a little, and make media selection
table-driven in preparation for some other changes to be made.

Revision 1.9: download - view: text, markup, annotated - select for diffs
Sat Sep 25 00:10:13 1999 UTC (25 years, 2 months ago) by thorpej
Branches: MAIN
CVS tags: comdex-fall-1999-base, comdex-fall-1999
Branch point for: wrstuden-devbsize, thorpej_scsipi, fvdl-softdep
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +2 -1 lines
Add a PHY `offset' (e.g. "first PHY on bus, second PHY on bus, ...") to
the PHY's softc.

Revision 1.7.6.1.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 21 01:18:22 1999 UTC (25 years, 5 months ago) by thorpej
Branches: chs-ubc2
Diff to: previous 1.7.6.1: preferred, colored; next MAIN 1.8: preferred, colored
Changes since revision 1.7.6.1: +0 -0 lines
Sync w/ -current.

Revision 1.7.6.1: download - view: text, markup, annotated - select for diffs
Fri Apr 23 15:40:35 1999 UTC (25 years, 7 months ago) by perry
Branches: netbsd-1-4
CVS tags: netbsd-1-4-RELEASE, netbsd-1-4-PATCH003, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001, kame_14_19990705, kame_14_19990628, kame_141_19991130, kame
Branch point for: chs-ubc2
Diff to: previous 1.7: preferred, colored; next MAIN 1.8: preferred, colored
Changes since revision 1.7: +4 -3 lines
pullup 1.7->1.8 (thorpej): Fix PR7361

Revision 1.8: download - view: text, markup, annotated - select for diffs
Fri Apr 23 04:24:32 1999 UTC (25 years, 7 months ago) by thorpej
Branches: MAIN
CVS tags: chs-ubc2-base
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +4 -3 lines
Implement asynchronous autonegotiation when driven by the MII tick
(one-second clock).  Prevents .5s delays every 5 seconds when the interface
is up but there is no link.  Fixes PR 7361.

Revision 1.7: download - view: text, markup, annotated - select for diffs
Thu Nov 5 04:08:02 1998 UTC (26 years, 1 month ago) by thorpej
Branches: MAIN
CVS tags: netbsd-1-4-base, kenh-if-detach-base, kenh-if-detach, chs-ubc-base, chs-ubc
Branch point for: netbsd-1-4
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +3 -1 lines
Common code for media-from-bmcr.

Revision 1.6: download - view: text, markup, annotated - select for diffs
Thu Nov 5 00:19:32 1998 UTC (26 years, 1 month ago) by thorpej
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +3 -1 lines
Place the essentially common "ticks" and "active" members into the
mii_softc (generic phy goo), and just switch all of the PHY drivers
(except tlphy, which really does have special stuff) to use an mii_softc
instead of a private one.

Revision 1.5: download - view: text, markup, annotated - select for diffs
Wed Nov 4 23:59:51 1998 UTC (26 years, 1 month ago) by thorpej
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +3 -1 lines
Routines common between the Uknown PHY driver (forthcoming) and other
PHY drivers.  This file has ukphy_status(), which is what PHY drivers
should use if media detection is done by decoding NWay.

Revision 1.4: download - view: text, markup, annotated - select for diffs
Wed Nov 4 23:28:15 1998 UTC (26 years, 1 month ago) by thorpej
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +2 -1 lines
Factor out the common reset code.  Use the NOISOLATE flags as appropriate
to prevent a PHY from being isolated in the event the MAC can't deal with
this.  (3Com 3c905B-TX, and Intel i82557).

Revision 1.3: download - view: text, markup, annotated - select for diffs
Wed Nov 4 23:07:15 1998 UTC (26 years, 1 month ago) by thorpej
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +10 -2 lines
Factor out some common code from all the PHY drivers (autonegotiation, for
now.)

Revision 1.2: download - view: text, markup, annotated - select for diffs
Wed Nov 4 22:15:41 1998 UTC (26 years, 1 month ago) by thorpej
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +9 -1 lines
Define and use generic PHY read/write reg macros.

Revision 1.1: download - view: text, markup, annotated - select for diffs
Mon Aug 10 23:55:18 1998 UTC (26 years, 4 months ago) by thorpej
Branches: MAIN
Near complete rewrite of the MII layer to present an interface compatible
with BSDI's MII layer to device drivers.

Diff request

This form allows you to request diffs 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.

Log view options

CVSweb <webmaster@jp.NetBSD.org>