The NetBSD Project

CVS log for src/sys/arch/arm/sunxi/sun4i_emac.c

[BACK] Up to [cvs.NetBSD.org] / src / sys / arch / arm / sunxi

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.15 / (download) - annotate - [select for diffs], Sun Sep 18 02:32:14 2022 UTC (18 months, 4 weeks ago) by thorpej
Branch: MAIN
CVS Tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, netbsd-10-base, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, bouyer-sunxi-drm-base, bouyer-sunxi-drm, HEAD
Changes since 1.14: +3 -10 lines
Diff to previous 1.14 (colored)

Eliminate use of IFF_OACTIVE.

Revision 1.12.6.1 / (download) - annotate - [select for diffs], Sat Apr 3 22:28:18 2021 UTC (3 years ago) by thorpej
Branch: thorpej-futex
Changes since 1.12: +8 -8 lines
Diff to previous 1.12 (colored) next main 1.13 (colored)

Sync with HEAD.

Revision 1.14 / (download) - annotate - [select for diffs], Wed Jan 27 03:10:20 2021 UTC (3 years, 2 months ago) by thorpej
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-futex-base, thorpej-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.13: +6 -6 lines
Diff to previous 1.13 (colored)

Rename of_match_compat_data() to of_compatible_match().  Similarly,
rename of_search_compatible() to of_compatible_lookup().

Standardize on of_compatible_match() for driver matching, and adapt
all call sites.

Revision 1.13 / (download) - annotate - [select for diffs], Fri Jan 15 22:47:32 2021 UTC (3 years, 3 months ago) by jmcneill
Branch: MAIN
Changes since 1.12: +4 -4 lines
Diff to previous 1.12 (colored)

use fdtbus_intr_establish_xname

Revision 1.4.2.2 / (download) - annotate - [select for diffs], Wed Apr 8 14:07:31 2020 UTC (4 years ago) by martin
Branch: phil-wifi
Changes since 1.4.2.1: +5 -5 lines
Diff to previous 1.4.2.1 (colored) to branchpoint 1.4 (colored) next main 1.5 (colored)

Merge changes from current as of 20200406

Revision 1.11.4.1 / (download) - annotate - [select for diffs], Sat Feb 29 20:18:20 2020 UTC (4 years, 1 month ago) by ad
Branch: ad-namecache
Changes since 1.11: +5 -5 lines
Diff to previous 1.11 (colored) next main 1.12 (colored)

Sync with head.

Revision 1.12 / (download) - annotate - [select for diffs], Wed Jan 29 06:05:31 2020 UTC (4 years, 2 months ago) by thorpej
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, is-mlppp-base, is-mlppp, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, ad-namecache-base3
Branch point for: thorpej-futex
Changes since 1.11: +5 -5 lines
Diff to previous 1.11 (colored)

Adopt <net/if_stats.h>.

Revision 1.4.2.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:05:56 2019 UTC (4 years, 10 months ago) by christos
Branch: phil-wifi
Changes since 1.4: +63 -52 lines
Diff to previous 1.4 (colored)

Sync with HEAD

Revision 1.11 / (download) - annotate - [select for diffs], Tue May 28 07:41:46 2019 UTC (4 years, 10 months ago) by msaitoh
Branch: MAIN
CVS Tags: phil-wifi-20191119, phil-wifi-20190609, netbsd-9-base, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, ad-namecache-base2, ad-namecache-base1, ad-namecache-base
Branch point for: ad-namecache
Changes since 1.10: +8 -7 lines
Diff to previous 1.10 (colored)

 Use ETHER_LOCK()/ETHER_UNLOCK() for all ethernet drivers to protect ec_multi*.

Revision 1.10 / (download) - annotate - [select for diffs], Thu May 23 13:10:50 2019 UTC (4 years, 10 months ago) by msaitoh
Branch: MAIN
Changes since 1.9: +18 -18 lines
Diff to previous 1.9 (colored)

 Whitespace fix (mainly tabify).

Revision 1.9 / (download) - annotate - [select for diffs], Thu May 23 10:57:27 2019 UTC (4 years, 10 months ago) by msaitoh
Branch: MAIN
Changes since 1.8: +28 -24 lines
Diff to previous 1.8 (colored)

-No functional change:
  - KNF
  - u_int*_t -> uint*_t.

Revision 1.8 / (download) - annotate - [select for diffs], Wed May 8 09:53:43 2019 UTC (4 years, 11 months ago) by ozaki-r
Branch: MAIN
Changes since 1.7: +5 -2 lines
Diff to previous 1.7 (colored)

Protect ether_multi list

PR 54153

Revision 1.7 / (download) - annotate - [select for diffs], Mon Apr 22 07:51:16 2019 UTC (4 years, 11 months ago) by msaitoh
Branch: MAIN
Changes since 1.6: +2 -7 lines
Diff to previous 1.6 (colored)

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

Revision 1.3.2.2 / (download) - annotate - [select for diffs], Sat Jan 26 22:00:01 2019 UTC (5 years, 2 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.3.2.1: +18 -10 lines
Diff to previous 1.3.2.1 (colored) to branchpoint 1.3 (colored) next main 1.4 (colored)

Sync with HEAD

Revision 1.6 / (download) - annotate - [select for diffs], Tue Jan 22 03:42:25 2019 UTC (5 years, 2 months ago) by msaitoh
Branch: MAIN
CVS Tags: pgoyette-compat-20190127, isaki-audio2-base, isaki-audio2
Changes since 1.5: +18 -10 lines
Diff to previous 1.5 (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.3.2.1 / (download) - annotate - [select for diffs], Sat Jul 28 04:37:29 2018 UTC (5 years, 8 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.3: +4 -4 lines
Diff to previous 1.3 (colored)

Sync with HEAD

Revision 1.5 / (download) - annotate - [select for diffs], Wed Jul 18 23:10:27 2018 UTC (5 years, 8 months ago) by sevan
Branch: MAIN
CVS Tags: pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728
Changes since 1.4: +3 -3 lines
Diff to previous 1.4 (colored)

Be consistent among ethernet drivers on the convention for printing ethernet
addresses.

NFC

Revision 1.4 / (download) - annotate - [select for diffs], Tue Jun 26 06:47:58 2018 UTC (5 years, 9 months ago) by msaitoh
Branch: MAIN
CVS Tags: phil-wifi-base
Branch point for: phil-wifi
Changes since 1.3: +3 -3 lines
Diff to previous 1.3 (colored)

 Implement the BPF direction filter (BIOC[GS]DIRECTION). It provides backward
compatibility with BIOC[GS]SEESENT ioctl. The userland interface is the same
as FreeBSD.

 This change also fixes a bug that the direction is misunderstand on some
environment by passing the direction to bpf_mtap*() instead of checking
m->m_pkthdr.rcvif.

Revision 1.3 / (download) - annotate - [select for diffs], Mon Feb 12 17:04:58 2018 UTC (6 years, 2 months ago) by maxv
Branch: MAIN
CVS Tags: pgoyette-compat-base, 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
Branch point for: pgoyette-compat
Changes since 1.2: +5 -2 lines
Diff to previous 1.2 (colored)

Another missing NULL-check.

Revision 1.2.2.2 / (download) - annotate - [select for diffs], Sun Dec 3 11:35:56 2017 UTC (6 years, 4 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.2.2.1: +896 -0 lines
Diff to previous 1.2.2.1 (colored) to branchpoint 1.2 (colored) next main 1.3 (colored)

update from HEAD

Revision 1.2.2.1, Thu Nov 30 18:29:25 2017 UTC (6 years, 4 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.2: +0 -896 lines
FILE REMOVED

file sun4i_emac.c was added on branch tls-maxphys on 2017-12-03 11:35:56 +0000

Revision 1.2 / (download) - annotate - [select for diffs], Thu Nov 30 18:29:25 2017 UTC (6 years, 4 months ago) by jmcneill
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202
Branch point for: tls-maxphys
Changes since 1.1: +5 -2 lines
Diff to previous 1.1 (colored)

report VLAN MTU capability

Revision 1.1 / (download) - annotate - [select for diffs], Fri Oct 20 22:29:15 2017 UTC (6 years, 5 months ago) by jmcneill
Branch: MAIN

Add driver for sun4i/sun7i 10/100 Fast Ethernet controller (EMAC).

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>