The NetBSD Project

CVS log for src/sys/dev/ic/dwc_gmac_reg.h

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.22 / (download) - annotate - [select for diffs], Tue Feb 27 08:21:24 2024 UTC (7 weeks, 3 days ago) by skrll
Branch: MAIN
CVS Tags: HEAD
Changes since 1.21: +1 -4 lines
Diff to previous 1.21 (colored)

Remove unused "SHIFT" defines. The "MASK" versions exist.

Revision 1.21 / (download) - annotate - [selected], Wed May 11 14:58:01 2022 UTC (23 months, 1 week ago) by andvar
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
Changes since 1.20: +3 -3 lines
Diff to previous 1.20 (colored)

fix various typos in comments.

Revision 1.19.4.1 / (download) - annotate - [select for diffs], Tue Aug 11 17:14:21 2020 UTC (3 years, 8 months ago) by martin
Branch: netbsd-9
CVS Tags: netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE
Changes since 1.19: +49 -2 lines
Diff to previous 1.19 (colored) next main 1.20 (colored) to selected 1.21 (colored)

Pull up following revision(s) (requested by mrg in ticket #1045):

	sys/kern/uipc_mbuf.c: revision 1.235
	sys/dev/ic/dwc_gmac.c: revision 1.70
	sys/dev/ic/dwc_gmac_reg.h: revision 1.20
	sys/dev/ic/dwc_gmac.c: revision 1.66
	sys/dev/ic/dwc_gmac.c: revision 1.67
	sys/dev/ic/dwc_gmac.c: revision 1.68

awge: fix issue that caused rx packets to be corrupt with DIAGNOSTIC kernel

It seems the hardware can only reliably do rx DMA to addresses that are
dcache size aligned. This is hinted at by some GMAC data sheets but hard to
find an authoritative source.

on non-DIAGNOSTIC kernels we always implicitly get MCLBYTES-aligned mbuf
data pointers, but with the reintroduction of POOL_REDZONE for DIAGNOSTIC
we can get 8-byte alignment due to redzone padding. So align rx pointers to
64 bytes which should be good for both arm32 and aarch64.
While here change some bus_dmamap_load() to bus_dmamap_load_mbuf() and add
one missing bus_dmamap_sync(). Also fixes the code to not assume that
MCLBYTES == AWGE_MAX_PACKET. User may override MCLSHIFT in kernel config.
correct pointer arithmetics

mcl_cache: align items to COHERENCY_UNIT

Because we do cache incoherent DMA to/from mbufs we cannot safely share
share cache lines with adjacent items that may be concurrently accessed.

awge: drop redundant m_adj(). Handled via uipc_mbuf.c r1.235 instead.

Mask all the MMC counter interrupts if the MMC module is present.

Revision 1.20 / (download) - annotate - [select for diffs], Sun May 17 21:50:47 2020 UTC (3 years, 11 months ago) by chs
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-futex-base, thorpej-futex, thorpej-cfargs2-base, thorpej-cfargs2, thorpej-cfargs-base, thorpej-cfargs, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Changes since 1.19: +49 -2 lines
Diff to previous 1.19 (colored) to selected 1.21 (colored)

Mask all the MMC counter interrupts if the MMC module is present.

Revision 1.16.2.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:07:10 2019 UTC (4 years, 10 months ago) by christos
Branch: phil-wifi
Changes since 1.16: +27 -3 lines
Diff to previous 1.16 (colored) next main 1.17 (colored) to selected 1.21 (colored)

Sync with HEAD

Revision 1.15.18.3 / (download) - annotate - [select for diffs], Sat Oct 20 06:58:31 2018 UTC (5 years, 6 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.15.18.2: +27 -3 lines
Diff to previous 1.15.18.2 (colored) to branchpoint 1.15 (colored) next main 1.16 (colored) to selected 1.21 (colored)

Sync with head

Revision 1.19 / (download) - annotate - [select for diffs], Mon Oct 8 17:09:31 2018 UTC (5 years, 6 months ago) by martin
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, netbsd-9-base, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, isaki-audio2-base, isaki-audio2, is-mlppp-base, is-mlppp, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache
Branch point for: netbsd-9
Changes since 1.18: +26 -2 lines
Diff to previous 1.18 (colored) to selected 1.21 (colored)

Bring back support for enhanced descriptor format in newer core versions.
Fix a few endian bugs and check the main core version before trying to
read the hardware feature mask. Only read the hardware feature register
if core version reported is >= 3.5 (all my older hardware reports 0).
With some hints and patches from jared, and ok from aymeric

Revision 1.15.18.2 / (download) - annotate - [select for diffs], Sun Sep 30 01:45:50 2018 UTC (5 years, 6 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.15.18.1: +1 -1 lines
Diff to previous 1.15.18.1 (colored) to branchpoint 1.15 (colored) to selected 1.21 (colored)

Ssync with HEAD

Revision 1.18 / (download) - annotate - [select for diffs], Fri Sep 28 21:51:42 2018 UTC (5 years, 6 months ago) by aymeric
Branch: MAIN
CVS Tags: pgoyette-compat-0930
Changes since 1.17: +3 -27 lines
Diff to previous 1.17 (colored) to selected 1.21 (colored)

Revert the recent support for enhanced descriptors until a viable solution is
found.

It broke at least Cubietruck, Orange Pi One, and maybe Rock64 ethernets in
different ways. Unfortunately it works on my Olinuxino Micro and Lime 2 so I
can't reproduce the bugs for now.

Should fix PR#53637

Revision 1.17 / (download) - annotate - [select for diffs], Mon Sep 17 20:25:49 2018 UTC (5 years, 7 months ago) by aymeric
Branch: MAIN
Changes since 1.16: +27 -3 lines
Diff to previous 1.16 (colored) to selected 1.21 (colored)

Add support for the enhanced descriptors feature.

This makes "recent" dwc gmac controllers, as found e.g. on the Cyclone V, work.
The change was also tested working on an Allwinner A20 which doesn't have the
feature.

No negative reaction on port-arm.

Revision 1.15.18.1 / (download) - annotate - [select for diffs], Mon Jun 25 07:25:50 2018 UTC (5 years, 9 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.15: +3 -1 lines
Diff to previous 1.15 (colored) to selected 1.21 (colored)

Sync with HEAD

Revision 1.16 / (download) - annotate - [select for diffs], Sat Jun 16 00:15:00 2018 UTC (5 years, 10 months ago) by jmcneill
Branch: MAIN
CVS Tags: phil-wifi-base, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, jdolecek-ncqfixes-base, jdolecek-ncqfixes
Branch point for: phil-wifi
Changes since 1.15: +3 -1 lines
Diff to previous 1.15 (colored) to selected 1.21 (colored)

Add flag for disabling store-and-forward mode, and a callback for notifying
bus glue that the link speed has changed.

Revision 1.15.16.2 / (download) - annotate - [select for diffs], Sun Dec 3 11:37:03 2017 UTC (6 years, 4 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.15.16.1: +221 -0 lines
Diff to previous 1.15.16.1 (colored) to branchpoint 1.15 (colored) next main 1.16 (colored) to selected 1.21 (colored)

update from HEAD

Revision 1.14.2.1 / (download) - annotate - [select for diffs], Sun Dec 27 12:09:49 2015 UTC (8 years, 3 months ago) by skrll
Branch: nick-nhusb
Changes since 1.14: +7 -2 lines
Diff to previous 1.14 (colored) next main 1.15 (colored) to selected 1.21 (colored)

Sync with HEAD (as of 26th Dec)

Revision 1.12.2.3.2.1 / (download) - annotate - [select for diffs], Sat Dec 26 22:23:43 2015 UTC (8 years, 3 months ago) by snj
Branch: netbsd-7-0
CVS Tags: netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE
Changes since 1.12.2.3: +7 -2 lines
Diff to previous 1.12.2.3 (colored) next main 1.12.2.4 (colored) to selected 1.21 (colored)

Pull up following revision(s) (requested by jmcneill in ticket #1053):
	sys/dev/ic/dwc_gmac_reg.h: revision 1.15
Fix an off by one in the bit definition for RX store and forward mode.
Pointed out by ganbold.
While there add a few other bits of the same register.

Revision 1.12.2.4 / (download) - annotate - [select for diffs], Sat Dec 26 22:23:20 2015 UTC (8 years, 3 months ago) by snj
Branch: netbsd-7
CVS Tags: netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1
Changes since 1.12.2.3: +7 -2 lines
Diff to previous 1.12.2.3 (colored) next main 1.13 (colored) to selected 1.21 (colored)

Pull up following revision(s) (requested by jmcneill in ticket #1053):
	sys/dev/ic/dwc_gmac_reg.h: revision 1.15
Fix an off by one in the bit definition for RX store and forward mode.
Pointed out by ganbold.
While there add a few other bits of the same register.

Revision 1.15.16.1, Sat Nov 21 16:04:11 2015 UTC (8 years, 4 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.15: +0 -221 lines
FILE REMOVED

file dwc_gmac_reg.h was added on branch tls-maxphys on 2017-12-03 11:37:03 +0000

Revision 1.15 / (download) - annotate - [select for diffs], Sat Nov 21 16:04:11 2015 UTC (8 years, 4 months ago) by martin
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, 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-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, netbsd-8-base, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, matt-nb8-mediatek-base, matt-nb8-mediatek, localcount-20160914, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: tls-maxphys, pgoyette-compat
Changes since 1.14: +7 -2 lines
Diff to previous 1.14 (colored) to selected 1.21 (colored)

Fix an off by one in the bit definition for RX store and forward mode.
Pointed out by ganbold.
While there add a few other bits of the same register.

Revision 1.12.2.3 / (download) - annotate - [select for diffs], Tue Feb 3 08:11:21 2015 UTC (9 years, 2 months ago) by bouyer
Branch: netbsd-7
CVS Tags: netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1
Branch point for: netbsd-7-0
Changes since 1.12.2.2: +14 -3 lines
Diff to previous 1.12.2.2 (colored) to selected 1.21 (colored)

Pull up following revision(s) (requested by snj in ticket #481):
	sys/dev/ic/dwc_gmac_var.h: revision 1.6
	sys/dev/ic/dwc_gmac_reg.h: revision 1.13
	sys/dev/ic/dwc_gmac.c: revision 1.25
	sys/dev/ic/dwc_gmac.c: revision 1.26
	sys/dev/ic/dwc_gmac.c: revision 1.28
	sys/dev/ic/dwc_gmac.c: revision 1.31
- Add MII flow control support
- Set "disable jabber" and "auto padding/CRC stripping" bits in MAC conf
- Write intr mask to intr mask register, not status
- Setup both TX and RX burst modes
- Setup both TX and RX store & forward modes
- Correct an issue with the "end" descriptor passed to dwc_gmac_txdesc_sync
  in dwc_gmac_tx_intr
ok martin@
Revert previous change to dwc_gmac_txintr() - while it looks strange at
first sight (and sorry I didn't spot it when reviewing), it is a small
optimization and actually correct.
Add a comment explaining it.
After handling an interrupt, try to handle more packets as we may have
space in the descriptor ring now.
Pointed out by Jared.
fix a couple txq fencepost issues, from FUKAUMI Naoki <fun@naobsd.org>

Revision 1.14 / (download) - annotate - [select for diffs], Fri Nov 28 09:01:05 2014 UTC (9 years, 4 months ago) by martin
Branch: MAIN
CVS Tags: nick-nhusb-base-20150921, nick-nhusb-base-20150606, nick-nhusb-base-20150406, nick-nhusb-base
Branch point for: nick-nhusb
Changes since 1.13: +9 -2 lines
Diff to previous 1.13 (colored) to selected 1.21 (colored)

Bits and values for checksum insertion controll

Revision 1.13 / (download) - annotate - [select for diffs], Sat Nov 22 18:31:03 2014 UTC (9 years, 4 months ago) by jmcneill
Branch: MAIN
Changes since 1.12: +14 -3 lines
Diff to previous 1.12 (colored) to selected 1.21 (colored)

- Add MII flow control support
- Set "disable jabber" and "auto padding/CRC stripping" bits in MAC conf
- Write intr mask to intr mask register, not status
- Setup both TX and RX burst modes
- Setup both TX and RX store & forward modes
- Correct an issue with the "end" descriptor passed to dwc_gmac_txdesc_sync
  in dwc_gmac_tx_intr

ok martin@

Revision 1.12.2.2 / (download) - annotate - [select for diffs], Sun Nov 9 19:06:57 2014 UTC (9 years, 5 months ago) by snj
Branch: netbsd-7
Changes since 1.12.2.1: +198 -0 lines
Diff to previous 1.12.2.1 (colored) to selected 1.21 (colored)

Pull up following revision(s) (requested by martin in ticket #189):
	sys/dev/ic/dwc_gmac.c: revision 1.1-1.24
	sys/dev/ic/dwc_gmac_reg.h: revision 1.1-1.12
	sys/dev/ic/dwc_gmac_var.h: revision 1.1-1.5
Add support for Synopsis Designware GMAC ethernet core, as found on
various Allwiner boards and used by the awge(4) driver.

Revision 1.12.2.1, Sat Oct 25 18:15:18 2014 UTC (9 years, 5 months ago) by snj
Branch: netbsd-7
Changes since 1.12: +0 -198 lines
FILE REMOVED

file dwc_gmac_reg.h was added on branch netbsd-7 on 2014-11-09 19:06:57 +0000

Revision 1.12 / (download) - annotate - [select for diffs], Sat Oct 25 18:15:18 2014 UTC (9 years, 5 months ago) by joerg
Branch: MAIN
Branch point for: netbsd-7
Changes since 1.11: +2 -2 lines
Diff to previous 1.11 (colored) to selected 1.21 (colored)

Fix grammar

Revision 1.11 / (download) - annotate - [select for diffs], Tue Oct 21 00:01:01 2014 UTC (9 years, 6 months ago) by jmcneill
Branch: MAIN
Changes since 1.10: +11 -5 lines
Diff to previous 1.10 (colored) to selected 1.21 (colored)

multicast hash filter support

Revision 1.10 / (download) - annotate - [select for diffs], Mon Oct 20 20:10:05 2014 UTC (9 years, 6 months ago) by jmcneill
Branch: MAIN
Changes since 1.9: +2 -0 lines
Diff to previous 1.9 (colored) to selected 1.21 (colored)

add $NetBSD$ to top of files

Revision 1.9 / (download) - annotate - [select for diffs], Mon Oct 20 19:49:34 2014 UTC (9 years, 6 months ago) by martin
Branch: MAIN
Changes since 1.8: +1 -1 lines
Diff to previous 1.8 (colored) to selected 1.21 (colored)

The RXINT bit is a RX interrupt DISABLE bit.

Revision 1.8 / (download) - annotate - [select for diffs], Sun Oct 19 11:37:17 2014 UTC (9 years, 6 months ago) by martin
Branch: MAIN
Changes since 1.7: +10 -7 lines
Diff to previous 1.7 (colored) to selected 1.21 (colored)

Add more comments

Revision 1.7 / (download) - annotate - [select for diffs], Sun Oct 19 09:39:33 2014 UTC (9 years, 6 months ago) by martin
Branch: MAIN
Changes since 1.6: +36 -21 lines
Diff to previous 1.6 (colored) to selected 1.21 (colored)

Add more bits and comments, parts from jmcneill.

Revision 1.6 / (download) - annotate - [select for diffs], Sat Oct 18 12:43:25 2014 UTC (9 years, 6 months ago) by martin
Branch: MAIN
Changes since 1.5: +15 -1 lines
Diff to previous 1.5 (colored) to selected 1.21 (colored)

Fix GMAC_MII_CLKMASK and add a few clk setup bits for it.

Revision 1.5 / (download) - annotate - [select for diffs], Mon Oct 13 08:18:52 2014 UTC (9 years, 6 months ago) by martin
Branch: MAIN
Changes since 1.4: +7 -0 lines
Diff to previous 1.4 (colored) to selected 1.21 (colored)

Add MAC config register bit definitions

Revision 1.4 / (download) - annotate - [select for diffs], Wed Oct 8 18:23:32 2014 UTC (9 years, 6 months ago) by martin
Branch: MAIN
Changes since 1.3: +12 -8 lines
Diff to previous 1.3 (colored) to selected 1.21 (colored)

Fix a few bits, add more status bit definitions and some comments.
Remove driver specific preference definitions.

Revision 1.3 / (download) - annotate - [select for diffs], Sun Sep 14 11:00:52 2014 UTC (9 years, 7 months ago) by martin
Branch: MAIN
Changes since 1.2: +67 -55 lines
Diff to previous 1.2 (colored) to selected 1.21 (colored)

Cleanup and __BIT()ify

Revision 1.2 / (download) - annotate - [select for diffs], Tue Sep 9 10:04:19 2014 UTC (9 years, 7 months ago) by martin
Branch: MAIN
Changes since 1.1: +0 -1 lines
Diff to previous 1.1 (colored) to selected 1.21 (colored)

Make the MII clock variable and passed in from the frontend.

Revision 1.1 / (download) - annotate - [select for diffs], Mon Sep 8 14:24:32 2014 UTC (9 years, 7 months ago) by martin
Branch: MAIN
Diff to selected 1.21 (colored)

Add work-in-progress driver for the Designware GMAC core, found on some
allwinner chips.

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>