| History log of /src/sys/arch/mips/ralink/ralink_eth.c |
| Revision | | Date | Author | Comments |
| 1.27 |
| 14-Jul-2025 |
andvar | s/swith size/with the size/ and s/swich/switch/ in comments.
|
| 1.26 |
| 29-Sep-2022 |
skrll | branches: 1.26.10; Remove unnecessary include of <sys/malloc.h>.
|
| 1.25 |
| 18-Sep-2022 |
thorpej | Eliminate use of IFF_OACTIVE.
|
| 1.24 |
| 24-May-2022 |
andvar | fix various typos in comment, documentation and log messages.
|
| 1.23 |
| 16-Mar-2022 |
andvar | s/watchog/watchdog in comment and log message, one wording fix in comment.
|
| 1.22 |
| 17-Aug-2021 |
andvar | fix multiplei repetitive typos in comments, messages and documentation. mainly because copy paste code big amount of files are affected.
|
| 1.21 |
| 04-Feb-2020 |
thorpej | Use ifmedia_fini().
|
| 1.20 |
| 29-Jan-2020 |
thorpej | Adopt <net/if_stats.h>.
|
| 1.19 |
| 03-Jun-2019 |
msaitoh | branches: 1.19.4; Fix typo in comment (s/seperate/separate/).
|
| 1.18 |
| 29-May-2019 |
msaitoh | Fix compile error.
|
| 1.17 |
| 29-May-2019 |
msaitoh | No functional change: - Simplify MII structure initialization and reference. - KNF
|
| 1.16 |
| 29-May-2019 |
msaitoh | Whitespace fix. No functional change.
|
| 1.15 |
| 22-Jan-2019 |
msaitoh | 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
|
| 1.14 |
| 26-Jun-2018 |
msaitoh | branches: 1.14.2; 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.
|
| 1.13 |
| 20-Feb-2017 |
ozaki-r | branches: 1.13.12; Apply deferred if_start to more drivers...
|
| 1.12 |
| 15-Dec-2016 |
ozaki-r | branches: 1.12.2; Move bpf_mtap and if_ipackets++ on Rx of each driver to percpuq if_input
The benefits of the change are: - We can reduce codes - We can provide the same behavior between drivers - Where/When if_ipackets is counted up - Note that some drivers still update packet statistics in their own way (periodical update) - Moved bpf_mtap run in softint - This makes it easy to MP-ify bpf
Proposed on tech-kern and tech-net
|
| 1.11 |
| 05-Oct-2016 |
ryo | add support MT7628/MediaTek LinkIt Smart 7688 by @hiroshi and me.
|
| 1.10 |
| 05-Oct-2016 |
ryo | KNF; indent, spaces and tabs. No functional change.
|
| 1.9 |
| 10-Jun-2016 |
ozaki-r | branches: 1.9.2; Introduce m_set_rcvif and m_reset_rcvif
The API is used to set (or reset) a received interface of a mbuf. They are counterpart of m_get_rcvif, which will come in another commit, hide internal of rcvif operation, and reduce the diff of the upcoming change.
No functional change.
|
| 1.8 |
| 23-Apr-2016 |
skrll | Merge nick-nhusb
- API / infrastructure changes to support memory management changes. - Memory management improvements and bug fixes. - HCDs should now be MP safe - conversion to KERNHIST based debug - FS/LS isoc support on ehci(4). - conversion to kmem(9) - Some USB 3 support - mostly from Takahiro HAYASHI (t-hash). - interrupt transfers now get proper DMA operations - general bug fixes - kern/48308 - uhub status notification improvements - umass(4) probe fix (applied to HEAD already) - ohci(4) short transfer fix
|
| 1.7 |
| 09-Feb-2016 |
ozaki-r | Introduce softint-based if_input
This change intends to run the whole network stack in softint context (or normal LWP), not hardware interrupt context. Note that the work is still incomplete by this change; to that end, we also have to softint-ify if_link_state_change (and bpf) which can still run in hardware interrupt.
This change softint-ifies at ifp->if_input that is called from each device driver (and ieee80211_input) to ensure Layer 2 runs in softint (e.g., ether_input and bridge_input). To this end, we provide a framework (called percpuq) that utlizes softint(9) and percpu ifqueues. With this patch, rxintr of most drivers just queues received packets and schedules a softint, and the softint dequeues packets and does rest packet processing.
To minimize changes to each driver, percpuq is allocated in struct ifnet for now and that is initialized by default (in if_attach). We probably have to move percpuq to softc of each driver, but it's future work. At this point, only wm(4) has percpuq in its softc as a reference implementation.
Additional information including performance numbers can be found in the thread at tech-kern@ and tech-net@: http://mail-index.netbsd.org/tech-kern/2016/01/14/msg019997.html
Acknowledgment: riastradh@ greatly helped this work. Thank you very much!
|
| 1.6 |
| 22-Jul-2012 |
matt | branches: 1.6.2; 1.6.16; 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.
|
| 1.5 |
| 23-Aug-2011 |
oki | branches: 1.5.2; make compile with options RT3050.
|
| 1.4 |
| 03-Aug-2011 |
matt | Deal with RTMEMSIZE no longer being defined
|
| 1.3 |
| 01-Aug-2011 |
matt | Use <sys/ for bus.h and intr.h
|
| 1.2 |
| 28-Jul-2011 |
matt | Bring forward from matt-nb5-mips64. Support for Ralink RT3883 MIPS 74K SoC from CradlePoint Technology.
|
| 1.1 |
| 01-Jul-2011 |
matt | branches: 1.1.2; file ralink_eth.c was initially added on branch matt-nb5-mips64.
|
| 1.1.2.1 |
| 01-Jul-2011 |
matt | Add basic support for the Ralink RT3883 SOC. No support for the wireless interfaces is present but i2c, uart, ethernet, gpio, ehci, ohci are supported. This support was contributed by Cradlepoint Technology.
|
| 1.5.2.1 |
| 30-Oct-2012 |
yamt | sync with head
|
| 1.6.16.5 |
| 28-Aug-2017 |
skrll | Sync with HEAD
|
| 1.6.16.4 |
| 05-Feb-2017 |
skrll | Sync with HEAD
|
| 1.6.16.3 |
| 05-Dec-2016 |
skrll | Sync with HEAD
|
| 1.6.16.2 |
| 09-Jul-2016 |
skrll | Sync with HEAD
|
| 1.6.16.1 |
| 19-Mar-2016 |
skrll | Sync with HEAD
|
| 1.6.2.1 |
| 03-Dec-2017 |
jdolecek | update from HEAD
|
| 1.9.2.3 |
| 20-Mar-2017 |
pgoyette | Sync with HEAD
|
| 1.9.2.2 |
| 07-Jan-2017 |
pgoyette | Sync with HEAD. (Note that most of these changes are simply $NetBSD$ tag issues.)
|
| 1.9.2.1 |
| 04-Nov-2016 |
pgoyette | Sync with HEAD
|
| 1.12.2.1 |
| 21-Apr-2017 |
bouyer | Sync with HEAD
|
| 1.13.12.2 |
| 26-Jan-2019 |
pgoyette | Sync with HEAD
|
| 1.13.12.1 |
| 28-Jul-2018 |
pgoyette | Sync with HEAD
|
| 1.14.2.2 |
| 08-Apr-2020 |
martin | Merge changes from current as of 20200406
|
| 1.14.2.1 |
| 10-Jun-2019 |
christos | Sync with HEAD
|
| 1.19.4.1 |
| 29-Feb-2020 |
ad | Sync with head.
|
| 1.26.10.1 |
| 02-Aug-2025 |
perseant | Sync with HEAD
|