History log of /src/sys/arch/evbppc/virtex/dev/if_temac.c |
Revision | | Date | Author | Comments |
1.20 |
| 18-Sep-2022 |
thorpej | Eliminate use of IFF_OACTIVE.
|
1.19 |
| 27-Feb-2022 |
riastradh | evbppc/temac(4): Mark unused functions as such.
|
1.18 |
| 05-Dec-2021 |
msaitoh | s/decriptor/descriptor/ in comment.
|
1.17 |
| 29-Mar-2021 |
rin | Make VIRTEX_* kernels compile. Not tested.
|
1.16 |
| 04-Feb-2020 |
skrll | branches: 1.16.6; 1.16.8; Adopt <net/if_stats.h>
|
1.15 |
| 29-May-2019 |
msaitoh | branches: 1.15.4; KNF. No functional change.
|
1.14 |
| 29-May-2019 |
msaitoh | Whitespace fix. No functional change.
|
1.13 |
| 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.12 |
| 15-Dec-2016 |
ozaki-r | branches: 1.12.14; 1.12.16; 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 |
| 10-Jun-2016 |
ozaki-r | branches: 1.11.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.10 |
| 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.9 |
| 22-Jul-2012 |
matt | branches: 1.9.2; 1.9.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.8 |
| 18-Jun-2011 |
matt | branches: 1.8.2; split device/softc (CFATTACH_DECL_NEW) struct device * -> device_t struct cfdata * -> cfdata_t Use <sys/foo.h> instead of <machine/foo.h> if <sys/foo.h> exists Explicitly include <powerpc/ibm4xx/cpu.h> when needed.
|
1.7 |
| 05-Apr-2010 |
joerg | branches: 1.7.6; Push the bpf_ops usage back into bpf.h. Push the common ifp->if_bpf check into the inline functions as well the fourth argument for bpf_attach.
|
1.6 |
| 19-Jan-2010 |
pooka | branches: 1.6.2; 1.6.4; Redefine bpf linkage through an always present op vector, i.e. #if NBPFILTER is no longer required in the client. This change doesn't yet add support for loading bpf as a module, since drivers can register before bpf is attached. However, callers of bpf can now be modularized.
Dynamically loadable bpf could probably be done fairly easily with coordination from the stub driver and the real driver by registering attachments in the stub before the real driver is loaded and doing a handoff. ... and I'm not going to ponder the depths of unload here.
Tested with i386/MONOLITHIC, modified MONOLITHIC without bpf and rump.
|
1.5 |
| 31-Dec-2009 |
freza | Remove unused variable, makes VIRTEX_* kernels compile again.
|
1.4 |
| 12-Feb-2008 |
dyoung | branches: 1.4.10; 1.4.32; Use device_is_active().
|
1.3 |
| 19-Jan-2008 |
dyoung | Make many ethernet drivers share the common code for MII media handling, ether_mediastatus() and ether_mediachange(). Check for a non-ENXIO error return from mii_mediachg(). (ENXIO indicates that a PHY is suspended.)
This patch shrinks the source code size by 979 lines. There was a 5100-byte savings on the NetBSD/i386 kernel configuration, ALL.
I have made a few miscellaneous changes, too:
gem(4): use LIST_EMPTY(), LIST_FOREACH(). mtd(4): handle media ioctls, for a change! axe(4): do not track link status in sc->axe_link any longer nfe(4), aue(4), axe(4), udav(4), url(4): do not reset all PHYs on a change of media
Except for the change to mtd(4), no functional changes are intended.
XXX This patch affects more architectures than I can feasibly XXX compile and run. I have compiled macppc, sparc64, i386. I XXX have run the patches on i386 boxen with bnx(4) and sip(4). XXX Compiling and running on evbmips (MERAKI, ADM5120) is in XXX progress.
|
1.2 |
| 04-Mar-2007 |
christos | branches: 1.2.20; 1.2.26; 1.2.32; Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
|
1.1 |
| 02-Dec-2006 |
freza | branches: 1.1.2; 1.1.4; 1.1.6; 1.1.8; Welcome to evbppc/virtex -- port to Xilinx Virtex series FPGA's with embedded ibm405d5 core.
OK by Simon Burge
|
1.1.8.1 |
| 12-Mar-2007 |
rmind | Sync with HEAD.
|
1.1.6.2 |
| 12-Jan-2007 |
ad | Sync with head.
|
1.1.6.1 |
| 02-Dec-2006 |
ad | file if_temac.c was added on branch newlock2 on 2007-01-12 01:00:47 +0000
|
1.1.4.5 |
| 27-Feb-2008 |
yamt | sync with head.
|
1.1.4.4 |
| 21-Jan-2008 |
yamt | sync with head
|
1.1.4.3 |
| 03-Sep-2007 |
yamt | sync with head.
|
1.1.4.2 |
| 30-Dec-2006 |
yamt | sync with head.
|
1.1.4.1 |
| 02-Dec-2006 |
yamt | file if_temac.c was added on branch yamt-lazymbuf on 2006-12-30 20:45:54 +0000
|
1.1.2.2 |
| 10-Dec-2006 |
yamt | sync with head.
|
1.1.2.1 |
| 02-Dec-2006 |
yamt | file if_temac.c was added on branch yamt-splraiseipl on 2006-12-10 07:15:54 +0000
|
1.2.32.1 |
| 20-Jan-2008 |
bouyer | Sync with HEAD
|
1.2.26.1 |
| 18-Feb-2008 |
mjf | Sync with HEAD.
|
1.2.20.1 |
| 23-Mar-2008 |
matt | sync with HEAD
|
1.4.32.1 |
| 07-Jan-2011 |
matt | Remove unused variable.
|
1.4.10.2 |
| 11-Aug-2010 |
yamt | sync with head.
|
1.4.10.1 |
| 11-Mar-2010 |
yamt | sync with head
|
1.6.4.1 |
| 30-May-2010 |
rmind | sync with head
|
1.6.2.1 |
| 30-Apr-2010 |
uebayasi | Sync with HEAD.
|
1.7.6.1 |
| 23-Jun-2011 |
cherry | Catchup with rmind-uvmplock merge.
|
1.8.2.1 |
| 30-Oct-2012 |
yamt | sync with head
|
1.9.16.3 |
| 05-Feb-2017 |
skrll | Sync with HEAD
|
1.9.16.2 |
| 09-Jul-2016 |
skrll | Sync with HEAD
|
1.9.16.1 |
| 19-Mar-2016 |
skrll | Sync with HEAD
|
1.9.2.1 |
| 03-Dec-2017 |
jdolecek | update from HEAD
|
1.11.2.1 |
| 07-Jan-2017 |
pgoyette | Sync with HEAD. (Note that most of these changes are simply $NetBSD$ tag issues.)
|
1.12.16.2 |
| 08-Apr-2020 |
martin | Merge changes from current as of 20200406
|
1.12.16.1 |
| 10-Jun-2019 |
christos | Sync with HEAD
|
1.12.14.1 |
| 26-Jan-2019 |
pgoyette | Sync with HEAD
|
1.15.4.1 |
| 29-Feb-2020 |
ad | Sync with head.
|
1.16.8.1 |
| 03-Apr-2021 |
thorpej | Sync with HEAD.
|
1.16.6.1 |
| 03-Apr-2021 |
thorpej | Sync with HEAD.
|