CVS log for src/sys/dev/ic/dwc_gmac_reg.h
Up to [cvs.NetBSD.org] / src / sys / dev / ic
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
Revision 1.24: download - view: text, markup, annotated - select for diffs
Sat Oct 19 05:09:03 2024 UTC (2 months, 4 weeks ago) by skrll
Branches: MAIN
CVS tags: HEAD
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +14 -14
lines
#define<tab> consistency
Revision 1.23: download - view: text, markup, annotated - select for diffs
Sat Jul 27 12:56:27 2024 UTC (5 months, 3 weeks ago) by skrll
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +3 -1
lines
Handle GMAC_MAC_Version's that include USERVER.
Revision 1.22: download - view: text, markup, annotated - select for diffs
Tue Feb 27 08:21:24 2024 UTC (10 months, 2 weeks ago) by skrll
Branches: MAIN
CVS tags: perseant-exfatfs-base-20240630,
perseant-exfatfs-base,
perseant-exfatfs
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +1 -4
lines
Remove unused "SHIFT" defines. The "MASK" versions exist.
Revision 1.21: download - view: text, markup, annotated - select for diffs
Wed May 11 14:58:01 2022 UTC (2 years, 8 months ago) by andvar
Branches: MAIN
CVS tags: thorpej-ifq-base,
thorpej-ifq,
thorpej-altq-separation-base,
thorpej-altq-separation,
netbsd-10-base,
netbsd-10-1-RELEASE,
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
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +3 -3
lines
fix various typos in comments.
Revision 1.19.4.1: download - view: text, markup, annotated - select for diffs
Tue Aug 11 17:14:21 2020 UTC (4 years, 5 months ago) by martin
Branches: netbsd-9
CVS tags: netbsd-9-4-RELEASE,
netbsd-9-3-RELEASE,
netbsd-9-2-RELEASE,
netbsd-9-1-RELEASE
Diff to: previous 1.19: preferred, colored; next MAIN 1.20: preferred, colored
Changes since revision 1.19: +49 -2
lines
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 - view: text, markup, annotated - select for diffs
Sun May 17 21:50:47 2020 UTC (4 years, 8 months ago) by chs
Branches: 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
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +49 -2
lines
Mask all the MMC counter interrupts if the MMC module is present.
Revision 1.16.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 10 22:07:10 2019 UTC (5 years, 7 months ago) by christos
Branches: phil-wifi
Diff to: previous 1.16: preferred, colored; next MAIN 1.17: preferred, colored
Changes since revision 1.16: +27 -3
lines
Sync with HEAD
Revision 1.15.18.3: download - view: text, markup, annotated - select for diffs
Sat Oct 20 06:58:31 2018 UTC (6 years, 2 months ago) by pgoyette
Branches: pgoyette-compat
CVS tags: pgoyette-compat-merge-20190127
Diff to: previous 1.15.18.2: preferred, colored; branchpoint 1.15: preferred, colored; next MAIN 1.16: preferred, colored
Changes since revision 1.15.18.2: +27 -3
lines
Sync with head
Revision 1.19: download - view: text, markup, annotated - select for diffs
Mon Oct 8 17:09:31 2018 UTC (6 years, 3 months ago) by martin
Branches: 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
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +26 -2
lines
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 - view: text, markup, annotated - select for diffs
Sun Sep 30 01:45:50 2018 UTC (6 years, 3 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.15.18.1: preferred, colored; branchpoint 1.15: preferred, colored
Changes since revision 1.15.18.1: +1 -1
lines
Ssync with HEAD
Revision 1.18: download - view: text, markup, annotated - select for diffs
Fri Sep 28 21:51:42 2018 UTC (6 years, 3 months ago) by aymeric
Branches: MAIN
CVS tags: pgoyette-compat-0930
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +3 -27
lines
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 - view: text, markup, annotated - select for diffs
Mon Sep 17 20:25:49 2018 UTC (6 years, 4 months ago) by aymeric
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +27 -3
lines
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 - view: text, markup, annotated - select for diffs
Mon Jun 25 07:25:50 2018 UTC (6 years, 6 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +3 -1
lines
Sync with HEAD
Revision 1.16: download - view: text, markup, annotated - select for diffs
Sat Jun 16 00:15:00 2018 UTC (6 years, 7 months ago) by jmcneill
Branches: 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
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +3 -1
lines
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 - view: text, markup, annotated - select for diffs
Sun Dec 3 11:37:03 2017 UTC (7 years, 1 month ago) by jdolecek
Branches: tls-maxphys
Diff to: previous 1.15.16.1: preferred, colored; branchpoint 1.15: preferred, colored; next MAIN 1.16: preferred, colored
Changes since revision 1.15.16.1: +221 -0
lines
update from HEAD
Revision 1.14.2.1: download - view: text, markup, annotated - select for diffs
Sun Dec 27 12:09:49 2015 UTC (9 years ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.14: preferred, colored; next MAIN 1.15: preferred, colored
Changes since revision 1.14: +7 -2
lines
Sync with HEAD (as of 26th Dec)
Revision 1.12.2.3.2.1: download - view: text, markup, annotated - select for diffs
Sat Dec 26 22:23:43 2015 UTC (9 years ago) by snj
Branches: netbsd-7-0
CVS tags: netbsd-7-0-2-RELEASE,
netbsd-7-0-1-RELEASE
Diff to: previous 1.12.2.3: preferred, colored; next MAIN 1.12.2.4: preferred, colored
Changes since revision 1.12.2.3: +7 -2
lines
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 - view: text, markup, annotated - select for diffs
Sat Dec 26 22:23:20 2015 UTC (9 years ago) by snj
Branches: 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
Diff to: previous 1.12.2.3: preferred, colored; next MAIN 1.13: preferred, colored
Changes since revision 1.12.2.3: +7 -2
lines
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 (9 years, 1 month ago) by jdolecek
Branches: tls-maxphys
FILE REMOVED
Changes since revision 1.15: +0 -221
lines
file dwc_gmac_reg.h was added on branch tls-maxphys on 2017-12-03 11:37:03 +0000
Revision 1.15: download - view: text, markup, annotated - select for diffs
Sat Nov 21 16:04:11 2015 UTC (9 years, 1 month ago) by martin
Branches: 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-3-RELEASE,
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
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +7 -2
lines
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 - view: text, markup, annotated - select for diffs
Tue Feb 3 08:11:21 2015 UTC (9 years, 11 months ago) by bouyer
Branches: 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
Diff to: previous 1.12.2.2: preferred, colored
Changes since revision 1.12.2.2: +14 -3
lines
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 - view: text, markup, annotated - select for diffs
Fri Nov 28 09:01:05 2014 UTC (10 years, 1 month ago) by martin
Branches: MAIN
CVS tags: nick-nhusb-base-20150921,
nick-nhusb-base-20150606,
nick-nhusb-base-20150406,
nick-nhusb-base
Branch point for: nick-nhusb
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +9 -2
lines
Bits and values for checksum insertion controll
Revision 1.13: download - view: text, markup, annotated - select for diffs
Sat Nov 22 18:31:03 2014 UTC (10 years, 1 month ago) by jmcneill
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +14 -3
lines
- 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 - view: text, markup, annotated - select for diffs
Sun Nov 9 19:06:57 2014 UTC (10 years, 2 months ago) by snj
Branches: netbsd-7
Diff to: previous 1.12.2.1: preferred, colored
Changes since revision 1.12.2.1: +198 -0
lines
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 (10 years, 2 months ago) by snj
Branches: netbsd-7
FILE REMOVED
Changes since revision 1.12: +0 -198
lines
file dwc_gmac_reg.h was added on branch netbsd-7 on 2014-11-09 19:06:57 +0000
Revision 1.12: download - view: text, markup, annotated - select for diffs
Sat Oct 25 18:15:18 2014 UTC (10 years, 2 months ago) by joerg
Branches: MAIN
Branch point for: netbsd-7
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +2 -2
lines
Fix grammar
Revision 1.11: download - view: text, markup, annotated - select for diffs
Tue Oct 21 00:01:01 2014 UTC (10 years, 2 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +11 -5
lines
multicast hash filter support
Revision 1.10: download - view: text, markup, annotated - select for diffs
Mon Oct 20 20:10:05 2014 UTC (10 years, 2 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +2 -0
lines
add $NetBSD$ to top of files
Revision 1.9: download - view: text, markup, annotated - select for diffs
Mon Oct 20 19:49:34 2014 UTC (10 years, 2 months ago) by martin
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +1 -1
lines
The RXINT bit is a RX interrupt DISABLE bit.
Revision 1.8: download - view: text, markup, annotated - select for diffs
Sun Oct 19 11:37:17 2014 UTC (10 years, 3 months ago) by martin
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +10 -7
lines
Add more comments
Revision 1.7: download - view: text, markup, annotated - select for diffs
Sun Oct 19 09:39:33 2014 UTC (10 years, 3 months ago) by martin
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +36 -21
lines
Add more bits and comments, parts from jmcneill.
Revision 1.6: download - view: text, markup, annotated - select for diffs
Sat Oct 18 12:43:25 2014 UTC (10 years, 3 months ago) by martin
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +15 -1
lines
Fix GMAC_MII_CLKMASK and add a few clk setup bits for it.
Revision 1.5: download - view: text, markup, annotated - select for diffs
Mon Oct 13 08:18:52 2014 UTC (10 years, 3 months ago) by martin
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +7 -0
lines
Add MAC config register bit definitions
Revision 1.4: download - view: text, markup, annotated - select for diffs
Wed Oct 8 18:23:32 2014 UTC (10 years, 3 months ago) by martin
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +12 -8
lines
Fix a few bits, add more status bit definitions and some comments.
Remove driver specific preference definitions.
Revision 1.3: download - view: text, markup, annotated - select for diffs
Sun Sep 14 11:00:52 2014 UTC (10 years, 4 months ago) by martin
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +67 -55
lines
Cleanup and __BIT()ify
Revision 1.2: download - view: text, markup, annotated - select for diffs
Tue Sep 9 10:04:19 2014 UTC (10 years, 4 months ago) by martin
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +0 -1
lines
Make the MII clock variable and passed in from the frontend.
Revision 1.1: download - view: text, markup, annotated - select for diffs
Mon Sep 8 14:24:32 2014 UTC (10 years, 4 months ago) by martin
Branches: MAIN
Add work-in-progress driver for the Designware GMAC core, found on some
allwinner chips.
CVSweb <webmaster@jp.NetBSD.org>